]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
PR c++/14791
[thirdparty/gcc.git] / gcc / ChangeLog
1 2004-06-10 Jakub Jelinek <jakub@redhat.com>
2
3 PR c++/14791
4 * tree.h (enum tree_index): Add TI_FILEPTR_TYPE.
5 (fileptr_type_node): Define.
6 * tree.c (build_common_tree_nodes_2): Initialize
7 fileptr_type_node to ptr_type_node.
8 * c-common.c (c_common_nodes_and_builtins): For C++, make
9 fileptr_type_node a distinct type copy.
10 * builtin-types.def (BT_FILEPTR, BT_FN_INT_CONST_STRING_FILEPTR,
11 BT_FN_INT_INT_FILEPTR, BT_FN_INT_FILEPTR_CONST_STRING_VALIST_ARG,
12 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_FILEPTR,
13 BT_FN_INT_FILEPTR_CONST_STRING_VAR): Add.
14 (BT_FN_INT_CONST_STRING_PTR, BT_FN_INT_INT_PTR,
15 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_PTR, BT_FN_INT_PTR_CONST_STRING_VAR,
16 BT_FN_INT_PTR_CONST_STRING_VALIST_ARG): Remove.
17 * builtins.def (BUILT_IN_FPRINTF, BUILT_IN_FPRINTF_UNLOCKED,
18 BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS,
19 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FSCANF, BUILT_IN_FWRITE,
20 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): Use
21 the above *FILEPTR* types instead of *PTR*.
22
23 * decl.c (duplicate_decls): Handle fileptr_type_node arguments
24 specially.
25
26 2004-06-09 Daniel Berlin <dberlin@dberlin.org>
27
28 * tree-ssa.c (verify_ssa): Verify that vdefs/makes_aliased_stores
29 match.
30
31 2004-06-09 Roger Sayle <roger@eyesopen.com>
32
33 * fold-const.c (fold_not_const): New function.
34 (fold) <ABS_EXPR>: Don't bother testing wins.
35 (fold) <BIT_NOT_EXPR>: Call fold_not_const.
36 (nondestructive_fold_unary_to_constant) <BIT_NOT_EXPR>: Likewise.
37
38 2004-06-09 Richard Henderson <rth@redhat.com>
39
40 PR middle-end/15228
41 * function.c (assign_parms): Always set_mem_align with the computed
42 FUNCTION_ARG_BOUNDARY. Don't clear stack_parm if !STRICT_ALIGNMENT.
43
44 2004-06-09 Richard Henderson <rth@redhat.com>
45
46 PR opt/15108
47 * tree-tailcall.c (find_tail_calls): Don't check early for
48 tail_recursion failure.
49
50 2004-06-09 Diego Novillo <dnovillo@redhat.com>
51
52 Move SSA_NAME annotations into tree_ssa_name.
53
54 * tree-dfa.c (create_ssa_name_ann): Remove.
55 * tree-flow-inline.h (ssa_name_ann, get_ssa_name_ann): Remove.
56 * tree-flow.h (enum tree_ann_type): Remove SSA_NAME_ANN.
57 (struct ssa_name_ann_d): Remove.
58 (union tree_ann_d): Update.
59 (ssa_name_ann_t): Remove.
60 * tree-ssa-alias.c: (get_ptr_info): New local function.
61 Replace references to ssa_name_ann_t with struct ptr_info_def.
62 * tree-ssa-operands.c (get_expr_operands): Likewise.
63 * tree.h (SSA_NAME_PTR_INFO): Define.
64 (struct ptr_info_def): Declare.
65 (struct tree_ssa_name): Add field 'ptr_info'.
66
67 2004-06-09 Danny Smith <dannysmith@users.sourceforge.net>
68
69 * config/i386/winnt.c (i386_pe_output_labelref): Correct
70 misplaced ')'.
71
72 2004-06-09 Steven Bosscher <stevenb@suse.de>
73
74 * config/i386/k6.md: Rewrite using the DFA model.
75 * config/i386/i386.c (ix86_adjust_cost): Don't increase the
76 cost of load-operation insns for the K6.
77 (ia32_use_dfa_pipeline_interface): Add TARGET_K6.
78 (ia32_multipass_dfa_lookahead): Likewise.
79
80 2004-06-09 Richard Henderson <rth@redhat.com>
81
82 * config/alpha/alpha.c (alpha_gimplify_va_arg_1,
83 alpha_gimplify_va_arg, TARGET_GIMPLIFY_VA_ARG_EXPR): New.
84
85 2004-06-09 Richard Henderson <rth@redhat.com>
86
87 * expmed.c (emit_store_flag): Cope with FLOAT_STORE_FLAG_VALUE.
88
89 2004-06-09 Geoffrey Keating <geoffk@apple.com>
90
91 * Makefile.in (CPPLIB_H): Put files in order of inclusion.
92 (CPP_ID_DATA_H): New.
93 (gtype-desc.o): Update dependencies.
94 (GTFILES): Use CPP_ID_DATA_H.
95
96 2004-06-09 Mark Mitchell <mark@codesourcery.com>
97
98 Revert:
99 PR c++/15815
100 2004-06-07 Mark Mitchell <mark@codesourcery.com>
101 * doc/extend.texi: Deprecate #pragma interface and #pragma
102 implementation.
103
104 2004-06-09 David S. Miller <davem@nuts.davemloft.net>
105
106 * config/sparc/sparc.h (MOVE_RATIO): New definition.
107
108 2004-06-09 Richard Henderson <rth@redhat.com>
109
110 * basic-block.h (struct edge_def): Add goto_locus.
111 * tree-cfg.c (make_goto_expr_edges): Set it.
112 (disband_implicit_edges): Use it.
113 * tree-pretty-print.c (dump_implicit_edges): Print it.
114
115 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
116
117 * h8300.md (ldm_h8300s_4): Fix condition for expander.
118
119 2004-06-08 Jason Merrill <jason@redhat.com>
120
121 Gimplify VA_ARG_EXPR into simpler forms.
122 * target.h: Add gimplify_va_arg_expr hook.
123 * target-def.h: Add TARGET_GIMPLIFY_VA_ARG_EXPR.
124 * fold-const.c (build_fold_addr_expr)
125 (build_fold_addr_expr_with_type): Move from gimplify.c.
126 * tree.h: Declare them.
127 * gimplify.c (gimplify_and_add): New fn.
128 (build_addr_expr, build_addr_expr_with_type): Move to fold-const.c.
129 (gimplify_array_ref_to_plus, gimplify_modify_expr)
130 (gimplify_expr): Use build_fold_*.
131 (copy_if_shared_r): Only mark VA_ARG_EXPR volatile if we
132 don't know how to gimplify it.
133 * builtins.c (std_gimplify_va_arg_expr): New fn.
134 (dummy_object): New static fn.
135 (gimplify_va_arg_expr): New fn.
136 (stabilize_va_list): Use build_fold_*.
137 * tree-gimple.h: Declare new fns.
138 * config/i386/i386.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
139 (ix86_gimplify_va_arg): New fn.
140 * config/ia64/ia64.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
141 (ia64_gimplify_va_arg): New fn.
142 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): New fn.
143 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
144 * config/sparc/sparc.c (sparc_gimplify_va_arg): New fn.
145 * alias.c (get_varargs_alias_set): Just return 0 for now.
146
147 * c-objc-common.c (c_tree_printer): Improve handling of %T.
148
149 2004-06-09 Andrew Pinski <pinskia@physics.uc.edu>
150
151 * tree-complex.c (expand_complex_comparison): Use fold_convert instead
152 of convert.
153 * tree-inline.c (setup_one_parameter): Likewise.
154 * tree-sra.c (csc_build_component_ref): Likewise.
155 * tree-ssa-ccp.c (ccp_fold): Likewise.
156 * tree-ssa-copy.c (cprop_operand): Likewise.
157 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
158 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
159
160 2004-06-09 J"orn Rennecke <joern.rennecke@superh.com>
161
162 PR rtl-optimization/15521:
163 * sched-int.h (in_post_call_group_p): Change type to enum.
164 * sched-deps.c (sched_analyze_insn):
165 (sched_analyze): When in_post_call_group_p is post_call_initial,
166 don't add a dependency, but still set SCHED_GROUP_P and CANT_MOVE,
167 and also reset in_post_call_group_p to post_call.
168 (sched_analyze): When the previous basic block ended in a CALL_INSN,
169 initialize in_post_call_group_p as post_call_initial.
170 (init_deps): initialize in_post_call_group_p to not_post_call.
171
172 2004-06-09 Arnaud Charlet <charlet@act-europe.fr>
173
174 PR ada/6637
175 * doc/install.texi: List ada, libada as options to --enable-shared
176
177 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
178
179 * aclocal.m4 (gcc_AC_PROG_LN): Remove.
180 (gcc_AC_CHECK_DECLS): Use AH_TEMPLATE to generate
181 config.in entries.
182 * configure.ac: Call ACX_PROG_LN, falling back to $LN_S
183 if hard links are not available.
184 * configure: Regenerate.
185 * config.in: Regenerate.
186
187 2004-06-08 Per Bothner <per@bothner.com>
188
189 * configure.ac: New --enable-mapped-location sets USE_MAPPED_LOCATION.
190
191 2004-06-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
192
193 * toplev.c (floor_log2_wide): Correct casts for 64-bit hosts.
194 Correct formatting.
195
196 2004-06-08 James E Wilson <wilson@specifixinc.com>
197
198 PR target/15790
199 * config/i386/i386-coff.h (ASM_OUTPUT_ALIGN): Define.
200
201 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
202
203 * fold-const.c (fold_convert): Treat OFFSET_TYPE like
204 POINTER_TYPE and INTEGER_TYPE.
205
206 2004-06-08 Bernardo Innocenti <bernie@develer.com>
207
208 * modulo-sched.c: Compile only when INSN_SCHEDULING is
209 defined.
210
211 2004-06-08 Jeff Law <law@redhat.com>
212
213 * doc/contrib.texi: Add entries for Stefan Olsson and
214 Ola Ronnerup.
215
216 2004-06-08 DJ Delorie <dj@redhat.com>
217
218 * toplev.c (floor_log2_wide): Replace loop with faster bit
219 operations.
220 (exact_log2_wide): Define in terms of the above.
221 * toplev.h (floor_log2): Use _builtin_clz family of builtins if
222 available.
223
224 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
225
226 * config/rs6000/rs6000.c (print_operand, <case 'z'>):
227 Make sure that we are in INDIRECT mode when getting the
228 stub name.
229
230 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
231
232 * h8300.md (extendqisi2_h8300): Add constraints.
233 (ldm_h8300s_4_normal): Fix typo.
234
235 2004-06-08 Richard Henderson <rth@redhat.com>
236
237 * gimple-low.c (struct lower_data): Replace the_return_label and
238 one_return_stmt with return_statements.
239 (lower_function_body): Process the entire list of return_statements.
240 (lower_return_expr): Check source value before unifying return_exprs.
241 * gimplify.c (gimplify_return_expr): Force the use of a temporary
242 for !aggregate_value_p.
243 * tree-gimple.c: Update RETURN_EXPR grammer.
244
245 2004-06-08 Vladimir Makarov <vmakarov@redhat.com>
246
247 PR target/15598
248 * config/ia64/ia64.c (bundling): Add missed TYPE_A.
249
250 2004-06-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
251
252 PR rtl-optimization/15717
253 * config/i386/i386.c (legitimate_constant_p): Do not allow
254 x - symbol_ref.
255
256 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
257
258 * gimplify.c (copy_if_shared_r): Revert:
259 2004-05-21 Richard Henderson <rth@redhat.com>
260 * gimplify.c [...] Don't mark VA_ARG_EXPRs volatile here.
261
262 2004-06-07 Roger Sayle <roger@eyesopen.com>
263
264 * expmed.c (add_cost, neg_cost, sdiv_pow2_cheap, smod_pow2_cheap):
265 Make arrays indexed by machine mode. Rename negate_cost to neg_cost.
266 (init_expmed): Initialize these cost arrays as appropriate.
267 (store_bit_field, extract_bit_field): Correct whitespace.
268 (synth_mult, choose_mult_variant, expand_mult, expand_mult_highpart,
269 expand_mult_highpart_optab, expand_divmod): Update uses of add_cost,
270 neg_cost, sdiv_pow2_cheap, smod_pow2_cheap to index with mode,
271 word_mode or compute_mode as appropriate.
272
273 2004-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
274
275 PR target/15783
276 * config/sparc/sparc.c (function_arg_union_value): Add 'mode'
277 parameter. Enumerate the registers inside the PARALLEL.
278 (function_arg): Adjust call to function_arg_union_value.
279 (function_value): Likewise.
280
281 * config/sparc/sparc.c (sparc_function_epilogue): Properly format.
282
283 2004-06-07 Roger Sayle <roger@eyesopen.com>
284
285 * real.c (real_copysign): New function to implement libm's copysign.
286 * real.h (real_copysign): Prototype here.
287 * fold-const.c (tree_expr_nonnegative_p): The result of sqrt, sqrtf
288 and sqrtl can be negative, as sqrt(-0.0) = -0.0. Correct whitespace.
289 * builtins.c (fold_builtin_isascii, fold_builtin_toascii,
290 fold_builtin_isdigit): Add function prototypes.
291 (fold_builtin_copysign): New function to fold copysign, copysignf
292 and copysignl. Optimize copysign(x,x) as x. Evaluate copysign of
293 constant arguments at compile-time using real_copysign. Fold
294 copysign(X,Y) as fabs(X) if Y is always non-negative.
295 (fold_builtin_1): Correct minor whitespace/style issues. Call
296 fold_builtin_copysign for BUILT_IN_COPYSIGN{,F,L}.
297
298 2004-06-07 J"orn Rennecke <joern.rennecke@superh.com>
299
300 * tree.c (iterative_hash_expr): Use real_hash.
301
302 2004-06-07 Joseph S. Myers <jsm@polyomino.org.uk>
303
304 PR c/14765
305 * c-parse.in (compstmt_primary_start): Set last_expr_type to
306 NULL_TREE.
307
308 2004-06-07 Mark Mitchell <mark@codesourcery.com>
309
310 PR c++/15815
311 * doc/extend.texi: Deprecate #pragma interface and #pragma
312 implementation.
313
314 2004-06-07 Alexandre Oliva <aoliva@redhat.com>
315
316 PR middle-end/15666
317 * c-decl.c (finish_decl): Use change_decl_assembler_name for the
318 builtin decl as well.
319
320 2004-06-07 Roger Sayle <roger@eyesopen.com>
321
322 PR c/14649
323 * c-typeck.c (require_constant_value, require_constant_elements):
324 Move declarations to the top of the file.
325 (build_function_call): If we require a constant value, fold with
326 fold_initializer. If the result is a constant, and the function
327 wasn't called using __builtin_foo, issue a pedantic warning.
328 (build_unary_op): If we require a constant value, fold tree with
329 fold_initializer.
330 (build_binary_op): Use require_constant_value to determine whether
331 to call fold or fold_initializer.
332
333 2004-06-07 Richard Henderson <rth@redhat.com>
334
335 * gimple-low.c (struct lower_data): Add the_return_label and
336 one_return_stmt.
337 (lower_function_body): Initialize and use them.
338 (lower_return_expr): New.
339 (lower_stmt): Call it.
340 * gimplify.c (gimplify_return_expr): Force the argument to be either
341 null or a result_decl.
342 * tree-gimple.c: Update gimple grammer to match.
343 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Deny
344 coalescing of result_decls.
345
346 2004-06-07 Richard Henderson <rth@redhat.com>
347
348 PR rtl-opt/15193
349 * expmed.c (extract_bit_field): Fix vector_extract return.
350
351 * config/i386/i386.md (negv4sf2): New pattern.
352
353 2004-06-07 Mark Mitchell <mark@codesourcery.com>
354
355 PR c++/15337
356 * c-common.c (c_sizeof_or_alignof_type): Use more detailed error
357 message.
358
359 2004-06-06 Paolo Bonzini <bonzini@gnu.org>
360
361 * config.in: Regenerate.
362
363 2004-06-06 Steven Bosscher <stevenb@suse.de>
364
365 * tree-cfg.c (tree_verify_flow_info): Make sure that labels in
366 SWITCH_LABELS are always sorted.
367
368 2004-06-06 Steven Bosscher <stevenb@suse.de>
369
370 * hooks.c (hook_int_void_1): New generic hook.
371 * hooks.h (hook_int_void_1): Add prototype.
372 * config/c4x/c4x.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
373 Define to hook_int_void_1.
374 * config/c4x/c4x.md: Replace dummies for the old pipeline model
375 with dummies for the new one.
376
377 2004-06-06 Roger Sayle <roger@eyesopen.com>
378
379 * tree.h (lvalue_or_else): Delete function prototype.
380 * c-typeck.c (lvalue_or_else): Make static. Add static prototype.
381
382 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
383
384 PR target/14542
385 * config/m68hc11/m68hc11.md (move peephole2): Emit a use note to avoid
386 a live change of a register after peephole replacement.
387
388 2004-06-06 Joseph S. Myers <jsm@polyomino.org.uk>
389
390 PR c/13519
391 * c-typeck.c (composite_type, common_pointer_type): New functions.
392 (common_type): Split parts into composite_type and
393 common_pointer_type. Ensure that arithmetic operations return
394 unqualified types without attributes. Don't make composite type
395 of signed enum and compatible integer be unsigned.
396 (build_conditional_expr, build_binary_op): Use
397 common_pointer_type.
398 * c-decl.c (merge_decls): Use composite_type.
399 * c-tree.h (composite_type): Declare.
400
401 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
402
403 PR target/14457
404 * config/m68hc11/m68hc11.c (splitable_operand): New predicate.
405 * config/m68hc11/m68hc11-protos.h (splitable_operand): Declare.
406 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register it.
407 (inhibit_libc): Must define.
408 * config/m68hc11/m68hc11.md ("movhi_const0"): Use splitable_operand.
409 ("*andhi3_gen", "iorhi3", "*iorhi3_gen"): Likewise.
410 ("xorhi3"): Likewise.
411
412 2004-06-06 Eric Botcazou <ebotcazou@libertysurf.fr>
413
414 * cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in
415 always_inline pass.
416
417 2004-06-05 David S. Miller <davem@nuts.davemloft.net>
418
419 * config/sparc/linux.h (TARGET_C99_FUNCTIONS): Set.
420 * config/sparc/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
421
422 2004-06-05 Bernardo Innocenti <bernie@develer.com>
423
424 * regclass.c (init_reg_sets): Check for missing registers in target
425 initializer macros FIXED_REGISTERS and CALL_USED_REGISTERS.
426
427 2004-06-05 Zack Weinberg <zack@codesourcery.com>
428
429 * Makefile.in (MKDEPS_H): New shorthand.
430 (c-opts.o): Update dependencies.
431 * c-opts.c: Include mkdeps.h.
432 (handle_deferred_opts): Use cpp_get_deps and deps_add_target,
433 not cpp_add_dependency_target.
434
435 2004-06-05 Steven Bosscher <stevenb@suse.de>
436
437 * config/v850/v850.c (v850_use_dfa_pipeline_interface): New.
438 * config/v850/v850.md: Convert to DFA scheduler description.
439
440 2004-06-05 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
441
442 PR fortran/15478
443 * doc/install.texi: Document GMP as prerequisite. Document
444 --with-gmp and --with-gmp-dir configure options.
445 * fortran/gfortran.texi: Remove section "Compiling and testing",
446 remove TOC reference to it.
447
448 2004-06-05 Graham Stott <graham.stott@btinternet.com>
449
450 * combine.c(simplify_shift_const): Check shift amount is a
451 CONST_INT.
452
453 2004-06-05 Danny Smith <dannysmith@users.sourceforge.net>
454
455 * toplev.c (init_asm_output): Add explicit 'b' to mode when
456 opening asm_out_file.
457 * c-pch.c (c_common_write_pch): Remove unnecessary fflush before
458 reading asm_out_file. Replace fflush after reading asm_out_file
459 with fseek.
460 * hosthooks-def.h (HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY): Define
461 default and add to HOST_HOOKS_INITIALIZER.
462 * hosthooks.h (gt_pch_alloc_granularity): Declare hook function.
463 * ggc-common.c (default_gt_pch_alloc_granularity): New function.
464 (gt_pch_save): Use host_hooks.gt_pch_alloc_granularity
465 to set mmi.offset padding.
466 * config.gcc (i[34567]86-*-mingw32*): Set target_gtfiles to
467 $(srcdir)/config/i386/winnt.c.
468 (i[34567]86-*-pe | i[34567]86-*-cygwin*): Likewise.
469 (i[34567]86-*-uwin*): Likewise.
470 *i[34567]86-*-interix3*): Likewise.
471 * config.host (i[34567]86-*-mingw32*): Set out_host_hook_obj.
472 * config/i386/host-mingw32.c: New file.
473 * config/i386/x-mingw32: Add rule for host-mingw32.o.
474 * config/i386/winnt.c: (struct extern_list) Tag as GTY.
475 (extern_head): Likewise.
476 (struct export_list) Likewise.
477 (export_head): Likewise.
478 (i386_pe_record_external_function): Use ggc_alloc.
479 (i386_pe_record_exported_symbol): Likewise.
480 Include "gt-winnt.h" at end.
481 * doc/hostconfig.texi: Document
482 HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY.
483
484 2004-06-04 Bernardo Innocenti <bernie@develer.com>
485
486 * config/m68k/m68k.h: Remove comments copied over from tm.texi.
487 Rename 68000 and 68k to m68k for consistency in comments. Remove
488 trailing whitespace before EOLs and before TABs.
489 (MAX_CODE_ALIGN): Remove unused macro.
490 (CALL_USED_REGISTERS): Reformat and add comments.
491
492 2004-06-04 Frank Ch. Eigler <fche@redhat.com>
493
494 * gcc.c (MFLIB_SPEC): Remove library references, to require users
495 to enumerate -lmudflap* and dependencies when linking.
496
497 2004-06-04 Paolo Bonzini <bonzini@gnu.org>
498
499 PR target/15822
500 * dojump.c (do_jump): Fix uninitialized variable tcode1.
501
502 2004-06-04 Jerry Quinn <jlquinn@optonline.net>
503
504 * Makefile.in (insn-conditions.o): Back out removal of reload.h.
505 * genconditions.c (write_header): Back out removal of reload.h.
506
507 2004-06-04 Jan Hubicka <jh@suse.cz>
508
509 Re-apply hopefully fixed patch:
510 * i386.md (UNSPECV_EH_RETURN): Kill.
511 (eh_return): Use jump_insn.
512 (eh_return_si, eh_return_di): Change pattern to jump instruction.
513
514 2004-06-04 Jeff Law <law@redhat.com>
515
516 * cfgrtl.c (try_redirect_by_replacing_jump): Fix return value.
517
518 2004-06-04 Steven Bosscher <stevenb@suse.de>
519
520 * except.c (for_each_eh_region): New function.
521 * except.h (for_each_eh_region): Add a prototype for it.
522 * tree-cfg.c (update_eh_labels): New function, callback for
523 for_each_eh_region.
524 (label_for_bb): Make global static, unfortunately.
525 (cleanup_dead_labels): Also update label references for
526 exception regions.
527
528 2004-06-03 Chris Demetriou <cgd@broadcom.com>
529
530 * config/mips/mips.c (struct irix_section_align_entry): Fix
531 GTY marker.
532
533 2004-06-03 Geoffrey Keating <geoffk@apple.com>
534
535 * toplev.c (check_global_declarations): Don't ask for
536 DECL_ASSEMBLER_NAME unless the function really is declared
537 static and not defined.
538
539 2004-06-03 Matt Austern <austern@apple.com>
540
541 PR c++/15428
542 * default.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New name
543 for TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, with reversed sense.
544 * config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Likewise.
545 * doc/tm.texi (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Rewrite
546 documentation to reflect the new macro name and to clarify its
547 meaning.
548
549 2004-06-03 Steven Bosscher <stevenb@suse.de>
550
551 * rtl.def (VAR_LOCATION): Make RTX_EXTRA.
552
553 2004-06-03 Andrew Pinski <pinskia@physics.uc.edu>
554
555 * config/darwin.c (machopic_indirect_data_reference): Copy
556 the SYMBOL_REF_DECL from the original RTX for the new
557 non-lazy pointer RTX.
558
559 2004-06-03 Mark G. Adams <mark.g.adams@sympatico.ca>
560
561 * tree.h: Remove include of version.h
562 * c-cppbuiltin.c: Include version.h
563 * diagnostic.c: Include version.h
564 * dwarf2out.c: Include version.h
565 * toplev.c: Include version.h
566 * vmsdbgout.c: Include version.h
567 * Makefile.in: Remove dependency on version.h from TREE_H, and
568 add dependencies to required .o targets
569
570 2004-06-03 Jerry Quinn <jlquinn@optonline.net>
571
572 * Makefile.in (RA_H, RESOURCE_H, SCHED_INT_H, CFGLAYOUT_H,
573 CFGLOOP_H, DF_H, DDG_H, TREE_SSA_LIVE_H): New.
574 (TARGET_H): Add insn-modes.h.
575 (tree-ssa.o, tree-cfg.o, tree-ssa-loop.o, toplev.o, passes.o,
576 loop.o, loop-doloop.o, unroll.o, cfgloop.o, cfgloopanal.o,
577 loop-iv.o, cfgloopmanip.o, loop-init.o, loop-unswitch.o,
578 loop-unroll.o, ddg.o, modulo-sched.o, predict.o,
579 cfglayout.o, ifcvt.o): Replace cfgloop.h with CFGLOOP_H.
580 (toplev.o, passes.o, cfghooks.o, cfgloopmanip.o, loop-init.o,
581 loop-unswitch.o, loop-unroll.o, ddg.o, modulo-sched.o,
582 bb-reorder.o, tracer.o, cfglayout.o): Replace cfglayout.h with
583 CFGLAYOUT_H.
584 (ra.o, ra-build.o, ra-colorize.o, ra-debug.o, ra-rewrite.o):
585 Replace ra.h with RA_H.
586 (resource.o, regrename.o, insn-conditions.o, insn-emit.o,
587 insn-recog.o): Replace resource.h with RESOURCE_H.
588 (ddg.o, modulo-sched.o, haifa-sched.o, sched-deps.o, sched-rgn.o,
589 sched-ebb.o, sched-vis.o, out_object_file): Replace sched-int.h
590 with SCHED_INT_H.
591 (web.o, lcm.o, df.o, ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
592 ra-rewrite.o): Replace df.h with DF_H.
593 (ddg.o, modulo-sched.o): Replace ddf.h with DDG_H.
594 (tree-outof-ssa.o, tree-ssa-live.o, tree-ssa-copyrename.o):
595 Replace tree-ssa-live.h with TREE_SSA_LIVE_H.
596 (insn-conditions.o): Remove unused reload.h.
597 * cfglayout.h: Add include guard. Include basic-block.h.
598 * cfgloop.h: Add include guard. Include basic-block.h, rtl.h.
599 * ddg.h: Include sbitmap.h, basic-block.h, df.h.
600 * df.h: Add include guard. Include bitmap.h, sbitmap.h,
601 basic-block.h.
602 * genconditions.c: Remove reload.h.
603 * ra.h: Add include guard. Include bitmap.h, sbitmap.h,
604 hard-reg-set.h, insn-modes.h.
605 * resource.h: Add include guard. Include hard-reg-set.h.
606 * sched-int.h: Add include guard. Include insn-attr.h,
607 basic-block.h, rtl.h.
608 * target.h: Add include guard. Include insn-modes.h.
609 * tree-ssa-live.h: Include partition.h.
610
611 2004-06-03 Daniel Berlin <dberlin@dberlin.org>
612 Kenneth Zadeck <zadeck@naturalbridge.com>
613
614 * tree-ssa-ccp.c (varying_ssa_edges): New worklist.
615 (add_var_to_ssa_edges_worklist): Add value argument.
616 Update callers.
617 Use new worklist.
618 (process_ssa_edge_worklist): New function.
619 (tree_ssa_ccp): Move worklist processing core to
620 process_ssa_edge_worklist, and just call that for the two worklists.
621
622 2004-06-03 Steven Bosscher <stevenb@suse.de>
623
624 * basic-block.c (tail_recursion_label_list): Don't declare.
625 (CLEANUP_PRE_SIBCALL): Remove. Renumber the other CLEANUP_*
626 accordingly.
627 * cfgbuild.c (find_label_refs): Remove.
628 (find_basic_blocks_1): Don't handle CALL_PLACEHOLDER insns.
629 * cfgcleanup.c (tail_recursion_label_p): Remove.
630 (merge_blocks_move): Do not check for tail recursion.
631 (try_optimize_cfg): Likewise.
632 (cleanup_cfg): Never handle CLEANUP_PRE_SIBCALL.
633 * cfgrtl.c (tail_recursion_label_list): Remove.
634 * except.c (remove_unreachable_regions): Don't handle
635 CALL_PLACEHOLDER insns.
636 (convert_from_eh_region_ranges_1, can_throw_internal,
637 can_throw_external): Likewise.
638 * function.c (free_after_compilation): Don't clear
639 x_tail_recursion_label.
640 (fixup_var_refs_insns): Don't handle CALL_PLACEHOLDER insns.
641 (identify_blocks_1): Don't recurse for CALL_PLACEHOLDER insns.
642 (reorder_blocks_1): Likewise.
643 * function.h (struct function): Remove x_tail_recursion_label
644 member. Don't define tail_recursion_label.
645 * jump.c (mark_all_labels): Don't handle CALL_PLACEHOLDER insns.
646 * print-rtl.c (print_rtx): Likewise.
647 * rtl.def (CALL_PLACEHOLDER): Remove.
648 * rtl.h (sibcall_use_t): Remove enum.
649 (optimize_sibling_and_tail_recursive_calls,
650 replace_call_placeholder): Remove function prototypes.
651 * stmt.c (tail_recursion_args): Remove.
652 (optimize_tail_recursion): Remove.
653 (expand_return): Don't check for possible tail recursion.
654 * tree.h (optimize_tail_recursion): Remove prototype.
655
656 2004-06-02 Jan Hubicka <jh@suse.cz>
657
658 * tree-cfg.c (tree_find_edge_insert_loc): Allow inserting before
659 return_stmt.
660
661 2004-06-02 Jason Merrill <jason@redhat.com>
662
663 * Makefile.in (TAGS): Don't mess with c-parse.[ch].
664 Do include c-parse.in.
665
666 2004-06-02 Eric Christopher <echristo@redhat.com>
667
668 * c-typeck.c (common_type): Don't lose type qualifiers
669 when creating new variants.
670
671 2004-06-02 Andrew Pinski <pinskia@physics.uc.edu>
672
673 PR tree-optimization/14042
674 PR tree-optimization/14729
675 PR tree-optimization/14736
676 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
677 Check the type which the pointer points to
678 instead of the pointer types.
679
680 2004-06-02 Kazu Hirata <kazu@cs.umass.edu>
681
682 PR tree-optimization/15738.
683 * builtins.c (fold_builtin_strchr): Transform
684 strrchr (s, '\0') to strchr (s, '\0').
685
686 2004-06-02 Steven Bosscher <stevenb@suse.de>
687
688 * i386.c (ix86_adjust_cost): Don't increase the cost for
689 load+operation for PROCESSOR_PENTIUMPRO, it is already
690 modelled in the DFA description
691
692 2004-06-01 Jerry Quinn <jlquinn@optonline.net>
693
694 * Makefile.in (EXPR_H): Add insn-config.h, function.h,
695 $(RTL_H), flags.h, $(TREE_H), $(MACHMODE_H), $(EXPR_H).
696 (ALIAS_H, EMIT_RTL_H): New.
697 (cselib.o): Replace EXPR_H with EMIT_RTL_H.
698 (cfgcleanup.o): Add EMIT_RTL_H.
699 (alias.o): Replace EXPR_H with EMIT_RTL_H and ALIAS_H.
700 * alias.c: Replace expr.h with emit-rtl.h and alias.h.
701 * attribs.c, c-lex.c, c-obj-common.c, c-semantics.c: Remove expr.h.
702 * cfgcleanup.c, cselib.c: Replace expr.h with emit-rtl.h.
703 * expr.h: Add include guard. Include function.h, rtl.h, flags.h,
704 tree.h, machmode.h, insn-config.h, alias.h, emit-rtl.h.
705 (get_varargs_alias_set, get_frame_alias_set, record_base_value,
706 record_alias_subset, new_alias_set, can_address_p): Move to alias.h.
707 (set_mem_alias_set, set_mem_align, set_mem_expr, set_mem_offset,
708 set_mem_size): Move to emit-rtl.h.
709 * emit-rtl.h: New.
710 * alias.h: New.
711
712 2004-06-01 Eric Botcazou <ebotcazou@act-europe.fr>
713
714 * function.c (walk_fixup_memory_subreg): New parameter 'var'.
715 Call fixup_memory_subreg only if the MEM is equal to 'var'.
716 Adjust recursive calls to self.
717 (fixup_var_refs_insn): Pass 'var' to walk_fixup_memory_subreg.
718
719 2004-06-01 Richard Henderson <rth@redhat.com>
720 Andrew Pinski <pinskia@physics.uc.edu>
721
722 * c-parse.in (OFFSETOF, offsetof_member_designator): New.
723 (primary): Handle offsetof. Add error productions for faux functions.
724 Move component_ref objc checking to build_component_ref.
725 (reswords): Add offsetof.
726 (rid_to_yy): Add offsetof.
727 * c-tree.h (build_offsetof): Declare.
728 * c-common.h (objc_is_public): Declare.
729 * c-typeck.c (build_component_ref): Check objc_is_public.
730 (build_offsetof): New.
731 * stub-objc.c (objc_is_public): New.
732 * objc/objc-act.c, objc/objc-act.h (objc_is_public): Rename
733 from is_public.
734 * ginclude/stddef.h (offsetof): Use __builtin_offsetof.
735 * doc/extend.texi (Offsetof): Move from C++ section to C section
736 and rewrite for __builtin_offsetof.
737
738 2004-06-01 Peter Barada <peter@the-baradas.com>
739 Peter Jakubek <peter@laseranimation.com>
740
741 * config/m68k/m68k.c(m68k_output_mi_thunk): For ColdFire, use %d0 as
742 a scratch to perform an add to memory.
743
744 2004-06-01 Bernardo Innocenti <bernie@develer.com>
745
746 PR target/14018
747 * config/m68k/m68k.c (m68k_align_loops_string, m68k_align_jumps_string,
748 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
749 m68k_align_funcs): Remove.
750 (override_options): Remove code to handle -malign-* options.
751 * config/m68k/m68k.h (TARGET_OPTIONS): Remove -malign-* options.
752 (FUNCTION_BOUNDARY, LOOP_ALIGN, LOOP_ALIGN_AFTER_BARRIER): Remove.
753 (m68k_align_loops_string, m68k_align_jumps_string,
754 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
755 m68k_align_funcs): Remove definitions.
756
757 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
758
759 PR target/15626
760 * doc/install.texi (sparc-sun-solaris2*): Document messages issued
761 by the Sun linker in conjunction with the Sun assembler.
762 (sparc-sun-solaris2.7): Update revision info for Sun patch 106950.
763
764 2004-06-01 Jeff Law <law@redhat.com>
765
766 * stmt.c (expand_decl): Be more selective about calling
767 mark_reg_pointer.
768
769 2004-06-01 Nicola Pero <nicola@brainstorm.co.uk>
770
771 PR objc/7993
772 * objc-act.c (is_private): Do not emit the 'instance variable %s
773 is declared private' error.
774 (is_public): Emit the error after calling is_private.
775 (lookup_objc_ivar): If the instance variable is private, return 0
776 - the instance variable is invisible here.
777
778 2004-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
779
780 * doc/invoke.texi (-static-libgcc): Explicitly mention
781 non-GNU linkers.
782
783 2004-06-01 Bernardo Innocenti <bernie@develer.com>
784
785 PR target/12968
786 * doc/invoke.texi: Document stack alignment side-effect of -mshort.
787
788 2004-05-31 Joseph S. Myers <jsm@polyomino.org.uk>
789
790 PR c/15749
791 * c-decl.c (grokdeclarator, finish_struct): Don't pedwarn for
792 misuses of structures with flexible array members if
793 in_system_header.
794
795 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
796
797 PR target/15693
798 * config/sparc/sparc.c (compare_operand): New predicate.
799 * config/sparc/sparc.h (PREDICATE_CODES): Add it.
800 * config/sparc/sparc.md (cmpsi expander): Use it. If the first
801 operand is a ZERO_EXTRACT and the second operand is not zero,
802 force the former to a register.
803 (cmpdi expander): Likewise.
804
805 2004-05-31 Geoffrey Keating <geoffk@apple.com>
806
807 * gengtype-lex.l: Catch stray GTY markers in the files gengtype
808 looks at.
809 * alias.c (alias_invariant_size): Make alias_invariant_size
810 static, fix GTY marker.
811
812 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
813
814 PR tree-optimization/15743.
815 * builtins.c (fold_builtin_1): Fold index() and rindex().
816
817 2004-05-31 Roger Sayle <roger@eyesopen.com>
818
819 PR middle-end/15069
820 * fold-const.c (fold_single_bit_test): Only perform "(X & C) != 0"
821 into "X < 0" (where C is the signbit) if X's type is a full mode.
822
823 2004-05-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
824
825 * pa.md: Disable the peephole2 patterns that generate indexed
826 floating-point stores when indexing is disabled.
827
828 2004-05-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
829
830 * c-pretty-print.c (pp_c_left_bracket): Make a function.
831 (pp_c_right_bracket): Likewise.
832 (pp_c_star): Likewise.
833 (pp_c_ampersand): Define.
834 * c-pretty-print.h (pp_c_left_bracket): Declare.
835 (pp_c_right_bracket): Likewise.
836 (pp_c_star): Likewise.
837 (pp_c_ampersand): Likewise.
838
839 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
840
841 * config/sol2.h (__enable_execute_stack): ANSIfy function
842 definition.
843
844 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
845
846 * c-incpath.c (add_path): Canonicalize paths to use '/' if
847 HAVE_DOS_BASED_FILESYSTEM.
848
849 2004-05-31 Steven Bosscher <stevenb@suse.de>
850
851 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
852 Only look at case labels if the immediate dominator is also
853 the only predecessor. Don't look for more case labels if the
854 first seen is a case range.
855
856 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
857
858 * builtins.c: Add a prototype for fold_builtin_strchr().
859
860 2004-05-31 Paolo Bonzini <bonzini@gnu.org>
861
862 Revert this patch:
863 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
864
865 * combine.c (gen_binary): Remove.
866 (known_cond, simplify_shift_const
867 find_split_point, combine_simplify_rtx,
868 simplify_if_then_else, simplify_set,
869 simplify_logical, expand_field_assignment,
870 extract_left_shift, force_to_mode,
871 if_then_else_cond, apply_distributive_law,
872 simplify_and_const_int, simplify_shift_const,
873 gen_lowpart_for_combine, simplify_comparison,
874 reversed_comparison): Replace with
875 simplify_gen_binary, simplify_gen_relational or
876 distribute_and_simplify_rtx.
877 (distribute_and_simplify_rtx): New function.
878
879 2004-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
880
881 * pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
882 when generating PIC code.
883
884 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
885
886 * c-decl.c (c_expand_body_1): Remove and fold back into ...
887 (c_expand_body): here.
888 (c_expand_decl): Move to ...
889 * c-common.c (c_expand_decl): Here and remove check for nested
890 functions.
891 * c-common.h (c_expand_decl): Add prototype.
892 * c-tree.h (c_expand_decl): Remove.
893
894 2004-05-30 Roger Sayle <roger@eyesopen.com>
895
896 * fold-const.c (combine_comparisons, optimize_bit_field_compare,
897 range_binop, fold_truthop, fold_binary_op_with_conditional_arg,
898 fold_mathfn_compare, fold_inf_compare, fold,
899 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
900 Use constant_boolean_node where appropriate. Don't bother using
901 fold_convert on the second argument to omit_one_operand.
902
903 2004-05-30 Roger Sayle <roger@eyesopen.com>
904
905 * doc/c-tree.texi (Expressions): Document FLOOR_DIV_EXPR,
906 CEIL_DIV_EXPR, ROUND_DIV_EXPR, FLOOR_MOD_EXPR, CEIL_MOD_EXPR,
907 ROUND_MOD_EXPR, EXACT_DIV_EXPR. Improve documentation of
908 TRUNC_DIV_EXPR, TRUNC_MOD_EXPR and comparison operations.
909 Add missing (but documented) tree nodes to the index.
910
911 2004-05-30 Steven Bosscher <stevenb@suse.de>
912
913 PR tree-optimization/14819
914 * builtins.c (fold_builtin_strchr): New.
915 (fold_builtin_1): Handle BUILT_IN_STRCHR and BUILT_IN_STRRCHR
916 with fold_builtin_strchr().
917
918 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
919
920 * bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
921 c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
922 expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
923 passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
924 tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
925 tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
926 tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
927 tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
928 tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
929 formatting.
930
931 2004-05-30 Steven Bosscher <stevenb@suse.de>
932
933 * gimplify.c (sort_case_labels): New. Split out from...
934 (gimplify_switch_expr): ...here. Use it.
935 * tree-eh.c (lower_try_finally_switch): Sort the labels of
936 the SWITCH_EXPR created here before leaving the function.
937 * tree.c (sort_case_labels): Add prototype.
938
939 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
940
941 * fold-const.c (fold) [case TRUTH_NOT_EXPR]: Make sure the type is
942 of BOOLEAN_TYPE.
943
944 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
945
946 * c-common.c, calls.c, cfgcleanup.c, cgraph.c, cgraphunit.c,
947 ddg.c, ddg.h, df.c, df.h, except.c, expr.c, flags.h,
948 fold-const.c, gcc.c, gimplify.c, haifa-sched.c,
949 modulo-sched.c, tree-inline.c, tree-into-ssa.c, tree-nested.c,
950 tree-nrv.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-live.c,
951 tree-ssa-loop.c, tree-ssa-pre.c, tree-tailcall.c, tree.h: Fix
952 comment typos. Follow spelling conventions.
953
954 2004-05-29 Geoffrey Keating <geoffk@apple.com>
955
956 * gengtype-yacc.y: Add NESTED_PTR token.
957 (option): Record `nested_ptr' option.
958 * gengtype-lex.l: Handle `nested_ptr' keyword.
959 * gengtype.c (walk_type): Process `nested_ptr' option.
960 * gengtype.h (struct nested_ptr_data): New.
961 * doc/gty.texi (GTY Options): Document `nested_ptr' option.
962 * stringpool.c (struct string_pool_data): Make 'entries' point to
963 ht_identifier instead of tree.
964 (gt_pch_save_stringpool): Don't adjust pointers.
965 (gt_pch_restore_stringpool): Call ht_load.
966
967 2004-05-29 Jason Merrill <jason@redhat.com>
968
969 * gimplify.c (gimplify_expr): Don't build a statement list
970 if no gimplification was necessary.
971
972 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
973
974 * pretty-print.c (pp_base_format_text): Support %< instead of %`
975 and %> as well as %'.
976 * c-format.c: Use %< and %>.
977 (gcc_diag_char_table, gcc_cdiag_char_table,
978 gcc_cxxdiag_char_table): Update.
979
980 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
981
982 * c-typeck.c (common_type): Correct comment.
983
984 2004-05-29 Peter Barada <peter@the-baradas.com>
985
986 * config/m68k/m68k.c (CONST_METHOD): Add MVZ, MVS.
987 * config/m68k/m68k.c (const_method): Likewise.
988 * config/m68k/m68k.c (const_int_cost): Likewise.
989 * config/m68k/m68k.c (const_int_cost): Likewise.
990 * config/m68k/m68k.c (output_move_const_into_data_reg): Likewise.
991
992 2004-05-29 Peter Barada <peter@the-baradas.com>
993
994 * config/m68k/m68k.h (EXTRA_CONSTRAINT): add 'U' for register offset
995 addressing.
996 * config/m68k/m68k.md: Add 'U,U' alternative to ColdFire variants of
997 movsi,movhi,movqi insn patterns.
998
999 2005-05-28 Andrew Pinski <pinskia@physics.uc.edu>
1000
1001 * c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.
1002
1003 PR target/15720
1004 * config/darwin.c (machopic_indirect_call_target): Copy
1005 the SYMBOL_REF_DECL from the original RTX for the new
1006 stub RTX.
1007
1008 2004-05-28 DJ Delorie <dj@redhat.com>
1009
1010 * stor-layout.c (place_field): Revert erroneous commit.
1011
1012 2004-05-28 Ziemowit Laski <zlaski@apple.com>
1013
1014 * config/rs6000/altivec.h (vec_ctf, vec_vcfsx, vec_vcfux, vec_cts,
1015 vec_ctu, vec_dss, vec_dst, vec_dstst, vec_dststt, vec_dstt, vec_ld,
1016 vec_ldl, vec_lvsl, vec_lvsr, vec_sld, vec_splat, vec_vspltw,
1017 vec_vsplth, vec_vspltb, vec_splat_s8, vec_splat_s16, vec_splat_s32,
1018 vec_splat_u8, vec_splat_u16, vec_splat_u32, vec_st, vec_stl,
1019 vec_ste): Remove type checks for integral parameters and literals
1020 from '..._args_eq' macros.
1021
1022 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
1023
1024 * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
1025
1026 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
1027
1028 * testsuite/g++.dg/charset/function.cc: New.
1029
1030 * testsuite/gcc.dg/charset/function.c: New.
1031
1032 * c-decl.c (c_make_fname_decl): Free return value from
1033 fname_as_string.
1034
1035 * cp/decl.c (cp_make_fname_decl): Free return value from
1036 fname_as_string.
1037
1038 * c-common.c (fname_as_string): Translate if necessary.
1039
1040 2004-05-28 Geoffrey Keating <geoffk@apple.com>
1041
1042 * stringpool.c: Add comments to PCH saving/restoring routines.
1043
1044 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
1045
1046 * c-common.c (c_estimate_num_insns_1): Kill.
1047 (c_estimate_num_insns): Kill.
1048 * c-common.h (c_estimate_num_insns): Kill.
1049
1050 * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING
1051 when checking for _POSIX_THREAD_PRIORITY_SCHEDULING.
1052 Remove comment about not checking for
1053 _POSIX_PRIORITY_SCHEDULING.
1054 * gthr-posix.c: Likewise.
1055
1056 2004-05-28 Paolo Bonzini <bonzini@gnu.org>
1057 Roger Sayle <roger@eyesopen.com>
1058
1059 PR rtl-optimization/15649
1060 Add LTGT_EXPR and improve pretty-printing of unordered
1061 comparisons.
1062 * c-common.c (c_common_truthvalue_conversion):
1063 Handle LTGT_EXPR.
1064 * c-typeck.c (build_binary_op): Likewise.
1065 * dojump.c (do_jump): Likewise.
1066 * expr.c (expand_expr_real_1, do_store_flag): Likewise.
1067 * predict.c (tree_predict_by_opcode): Likewise.
1068 * real.c (real_compare): Likewise.
1069 * tree-cfg.c (verify_expr): Likewise.
1070 * tree-inline.c (estimate_num_insns_1): Likewise.
1071 * tree-pretty-print.c (dump_generic_node): Likewise.
1072 Handle ORDERED_EXPR, UNORDERED_EXPR.
1073 (op_symbol): Print unordered comparisons differently
1074 than ordered ones.
1075 * tree.def (LTGT_EXPR): New '<' tree code.
1076 * doc/c-tree.texi (Expressions): Document floating-point
1077 comparison nodes.
1078
1079 Fold comparisons between floating point values.
1080 * fold-const.c (enum comparison_code): New, from
1081 #define'd constants. Define compcodes for unordered
1082 comparisons and for invalid transformations.
1083 (invert_tree_comparison): Add "honor_nans" parameter.
1084 (fold_truthop): Revamp to work on floating-point types too.
1085 (comparison_to_compcode): Support unordered comparisons.
1086 Use new enum comparison_code.
1087 (compcode_to_comparison): Likewise.
1088 (combine_compcodes): New function.
1089 (invert_truthvalue): Let invert_tree_comparison decide
1090 whether it is valid to fold the comparison. Fold ORDERED
1091 and UNORDERED even if flag_unsafe_math_optimizations is off,
1092 and the remaining even if flag_unsafe_math_optimizations
1093 is off but we are under -fno-trapping-math.
1094 (fold_relational_const): Integer modes do not honor NaNs.
1095
1096 2004-05-28 Paul Brook <paul@codesourcery.com>
1097
1098 * config/arm/arm.c (arm_output_epilogue): Remove redundant code.
1099
1100 2004-05-28 Paul Brook <paul@codesourcery.com>
1101
1102 * config/arm/arm.c (thumb_force_lr_save): New function.
1103 (arm_get_frame_offsets, thumb_unexpanded_epilogue,
1104 thumb_output_function_prologue): Use it.
1105 (thumb_expand_prologue): Set lr_save_eliminated.
1106
1107 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
1108
1109 * config/mips/mips.md (extendsidi2): Tie the source and destination
1110 of the register alternative. Split it into nothing.
1111
1112 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
1113
1114 * rtl.h (skip_consecutive_labels): Declare.
1115 * emit-rtl.c (skip_consecutive_labels): New function.
1116 * reorg.c (relax_delay_slots, dbr_schedule): Use it.
1117 * jump.c (follow_jumps): Say what null return values mean.
1118
1119 2004-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
1120
1121 PR target/13250
1122 * config/sh/sh.md (rotlsi3): Use emit_move_insn.
1123
1124 2004-05-27 Kaz Kojima <kkojima@gcc.gnu.org>
1125
1126 * config/sh/t-linux (SHLIB_MAPFILES): Use sh specific
1127 libgcc-std.ver.
1128 * config/sh/libgcc-std.ver: New file.
1129
1130 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
1131
1132 * except.c: Revert change of 2004-05-26.
1133 * config/i386/i386.md: Revert change of 2004-05-27.
1134
1135 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
1136
1137 * configure.ac: Remove --enable-tree-browser option.
1138 Define TREEBROWSER when ac_tree_checking is defined.
1139 * configure: Rebuilt.
1140
1141 2004-05-27 Olivier Hainque <hainque@act-europe.fr>
1142
1143 * expr.c (store_constructor): Restore sanity check on
1144 the size of the type before clearing.
1145
1146 2004-05-27 Jan Hubicka <jh@suse.cz>
1147
1148 * cfgbuild.c (control_flow_insn_p): Notice noreturn call
1149
1150 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
1151
1152 * combine.c (gen_binary): Remove.
1153 (known_cond, simplify_shift_const
1154 find_split_point, combine_simplify_rtx,
1155 simplify_if_then_else, simplify_set,
1156 simplify_logical, expand_field_assignment,
1157 extract_left_shift, force_to_mode,
1158 if_then_else_cond, apply_distributive_law,
1159 simplify_and_const_int, simplify_shift_const,
1160 gen_lowpart_for_combine, simplify_comparison,
1161 reversed_comparison): Replace with
1162 simplify_gen_binary, simplify_gen_relational or
1163 distribute_and_simplify_rtx.
1164 (distribute_and_simplify_rtx): New function.
1165 * simplify-rtx.c (simplify_binary_operation):
1166 Use nonzero_bits to simplify ANDs where we are
1167 turning off bits already known to be off in OP0.
1168
1169 2004-05-27 Alan Modra <amodra@bigpond.net.au>
1170
1171 PR target/14478
1172 * config/rs6000/rs6000.c (reg_or_neg_short_operand): Don't allow zero.
1173
1174 2004-05-27 Josef Zlomek <zlomekj@suse.cz>
1175
1176 PR middle-end/14084
1177 * emit-rtl.c (gen_rtx_REG_offset): Adjust the offset according
1178 to size of decl.
1179
1180 2004-05-26 Aldy Hernandez <aldyh@redhat.com>
1181
1182 PR/14924
1183 * config/rs6000/rs6000.c (spe_expand_stv_builtin): New.
1184
1185 2004-05-26 Roger Sayle <roger@eyesopen.com>
1186
1187 * tree.h: Fix comment typo.
1188
1189 2004-05-27 Steven Bosscher <stevenb@suse.de>
1190
1191 * gimplify.c (compare_case_labels): New function.
1192 (gimplify_switch_expr): Sort case labels, and make sure the
1193 last label in the label vector is the default case.
1194 * tree-cfg.c (group_case_labels): New function.
1195 (build_tree_cfg): Cleanup redundant labels and group case labels
1196 before creating edges.
1197 (cleanup_dead_labels): Handle GOTO_EXPRs.
1198 (find_case_label_for_value): Use a binary search to find the
1199 case label for the given value.
1200 * tree-gimple.c: Mention that labels are sorted, and that the
1201 last label must be the default.
1202
1203 2004-05-27 Jan Hubicka <jh@suse.cz>
1204
1205 * cfgcleanup.c (try_optimize_cfg): Do not merge across jumptables.
1206
1207 2004-05-27 Jan Hubicka <jh@suse.cz>
1208
1209 * i386.md (UNSPECV_EH_RETURN): Kill.
1210 (eh_return): Use jump_insn.
1211 (eh_return_si, eh_return_di): Change pattern to jump instruction.
1212
1213 2004-05-26 Jan Hubicka <jh@suse.cz>
1214
1215 * cfgcleanup.c (try_forward_edges): Do not check loop structure when
1216 not loop optimizing.
1217
1218 2004-05-26 Jan Hubicka <jh@suse.cz>
1219
1220 * except.c (can_throw_internal): Notice RESX instructions.
1221
1222 2004-05-26 Eric Botcazou <ebotcazou@act-europe.fr>
1223
1224 * varasm.c (output_constant) <INTEGER_TYPE>: Pass the minimum
1225 of the two sizes to assemble_integer.
1226
1227 2004-05-25 Paul Brook <paul@codesourcery.com>
1228
1229 * config/arm/arm.c (thumb_exit, thumb_unexpanded_epilogue): Remove
1230 pointless #ifdef.
1231
1232 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
1233
1234 * Makefile.in (top_builddir): Define to .
1235
1236 2004-05-25 Alexandre Oliva <aoliva@redhat.com>
1237
1238 * configure.ac (gcc_cv_ld): Prefer in-tree ld over whatever the
1239 top-level detects, except when in-tree ld is being cross-built.
1240 (gcc_cv_as): Likewise for as. Use AS_FOR_TARGET otherwise, and
1241 then AS only if target is host.
1242 * configure: Rebuilt.
1243
1244 2004-05-25 Vladimir Makarov <vmakarov@redhat.com>
1245
1246 * global.c (global_alloc): Call make_accurate_live_analysis.
1247 (record_one_conflict): Remove dead code.
1248 (mark_reg_clobber): Remove ATTRIBUTE_UNUSED for parameter data.
1249 (bb_info): New structure.
1250 (BB_INFO, BB_INFO_BY_INDEX): New macros.
1251 (allocate_bb_info, free_bb_info, mark_reg_change,
1252 calculate_local_reg_bb_info, set_up_bb_rts_numbers, rpost_cmp,
1253 modify_bb_reg_pav, calculate_reg_pav,
1254 make_accurate_live_analysis): New functions.
1255
1256 2004-05-25 Devang Patel <dpatel@apple.com>
1257
1258 * alias.c (init_alias_analysis): Use ggc_calloc instead of
1259 xrealloc.
1260 (end_alias_analysis): Use ggc_free instead fo free.
1261
1262 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1263
1264 PR target/15546
1265 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Mark the DECL
1266 as needed to be outputted.
1267
1268 2004-05-25 Jan Hubicka <jh@suse.cz>
1269
1270 * builtins.def (__builtin_expect): Mark the function as const&nothrow.
1271
1272 2004-05-25 Ayal Zaks <zaks@il.ibm.com>
1273 Mostafa Hagog <mustafa@il.ibm.com>
1274
1275 * Makefile.in (modulo-sched.o, ddg.o): New.
1276 * ddg.h, ddg.c, modulo-sched.c: New files.
1277 * cfglayout.c (duplicate_insn_chain): Remove "static" and push
1278 internals to "dupicate_insn".
1279 (duplicate_insn): New function.
1280 * cfglayout.h (duplicate_insn_chain, duplicate_insn): New
1281 declarations.
1282 * common.opt (fmodulo-sched): New flag.
1283 * df.c (df_bb_regno_last_use_find, df_bb_regno_first_def_find):
1284 Remove static and forward declaration.
1285 (df_find_def, df_reg_used, df_bb_regno_last_def_find): New
1286 functions.
1287 * df.h (df_bb_regno_last_use_find, df_bb_regno_first_def_find,
1288 df_bb_regno_last_def_find, df_find_def, df_reg_used): New
1289 declarations.
1290 * flags.h (flag_modulo_sched): New flag.
1291 * opts.c (common_handle_option): Handle modulo-sched flag.
1292 * params.def (max-sms-loop-number, sms-max-ii-factor,
1293 sms-dfa-history, sms-loop-average-count-threshold): New
1294 parameters.
1295 * params.h (MAX_SMS_LOOP_NUMBER, SMS_MAX_II_FACTOR,
1296 SMS_DFA_HISTORY, SMS_LOOP_AVERAGE_COUNT_THRESHOLD): New
1297 parameters.
1298 * passes.c ("sms", "sms-vcg"): New dumps.
1299 (rest_of_handle_sched): Call sms_schedule.
1300 * rtl.h (sms_schedule): New declaration.
1301 * timevar.def (TV_SMS): New.
1302 * toplev.c (flag_modulo_sched): Initialize.
1303 (f_options): Handle -fmodulo-sched option.
1304 * docs/invoke.texi: Document -fmodulo-sched & -dm options.
1305 * docs/passes.texi: Document new SMS pass.
1306
1307 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
1308
1309 * Makefile.in (OBJS): Add rtlhooks.o.
1310 (rtlanal.o): Depend on function.h.
1311 (cse.o): Depend on rtlhooks-def.h.
1312 (combine.o): Depend on rtlhooks-def.h.
1313 (rtlhooks.o): New rule.
1314 * combine.c: Include rtlhooks-def.h.
1315 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
1316 num_sign_bit_copies, cached_num_sign_bit_copies,
1317 num_sign_bit_copies1): Move most of the code to rtlanal.c.
1318 (reg_nonzero_bits_for_combine,
1319 reg_num_sign_bit_copies_for_combine): New functions holding
1320 the remnants of the above.
1321 (combine_rtl_hooks): New.
1322 (combine_instructions): Set rtl_hooks instead of gen_lowpart.
1323 * cse.c: Include rtlhooks-def.h.
1324 (cse_rtl_hooks): New.
1325 (cse_main): Set rtl_hooks instead of gen_lowpart.
1326 * emit-rtl.c (gen_lowpart): Remove.
1327 (gen_lowpart_general): Move to rtlhooks.c.
1328 * rtl.h (nonzero_bits, num_sign_bit_copies,
1329 struct rtl_hooks, rtl_hooks, general_rtl_hooks): New.
1330 (gen_lowpart_general): Remove.
1331 (gen_lowpart): Temporarily redefine as a macro.
1332 * rtlanal.c: Include function.h.
1333 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
1334 num_sign_bit_copies, cached_num_sign_bit_copies,
1335 num_sign_bit_copies1): New, from combine.c.
1336 * rtlhooks.c: New file.
1337
1338 2004-05-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1339
1340 * config/avr/avr.h (LONG_LONG_TYPE_SIZE): Changed long long type
1341 to support 32-bit -mint8 mode.
1342
1343 * doc/invoke.texi (-mint8): Added documentation for the -mint8
1344 option in the AVR architecture.
1345
1346 2004-05-24 Mike Stump <mrs@apple.com>
1347
1348 * doc/install.texi: Document that dejagnu 1.4.4 is required.
1349
1350 2004-05-24 Joseph S. Myers <jsm@polyomino.org.uk>
1351
1352 * intl.h (open_quote, close_quote): New.
1353 * intl.c (open_quote, close_quote): New.
1354 (gcc_init_libintl): Set them.
1355 * pretty-print.c: Include "intl.h".
1356 (pp_base_format_text): Support 'q' format flag and %` and %'
1357 formats. Use ' instead of ` in comments.
1358 * c-format.c (gcc_diag_flag_specs, gcc_cxxdiag_flag_specs,
1359 gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table,
1360 foramt_types_orig): Describe these new formats.
1361 (decode_format_attr, check_function_format,
1362 check_format_info_main): Use these new formats.
1363 (status_warning): Use ATTRIBUTE_GCC_DIAG.
1364 * toplev.c (ATTRIBUTE_GCC_DIAG): Increase required GCC version to
1365 check these formats to 3.5.
1366
1367 2004-05-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1368
1369 * Makefile.in (CPPLIBS): Renamed to CPPLIB.
1370 (BACKEND): Reflect this.
1371 (LIBDEPS): Move CPPLIB before LIBIBERTY.
1372 (LIBS): Likewise.
1373
1374 2004-05-24 Ulrich Weigand <uweigand@de.ibm.com>
1375
1376 PR tree-optimization/14197
1377 * builtins.c: Include "tree-gimple.h"
1378 (readonly_data_expr): Use get_base_address. Make sure to call
1379 decl_readonly_section only on trees it can handle.
1380 * tree-gimple.c (get_base_address): Accept STRING_CST and
1381 CONSTRUCTOR expressions.
1382 * Makefile.in: Update dependencies.
1383
1384 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
1385
1386 Move libcpp to the toplevel.
1387 * Makefile.in: Remove references to libcpp files,
1388 use CPPLIBS instead of libcpp.a. Define SYMTAB_H
1389 and change hashtable.h to that.
1390 * aclocal.m4 (gcc_AC_HEADER_STDBOOL,
1391 gcc_AC_HEADER_STRING, gcc_AC_C__BOOL): Remove.
1392 * configure.ac (gcc_AC_C__BOOL, HAVE_UCHAR): Remove tests.
1393 * configure: Regenerate.
1394 * config.in: Regenerate.
1395 * c-ppoutput.c: Include ../libcpp/internal.h instead of cpphash.h.
1396 * cppcharset.c: Removed.
1397 * cpperror.c: Removed.
1398 * cppexp.c: Removed.
1399 * cppfiles.c: Removed.
1400 * cpphash.c: Removed.
1401 * cpphash.h: Removed.
1402 * cppinit.c: Removed.
1403 * cpplex.c: Removed.
1404 * cpplib.c: Removed.
1405 * cpplib.h: Removed.
1406 * cppmacro.c: Removed.
1407 * cpppch.c: Removed.
1408 * cpptrad.c: Removed.
1409 * cppucnid.h: Removed.
1410 * cppucnid.pl: Removed.
1411 * cppucnid.tab: Removed.
1412 * hashtable.c: Removed.
1413 * hashtable.h: Removed.
1414 * line-map.c: Removed.
1415 * line-map.h: Removed.
1416 * mkdeps.c: Removed.
1417 * mkdeps.h: Removed.
1418 * stringpool.h: Include symtab.h instead of hashtable.h.
1419 * tree.h: Include symtab.h instead of hashtable.h.
1420 * system.h (O_NONBLOCK, O_NOCTTY): Do not define.
1421
1422 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
1423
1424 * gcc.c (struct prefix_list): Add forward declaration.
1425 (do_spec_path): New function, extracted from...
1426 (do_spec_1) <'D'>: ... here. Drop support for
1427 SPACE_AFTER_L_OPTION.
1428 (do_spec_1) <'I'>: Use do_spec_path.
1429 (process_command): Do not store the 'include' suffix
1430 in include_prefixes.
1431 * system.h: Poison SPACE_AFTER_L_OPTION.
1432
1433 2002-05-23 Roger Sayle <roger@eyesopen.com>
1434
1435 * fold-const.c (non_lvalue): Explicitly list the tree codes that
1436 need to be wrapped by NON_LVALUE_EXPR, instead of those that don't.
1437
1438 2004-05-23 Joseph S. Myers <jsm@polyomino.org.uk>
1439
1440 * doc/gcc.texi, doc/gccint.texi, doc/include/gcc-common.texi:
1441 Update based on printed manual. Enable setting of offsets for
1442 FSFPRINT and move it to gcc-common.texi.
1443 * doc/gcc.texi: Update FSF printing details.
1444 * doc/gccint.texi: Remove FSF printing details.
1445
1446 2004-05-23 Andrew Pinski <pinskia@physics.uc.edu>
1447
1448 * config/rs6000/t-rs6000: Remove the disabling -Werror.
1449
1450 2004-05-22 Roger Sayle <roger@eyesopen.com>
1451
1452 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
1453 expand_builtin_strrchr, expand_builtin_strpbrk,
1454 expand_builtin_mempcpy, expand_builtin_memcmp,
1455 expand_builtin_strcmp, expand_builtin_strncmp,
1456 expand_builtin_strcat, std_expand_builtin_va_start,
1457 std_expand_builtin_va_arg, expand_builtin_va_copy,
1458 expand_builtin_signbit, fold_builtin_cabs,
1459 fold_builtin_logarithm, fold_builtin_mempcpy,
1460 fold_builtin_signbit, fold_builtin_isascii,
1461 fold_builtin_toascii, fold_builtin_isdigit,
1462 fold_builtin_1, build_function_call_expr,
1463 simplify_builtin_strchr, simplify_builtin_strrchr,
1464 simplify_builtin_strpbrk, simplify_builtin_strncpy,
1465 simplify_builtin_memcmp, simplify_builtin_strcmp,
1466 simplify_builtin_strncmp, simplify_builtin_strncat,
1467 simplify_builtin_strspn, simplify_builtin_strcspn,
1468 simplify_builtin_fputs, simplify_builtin_sprintf): Replace calls
1469 to build with calls to build2, build3 or omit_one_operand.
1470
1471 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
1472
1473 * config/mips/mips.c (mips_file_start): Emit a .gcc_compiled_longXX
1474 section when generating EABI code.
1475
1476 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
1477
1478 PR 15546
1479 * config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
1480 Call mark_decl_referenced on the SYMBOL_REF_DECL.
1481
1482 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
1483
1484 * c-common.c (c_common_truthvalue_conversion): Handle
1485 UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
1486 ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
1487 i.e. set the type to truthvalue_type_node and return.
1488
1489 2004-05-22 Zack Weinberg <zack@codesourcery.com>
1490
1491 * tree.h (struct tree_decl): Add possibly_inlined bit.
1492 (DECL_POSSIBLY_INLINED): New accessor macro.
1493 * cgraph.h: Remove declaration of cgraph_inline_hash.
1494 * cgraph.c: Remove definition of cgraph_inline_hash.
1495 (hash_node): Revert to hashing DECL_UID.
1496 (eq_node): Take two pointers to cgraph_node structures.
1497 Compare DECL_UIDs.
1498 (cgraph_remove_node): Pass the node directly to htab_find_slot.
1499 (cgraph_varpool_hash_node): Rename hash_varpool_node;
1500 hash on DECL_UID.
1501 (eq_cgraph_varpool_node): Rename eq_varpool_node; take two
1502 pointers to cgraph_varpool_node structures; compare DECL_UIDs.
1503 (cgraph_node): Allocate a temporary node on the stack, fill in
1504 its DECL field, and pass that to htab_find_slot.
1505 (cgraph_varpool_node): Likewise.
1506 (cgraph_function_possibly_inlined_p): If global info is ready,
1507 return the DECL_POSSIBLY_INLINED bit.
1508 * cgraphunit.c (cgraph_mark_inline_edge): Set DECL_POSSIBLY_INLINED
1509 instead of mucking with cgraph_inline_hash.
1510
1511 2004-05-22 Joseph S. Myers <jsm@polyomino.org.uk>
1512
1513 * doc/contrib.texi: Add g77 contributors.
1514
1515 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
1516
1517 * calls.c (initialize_argument_information): Forbid sibcalls if a
1518 callee-copied argument is stored in the current function's frame.
1519
1520 2004-05-22 Eric Christopher <echristo@redhat.com>
1521
1522 * fix-header.c (read_scan_file): Update for add_path change.
1523
1524 2004-05-22 Ben Elliston <bje@au.ibm.com>
1525
1526 * c.opt (Wmissing-include-dirs): New.
1527 * c-opts.c (c_common_handle_option): Pass true for user_supplied_p
1528 to add_path () for -I, but false for OPT_idirafter, OPT_iquote and
1529 OPT_isystem. Handle case OPT_Wmissing_include_dirs.
1530 * c-incpath.h (add_path): Add fourth (bool) argument.
1531 * c-incpath.c (add_env_var_paths): Pass false to add_path ().
1532 (add_standard_paths): Likewise.
1533 (remove_duplicates) [REASON_NOENT]: Warn if -Wmissing-include-dirs
1534 is used and the directory was user-supplied via -I.
1535 (add_path): Set p->user_supplied_p. Remove duplicated code by
1536 using add_cpp_dir_path ().
1537 * cpplib.h (struct cpp_options): Add warn_missing_include_dirs.
1538 (struct cpp_dir): Add user_supplied_p.
1539 * doc/invoke.texi (Warning Options): Document new option.
1540
1541 2004-05-21 Ulrich Weigand <uweigand@de.ibm.com>
1542
1543 * fold-const.c (fold_read_from_constant_string): Convert result to
1544 requested type.
1545
1546 2004-05-21 Richard Henderson <rth@redhat.com>
1547
1548 * gimplify.c (mostly_copy_tree_r): Don't attempt to copy decls.
1549 (copy_if_shared_r): Don't copy decls, types, constants, BINDs.
1550 Don't mark VA_ARG_EXPRs volatile here.
1551 (gimplify_modify_expr): Unshare TYPE_SIZE_UNIT.
1552
1553 2004-05-21 Richard Henderson <rth@redhat.com>
1554
1555 * Makefile.in (tree-dump.o): Depend on tree-iterator.h.
1556 * tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
1557
1558 2004-05-21 Roger Sayle <roger@eyesopen.com>
1559
1560 * fold-const.c (fold, fold_relational_hi_lo,
1561 nondestructive_fold_binary_to_constant,
1562 fold_read_from_constant_string): Use fold_convert instead of convert.
1563 * builtins.c (simplify_builtin, simplify_builtin_strstr,
1564 simplify_builtin_strchr, simplify_builtin_strrchr,
1565 simplify_builtin_strpbrk): Use fold_convert instead of convert.
1566
1567 2004-05-21 Diego Novillo <dnovillo@redhat.com>
1568
1569 * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
1570 is NULL.
1571
1572 2004-05-21 Jakub Jelinek <jakub@redhat.com>
1573
1574 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
1575 override sparc.h definition.
1576
1577 2004-05-20 Roger Sayle <roger@eyesopen.com>
1578
1579 * tree.c (array_type_nelts, save_expr, substitute_in_expr,
1580 get_unwidened, get_narrower): Replace build with build2.
1581 * fold-const.c (negate_expr, associate_trees, size_binop,
1582 fold_convert, eval_subst, omit_one_operand, invert_truthvalue,
1583 pedantic_omit_one_operand, distribute_bit_expr,
1584 make_bit_field_ref, optimize_bit_field_compare,
1585 decode_field_reference, range_binop, make_range,
1586 build_range_check, fold_range_test, fold_truthop,
1587 optimize_minmax_comparison, extract_muldiv_1,
1588 fold_binary_op_with_conditional_arg, fold_mathfn_compare,
1589 fold_inf_compare, fold_single_bit_test, fold,
1590 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
1591 Likewise replace build with either build2 or build3.
1592
1593 2004-05-20 Ian Lance Taylor <ian@wasabisystems.com>
1594
1595 * system.h: Poison NO_RECURSIVE_FUNCTION_CSE.
1596 * calls.c (prepare_call_address): Don't test
1597 NO_RECURSIVE_FUNCTION_CSE.
1598 * config/arc/arc.h (NO_RECURSIVE_FUNCTION_CSE): Don't define.
1599 * config/arm/arm.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1600 * config/avr/avr.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1601 * config/frv/frv.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1602 * config/i386/i386.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1603 * config/ip2k/ip2k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1604 * config/iq2000/iq2000.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1605 * config/m32r/m32r.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1606 * config/m68k/m68k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1607 * config/mcore/mcore.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1608 * config/mips/mips.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1609 * config/stormy16/stormy16.h (NO_RECURSIVE_FUNCTION_CSE):
1610 Likewise.
1611 * config/xtensa/xtensa.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
1612 * config/sh/sh.h: Remove NO_RECURSIVE_FUNCTION_CSE comment.
1613 * doc/tm.texi (Costs): Remove documentation for
1614 NO_RECURSIVE_FUNCTION_CSE.
1615
1616 2004-05-20 Paul Brook <paul@codesourcery.com>
1617
1618 * unwind-dw2-fde.c (get_cie_encoding): Handle dwarf3 CIE format.
1619 * unwind-dw2.c (extract_cie_info): Ditto.
1620 (_Unwind_FrameState): Change retaddr_column to word type.
1621
1622 2004-05-20 Roger Sayle <roger@eyesopen.com>
1623
1624 PR middle-end/3074
1625 * fold-const.c (strip_compound_expr): Delete function.
1626 (count_cond): Delete function.
1627 (fold_binary_op_with_conditional_arg): Only perform transformations
1628 "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
1629 when a is constant. This greatly simplifies this routine.
1630
1631 * tree.c (saved_expr_p): Delete function.
1632 * tree.h (saved_expr_p): Delete function prototype.
1633
1634 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
1635
1636 * common.opt (ftree-loop-optimize): Remove.
1637
1638 2004-05-20 Daniel Jacobowitz <dan@debian.org>
1639
1640 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
1641 (NM_FOR_TARGET): Use := and $(shell).
1642 (mainversion): Remove unused variable.
1643
1644 2004-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1645
1646 * reorg.c (delete_from_delay_slot): If we have a barrier after the
1647 sequence containing the insn to be deleted, always reemit it.
1648
1649 2004-05-20 Richard Henderson <rth@redhat.com>
1650
1651 PR 15454
1652 * tree-nested.c (get_chain_decl): Create a PARM_DECL by hand.
1653 * function.c (expand_function_start): Expand static_chain_decl by hand.
1654 * gimplify.c (create_tmp_var_name): Export.
1655 * tree-gimple.h (create_tmp_var_name): Declare.
1656
1657 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
1658
1659 * rs6000.c (print_operand) <case 'z'>: Call
1660 mark_decl_referenced before assemble_name.
1661
1662 2004-05-20 Zack Weinberg <zack@codesourcery.com>
1663
1664 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
1665 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
1666 (cgraph_varpool_node): Hash on the pointer to the decl, not
1667 the DECL_UID. Fixes 64-bit bootstrap failure.
1668
1669 2004-05-20 Richard Earnshaw <rearnsha@arm.com>
1670
1671 * arm.md (ite_ne_zeroextractsi, ite_ne_zeroextractsi_shifted): Ensure
1672 we don't earlyclobber operands used in the second insn.
1673
1674 2004-05-20 Steven Bosscher <stevenb@suse.de>
1675
1676 * tree-mudflap.c: Formatting fixes.
1677
1678 2004-05-20 J"orn Rennecke <joern.rennecke@superh.com>
1679
1680 * Makefile.in (GTFILES): Add $(srcdir)/reload.h.
1681 * gengtype.c (open_base_files): Include reload.h in ifiles.
1682 * reload.h (reg_equiv_memory_loc_varray): Declare.
1683 * reload1.c (reg_equiv_memory_loc_varray): New variable.
1684 (init_reload): Initialize it.
1685 (reload): Instead of freeing reg_equiv_memory_loc, 'grow'
1686 reg_equiv_memory_loc_varray to size 0.
1687 * ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
1688 growing reg_equiv_memory_loc_varray to the desired size.
1689 * passes.c (rest_of_handle_old_regalloc): Likewise.
1690 * reload.c: Amend comment on calling init_reload.
1691
1692 2004-05-20 Nick Clifton <nickc@redhat.com>
1693
1694 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp'
1695 with 'TRAMP' in the body of the macro definition.
1696
1697 2004-05-19 H.J. Lu <hongjiu.lu@intel.com>
1698
1699 PR target/15383
1700 * config/ia64/ia64.c (ia64_expand_compare): Don't check
1701 TARGET_HPUX for TFmode compare. Abort if op0 is in TFmode and
1702 cmptf_libfunc isn't set.
1703 (ia64_init_libfuncs): Rename TFmode libfuncs using the HPUX
1704 conventions.
1705 (ia64_sysv4_init_libfuncs): New.
1706
1707 * config/ia64/sysv4.h (TARGET_INIT_LIBFUNCS): New. Defined as
1708 ia64_sysv4_init_libfuncs.
1709
1710 2004-05-20 Falk Hueffner <falk@debian.org>
1711
1712 PR other/15526
1713 * libgcc2.c (__mulvsi3): Fix overflow test.
1714
1715 2004-05-19 Andrew Pinski <pinskia@physics.uc.edu>
1716
1717 PR c/14171
1718 * reg-stack.c (nan): Rename to ...
1719 (not_a_num): Here.
1720 (reg_to_stack): Rename nan to not_a_num.
1721 (subst_stack_regs_pat): Likewise.
1722 (convert_regs_entry): Likewise.
1723 (convert_regs_1): Likewise.
1724
1725 * tree-cfg.c (find_case_label_for_value): Replace call to
1726 simple_cst_equal with tree_int_cst_equal.
1727
1728 2004-05-19 Jeff Law <law@redhat.com>
1729
1730 * tree-into-ssa.c (prepare_operand_for_rename): New argument is_use.
1731 If the operand is for a use, then strip away the SSA_NAME, do not
1732 strip away the SSA_NAME for a set. Never call release_ssa_name.
1733 (mark_def_sites): Appropriately pass additional argument to
1734 prepare_operand_for_rename. If a VDEF_RESULT is not an SSA_NAME,
1735 then set the VDEF_RESULT to the VDEF_OP.
1736 (set_def_block): Strip away any SSA_NAME to get to the real
1737 underlying variable.
1738
1739 * tree-ssa-phiopt.c (value_replacement): Handle the case where
1740 the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than
1741 BB directly.
1742
1743 2004-05-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1744
1745 PR c++/15463
1746 * loop-iv.c (iv_number_of_iterations): Use trunc_int_for_mode on
1747 result of inverse.
1748
1749 PR rtl-optimization/15274
1750 * loop-iv.c (determine_max_iter, shorten_into_mode,
1751 iv_number_of_iterations): Handle constants correctly.
1752 * rtl.h (get_mode_bounds): Declaration changed.
1753 * stor-layout.c (get_mode_bounds): Return a constant suitable for
1754 the target mode.
1755
1756 PR rtl-optimization/14692
1757 * loop-unswitch.c (may_unswitch_on): Try folding the result.
1758 (unswitch_single_loop): Work correctly when may_unswitch_on
1759 returns a folded constant.
1760
1761 * loop-iv.c (implies_p): Handle A < B ==> A + 1 <= B.
1762 * simplify-rtx.c (simplify_const_relational_operation): Optimize
1763 comparisons with mode bounds.
1764
1765 * function.c (struct temp_slot): Add new field prev.
1766 (free_after_compilation, init_temp_slots): Free new fields.
1767 (cut_slot_from_list, insert_slot_to_list,
1768 temp_slots_at_level, max_slot_level, move_slot_to_level,
1769 make_slot_available): New functions.
1770 (assign_stack_temp_for_type, combine_temp_slots,
1771 find_temp_slot_from_address, preserve_temp_slots,
1772 preserve_rtl_expr_result, free_temp_slots,
1773 free_temps_for_rtl_expr, pop_temp_slots): Work with
1774 the new structure of lists.
1775 (mark_all_temps_used): Removed.
1776 * function.h (struct function): Field x_temp_slots
1777 replaced by x_used_temp_slots and x_avail_temp_slots.
1778 (temp_slots): Replaced by ...
1779 (used_temp_slots, avail_temp_slots): New.
1780 * tree.h (mark_all_temps_used): Declaration removed.
1781
1782 * loop-iv.c (mark_single_set, get_biv_step_1, iv_analyze,
1783 simplify_using_assignment): Take the expression out of
1784 the expr_list wrapper.
1785
1786 * loop-iv.c (iv_number_of_iterations): Improve clasification of
1787 infinite loops.
1788
1789 2004-05-19 Roger Sayle <roger@eyesopen.com>
1790
1791 * doc/tm.texi (TARGET_RTX_COSTS): Document that instruction
1792 costs should be based on code size when optimizing for size.
1793
1794 2004-05-19 Paolo Bonzini <bonzini@gnu.org>
1795
1796 * fold-const.c: Remove non-printable character 160.
1797
1798 2004-05-19 Nick Clifton <nickc@redhat.com>
1799
1800 * doc/invoke.texi (ARM Options): Fix typo.
1801 Remove descrption of -mshort-load-bytes and
1802 -mno-short-load-bytes.
1803
1804 * config/ip2k/ip2k.c (ip2k_composite_xexp_not_uses_reg_p): Add
1805 missing parenthesis.
1806 * config/ip2k/ip2k.c (ip2k_unary_operator): Likewise.
1807 * config/ip2k/ip2k.c (ip2k_binary_operator): Likewise.
1808
1809 2004-05-19 Steven Bosscher <stevenb@suse.de>
1810
1811 * expr.c (store_constructor): Build loop start and end by hand
1812 instead of via loop functions from stmt.c.
1813 (expand_expr_real_1): Abort if we see an EXIT_EXPR or a LOOP_EXPR.
1814 Remove the code to expand them.
1815
1816 * stmt.c (loop_stack): Remove this and everything related.
1817 (struct nesting, enum nesting_desc): Update.
1818 (expand_fixup): Likewise.
1819 (expand_loop_start, expand_start_loop_continue_elsewhere,
1820 expand_start_null_loop, expand_loop_continue_here, expand_end_loop,
1821 expand_end_null_loop, expand_continue_loop, expand_exit_loop,
1822 expand_exit_loop_if_false, expand_exit_loop_top_cond,
1823 expand_exit_something): Remove.
1824 * tree.h: Remove prototypes.
1825
1826 2004-05-18 Mike Stump <mrs@apple.com>
1827 Devang Patel <dpatel@apple.com>
1828
1829 * doc/tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate
1830 if this label is for eh.
1831 * config/darwin-protos.h (darwin_emit_unwind_label): Likewise.
1832 * config/darwin.c (darwin_emit_unwind_label): Likewise.
1833 * dwarf2out.c (output_call_frame_info): Likewise.
1834 * output.h (default_emit_unwind_label): Likewise.
1835 * target.h (unwind_label): Likewise.
1836 * varasm.c (default_emit_unwind_label): Likewise.
1837
1838 * config/darwin.h (DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
1839 DEBUG_FRAME_SECTION, DEBUG_INFO_SECTION, DEBUG_ABBREV_SECTION,
1840 DEBUG_ARANGES_SECTION, DEBUG_MACINFO_SECTION, DEBUG_LINE_SECTION,
1841 DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_STR_SECTION,
1842 DEBUG_RANGES_SECTION): Define.
1843
1844 2004-05-18 Zack Weinberg <zack@codesourcery.com>
1845
1846 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
1847 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
1848 (cgraph_varpool_node):
1849 Use DECL_UID for the key, not DECL_ASSEMBLER_NAME.
1850 (cgraph_function_possibly_inlined_p): Use the decl itself for
1851 the key, not DECL_ASSEMBLER_NAME.
1852 (change_decl_assembler_name): No need to muck with the hash tables.
1853 (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier):
1854 Delete.
1855 * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself
1856 for the key, not DECL_ASSEMBLER_NAME.
1857 * cgraph.h: Remove prototypes of deleted functions.
1858 * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED.
1859 (mark_decl_referenced): New function.
1860 * tree.h: Prototype mark_decl_referenced.
1861 * final.c (output_addr_const) <case SYMBOL_REF>: Call
1862 mark_decl_referenced before assemble_name.
1863 * c-decl.c (finish_decl): Use mark_decl_referenced.
1864
1865 2004-05-18 Andrew Pinski <pinskia@physics.uc.edu>
1866 Jeff Law <law@redhat.com>
1867
1868 * tree-ssa-phiopt.c (abs_replacement): New function.
1869 (empty_block_p): New function extracted from...
1870 (candidate_bb_for_phi_optimization): Break out empty block test.
1871 (conditional_replacement): Use empty_block_p.
1872 (value_replacement): Similarly.
1873
1874 * Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.
1875 * tree-ssa-phiopt.c: Include flags.h.
1876 (conditional_replacement): Remove argument names from prototype.
1877 Minor formatting and comment fixes.
1878 (tree_ssa_phiopt): If conditional_replacement returns false, then
1879 call value_replacement.
1880 (value_replacement): New function.
1881
1882 2004-05-18 Jeff Law <law@redhat.com>
1883
1884 * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted
1885 from conditional_replacement.
1886 (candidate_bb_for_phi_optimization): Similarly.
1887 (conditional_replacement): Use replace_phi_with_stmt and
1888 candidate_bb_for_phi_optimization.
1889
1890 * tree-ssa-phiopt.c: Fix various formatting issues.
1891
1892 2004-05-18 Steven Bosscher <stevenb@suse.de>
1893
1894 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
1895 s390_expand_cmpmem): Do not use expand_start_loop and
1896 expand_end_loop, instead build the loop manually.
1897
1898 2004-05-18 Alan Modra <amodra@bigpond.net.au>
1899
1900 * config/rs6000/rs6000.md (ctrsi_internal3): Delete.
1901 (ctrsi_internal4, ctrdi_internal3, ctrdi_internal4): Delete.
1902
1903 2004-05-17 Jeff Law <law@redhat.com>
1904
1905 * toplev.h (flag_delete_null_pointer_checks): Move from here to...
1906 * flags.h (flag_delete_null_pointer_checks): Here.
1907 * tree-flow.h (cprop_into_successor_phis): Add argument to prototype.
1908 * tree-phinodes.c (resize_phi_node): Initialize PHI_ARG_NONZERO.
1909 (add_phi_arg, remove_phi_arg_num): Similarly.
1910 * tree-ssa-copy.c (cprop_into_successor_phis): Propagate nonzero
1911 property into PHI nodes.
1912 * tree-ssa-dom.c: Remove redundant inclusion of flags.h.
1913 (record_equivalences_from_phis): If all PHI arguments are known to be
1914 nonzero, then the result must be nonzero as well.
1915 (cprop_into_phis): Pass nonzero_vars bitmap to cprop_into_successor_phis.
1916 (record_equivalences_from_stmt): Check flag_delete_null_pointer_checks
1917 appropriately. Walk the USE-DEF chains and propagate nonzero property
1918 as appropriate.
1919 * tree.h (PHI_ARG_NONZERO): Define.
1920 (phi_arg_d): Add nonzero flag.
1921
1922 2004-05-17 Zack Weinberg <zack@codesourcery.com>
1923
1924 * f: Entire directory removed
1925
1926 * c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE)
1927 (CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE)
1928 (g77_integer_type_node, g77_uinteger_type_node)
1929 (g77_longint_type_node, or g77_ulongint_type_node): Delete.
1930 * c-common.c (c_common_nodes_and_builtins): Do not initialize
1931 the above set of variables.
1932
1933 * config/i386/uwin.h: No need to define WIN32_UWIN_TARGET.
1934 * doc/invoke.texi, doc/standards.texi: Remove cross-references
1935 to g77 manual.
1936
1937 2004-05-17 Steven Bosscher <stevenb@suse.de>
1938
1939 PR tree-optimization/15438
1940 * tree-ssa-operands.c (get_expr_operands): Do not treat malloc
1941 attributed functions as pure or const.
1942
1943 2004-05-17 Frank Ch. Eigler <fche@redhat.com>
1944
1945 * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
1946 from source code with errors.
1947
1948 2004-05-17 Ranjit Mathew <rmathew@hotmail.com>
1949
1950 Enable tree browser for all front ends.
1951 * Makefile.in (cc1): Moved @TREEBROWSER@ from here...
1952 (BACKEND): ...to here.
1953
1954 2004-05-17 Jan Hubicka <jh@suse.cz>
1955
1956 * i386.c (construct_container): Do not produce BLKmode registers.
1957 (classify_argument): Properly compute alignment of complex types.
1958
1959 2004-05-17 H.J. Lu <hongjiu.lu@intel.com>
1960
1961 PR target/15084
1962 * config/i386/i386.md (*movsi_insv_1_rex64): Changed to DImode
1963 and renamed to movdi_insv_1_rex64.
1964 (insv): Support SImode for 32bit and DImode for 64bit.
1965
1966 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
1967
1968 * config/mips/mips.h (MASK_DEBUG_G, TARGET_DEBUG_G_MODE): Delete.
1969 (TARGET_SWITCHES): Remove debugg.
1970 * config/mips/mips.md (adddi3, ashldi3, ashrdi3, lshrdi3): Only handle
1971 TARGET_64BIT.
1972 (subdi3): Replace the define_expand with a define_insn, the latter
1973 renamed from subdi3_internal_3.
1974 (negdi2): Likewise negdi2_internal_2.
1975 (adddi3_internal_[12], subdi3_internal, ashldi3_internal{,2,3})
1976 (ashrdi3_internal{,2,3}, lshrdi3_internal{,2,3}): Remove patterns
1977 and associated define_splits.
1978 (adddi3_internal): Renamed from adddi3_internal_3.
1979 (ashldi3_internal): Likewise ashldi3_internal4.
1980 (ashrdi3_internal): Likewise ashrdi3_internal4.
1981 (lshrdi3_internal): Likewise lshrdi3_internal4.
1982
1983 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
1984
1985 * optabs.c (expand_unop): Try implementing negation using subtraction
1986 from zero.
1987
1988 2004-05-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1989
1990 * pa.md: Fix typo from last change. Remove DFmode move to and from
1991 SAR register.
1992
1993 2004-05-16 Richard Earnshaw <rearnsha@arm.com>
1994
1995 PR target/10982
1996 * arm.md (ne_zeroextractsi): Convert to insn-and-split.
1997 (ne_zeroextractsi_shifted): New pattern.
1998 (ite_ne_zeroextractsi): New pattern.
1999 (ite_ne_zeroextractsi_shifted): New pattern.
2000
2001 2004-05-15 Steven Bosscher <stevenb@suse.de>
2002
2003 * c-gimplify.c (c_genericize):
2004 Replace calls via (*lang_hooks.foo) with lang_hooks.foo.
2005 * c-parse.in <expr_no_commas>: Likewise.
2006 <if_prefix>: Likewise.
2007 <select_or_iter_stmt>: Likewise.
2008 * expr.c (expand_var, expand_expr_real_1): Likewise.
2009 * expr.h (expand_expr): Make it a static inline function.
2010 Move prototype for expand_expr_real up before this.
2011 * fold-const.c (fold_relational_hi_lo, fold_relational_const):
2012 Likewise.
2013 * gimplify.c (gimple_boolify, gimplify_addr_expr,
2014 gimplify_asm_expr, gimplify_expr): Likewise.
2015 * tree-cfg.c (dump_tree_cfg, dump_cfg_stats, tree_cfg2vcg,
2016 dump_function_to_file): Likewise.
2017 * tree-dfa.c (dump_immediate_uses, dump_dfa_stats): Likewise.
2018 * tree-inline.c (remap_block, save_body, walk_tree): Likewise.
2019 * tree-into-ssa.c (dump_tree_ssa): Likewise.
2020 * tree-mudflap.c (mf_varname_tree, mf_file_function_line_tree):
2021 Likewise.
2022 * tree-optimize.c (execute_one_pass): Likewise.
2023 * tree-pretty-print.c (dump_generic_bb_buff): Likewise.
2024 * tree-ssa-alias.c (dump_alias_stats, dump_alias_info): Likewise.
2025
2026 * objc/objc-act.c (objc_build_try_enter_fragment,
2027 objc_build_try_epilogue, objc_build_catch_stmt,
2028 objc_build_finally_prologue): Replace calls via (*lang_hooks.foo)
2029 with lang_hooks.foo ().
2030
2031 2004-05-15 Roger Sayle <roger@eyesopen.com>
2032
2033 * builtins.c (simplify_builtin_strcpy): Avoid use of chainon, so
2034 that simplify_builtin doesn't destructively modify its argument.
2035
2036 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
2037
2038 * arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASM
2039 implementations for ARM and Thumb.
2040 * arm/t-arm-elf (LIB1ASMFUNCS): Use them.
2041
2042 2004-05-15 Thomas Quinot <quinot@act-europe.fr>
2043
2044 * prefix.c (update_path): Replace PREFIX with KEY only
2045 when it matches a full directory name in PATH.
2046
2047 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
2048
2049 * arm.h (TARGET_APCS_32): Delete.
2050 (TARGET_MMU_TRAPS): Delete.
2051 (TARGET_CPU_CPP_BUILTINS): Unconditionally define __APCS_32__. Never
2052 define __APCS_26__.
2053 (CPP_SPEC): Remove checking of -mapcs-{26,32}.
2054 (ARM_FLAG_APCS_32, ARM_FLAG_MMU_TRAPS): Delete.
2055 (TARGET_SWITCHES): Remove alignment_traps and apcs-{26,32} switches.
2056 (prog_mode_type): Delete.
2057 (PROMOTE_MODE): Always promote unsigned for HImode.
2058 (SECONDARY_INPUT_RELOAD_CLASS): Simplify.
2059 (MASK_RETURN_ADDR): Simplify.
2060 * arm.c (arm_prgmode): Delete.
2061 (arm_override_options, arm_gen_rotated_half_load): Simplify.
2062 (print_multi_reg, output_return_instruction): Simplify.
2063 (arm_output_epilogue, arm_final_prescan_insn): Simplify.
2064 (arm_return_addr): Simplify.
2065 * arm.md (prog_mode): Delete.
2066 (conds): Simplify.
2067 (zero_extendhisi2, extendhisi2, movhi, movhi_bytes): Simplify.
2068 (rotated_loadsi, movhi_insn_littleend, movhi_insn_bigend): Delete.
2069 (loadhi_si_bigend, loadhi_preinc, loadhi_shiftpreinc): Delete.
2070 (loadhi_shiftpredec): Delete.
2071 (peephole for post-increment on HImode load): Delete.
2072 * arm/crtn.asm: (FUNC_END): Simplify.
2073 * arm/lib1funcs.asm: Remove APCS-26 return macros.
2074 * arm/aof.h, arm/coff.h arm/elf.h arm/linux-elf.h arm/netbsd-elf.h
2075 * arm/netbsd.h arm/pe.h arm/semi.h arm/semiaof.h arm/unknown-elf.h
2076 * arm/vxworks.h arm/wince-pe.h: Tidy TARGET_DEFAULTS and
2077 MULTILIB_DEFAULTS as required.
2078 * arm/t-arm-elf arm/t-linux arm/t-pe arm/t-semi arm/t-wince-pe
2079 * arm/t-xscale-coff arm/t-xscale-elf arm/uclinux-elf: Tidy MULTILIB
2080 variables as required.
2081 * doc/invoke.texi (ARM Options): Remove obsolete flags.
2082
2083 2004-05-15 Alan Modra <amodra@bigpond.net.au>
2084
2085 * config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't use
2086 UNITS_PER_WORD to calculate gpr size. Re-instate code to set reg
2087 count to 8 to handle n_reg > 2.
2088
2089 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
2090
2091 * doc/extend.texi: Update WG14 URL.
2092
2093 2004-05-15 Steven Bosscher <stevenb@suse.de>
2094
2095 * basic-block.h (life_analysis, delete_noop_moves):
2096 Update prototypes.
2097 * bt-load.c (branch_target_load_optimize): Don't take the
2098 insns stream as an argument. Update the life_analysis calls.
2099 * combine.c (combine_instructions): Update delete_noop_moves
2100 calls.
2101 * flow.c (notice_stack_pointer_modification): Don't take the
2102 insns stream as an argument. Work on the flow graph.
2103 (life_analysis): Likewise.
2104 (delete_noop_moves): Likewise.
2105 * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call.
2106 (rest_of_handle_life): Update life_analysis call.
2107 (rest_of_compilation): Likewise, and also update
2108 branch_target_load_optimize call.
2109 * ra.c (reg_alloc): Update life_analysis call.
2110 * reg-stack.c (reg_to_stack): Likewise. Also, don't take
2111 the insns stream as an argument.
2112 * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves
2113 call.
2114 * rtl.c (branch_target_load_optimize, reg_to_stack): Update
2115 prototypes.
2116 * value-profile.c (branch_prob): Update life_analysis call.
2117 * web.c (web_main): Work on the CFG, not on the insns stream.
2118
2119 * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls.
2120 * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise.
2121 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2122
2123 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
2124
2125 PR c/15444
2126 * c-format.c (avoid_dollar_number): New function.
2127 (check_format_info_main): Call avoid_dollar_number when operand
2128 numbers might occur but has_operand_number == 0.
2129
2130 2004-05-14 Richard Earnshaw <rearnsha@arm.com>
2131
2132 * arm.md (all peephole2 patterns): Use predicates that validate
2133 register classes as appropriate.
2134
2135 2004-05-14 Steven Bosscher <stevenb@suse.de>
2136
2137 PR opt/14472
2138 * tree-tailcall.c (process_assignment): Use STRIP_NOPS to
2139 ignore type conversions that do not inhibit tail calling.
2140 (find_tail_calls): Likewise.
2141
2142 2004-05-14 Jeff Law <law@redhat.com>
2143
2144 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even
2145 bother marking bypassed virtuals for out-of-ssa. Instead merge
2146 bypassed virtuals into vars_to_rename just before into-ssa pass.
2147
2148 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize
2149 so that it picks up more opportunities to eliminate ABS expressions
2150 or turn them into negations.
2151
2152 2004-05-14 Steven Bosscher <stevenb@suse.de>
2153
2154 * passes.c (rest_of_handle_null_pointer): Remove.
2155 (rest_of_handle_cse): Don't call rest_of_handle_null_pointer.
2156 (rest_of_compilation): Likewise.
2157 * rtl.h (delete_null_pointer_checks): Remove prototype.
2158 * gcse.c (rd_kill, rd_gen, reaching_defs, rd_out, ae_in, ae_out):
2159 Remove declarations.
2160 (get_bitmap_width, alloc_rd_mem, free_rd_mem, handle_rd_kill_set,
2161 compute_kill_rd, compute_rd, alloc_avail_expr_mem,
2162 free_avail_expr_mem, compute_ae_gen, expr_killed_p, compute_ae_kill,
2163 expr_reaches_here_p, computing_insn, def_reaches_here_p,
2164 can_disregard_other_sets, handle_avail_expr, classic_gcse,
2165 one_classic_gcse_pass, invalidate_nonnull_info,
2166 delete_null_pointer_checks_1, delete_null_pointer_checks,
2167 expr_reached_here_p_work): Remove.
2168 (gcse_main): Do not perform classic GCSE when optimizing for size.
2169 (alloc_pre_mem, free_pre_mem): Don't touch ae_in and ae_out, they
2170 are never used.
2171
2172 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu>
2173
2174 PR optimization/14466
2175 * tree-complex.c (make_temp): Remove.
2176 (gimplify_val): Replace make_temp with make_rename_temp
2177 and add NULL as the second argument.
2178 (expand_complex_div_wide): Likewise.
2179 * tree-dfa.c (make_rename_temp): New function.
2180 * tree-flow.h (make_rename_temp): Declare.
2181 * tree-sra.c (make_temp): Remove.
2182 (lookup_scalar): Replace make_temp with make_rename_temp.
2183 (create_scalar_copies): Likewise.
2184 * tree-ssa-phiopt.c (conditional_replacement): When we
2185 get non gimple create a temporary variable to hold the
2186 casted expression.
2187
2188 2004-05-14 Paul Brook <paul@codesourcery.com>
2189
2190 * stor-layout.c (update_alignment_for_field): Use
2191 targetm.align_anon_bitfield.
2192 * target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define.
2193 (TARGET_INITIALIZER): Use it.
2194 * target.h (struct gcc_target): Add align_anon_bitfield.
2195 * config/arm/arm.c (arm_align_anon_bitfield): New function.
2196 (TARGET_ALIGN_ANON_BITFIELD): Define.
2197 * doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD.
2198
2199 2004-05-13 Zack Weinberg <zack@codesourcery.com>
2200
2201 * tree.def (documentation): Remove mention of class 'b'.
2202 (BLOCK): Now in class 'x'.
2203 * c-common.c (verify_tree): Remove case 'b'.
2204 * c-typeck.c (same_translation_unit_p): Change 'b' to 'x'.
2205 * calls.c (calls_function_1): Control cannot get past the switch
2206 when exp is a BLOCK.
2207 * print-tree.c (print_node): Move code for class 'b' to the class
2208 'c'/'x' switch, as case BLOCK.
2209 * tree.c (tree_size, make_node_stat, tree_node_structure): Likewise.
2210 (unsafe_for_reeval, substitute_placeholder_in_expr)
2211 (stabilize_reference_1): Remove case 'b'.
2212 * tree-browser.c (browse_tree): Change all tests for TREE_CODE_CLASS
2213 of something being 'b' to tests for TREE_CODE of something being
2214 BLOCK.
2215 * tree-ssa-operands.c (get_expr_operands): Likewise.
2216
2217 2004-05-13 Diego Novillo <dnovillo@redhat.com>
2218
2219 * tree-gimple.c: Rename from tree-simple.c.
2220 * tree-gimple.h: Rename from tree-simple.h.
2221 * c-gimplify.c: Rename from c-simplify.c
2222 * Makefile.in, c-decl.c, gimple-low.c, gimplify.c,
2223 langhooks.c, tree-alias-ander.c, tree-alias-common.c,
2224 tree-complex.c, tree-dfa.c, tree-flow.h, tree-inline.c,
2225 tree-into-ssa.c, tree-iterator.c, tree-mudflap.c,
2226 tree-nested.c, tree-nomudflap.c, tree-outof-ssa.c, tree-sra.c,
2227 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-copyrename.c,
2228 tree-ssa-dce.c, tree-ssa-live.c, tree-ssa-pre.c, tree-ssa.c:
2229 Update.
2230
2231 2004-05-14 Ranjit Mathew <rmathew@hotmail.com>
2232
2233 * doc/sourcebuild.texi: Mention libbanshee and libmudflap.
2234
2235 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2236
2237 * tree-ssa.c (delete_tree_ssa): XFREE
2238 bitmaps allocated with BITMAP_XMALLOC.
2239
2240 * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and
2241 idfs_cache at the end of the function.
2242
2243 * tree-ssa-live.c (calculate_live_on_entry): Free saw_def
2244 at the end of the function.
2245
2246 * tree-ssa-dce.c (perform_tree_ssa_dce): Free
2247 el at the end of the function.
2248
2249 * tree-into-ssa.c (insert_phi_nodes_for): XFREE
2250 bitmaps allocated with BITMAP_XMALLOC.
2251
2252 * loop-unswitch.c (unswitch_single_loop): Free bbs at
2253 the end.
2254
2255 * final.c (shorten_branches): Free uid_shuid before
2256 reallocating it.
2257
2258 * bb-reoder.c (connect_traces): Free cold_traces at the end.
2259
2260 2004-05-13 Jeff Law <law@redhat.com>
2261
2262 * tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
2263 variables. Simplify slightly by using USE_OP/DEF_OP instead
2264 of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.
2265
2266 * tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP
2267 rather than iterating through the blocks testing each bit in
2268 livein to initialize the worklist.
2269 (mark_def_sites): Remove useless checks of KILLS for virtual
2270 operands.
2271
2272 * tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept
2273 new parameters for the statement and variable worklist as well
2274 as a bitmap of interesting SSA_NAMEs. Walk over the statement
2275 worklist recording interesting variables in the variable worklist
2276 and bitmap. Handle casts between integral and boolean types.
2277 (substitute_single_use_vars): Accept new parameters for the statement
2278 and variable worklist. When a substitution is made add a new
2279 entry to the statement worklist. Handle casts between integral
2280 and boolean types.
2281 (tree_ssa_forward_propagate_single_use_vars): Rework to pass
2282 worklists to children. Iterate until the statement worklist
2283 is empty.
2284
2285 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2286
2287 * tree-outof-ssa.c (rewrite_vars_out_of_ssa): Free map at
2288 the end of the block.
2289
2290 * tree-into-ssa.c (def_blocks_free): XFREE bitmaps allocated
2291 with BITMAP_XMALLOC.
2292
2293 * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
2294 with BITMAP_XMALLOC.
2295
2296 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
2297 Free nonzero_vars at the end of the function.
2298
2299 * convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
2300 need to generate code instead of a NOP_EXPR.
2301
2302 2004-05-13 Ian Lance Taylor <ian@wasabisystems.com>
2303
2304 * gcc.c (default_compilers): Fill out initializers for new Fortran
2305 entries.
2306
2307 2004-05-13 Paul Brook <paul@codesourcery.com>
2308
2309 * config/arm/arm.h (PCC_BITFIELD_TYPE_MATTERS): Define.
2310
2311 2004-05-13 Paul Brook <paul@codesourcery.com>
2312
2313 * config/arm/arm.c (arm_default_short_enums): New function.
2314 (TARGET_DEFAULT_SHORT_ENUMS): Define.
2315
2316 2004-05-13 Diego Novillo <dnovillo@redhat.com>
2317
2318 Merge from tree-ssa-20020619-branch.
2319
2320 * Makefile.in (reload1.o-warn): Add.
2321 (tree-alias-ander.o-warn): Add.
2322 (GMPLIBS): Define.
2323 (GMPINC): Define.
2324 (BANSHEELIB): Define.
2325 (BANSHEEINC): Define.
2326 (TREE_DUMP_H): Define.
2327 (TREE_SIMPLE_H): Define.
2328 (TREE_FLOW_H): Define.
2329 (LIBDEPS): Add BANSHEELIB.
2330 (INCLUDES): Add BANSHEEINC and GMPINC.
2331 (C_AND_OBJC_OBJS): Add c-simplify.o, tree-mudflap.o,
2332 c-mudflap.o and c-pretty-print.o.
2333 (C_OBJS): Remove c-pretty-print.o.
2334 (OBJS-common): Remove sibcall.o.
2335 Add tree-cfg.o, tree-dfa.o, tree-eh.o,
2336 tree-ssa.o, tree-optimize.o, tree-simple.o,
2337 tree-alias-type.o, gimplify.o, tree-pretty-print.o,
2338 tree-into-ssa.o, tree-outof-ssa.o, tree-alias-common.o,
2339 tree-ssa-ccp.o, @ANDER@, tree-ssa-dce.o, tree-ssa-copy.o,
2340 tree-nrv.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
2341 tree-ssa-live.o, tree-ssa-operands.o, tree-ssa-alias.o,
2342 tree-ssa-phiopt.o, tree-ssa-forwprop.o, tree-nested.o,
2343 tree-ssa-dse.o, tree-ssa-dom.o, domwalk.o,
2344 tree-tailcall.o, gimple-low.o, tree-iterator.o,
2345 tree-phinodes.o, tree-ssanames.o, tree-sra.o,
2346 tree-complex.o, tree-ssa-loop.o, rtl-profile.o and
2347 tree-profile.o.
2348 (OBJC-archive): Add tree-nomudflap.o.
2349 (cc1): Add dependency on @TREEBROWSER@.
2350 (c-decl.o): Add dependency on TREE_DUMP_H.
2351 (c-dump.o): Likewise.
2352 (c-common.o): Add dependency on tree-iterator.h
2353 (c-pretty-print.o): Add dependency on DIAGNOSTIC_H.
2354 (gtype-desc.o): Add dependency on TREE_FLOW_H.
2355 (tree.o): Add dependency on tree-iterator.h,
2356 BASIC_BLOCK_H and TREE_FLOW_H.
2357 (tree-dump.o): Depend on TREE_DUMP_H instead of tree-dump.h.
2358 (langhooks.o): Add dependency on TREE_SIMPLE_H.
2359 (tree-alias-type.o, tree-alias-ander.o,
2360 tree-alias-common.o, tree-ssa.o, tree-into-ssa.o,
2361 tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o,
2362 tree-ssa-phiopt.o, tree-nrv.o, tree-ssa-copy.o,
2363 tree-ssa-dom.o, tree-ssanames.o, tree-phinodes.o,
2364 domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o,
2365 tree-ssa-pre.o, tree-cfg.o, tree-tailcall.o,
2366 tree-nested.o, tree-iterator.o, tree-dfa.o,
2367 tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o,
2368 tree-ssa-alias.o, tree-optimize.o, c-simplify.o,
2369 gimplify.o, gimple-low.o, tree-browser.o, tree-simple.o,
2370 tree-mudflap.o, c-mudflap.o, tree-nomudflap.o,
2371 tree-pretty-print.o, tree-ssa-dce.o, tree-ssa-ccp.o,
2372 tree-sra.o, tree-complex.o, tree-profile.o,
2373 rtl-profile.o): New rules.
2374 (function.o): Add dependency on basic-block.h
2375 (expr.o): Add dependency on tree-iterator.h.
2376 (sibcall.o): Remove.
2377 (profile.o): Depend on TREE_FLOW_H instead of TREE_H.
2378 (cfg.o): Add dependency on TIMEVAR_H.
2379 (cfghooks.o): Add dependency on TREE_FLOW_H.
2380 (reg-stack.o): Add dependency on basic-block.h.
2381 (GTFILES): Add hwint.h, tree-mudflaph.c, tree-flow.h,
2382 c-objc-common.c, c-common.c, c-parse.in, tree-ssanames.c,
2383 tree-eh.c, tree-phinodes.c, tree-cfg.c, tree-dfa.c,
2384 tree-ssa-ccp.c, tree-iterator.c, gimplify.c,
2385 tree-alias-type.h, tree-alias-common.h,
2386 tree-alias-type.c, tree-alias-common.c,
2387 tree-ssa-operands.h, tree-ssa-operands.c, tree-profile.c,
2388 rtl-profile.c and tree-nested.c.
2389 (gt-tree-alias-common.h, gt-tree-mudflap.h,
2390 gt-tree-ssa-ccp.h, gt-tree-eh.h, gt-tree-ssanames.h,
2391 gt-tree-iterator.h, gt-gimplify.h, gt-tree-phinodes.h,
2392 gt-tree-cfg.h, gt-tree-nested.h): New rules.
2393 (TEXI_GCCINT_FILES): Add cfg.texi and tree-ssa.texi.
2394 * basic-block.h: Include predict.h
2395 (struct edge_def): Add GTY marker.
2396 Change field 'insns' to be a union of tree and rtx.
2397 (EDGE_TRUE_VALUE): Define.
2398 (EDGE_FALSE_VALUE): Define.
2399 (EDGE_EXECUTABLE): Define.
2400 (struct bb_ann_d): Forward declare.
2401 (struct basic_block_def): Add GTY marker.
2402 Remove fields head_tree and end_tree.
2403 Add fields stmt_list, rbi and tree_annotations.
2404 (struct reorder_block_def): Define.
2405 (basic_block_info): Add GTY marker.
2406 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Change to global
2407 variables instead of macros.
2408 (flow_call_edges_add): Remove declaration.
2409 (make_eh_edge): Remove declaration.
2410 (brief_dump_cfg, find_edge, tree_predicted_by_p,
2411 rtl_predicted_by_p, tree_predict_edge, rtl_predict_edge,
2412 predict_edge_def, rtl_make_eh_edge, find_basic_blocks,
2413 cleanup_cfg, delete_unreachable_blocks, merge_seq_blocks,
2414 alloc_rbi_pool, initialize_bb_rbi, free_rbi_pool): Declare.
2415 (try_redirect_by_replacing_jump): Modfiy return type to
2416 edge instead of bool.
2417 * bb-reorder.c (copy_bb): Call duplicate_block
2418 instead of cfg_layout_duplicate_bb.
2419 (copy_bb_p): Call can_duplicate_block_p instead of
2420 cfg_layout_can_duplicate_bb_p.
2421 * bitmap.c (bitmap_first_set_bit): Abort if word
2422 wasn't found.
2423 (bitmap_last_set_bit): Likewise.
2424 * builtin-types.def (DEF_FUNCTION_TYPE_2): Add
2425 (DEF_FUNCTION_TYPE_3): Add.
2426 * builtins.c (c_strlen): Make extern.
2427 (builtin_save_expr): New.
2428 (expand_builtin_nonlocal_goto): New.
2429 (expand_builtin_constant_p): Remove.
2430 (expand_builtin_mathfn): Call builtin_save_expr instead
2431 of save_expr.
2432 (expand_builtin_mathfn_2): Likewise.
2433 (expand_builtin_strcmp): Likewise.
2434 (expand_builtin_strncmp): Likewise.
2435 (expand_builtin_strcat): Likewise.
2436 (fold_builtin_cabs): Likewise.
2437 (expand_builtin_alloca): Don't trigger if -fmudflap is
2438 given.
2439 (build_string_literal): Set TREE_INVARIANT on new node.
2440 (expand_builtin_profile_fun): New.
2441 (round_trampoline_addr): New.
2442 (expand_builtin_init_trampoline): New.
2443 (expand_builtin_adjust_trampoline): New.
2444 (expand_builtin) <BUILT_IN_NEXT_ARG>: Call simplify_builtin_next_arg.
2445 <BUILT_IN_CONSTANT_P>: Return const0_rtx;
2446 <BUILT_IN_STACK_ALLOC, BUILT_IN_STACK_SAVE,
2447 BUILT_IN_STACK_RESTORE, BUILT_IN_NONLOCAL_GOTO,
2448 BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT,
2449 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE>:
2450 Handle.
2451 (fold_builtin_expect): New.
2452 (fold_builtin_isascii): Don't return non-constant results
2453 in GIMPLE form.
2454 (fold_builtin_isdigit): Likewise.
2455 (fold_builtin_1): New.
2456 (fold_builtin): Call it.
2457 (build_function_call_expr): Update call to build a new
2458 CALL_EXPR.
2459 (purge_builtin_constant_p): Remove.
2460 (simplify_builtin, simplify_builtin_memcmp,
2461 simplify_builtin_strcmp, simplify_builtin_strncmp,
2462 simplify_builtin_strpbrk, simplify_builtin_strstr,
2463 simplify_builtin_strchr, simplify_builtin_strrchr,
2464 simplify_builtin_strcat, simplify_builtin_strncat,
2465 simplify_builtin_strspn, simplify_builtin_strcspn,
2466 simplify_builtin_next_arg, simplify_builtin_va_start,
2467 simplify_builtin_sprintf): New.
2468 * builtins.def (BUILT_IN_STACK_ALLOC,
2469 BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE,
2470 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE,
2471 BUILT_IN_NONLOCAL_GOTO, BUILT_IN_PROFILE_FUNC_ENTER,
2472 BUILT_IN_PROFILE_FUNC_EXIT): Define.
2473 * c-common.c: Include tree-iterator.h and hashtab.h.
2474 (lang_statement_code_p): Declare.
2475 (lang_gimplify_stmt): Declare.
2476 (fix_string_type): Set TREE_INVARIANT for value.
2477 (pointer_int_sum): Rely on build to set TREE_CONSTANT.
2478 (c_type_hash): New.
2479 (c_common_get_alias_set): Handle multiple type nodes
2480 referring to "the same" type, currently for C90 only.
2481 (c_add_case_label): Use create_artificial_label.
2482 (finish_label_address_expr): Don't set TREE_CONSTANT on
2483 result.
2484 (c_expand_expr): Don't handle STMT_EXPR.
2485 (handle_alias_attribute): Marke aliased variables to be
2486 TREE_STATIC.
2487 (handle_nonnull_attribute): Initialize arg_num.
2488 (check_function_nonnull): Likewise.
2489 (c_walk_subtrees): New.
2490 (c_estimate_num_insns_1): Don't handle
2491 EXPR_WITH_FILE_LOCATION nor FILE_STMT.
2492 (c_decl_uninit_1): Remove.
2493 (c_decl_uninit): Remove.
2494 (c_warn_unused_result): New.
2495 * c-common.def (ASM_STMT): Change number of operands
2496 to 4.
2497 (FILE_STMT): Remove.
2498 * c-common.h (lang_expand_stmt, lang_expand_decl_stmt):
2499 Remove.
2500 (lang_gimplify_stmt): Add.
2501 (expand_stmt): Remove.
2502 (ASM_CV_QUAL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
2503 ASM_CLOBBERS, STMT_EXPR_WARN_UNUSED_RESULT,
2504 ASM_VOLATILE_P, FILE_STMT_FILENAME_NODE,
2505 FILE_STMT_FILENAME, STMT_LINENO, STMT_LINENO_FOR_FN_P,
2506 ASM_INPUT_P, DECL_C_HARD_REGISTER): Remove.
2507 (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
2508 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
2509 genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt,
2510 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
2511 genrtl_scope_stmt, genrtl_switch_stmt, genrtl_case_label,
2512 genrtl_compound_stmt, genrtl_asm_stmt,
2513 genrtl_cleanup_stmt, c_decl_uninit): Remove.
2514 (c_do_switch_warnings, c_gimplify_expr, c_walk_subtrees,
2515 c_tree_chain_matters_p, c_warn_unused_result,
2516 c_genericize, c_gimplify_stmt, stmt_expr_last_stmt):
2517 Declare.
2518 * c-convert.c (convert): Make convert work when
2519 converting to compatible types across translation unit.
2520 * c-decl.c: Include langhooks.h, tree-mudflap.h,
2521 tree-simple.h, diagnostic.h and tree-dump.h
2522 (merge_decls): Initialize oldtype to NULL.
2523 (finish_decl): Use DECL_HARD_REGISTER instead of
2524 DECL_C_HARD_REGISTER.
2525 (check_bitfield_type_and_width): Check for null
2526 lang_type_specific when check the precision of an enum.
2527 (grokdeclarator): Immediately layout an ARRAY_TYPE used
2528 in a pointer-to-array declarator.
2529 (finish_struct): Clear allocated struct lang_type.
2530 (finish_enum): Set enum_min and enum_max. Set
2531 TYPE_MIN/MAX_VALUE to the limits of the compatible type,
2532 not to the enumerators.
2533 (set_decl_nonlocal): New.
2534 (store_parm_decls): Use it via walk_tree.
2535 (c_finalize): New.
2536 (finish_function): When !targetm.have_ctors_dtors,
2537 record static constructors and destructors here...
2538 (c_expand_body_1): ... not here.
2539 (c_expand_decl): Rename from c_expand_decl_stmt.
2540 Handle all C-specific expansion semantics.
2541 * c-dump.c (dump_stmt): Use EXPR_LOCUS instead of
2542 STMT_LINENO.
2543 * c-format.c (handle_format_arg_attribute): Initialize
2544 format_num.
2545 * c-lang.c: Include tree-inline.h
2546 (LANG_HOOKS_EXPAND_DECL,
2547 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
2548 LANG_HOOKS_TREE_INLINING_WALK_SUBTREES,
2549 LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P,
2550 LANG_HOOKS_GIMPLIFY_EXPR, LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
2551 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
2552 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Remove.
2553 (c_types_compatible_p): New.
2554 * c-mudflap.c: New file.
2555 * c-objc-common.c: Include tree-mudflap.h
2556 (start_cdtor, finish_cdtor): Collapse
2557 together into
2558 (build_cdtor): ...here. Update to construct a complete tree
2559 for the function. No need to call push_scope, pop_scope, or
2560 clear_last_expr, or set current_function_cannot_inline.
2561 (c_missing_noreturn_ok_p): Change prototype to return
2562 bool.
2563 (c_objc_common_init): Don't set lang_missing_noreturn_ok_p.
2564 * c-opts.c (c_common_handle_option): Move handling of -fdump- to
2565 opts.c.
2566 (c_common_post_options): Don't ever use rtl inlining.
2567 * c-parse.in: Use EXPR_LOCUS instead of STMT_LINENO.
2568 * c-pragma.c (handle_pragma_redefine_extname): Define
2569 always.
2570 (init_pragma): Activate #pragma redefine_extname for mudflap.
2571 * c-pretty-print.c (pp_c_statement): Remove FILE_STMT.
2572 (pp_c_initializer): Accept any type CONSTRUCTOR.
2573 (pp_c_initializer_list): Fix code expectations for VECTOR_TYPE and
2574 COMPLEX_TYPE.
2575 (decl_name_str): New local function.
2576 (pp_c_direct_declarator): Call it.
2577 (pp_c_primary_expression): Call it.
2578 (pp_c_id_expression): Call it.
2579 (pp_c_statement): Call it.
2580 (print_c_tree): Create new pp object.
2581 * c-pretty-print.h (pp_c_tree_decl_identifier,
2582 print_c_tree): Declare.
2583 * c-semantics.c: Include langhooks.h
2584 (lang_expand_stmt, lang_expand_decl_stmt,
2585 find_reachable_label_1, find_reachable_label,
2586 expand_unreachable_if_stmt, expand_unreachable_stmt,
2587 genrtl_do_stmt_1): Remove.
2588 (begin_stmt_tree): Don't check for changed filename.
2589 Call annotate_with_locus.
2590 (finish_stmt_tree): Don't set line for end of function.
2591 (build_stmt): Don't check type nodes for
2592 side effects.
2593 (build_stmt): Set TREE_SIDE_EFFECTS.
2594 Set EXPR_LOCUS instead of STMT_LINENO.
2595 (lang_expand_stmt, lang_expand_decl_stmt,
2596 expand_cond, genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
2597 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
2598 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_do_stmt,
2599 genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt,
2600 genrtl_continue_stmt, genrtl_scope_stmt, genrtl_switch_stmt,
2601 genrtl_case_label, genrtl_compound_stmt, genrtl_asm_stmt,
2602 genrtl_cleanup_stmt, expand_stmt, find_reachable_label,
2603 find_reachable_label_1, expand_unreachable_if_stmt,
2604 expand_unreachable_stmt): Remove.
2605 (prep_stmt): Use EXPR_LOCUS instead of STMT_LINENO.
2606 * c-simplify.c: New file.
2607 * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Define.
2608 (struct lang_type): Add fields enum_min and enum_max.
2609 (c_expand_decl_stmt, c_missing_noreturn_ok_p): Remove.
2610 (c_expand_decl, c_missing_noreturn_ok_p,
2611 c_types_compatible_p): Declare.
2612 * c-typeck.c (tagged_types_tu_compatible_p): Allow for
2613 compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
2614 (default_function_array_conversion): Rely on build to
2615 set TREE_CONSTANT.
2616 (parser_build_binary_op, pointer_diff): Likewise.
2617 (build_unary_op, build_binary_op): Likewise.
2618 (build_array_ref):
2619 (build_external_ref): Set TREE_INVARIANT.
2620 (build_c_cast, pop_init_level): Likewise.
2621 (process_init_element): Use ASM_VOLATILE_P.
2622 (build_asm_expr): Adapt to GENERIC/GIMPLE syntax.
2623 (c_finish_case): Call c_do_switch_warnings.
2624 * c.opt (fdump-): Remove.
2625 * calls.c (try_to_integrate): Remove.
2626 (prepare_call_address): Replace fndecl arg with a
2627 precomputed static chain value.
2628 (emit_call_1): New argument for full call expr.
2629 (flags_from_decl_or_type): Call special_function_p.
2630 (initialize_argument_information): Add argument
2631 may_tailcall.
2632 (purge_reg_equiv_notes): New.
2633 (expand_call): Do not try to expand calls inline.
2634 (fixup_tail_calls): New.
2635 * cfg.c: Include timevar.h and ggc.h.
2636 (bb_pool, edge_pool): Remove.
2637 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Declare.
2638 (entry_exit_blocks): Remove.
2639 (rbi_pool): Declare.
2640 (init_flow): Do not create pools.
2641 Allocate entry/exit block.
2642 (free_edge, alloc_block, expunge_block, unchecked_make_edge): Use GGC.
2643 (alloc_rbi_pool, free_rbi_pool, initialize_bb_rbi): New.
2644 (unlink_block): Clear b->prev_bb and b->next_bb.
2645 (compact_blocks): Clear all slots of BASIC_BLOCK array.
2646 (dump_flow_info): Work on trees too.
2647 (dump_cfg_bb_info): New.
2648 (brief_dump_cfg): New.
2649 * cfganal.c (need_fake_edge_p, flow_call_edges_add): Remove.
2650 (find_edge): New.
2651 * cfgbuild.c (rtl_make_eh_edge): Rename from
2652 make_eh_edge. Update all users.
2653 (find_basic_blocks): Don't call VARRAY_FREE on
2654 basic_block_info.
2655 * cfgcleanup.c (outgoing_edges_match): Initialize newpos1
2656 and newpos2.
2657 (delete_unreachable_blocks): Return changed status.
2658 (merge_seq_blocks): New.
2659 * cfghooks.c: Include tree-flow.h
2660 (tree_register_cfg_hooks, ir_type): New.
2661 (redirect_edge_and_branch): Change return type to edge.
2662 (predict_edge, predicted_by_p, can_duplicate_block_p,
2663 duplicate_block, block_ends_with_call_p,
2664 block_ends_with_condjump_p, flow_call_edges_add): New.
2665 * cfghooks.h (redirect_edge_and_branch): Change return
2666 type to edge.
2667 (predict_edge, predicted_by_p, can_duplicate_block_p,
2668 duplicate_block, block_ends_with_call_p,
2669 block_ends_with_condjump_p, flow_call_edges_add): Declare.
2670 (redirect_edge_and_branch): Change return type to edge.
2671 (struct cfg_hooks): Add fields block_ends_with_call_p,
2672 block_ends_with_condjump_p, flow_call_edges_add,
2673 predict_edge, predicted_by_p, can_duplicate_block_p and
2674 duplicate_block.
2675 (tree_cfg_hooks, ir_type, tree_register_cfg_hooks): Declare.
2676 * cfglayout.c (cfg_layout_pool, cfg_layout_initialize_rbi): Removed.
2677 (fixup_reorder_chain): Use initialize_bb_rbi.
2678 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Hookized.
2679 (cfg_layout_initialize): Use cfg.c rbi pool manipulation functions.
2680 (can_copy_bbs_p, copy_bbs): Use cfghooks for bb duplication.
2681 (insn_locators_initialize): Use new info about blocks.
2682 * cfglayout.h (typedef struct reorder_block_def): Moved to
2683 basic_block.h.
2684 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Declaration
2685 removed.
2686 * cfgloop.c: Include tree.h and tree-flow.h.
2687 * cfgloop.h (create_loop_notes): Declare.
2688 * cfgloopmanip.c (create_loop_notes): New.
2689 * cfgrtl.c (cfg_layout_create_basic_block): Use initialize_bb_rbi.
2690 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Fill in can_duplicate_block_p
2691 and duplicate_block fields.
2692 (create_basic_block_structure): Don't look at
2693 RTX_INTEGRATED_P.
2694 (rtl_block_ends_with_call_p): New.
2695 (rtl_block_ends_with_condjump_p): New.
2696 (need_fake_edge_p): Moved from cfganal.c.
2697 (rtl_flow_call_edges_add): Moved from cfganal.c (flow_call_edges_add).
2698 (rtl_cfg_hooks): Add rtl_block_ends_with_call_p,
2699 rtl_block_ends_with_condjump_p, rtl_flow_call_edges_add.
2700 (cfg_layout_rtl_cfg_hooks): Ditto.
2701 * cgraph.c (cgraph_mark_reachable_node): Don't force nested
2702 functions to be reachable.
2703 * cgraphunit.c (decide_is_function_needed):
2704 * cgraphunit.c (decide_is_function_needed): Nested functions of extern
2705 inline functions don't need to be output.
2706 (cgraph_assemble_pending_functions): Don't do anything
2707 special for nested functions.
2708 (cgraph_mark_functions_to_output): Likewise.
2709 (cgraph_finalize_function): Don't zap DECL_STRUCT_FUNCTION.
2710 (cgraph_analyze_function): Use estimate_num_insns.
2711 (cgraph_mark_functions_to_output): Likewise.
2712 (cgraph_estimate_growth, cgraph_clone_inlined_nodes): Likewise.
2713 (cgraph_expand_function): Allow functions to not be
2714 emitted.
2715 (cgraph_remove_unreachable_nodes):
2716 (cgraph_recursive_inlining_p): Simplify.
2717 (lookup_recursive_calls,
2718 cgraph_decide_recursive_inlining): New.
2719 (cgraph_decide_inlining_*): Update calls of
2720 cgraph_mark_inline.
2721 * combine.c (get_pos_from_mask): Always set *plen.
2722 * common.opt (fdump-, fmudflap, fmudflapth, fmudflapir,
2723 ftree-based-profiling, ftree-ccp, ftree-ch,
2724 ftree-combine-temps, ftree-copyrename, ftree-dce,
2725 ftree-dominator-opts, ftree-dse, ftree-loop-optimize,
2726 ftree-points-to, ftree-pre, ftree-sra, ftree-ter,
2727 ftree-lrs): Add.
2728 * config.in (HAVE_LD_PIE, HAVE_BANSHEE, PREFIX_INCLUDE_DIR):
2729 Undefine.
2730 * configure.ac: Add --enable-tree-browser option.
2731 Add --with-libbanshee option.
2732 Add GMPLIBS and GMPINC.
2733 * configure: Regenerate.
2734 * coverage.c (tree_ctr_tables): New.
2735 (coverage_counter_alloc): Use it.
2736 (build_ctr_info_value): Ditto.
2737 (coverage_counter_ref): Ditto. Rename to rtl_coverage_counter_ref.
2738 (tree_coverage_counter_ref): New.
2739 * coverage.h (coverage_counter_ref): Remove declaration.
2740 (rtl_coverage_counter_ref): Declare.
2741 (tree_coverage_counter_ref): Declare.
2742 * cppexp.c (append_digit): Rearrange unsignedp/overflow setting.
2743 (eval_token, num_binary_op, num_part_mul, num_div_op): Likewise.
2744 * cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
2745 (struct cse_basic_block_data): Rename enum values to not
2746 conflict with profile.h; update all uses.
2747 * dbxout.c (dbxout_symbol_location): Don't mention integrate.c
2748 in comments.
2749 * defaults.h (TRAMPOLINE_ALIGNMENT): Move from function.c.
2750 * diagnostic.h (debug_output_buffer, dump_generic_node,
2751 print_generic_stmt, print_generic_stmt_indented,
2752 print_generic_expr, print_generic_decl,
2753 debug_generic_expr, debug_generic_stmt, debug_c_tree):
2754 Declare.
2755 * dominance.c: Cache immediate dominators.
2756 * domwalk.c: New file.
2757 * domwalk.h: New file.
2758 * dwarf2out.c (is_fortran): Support DW_LANG_Fortran95.
2759 (gen_subprogram_die): Generate a DIE for a named
2760 return value.
2761 (loc_descriptor_from_tree): Treat RESULT_DECL like VAR_DECL.
2762 (add_location_or_const_value_attribute): Likewise.
2763 (add_bound_info): Likewise.
2764 (gen_decl_die): Likewise.
2765 * emit-rtl.c (maybe_set_first_label_num): New.
2766 (copy_most_rtx): Don't copy the integrated flag.
2767 Copy the new return_val flag.
2768 * et-forest.c (MAX_NODES): Define.
2769 (record_path_before_1): Abort if len is greater than
2770 MAX_NODES.
2771 * except.c (gen_eh_region, gen_eh_region_cleanup, gen_eh_region_try,
2772 gen_eh_region_catch, gen_eh_region_allowed,
2773 gen_eh_region_must_not_throw, get_eh_region_number,
2774 get_eh_region_may_contain_throw, get_eh_region_tree_label,
2775 set_eh_region_tree_label, expand_resx_expr): New.
2776 (expand_eh_region_start, expand_start_catch): Use them.
2777 (expand_end_catch): Tidy.
2778 (note_eh_region_may_contain_throw): Take region argument.
2779 (note_current_region_may_contain_throw): New.
2780 (get_exception_filter): Export.
2781 (collect_eh_region_array): Export.
2782 (remove_unreachable_regions): Check ERT_TRY based on reachability
2783 of catches, not reachability of continue_label. Never remove
2784 ERT_MUST_NOT_THROW regions.
2785 (collect_rtl_labels_from_trees): New.
2786 (convert_from_eh_region_ranges): Use it.
2787 (connect_post_landing_pads): Handle dying cleanups.
2788 (struct reachable_info): Add callback data.
2789 (add_reachable_handler): Invoke the callback.
2790 (foreach_reachable_handler): New.
2791 (reachable_handlers): Use it.
2792 (arh_to_landing_pad, arh_to_label): New.
2793 (can_throw_internal_1): Split out from can_throw_internal.
2794 (can_throw_external_1): Similarly.
2795 * except.h: Update.
2796 * explow.c (emit_stack_save): Remove savearea mode check.
2797 (update_nonlocal_goto_save_area): New.
2798 (allocate_dynamic_stack_space): Use it.
2799 (probe_stack_range): Never emit loop notes.
2800 * expmed.c (extract_fixed_bit_field): Always propagate the
2801 target for the shift if it is a REG.
2802 * expr.c: Include tree-iterator.h
2803 (is_zeros_p): Remove.
2804 (categorize_ctor_elements_1, categorize_ctor_elements): New.
2805 (count_type_elements): New.
2806 (mostly_zeros_p): Use them.
2807 (expr_wfl_stack): Remove.
2808 (convert_move): Do nothing if to and from are the same.
2809 (emit_block_move_via_loop): Don't emit LOOP notes.
2810 (emit_move_insn): Don't handle CONSTANT_P_RTX.
2811 (emit_move_insn_1): Don't generate inline warnings.
2812 (expand_vars, expand_var): Split from ...
2813 (expand_expr_1): ... here.
2814 (expand_expr_real, expand_expr_real_1): Use new macros
2815 EXPR_LOCATION and EXPR_HAS_LOCATION.
2816 * expr.h (simplify_builtin_fputs,
2817 simplify_builtin_strcpy, simplify_builtin_strncpy,
2818 expand_var, fixup_tail_calls,
2819 update_nonlocal_goto_save_area): Declare.
2820 (lookup_static_chain, expand_inline_function,
2821 mark_seen_cases): Remove.
2822 (prepare_call_address): Change type of 2nd argument to
2823 rtx.
2824 * final.c (profile_function): Update static chain test.
2825 (final): Don't look at RTX_INTEGRATED_P.
2826 * flags.h (flag_mudflap, flag_mudflap_threads,
2827 flag_mudflap_ignore_reads, flag_tree_pre, flag_tree_ccp,
2828 flag_tree_dce, flag_tree_combine_temps,
2829 flag_tree_live_range_split, flag_tree_dom, flag_tree_ch,
2830 flag_tree_dse, flag_tree_sra, flag_tree_copyrename,
2831 flag_tree_points_to): Declare.
2832 (enum pta_type): Declare.
2833 * flow.c (lang_missing_noreturn_ok_p): Remove.
2834 (check_function_return_warnings): Remove.
2835 (update_life_info): Update comments.
2836 (free_basic_block_vars): Don't call VARRAY_FREE for
2837 basic_block_info.
2838 (regno_uninitialized): Remove.
2839 * fold-const.c (int_const_binop): Make extern.
2840 (non_lvalue): Rely on build to set TREE_CONSTANT.
2841 (operand_equal_p): Replace only_const argument with
2842 flags. Allow pure functions if OEP_PURE_SAME.
2843 (fold): Use OEP_ONLY_CONST.
2844 (invert_truthvalue) <NOP_EXPR> Break if argument is of
2845 boolean type.
2846 (fold_relational_hi_lo,
2847 nondestructive_fold_binary_to_constant,
2848 nondestructive_fold_unary_to_constant,
2849 fold_read_from_constant_string): New.
2850 * function.c (struct function): Remove calls_constant_p.
2851 (current_function_calls_constant_p): Remove.
2852 (inline_function_decl): Remove.
2853 (put_var_into_stack): Don't use it.
2854 (fix_lexical_addr): Likewise.
2855 (inline_function_decl): Remove extern declaration.
2856 (TRAMPOLINE_ALIGNMENT): Move to defaults.h.
2857 (trampolines_created): Move to varasm.c.
2858 (free_after_compilation): Update for removed fields.
2859 (allocate_struct_function): Likewise.
2860 (delete_handlers, lookup_static_chain): Remove.
2861 (fix_lexical_addr): Don't consider non-local variable refs.
2862 (trampoline_address): Remove.
2863 (round_trampoline_addr): Move to builtins.c.
2864 (adjust_trampoline_addr): Remove.
2865 (expand_function_start): Update for changes to static chain
2866 and nonlocal goto handling.
2867 (initial_trampoline): Move to varasm.c.
2868 (expand_function_end): Don't build trampolines or kill
2869 unreferenced nonlocal goto labels.
2870 (free_after_compilation): Don't set it.
2871 (expand_function_end): Likewise.
2872 (setjmp_vars_warning): Rename from
2873 uninitialized_vars_warning, remove uninitialized vars warning.
2874 (uninitialized_vars_warning): Remove old comment
2875 and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
2876 and do not call the langhook.
2877 (expand_function_start, expand_function_end): Don't do
2878 function instrumentation here.
2879 (clear_block_marks): Rename from reorder_blocks_0, export.
2880 (blocks_nreverse): Export.
2881 (uninitialized_vars_warning): Use DECL_RTL_SET_P to test for presence
2882 of rtl.
2883 (reset_block_changes, record_block_change, finalize_block_changes,
2884 check_block_change, free_block_changes): New functions.
2885 (assign_parms): Setting of current_function_stdarg
2886 moved ...
2887 (allocate_struct_function): ... here.
2888 * function.h (struct function): Remove x_nonlocal_labels,
2889 x_nonlocal_goto_handler_slots, x_nonlocal_goto_stack_level,
2890 x_context_display, x_trampoline_list, needs_context.
2891 Add static_chain_decl, nonlocal_goto_save_area.
2892 (struct function): Remove x_clobber_return_insn.
2893 Add tail_call_emit field, last_label_uid,
2894 unexpanded_var_list, dont_emit_block_notes,
2895 ib_boundaries_block, function_end_locus and saved_tree/saved_args.
2896 (clear_block_marks): Declare.
2897 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Add -fmudflapth support.
2898 (mfwrap_spec, mflib_spec): Declare.
2899 (cpp_unique_options, cc1_options): Ditto.
2900 (default_compilers): Add .F and .f90.
2901 (static_specs): Add mfwrap and mflib.
2902 * gcse.c (want_to_gcse_p, gcse_constant_p): Don't handle
2903 CONSTANT_RTX_P.
2904 (reg_used_on_edge, reg_killed_on_edge, bypass_block):
2905 Update to match insns field in struct edge_def.
2906 * gdbinit.in (pgs, pge): Define.
2907 * genattrtab.c (ATTR_PERMANENT_P): Use the return_val flag
2908 instead of the integrated flag.
2909 * gengtype-lex.l (IWOrD): Add HOST_WIDEST_INT
2910 * gengtype-yacc.y (bitfieldlen): Add empty action.
2911 (struct_fields): Accept unnamed bitfields.
2912 (bitfieldlen): Split from ...
2913 (bitfieldopt): ... here.
2914 * gengtype.c (ifiles): Add tree-alias-type.h and
2915 tree-flow.h.
2916 * genrecog.c (validate_pattern): Do not handle
2917 CONSTANT_P_RTX.
2918 * gimple-low.c: New file.
2919 * gimplify.c: New file.
2920 * haifa-sched.c (priority): Do not handle CONSTANT_P_RTX.
2921 (restore_line_notes): Do not set RTX_INTEGRATED_P.
2922 * ifcvt.c (dead_or_predicable): Initialize local variable
2923 'earliest'.
2924 * input.h (expr_wfl_stack): Remove.
2925 * integrate.c (INTEGRATE_THRESHOLD): Remove.
2926 (setup_initial_hard_reg_value_integration): Likewise.
2927 (initialize_for_inline): Likewise.
2928 (note_modified_parmregs): Likewise.
2929 (integrate_parm_decls): Likewise.
2930 (process_reg_param): Likewise.
2931 (save_parm_insns): Likewise.
2932 (copy_insn_list): Likewise.
2933 (copy_insn_notes): Likewise.
2934 (compare_blocks): Likewise.
2935 (find_block): Likewise.
2936 (inlining): Likewise.
2937 (function_cannot_inline_p): Likewise.
2938 (parmdecl_map): Likewise.
2939 (in_nonparam_insns): Likewise.
2940 (save_for_inline): Likewise.
2941 (FIXED_BASE_PLUS): Likewise.
2942 (expand_inline_function): Likewise.
2943 (copy_rtx_and_substitute): Don't look at map->integrating,
2944 map->inline_target, and inlining, since we are never copying
2945 for integrating.
2946 Don't abort on RTX_INTEGRATED_P.
2947 (old_fun): Remove.
2948 (output_inline_function): Remove.
2949 * integrate.h (struct inline_map): Remove fields integrating,
2950 block_map, leaf_reg_map, inline_target, and local_return_label.
2951 * jump.c (next_nonnote_insn_in_loop, duplicate_loop_exit_test,
2952 copy_loop_headers, never_reached_warning): Removed.
2953 (any_uncondjump_p): Reject nonlocal goto.
2954 * langhooks-def.h (lhd_types_compatible_p,
2955 lhd_expand_decl, lhd_gimplify_expr): Declare.
2956 (LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
2957 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
2958 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
2959 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
2960 LANG_HOOKS_GIMPLIFY_EXPR,
2961 LANG_HOOKS_GIMPLE_BEFORE_INLINING,
2962 LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
2963 LANG_HOOKS_GIMPLIFY_EXPR,
2964 LANG_HOOKS_GIMPLE_BEFORE_INLINING): Define.
2965 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_START,
2966 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END,
2967 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
2968 LANG_HOOKS_RTL_EXPAND_INITIALIZER,
2969 LANG_HOOKS_DECL_UNINIT,
2970 LANG_HOOKS_RTL_EXPAND_INITIALIZER): Remove.
2971 * langhooks.c: Include tree-simple.h.
2972 (lhd_expand_decl): New.
2973 (lhd_types_compatible_p): New.
2974 (lhd_decl_uninit): Remove.
2975 (lhd_gimplify_expr): New.
2976 * langhooks.h (struct lang_hooks_for_rtl_expansion):
2977 Remove.
2978 (struct lang_hooks_for_functions): Add field
2979 missing_noreturn_ok_p.
2980 (struct lang_hooks): Add field expand_decl,
2981 types_compatible_p, gimplify_expr and
2982 gimple_before_inlining.
2983 Remove fields decl_uninit and rtl_expand
2984 * opts.c (decode_options): Set flag_tree_ccp,
2985 flag_tree_dce, flag_tree_dom, flag_tree_dse,
2986 flag_tree_pre, flag_tree_ter,
2987 flag_tree_live_range_split, flag_tree_sra,
2988 flag_tree_copyrename and flag_tree_ch at -O1 and higher.
2989 (common_handle_option): Handle OPT_fdump_, OPT_fmudflap,
2990 OPT_fmudflapth, OPT_fmudflapir,
2991 OPT_ftree_based_profiling, OPT_ftree_ccp, OPT_ftree_dce,
2992 OPT_ftree_combine_temps, OPT_ftree_ter, OPT_ftree_lrs,
2993 OPT_ftree_dominator_opts, OPT_ftree_copyrename,
2994 OPT_ftree_ch, OPT_ftree_dse, OPT_ftree_sra,
2995 OPT_ftree_points_to_ and OPT_ftree_pre.
2996 * output.h (regno_uninitialized, find_basic_blocks,
2997 cleanup_cfg, delete_unreachable_blocks,
2998 check_function_return_warnings): Remove.
2999 * params.def (PARAM_MAX_INLINE_INSNS_RECURSIVE,
3000 PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
3001 PARAM_MAX_INLINE_RECURSIVE_DEPTH,
3002 PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
3003 PARAM_GLOBAL_VAR_THRESHOLD, PARAM_MAX_ALIASED_VOPS):
3004 * params.h (GLOBAL_VAR_THRESHOLD, MAX_ALIASED_VOPS):
3005 Define.
3006 * passes.c (rest_of_decl_compilation):
3007 (rest_of_handle_sibling_calls): Remove.
3008 (rest_of_handle_inlining): Remove.
3009 (rest_of_handle_gcse): Do not run
3010 purge_builtin_constant_p.
3011 (rest_of_compilation): Update.
3012 Do not call copy_loop_headers.
3013 Do rtl-based profiling only when
3014 !flag_tree_based_profiling. Register rtl-based profiling
3015 hooks.
3016 * predict.c: Include tree-flow.h, ggc.h, tree-dump.h
3017 (predicted_by_p): Rename to ...
3018 (rtl_predicted_by_p): .. this one; make global
3019 (tree_predicted_by_p): New.
3020 (dump_prediction): Add FILE argument.
3021 (predict_edge): Rename to ...
3022 (rtl_predict_edge): .. this one.
3023 (tree_predict_edge): New.
3024 (combine_predictions_for_insn): Update calls of predict_edge.
3025 (predict_loops): Break out from ...
3026 (estimate_probability): ... here; update comments; move updating
3027 of unknown probabilities from ...
3028 (estimate_bb_frequencies): ... here.
3029 (combine_predictions_for_bb): New.
3030 (tree_predict_by_opcode): New.
3031 (tree_estimate_probability): New.
3032 * predict.def (PRED_TREE_POINTER, PRED_TREE_OPCODE_POSITIVE,
3033 PRED_TREE_OPCODE_NONEQUAL, PRED_TREE_FPOPCODE): New predictors.
3034 * predict.h: Add include guard.
3035 (predict_edge, predict_edge_def): Move prototypes to basic_block.h
3036 * pretty-print.c (pp_write_text_to_stream): Make extern.
3037 * pretty-print.h (pp_write_text_to_stream): Declare.
3038 * print-rtl.c (print_rtx): Don't print the integrated flag.
3039 Print the return_val flag.
3040 * print-tree.c: Use TREE_FILENAME and TREE_LINENO instead
3041 of DECL_SOURCE_FILE and DECL_SOURCE_LINE respectively.
3042 Remove support for EXPR_WITH_FILE_LOCATION nodes.
3043 (print_node): Print TREE_INVARIANT and TREE_VISITED.
3044 * profile.c: Include cfghooks.h, tree-flow.h.
3045 (profile_hooks): New.
3046 (profile_dump_file): New.
3047 (instrument_edges): Use hooks instead of RTL-specific code.
3048 (instrument_values): Ditto.
3049 (get_exec_counts): Ditto.
3050 (compute_branch_probabilities): Ditto.
3051 (compute_value_histograms): Ditto.
3052 (branch_prob): Ditto.
3053 (find_spanning_tree): Ditto.
3054 (end_branch_prob): Ditto.
3055 (gen_edge_profiler): Move to rtl-profile.c (rtl_gen_edge_profiler).
3056 (gen_interval_profiler): Ditto (rtl_gen_interval_profiler).
3057 (gen_pow2_profiler): Ditto (rtl_gen_pow2_profiler).
3058 (gen_one_value_profiler): Ditto (rtl_gen_one_value_profiler).
3059 (tree_register_profile_hooks): New.
3060 (rtl_register_profile_hooks): New.
3061 * ra-rewrite.c (rewrite_program): Clear variable info.
3062 * recog.c (immediate_operand): Do not handle CONSTANT_P_RTX.
3063 * regs.h: Add include guards.
3064 * reload.c (decompose): Clear val using memset.
3065 * rtl.def (CONSTANT_P_RTX): Remove.
3066 * rtl.h (CONSTANT_P): Do not handle CONSTANT_P_RTX.
3067 (copy_loop_headers): Remove.
3068 (struct rtx_def): Replace the integrated flag with the
3069 return_val flag.
3070 (maybe_set_first_label_num): Declare.
3071 (init_branch_prob): Move declaration to value-prof.h.
3072 (end_branch_prob): Ditto.
3073 (branch_prob): Ditto.
3074 (never_reached_warning): Don't declare it.
3075 * rtlanal.c (get_related_value): Initialize get_jump_table_offset
3076 (hoist_insn_to_edge): Update to match field insns in
3077 struct edge_def.
3078 * sbitmap.c (sbitmap_realloc): New.
3079 * sbitmap.h (sbitmap_realloc): Declare.
3080 * sibcall.c: Remove file.
3081 * simplify-rtx.c (simplify_rtx): Do not handle
3082 CONSTANT_P_RTX.
3083 * stmt.c (parse_output_constraint): Don't warn for read-write
3084 memory operand.
3085 (tail_recursion_args): Use types_compatible_p langhook.
3086 (force_label_rtx): Don't look at inline_function_decl.
3087 (label_rtx): Set LABEL_PRESERVE_P appropriately.
3088 (expand_label): Handle DECL_NONLOCAL and FORCED_LABEL.
3089 (declare_nonlocal_label): Remove.
3090 (expand_goto): Don't handle nonlocal gotos.
3091 (expand_nl_handler_label): Remove.
3092 (expand_nl_goto_receivers): Remove.
3093 (expand_end_bindings): Don't expand_nl_goto_receivers. Use
3094 update_nonlocal_goto_save_area.
3095 (expand_expr_stmt_value): Check TREE_NO_WARNING.
3096 (warn_if_unused_value): Likewise.
3097 (expand_start_loop, expand_loop_continue_here,
3098 expand_end_loop): Don't create loop notes.
3099 (all_cases_count, BITARRAY_TEST, BITARRAY_SET,
3100 mark_seen_cases, check_for_full_enumeration_handling): Remove.
3101 (expand_end_case_type): Don't do warn_switch handling.
3102 (pushcase, pushcase_range) Update add_case_node calls.
3103 (add_case_node): Add dont_expand_label argument.
3104 (same_case_target_p): Don't search rtl.
3105 (expand_start_bindings_and_block, expand_end_bindings):
3106 Don't emit block notes when dont_emit_block_notes.
3107 (using_eh_for_cleanups_p): Export.
3108 (expand_return): Allow any typed rhs.
3109 (expand_stack_alloc): New.
3110 (expand_stack_save, expand_stack_restore): New.
3111 (containing_blocks_have_cleanups_or_stack_level): New
3112 function.
3113 (asm_op_is_mem_input): New fn.
3114 (expand_asm_expr): New fn.
3115 (warn_if_unused_value): Check operand 0 of SAVE_EXPR
3116 nodes.
3117 * stor-layout.c (layout_type): Just return if type is
3118 error_mark_node.
3119 (update_alignment_for_field): Export.
3120 (variable_size): We don't care about global_bindings_p if
3121 the frontend doesn't want a list of the expressions.
3122 * system.h: Poison INTEGRATE_THRESHOLD.
3123 * timevar.def (TV_TREE_GIMPLIFY, TV_TREE_EH, TV_TREE_CFG,
3124 TV_TREE_CLEANUP_CFG, TV_TREE_PTA, TV_TREE_MAY_ALIAS,
3125 TV_TREE_INSERT_PHI_NODES, TV_TREE_SSA_REWRITE_BLOCKS,
3126 TV_TREE_SSA_OTHER, TV_TREE_OPS,
3127 TV_TREE_SSA_DOMINATOR_OPTS, TV_TREE_SRA, TV_TREE_CCP,
3128 TV_TREE_SPLIT_EDGES, TV_TREE_PRE, TV_TREE_PHIOPT,
3129 TV_TREE_FORWPROP, TV_TREE_DCE, TV_TREE_CD_DCE,
3130 TV_TREE_DSE, TV_TREE_LOOP, TV_TREE_CH,
3131 TV_TREE_SSA_TO_NORMAL, TV_TREE_SSA_TO_NORMAL,
3132 TV_TREE_NRV, TV_TREE_COPY_RENAME, TV_TREE_SSA_VERIFY,
3133 TV_TREE_STMT_VERIFY, TV_DOM_FRONTIERS,
3134 TV_CONTROL_DEPENDENCES): Define.
3135 * toplev.c: Include tree-alias-common.h
3136 (current_file_decl, flag_mudflap, flag_mudflap_threads,
3137 flag_mudflap_ignore_reads, flag_tree_based_profiling,
3138 flag_tree_gvn, flag_tree_points_to, flag_tree_ccp,
3139 flag_tree_dce, flag_tree_ch, flag_tree_sra,
3140 flag_tree_combine_temps, flag_tree_ter,
3141 flag_tree_live_range_split, flag_tree_dom,
3142 flag_tree_copyrename, flag_tree_dse): Declare.
3143 (f_options): Add tree-based-profiling, tree-gvn,
3144 tree-pre, tree-ccp, tree-dce,
3145 tree-dominator-opts, tree-copyrename, tree-dse,
3146 tree-combine-temps, tree-ter, tree-lrs and tree-ch.
3147 (wrapup_global_declarations): Don't output nested inlined functions.
3148 (general_init): Call init_tree_optimization_passes.
3149 (process_options): Sorry for -ftree-based-profiling plus
3150 -ftest-coverage or -fprofile-values.
3151 * toplev.h (init_tree_optimization_passes,
3152 flag_tree_based_profiling): Declare.
3153 * tracer.c (tail_duplicate): Use cfghooks for bb duplication.
3154 * tree-alias-ander.c: New file.
3155 * tree-alias-ander.h: New file.
3156 * tree-alias-common.c: New file.
3157 * tree-alias-common.h: New file.
3158 * tree-alias-type.c: New file.
3159 * tree-alias-type.h: New file.
3160 * tree-browser.c: New file.
3161 * tree-browser.def: New file.
3162 * tree-cfg.c: New file.
3163 * tree-complex.c: New file.
3164 * tree-dfa.c: New file.
3165 * tree-dump.c (dump_enable_all): New.
3166 (dequeue_and_dump): Do not handle EXPR_WITH_FILE_LOCATION.
3167 (dump_node): Remove const from field suffix and swtch.
3168 (dump_files): Add null entry, .generic, .nested, .vcg,
3169 .xml and a match-all entry.
3170 (extra_dump_files, extra_dump_files_in_use,
3171 extra_dump_files_alloced): Declare
3172 (dump_option_value_info): Add raw, details, stats,
3173 blocks, vops, lineno, uid and all.
3174 (dump_register): New.
3175 (get_dump_file_info): New.
3176 (dump_begin): Call it.
3177 Do nothing for TDI_none.
3178 (dump_begin): Include phase number in dump filename.
3179 (dump_enable_all): New.
3180 (dump_switch_p_1): Split out from dump_switch_p.
3181 (dump_switch_p): Handle extra_dump_files.
3182 Start our scan at TDI_none + 1.
3183 If -fdump-tree-all was given, call dump_enable_all.
3184 * tree-dump.h: Include splay-tree.h.
3185 (dump_function, dump_function_to_file, dump_register):
3186 Declare.
3187 * tree-eh.c: New file.
3188 * tree-flow-inline.h: New file.
3189 * tree-flow.h: New file.
3190 * tree-inline.c: Re-write to handle inlining on GIMPLE.
3191 * tree-inline.h (walk_tree,
3192 walk_tree_without_duplicates): Move to tree.h.
3193 (estimate_num_insns): Declare.
3194 * tree-into-ssa.c: New file.
3195 * tree-iterator.c: New file.
3196 * tree-iterator.h: New file.
3197 * tree-mudflap.c: New file.
3198 * tree-mudflap.h: New file.
3199 * tree-nested.c: New file.
3200 * tree-nomudflap.c: New file.
3201 * tree-nrv.c: New file.
3202 * tree-optimize.c (dump_flags, vars_to_rename,
3203 in_gimple_form, all_passes, pass_gimple,
3204 pass_rebuild_bind, pass_all_optimizations, pass_del_cfg): Declare.
3205 (execute_gimple, execute_rebuild_bind,
3206 gate_all_optimizations, execute_del_cfg,
3207 register_one_dump_file, register_dump_files, dup_pass_1,
3208 init_tree_optimization_passes, execute_todo,
3209 execute_one_pass, execute_pass_list): New.
3210 (clear_decl_rtl): Remove.
3211 (tree_rest_of_compilation): Update to use tree
3212 optimizers.
3213 * tree-outof-ssa.c: New file.
3214 * tree-pass.h: New file.
3215 * tree-phinodes.c: New file.
3216 * tree-pretty-print.c: New file.
3217 * tree-profile.c: New file.
3218 * tree-simple.c: New file.
3219 * tree-simple.h: New file.
3220 * tree-sra.c: New file.
3221 * tree-ssa-alias.c: New file.
3222 * tree-ssa-ccp.c: New file.
3223 * tree-ssa-copy.c: New file.
3224 * tree-ssa-copyrename.c: New file.
3225 * tree-ssa-dce.c: New file.
3226 * tree-ssa-dom.c: New file.
3227 * tree-ssa-dse.c: New file.
3228 * tree-ssa-forwprop.c: New file.
3229 * tree-ssa-live.c: New file.
3230 * tree-ssa-live.h: New file.
3231 * tree-ssa-loop.c: New file.
3232 * tree-ssa-operands.c: New file.
3233 * tree-ssa-operands.h: New file.
3234 * tree-ssa-phiopt.c: New file.
3235 * tree-ssa-pre.c: New file.
3236 * tree-ssa.c: New file.
3237 * tree-ssanames.c: New file.
3238 * tree-tailcall.c: New file.
3239 * tree.c: Include tree-iterator.h, basic-block.h and
3240 tree-flow.h.
3241 (tree_node_kind): Add phi_nodes and ssa names.
3242 (tree_size): Handle PHI_NODE, EPHI_NODE, SSA_NAME,
3243 EUSE_NODE, EKILL_NODE, EEXIT_NODE and STATEMENT_LIST.
3244 (make_node_stat): Handle PHI_NODE and SSA_NAME.
3245 <'c'> Set TREE_INVARIANT.
3246 (copy_node_stat): Abort if trying to copy a
3247 STATEMENT_LIST.
3248 Clear TREE_VISITED.
3249 Clear annotation field.
3250 (build_constructor): Copy TREE_INVARIANT from vals.
3251 Don't clear TREE_CONSTANT.
3252 (expr_first, expr_last, expr_length): Remove.
3253 (staticp): Pass unknown component references to the language.
3254 (save_expr): Check TREE_INVARIANT instead of TREE_CONSTANT.
3255 (skip_simple_arithmetic): Likewise.
3256 (stabilize_reference_1): Likewise.
3257 (tree_node_structure): Handle PHI_NODE, EPHI_NODE,
3258 EUSE_NODE, EKILL_NODE, EEXIT_NODE, SSA_NAME and
3259 STATEMENT_LIST.
3260 (lhd_unsave_expr_now): Remove.
3261 (unsafe_for_reeval): Handle LABEL_EXPR and BIND_EXPR.
3262 (recompute_tree_invarant_for_addr_expr): New.
3263 (build1_stat): Clear EXPR_LOCUS and TREE_BLOCK.
3264 Call recompute_tree_invarant_for_addr_expr.
3265 Set TREE_INVARIANT accordingly.
3266 (build2_stat): Don't handle CALL_EXPR.
3267 (build3_stat): Don't call build2_stat for CALL_EXPRs.
3268 (build_expr_wfl): Remove.
3269 (annotate_with_file_line, annotate_with_locus): New.
3270 (simple_cst_equal): Call simple_cst_list_equal to compare
3271 CONSTRUCTOR_ELTS pointers.
3272 (iterative_hash_expr): Don't hash types associated
3273 with conversions. Instead hash on the signedness of the
3274 toplevel object and the operand of the conversion.
3275 (dump_tree_statistics): Call ssanames_print_statistics
3276 and phinodes_print_statistics.
3277 (ephi_node_elt_check_failed, phi_node_elt_check_failed,
3278 add_var_to_bind_expr, build_empty_stmt, is_essa_node,
3279 needs_to_live_in_memory): New.
3280 (initializer_zerop): Handle VECTOR_CST. Don't check
3281 AGGREGATE_TYPE_P for CONSTRUCTOR.
3282 * tree.def (FILTER_EXPR, CASE_LABEL_EXPR, RESX_EXPR,
3283 SSA_NAME, EUSE_NODE, EKILL_NODE, EPHI_NODE, EEXIT_NODE,
3284 PHI_NODE, CATCH_EXPR, EH_FILTER_EXPR, STATEMENT_LIST): Define.
3285 (GOTO_SUBROUTINE_EXPR): Change type to 's'.
3286 (CALL_EXPR): Add another operand.
3287 (EXPR_WITH_FILE_LOCATION): Remove.
3288 (SWITCH_EXPR): Add another operand.
3289 * tree.h: Update various comments.
3290 (union tree_ann_d): Forward declare.
3291 (struct tree_common): Add fields nowarning_flag,
3292 invariant_flag and visited.
3293 (EREF_NODE_CHECK, EPHI_NODE_ELT_CHECK,
3294 PHI_NODE_ELT_CHECK, EREF_NODE_CHECK, PHI_NODE_ELT_CHECK,
3295 EPHI_NODE_ELT_CHECK, TREE_BLOCK,
3296 STRIP_USELESS_TYPE_CONVERSION, CALL_EXPR_TAILCALL,
3297 TREE_NO_WARNING, FORCED_LABEL, TREE_INVARIANT,
3298 IS_EMPTY_STMT, EXPR_LOCUS, SET_EXPR_LOCUS, EXPR_FILENAME,
3299 EXPR_LINENO, EXPR_LOCATION, EXPR_HAS_LOCATION,
3300 EXIT_EXPR_COND, SWITCH_COND, SWITCH_BODY, SWITCH_LABELS,
3301 CASE_LOW, CASE_HIGH, CASE_LABEL, BIND_EXPR_VARS,
3302 BIND_EXPR_BODY, BIND_EXPR_BLOCK, GOTO_DESTINATION,
3303 ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS,
3304 ASM_INPUT_P, ASM_VOLATILE_P, COND_EXPR_COND,
3305 COND_EXPR_THEN, COND_EXPR_ELSE, LABEL_EXPR_LABEL,
3306 CATCH_TYPES, CATCH_BODY, EH_FILTER_TYPES,
3307 EH_FILTER_FAILURE, EH_FILTER_MUST_NOT_THROW,
3308 SSA_NAME_VAR, SSA_NAME_DEF_STMT, SSA_NAME_VERSION,
3309 SSA_NAME_OCCURS_IN_ABNORMAL_PHI, SSA_NAME_IN_FREE_LIST,
3310 PHI_RESULT, PHI_REWRITTEN, PHI_NUM_ARGS,
3311 PHI_ARG_CAPACITY, PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF,
3312 EREF_PROCESSED, EREF_ID, EREF_NAME, EREF_STMT,
3313 EREF_RELOAD, EREF_SAVE, EREF_CLASS, EREF_INJURED,
3314 EREF_TEMP, EUSE_DEF, EUSE_PHIOP, EUSE_INSERTED,
3315 EUSE_LVAL, EPHI_NUM_ARGS, EPHI_ARG_CAPACITY,
3316 EPHI_ARG_ELT, EPHI_ARG_EDGE, EPHI_ARG_PRED, EPHI_ARG_DEF,
3317 EPHI_ARG_INJURED, EPHI_ARG_DELAYED_RENAME,
3318 EPHI_ARG_HAS_REAL_USE, EPHI_ARG_STOPS,
3319 EPHI_ARG_PROCESSED2, EPHI_IDENTITY, EPHI_IDENT_INJURED,
3320 EPHI_REP_OCCUR_KNOWN, EPHI_IDENTICAL_TO, EPHI_DOWNSAFE,
3321 EPHI_CANT_BE_AVAIL, EPHI_DEAD, EPHI_USES, EPHI_STOPS,
3322 TREE_VISITED, SSA_VAR_P, DECL_NUM_STMTS,
3323 DECL_HARD_REGISTER, DECL_PTA_ALIASVAR, LABEL_DECL_UID,
3324 DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL,
3325 STATEMENT_LIST_HEAD, STATEMENT_LIST_TAIL, TDF_RAW,
3326 TDF_DETAILS, TDF_STATS, TDF_BLOCKS, TDF_VOPS, TDF_LINENO,
3327 TDF_UID,): Define.
3328 (TREE_NO_UNUSED_WARNING, EXPR_WFL_EMIT_LINE_NOTE,
3329 EXPR_WFL_NODE, EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME,
3330 EXPR_WFL_LINECOL, EXPR_WFL_LINENO, EXPR_WFL_COLNO,
3331 EXPR_WFL_SET_LINECOL): Remove.
3332 (phi_node_elt_check_failed, ephi_node_elt_check_failed,
3333 make_phi_node, init_phinodes, fini_phinodes,
3334 release_phi_node, phinodes_print_statistics,
3335 init_ssanames, fini_ssanames, make_ssa_name,
3336 release_ssa_name, ssanames_print_statistics,
3337 annotate_with_file_line, build_empty_stmt,
3338 annotate_with_locus, expr_only, categorize_ctor_elements,
3339 count_type_elements, add_var_to_bind_expr, is_essa_node,
3340 expand_stack_alloc, expand_stack_save,
3341 expand_stack_restore, add_case_node, operand_equal_p,
3342 nondestructive_fold_unary_to_constant,
3343 nondestructive_fold_binary_to_constant,
3344 fold_read_from_constant_string, int_const_binop,
3345 strip_float_extensions, simplify_builtin, c_strlen,
3346 recompute_tree_invarant_for_addr_expr,
3347 needs_to_live_in_memory, make_vector,
3348 setjmp_vars_warning, update_alignment_for_field,
3349 expand_asm_expr, asm_op_is_mem_input,
3350 containing_blocks_have_cleanups_or_stack_level,
3351 create_artificial_label, gimplify_function_tree,
3352 get_name, unshare_expr, walk_tree,
3353 walk_tree_without_duplicates, in_gimple_form): Declare.
3354 (struct tree_exp): Add fields locus and block.
3355 (struct tree_ssa_name, struct edge_def, struct
3356 tree_phi_node, struct tree_eref_common, struct
3357 tree_euse_node, struct ephi_arg_d, struct tree_ephi_node,
3358 union alias_var_def, struct tree_statement_list_node,
3359 struct tree_statement_list, enum operand_equal_flag): Declare.
3360 (enum tree_node_structure_enum): Add TS_SSA_NAME,
3361 TS_PHI_NODE, TS_EPHI_NODE, TS_EUSE_NODE, TS_EREF_NODE,
3362 TS_STATEMENT_LIST.
3363 (union tree_node): Add fields ssa_name, phi, eref, ephi,
3364 euse and stmt_list.
3365 (function_cannot_inline_p, uninitialized_vars_warning,
3366 save_for_inline, output_inline_function, all_cases_count,
3367 check_for_full_enumeration_handling,
3368 declare_nonlocal_label): Remove.
3369 (enum tree_dump_index): Add TDI_none, TDI_tu,
3370 TDI_generic, TDI_nested, TDI_vcg, TDI_xml.
3371 * unroll.c (unroll_loop): Don't clear map->inline_target.
3372 * unwind-sjlj.c (uw_install_context): Make a proper static inline
3373 function.
3374 * value-prof.c (value_prof_hooks): New.
3375 (find_values_to_profile): Rename to rtl_find_values_to_profile.
3376 Move rtl-specific bits in from branch_prob.
3377 (value_profile_transformations): Rename to
3378 rtl_value_profile_transformations.
3379 (struct value_prof_hooks): New.
3380 (rtl_value_prof_hooks): New.
3381 (rtl_register_value_prof_hooks): New.
3382 (tree_find_values_to_profile): New stub.
3383 (tree_value_profile_transformations): New stub.
3384 (tree_value_prof_hooks): New stub.
3385 (tree_register_value_prof_hooks): New stub.
3386 (find_values_to_profile): New.
3387 (value_profile_transformations): New.
3388 * value-prof.h: Add multiple inclusion guard.
3389 (struct histogram_value): Change rtx fields to void *.
3390 (rtl_register_value_prof_hooks): New declaration.
3391 (tree_register_value_prof_hooks): New declaration.
3392 (find_values_to_profile): New declaration.
3393 (free_profiled_values): New declaration.
3394 (value_profile_transformations): New declaration.
3395 (struct profile_hooks): New declaration.
3396 (init_branch_prob): Declaration moved from rtl.h.
3397 (branch_prob): Declaration moved from rtl.h.
3398 (end_branch_prob): Declaration mooved from rtl.h.
3399 (tree_register_profile_hooks): New declaration.
3400 (rtl_register_profile_hooks): New declaration.
3401 (tree_profile_hooks): New declaration.
3402 (rtl_profile_hooks): New declaration.
3403 * varasm.c: Include tree-mudflap.h.
3404 (TRAMPOLINE_ALIGNMENT): Remove.
3405 (make_decl_rtl): Call mudflap_enqueue_decl.
3406 (assemble_static_space):
3407 (assemble_trampoline_template): Set and return
3408 TRAMPOLINE_ALIGNMENT.
3409 * varray.c (element): Add GENERIC_PTR_NOGC entry.
3410 Add entry for 'tree *'.
3411 Add entry for struct edge_def *.
3412 (varray_copy): New.
3413 * varray.h (enum varray_data_enum): Add
3414 VARRAY_DATA_GENERIC_NOGC, VARRAY_DATA_EDGE and
3415 VARRAY_DATA_TREE_PTR.
3416 (union varray_data_tag): Corresponding changes.
3417 (VARRAY_GENERIC_PTR_NOGC_INIT, VARRAY_EDGE_INIT,
3418 VARRAY_TREE_PTR_INIT, VARRAY_GENERIC_PTR_NOGC,
3419 VARRAY_EDGE, VARRAY_TREE_PTR,
3420 VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_EDGE,
3421 VARRAY_PUSH_TREE_PTR, VARRAY_TOP_GENERIC_PTR_NOGC,
3422 VARRAY_TOP_EDGE, VARRAY_TOP_TREE_PTR): Define.
3423
3424 * config/*/*: Various updates for changed macros, tree
3425 codes, etc. Check ChangeLog.tree-ssa.
3426
3427 * doc/cfg.texi: New file.
3428 * doc/tree-ssa.texi: New file.
3429 * doc/c-tree.texi: Document new codes.
3430 * doc/gccint.texi: Include new files.
3431 * doc/install.texi: Document new features.
3432 * doc/invoke.texi: Document new switches.
3433 * doc/passes.texi: Document new passes.
3434 * doc/rtl.texi: Update changed RTL codes.
3435 * doc/sourcebuild.texi: Update build instructions.
3436 * doc/standards.texi: Document Fortran changes.
3437 * doc/tm.texi: Update.
3438
3439 2004-05-12 Paolo Bonzini <bonzini@gnu.org>
3440
3441 Replace several arrays with a struct of arrays.
3442 * combine.c (struct reg_stat): New.
3443 (init_reg_last_arrays): Renamed to...
3444 (init_reg_last): ...this. Callers adjusted.
3445 (reg_stat): New.
3446 (combine_instructions): Allocate it and use it.
3447 (reg_last_death, reg_last_set, reg_last_set_value,
3448 reg_last_set_label, reg_last_set_table_tick,
3449 reg_last_set_invalid, reg_nonzero_bits, reg_sign_bit_copies,
3450 reg_last_set_mode, reg_last_set_nonzero_bits,
3451 reg_last_set_sign_bit_copies): Replace throughout
3452 with items of reg_stat.
3453
3454 2004-05-11 Kaz Kojima <kkojima@gcc.gnu.org>
3455
3456 PR optimization/15100
3457 * combine.c (distribute_notes): Don't create a dangling
3458 REG_LIBCALL/REG_RETVAL note.
3459
3460 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
3461
3462 * config/rs6000/spe.md (spe_evneg): Rename to negv2si2.
3463
3464 * config/rs6000/rs6000.c (bdesc_1arg): Change spe_evneg to
3465 negv2si2.
3466
3467 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
3468
3469 * doc/md.texi (Standard Names): Fix typo in vec_init description.
3470
3471 2004-05-11 Geoffrey Keating <geoffk@apple.com>
3472
3473 * doc/gty.texi (GTY Options): Clarify example.
3474
3475 2004-05-11 Fariborz Jahanian <fjahanian@apple.com>
3476
3477 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
3478 Add const qualifier to altivec vector type if one is needed.
3479
3480 2004-05-11 Paul Brook <paul@codesourcery.com>
3481
3482 * flags.h (flag_short_enums): Update comment.
3483 * opts.c (decode_options): Set flag_short_enums to 2.
3484 * toplev.c (flag_short_enums): Update comment.
3485 (process_options): Call default_short_enums target hook.
3486
3487 2004-05-11 Andrew Pinski <pinskia@gcc.gnu.org>
3488
3489 PR target/14063
3490 * config/rs6000/altivec.md (altivec_dssall):
3491 Change to unspec_volatile.
3492 (altivec_dss): Likewise.
3493
3494 2004-05-10 Aldy Hernandez <aldyh@redhat.com>
3495
3496 * config/rs6000/altivec.md ("one_cmplv16qi2"): Change vnot to
3497 vnor.
3498 ("one_cmplv8hi2"): Same.
3499 ("one_cmplv4si2"): Same.
3500
3501 2004-05-10 Kaz Kojima <kkojima@gcc.gnu.org>
3502
3503 PR target/15130
3504 * config/sh/sh-protos.h (sh_expand_epilogue): Change prototype.
3505 * config/sh/sh.c (output_stack_adjust): Take the sibcall epilogue
3506 into account. Compute the correct number of general registers
3507 for the return value. Generate a special push/pop sequence when
3508 failing to get a temporary register for non SHmedia epilogue.
3509 (sh_expand_epilogue): Add an argument to show whether it's for
3510 sibcall or not. Set the 3rd argument of output_stack_adjust to
3511 -1 if needed.
3512 (sh_need_epilogue): Call sh_expand_epilogue with 0.
3513 * config/sh/sh.md (sibcall_epilogue): Call sh_expand_epilogue
3514 with 1.
3515 (epilogue): Call sh_expand_epilogue with 0.
3516
3517 2004-05-10 Andrew Pinski <pinskia@physics.uc.edu>
3518
3519 * gcse.c (eliminate_partially_redundant_loads): Instead of returning early,
3520 goto a cleanup label. After the cleanup, free the allocated memory.
3521
3522 2004-05-10 Ziemowit Laski <zlaski@apple.com>
3523
3524 * config/rs6000/altivec.h (vec_sld): Add overloads for
3525 argument/return types of 'vector bool int', 'vector bool short'
3526 and 'vector bool char'.
3527
3528 2004-05-10 Zack Weinberg <zack@codesourcery.com>
3529
3530 * c-decl.c (store_parm_decls_newstyle): Correct test for a
3531 nested function.
3532
3533 2004-05-10 Richard Sandiford <rsandifo@redhat.com>
3534
3535 * read-rtl.c (read_rtx): Allow 's' and 'T' strings to be omitted,
3536 treating missing ones as "".
3537 * config/mips/mips.md: Remove constraints from match_operands and
3538 match_scratches if they appear in define_expands (except reload*),
3539 define_peephole2s, define_splits or attribute specifications.
3540 * config/mips/7000.md, config/mips/sb1.md: Remove match_operand
3541 constraint strings.
3542
3543 2004-05-10 Alan Modra <amodra@bigpond.net.au>
3544
3545 * config/rs6000/rs6000.c (function_arg_boundary): Always align
3546 AltiVec vectors.
3547 (function_arg_advance): Pass TARGET_32BIT -mabi=no-altivec AltiVec
3548 vectors by refererence. Align the same for TARGET_64BIT to a 16
3549 byte boundary. Remove useless code. Add function comment.
3550 (function_arg): Similarly. Move gpr rs6000_mixed_function_arg
3551 call to where it belongs.
3552 (function_arg_partial_nregs): Return true for all TARGET_32BIT
3553 -mabi=no-altivec AltiVec vectors. Fix debug output.
3554 (rs6000_va_arg): Adjust for AltiVec change.
3555
3556 2004-05-10 Paul Brook <paul@codesourcery.com>
3557
3558 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
3559 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
3560 (TARGET_DOUBLEWORD_ALIGN): Use it.
3561 (WCHAR_TYPE): Define.
3562 (WCHAR_SIZE_TYPE): Define.
3563 (SIZE_TYPE): Define.
3564
3565 2004-05-10 Alan Modra <amodra@bigpond.net.au>
3566
3567 * config/rs6000/rs6000.c (function_arg_boundary): Align for ABI_V4
3568 when size is 8 bytes.
3569 (function_arg_advance): Account for stack space used by AltiVec
3570 args when -mabi=altivec. Simplify alignment calculations. For
3571 ABI_V4, pass AltiVec vectors by reference when -mabi=no-altivec.
3572 (function_arg): Similarly.
3573 (function_arg_pass_by_reference): True for ABI_V4 AltiVec when
3574 not AltiVec ABI.
3575 (rs6000_va_arg): Correct fp arg test. Adjust for AltiVec change.
3576 Correct alignment, and align before testing reg count. Remove
3577 TREE_THIS_VOLATILE from reg. Don't emit unused labels.
3578 (rs6000_complex_function_value): Check TARGET_HARD_FLOAT and
3579 TARGET_FPRS here..
3580 (rs6000_function_value): .. not here before call.
3581
3582 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
3583
3584 * config/rs6000/spe.md ("tstsflt_gpr"): Fix typo in unspec.
3585
3586 2004-05-09 Zack Weinberg <zack@codesourcery.com>
3587
3588 PR 15007
3589 * c-decl.c (current_file_decl): Rename to all_translation_units,
3590 adjust comment.
3591 (pop_scope): If popping file_scope, construct a
3592 TRANSLATION_UNIT_DECL and make it the context of all the
3593 symbols in the scope.
3594 (push_file_scope): Don't construct a TRANSLATION_UNIT_DECL here.
3595 (pushdecl): Clarify comment. Do not set DECL_CONTEXT of
3596 anything to current_file_decl.
3597 (pushdecl_top_level): Likewise.
3598 (store_parm_decls_newstyle): Adjust check for nested function.
3599 (c_write_global_declarations): Update for renamed variable.
3600
3601 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
3602
3603 * config/rs6000/rs6000-protos.h
3604 (rs6000_conditional_register_usage): Protoize.
3605
3606 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): New.
3607
3608 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Call
3609 function.
3610
3611 2004-05-08 Roger Sayle <roger@eyesopen.com>
3612
3613 * fold-const.c (fold_div_compare): New function to optimize X/C1 op C2
3614 where op is a comparison operator and C1 and C2 are integer constants
3615 into a range check.
3616 (fold): Call fold_div_compare.
3617
3618 2004-05-08 Eric Botcazou <ebotcazou@libertysurf.fr>
3619
3620 * doc/install.texi (sparc-sun-solaris2*): Document bootstrap
3621 problems with earlier versions of the GNU compiler.
3622
3623 2004-05-07 Aldy Hernandez <aldyh@redhat.com>
3624
3625 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
3626 Declare.
3627
3628 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): New.
3629 (rs6000_hard_regno_mode_ok): New.
3630 (rs6000_init_hard_regno_mode_ok): New.
3631 (rs6000_override_options): Call rs6000_init_hard_regno_mode_ok.
3632
3633 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Use precomputed
3634 result.
3635
3636 2004-05-07 Ziemowit Laski <zlaski@apple.com>
3637
3638 * config/rs6000/altivec.h (vector, pixel, bool): Do not
3639 define as macros #ifdef __APPLE_ALTIVEC__.
3640
3641 2004-05-07 Fariborz Jahanian <fjahanian@apple.com>
3642
3643 * config/rs6000/rs6000.c (rs6000_mixed_function_arg):
3644 Generate appropriate parallels for vector arguments
3645 passed to vararg functions. (function_arg): make the call
3646 to rs6000_mixed_function_arg for vector args as needed.
3647
3648 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
3649
3650 * config/mips/mips.c (mips_va_arg): Fix calculation of osize for
3651 EABI_FLOAT_VARARGS_P.
3652
3653 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
3654
3655 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY): Remove TARGET_MIPS5500.
3656 * config/mips/mips.c (override_options): Disable branch likely
3657 instructions if TUNE_MIPS5500.
3658
3659 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
3660
3661 * config/mips/mips.c (override_options): Allow the hi and lo registers
3662 to store any integral mode, not just MODE_INTs.
3663
3664 2004-05-07 Paul Brook <paul@codesourcery.com>
3665
3666 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
3667 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
3668 (TARGET_DOUBLEWORD_ALIGN): Use it.
3669 (WCHAR_TYPE): Define.
3670 (WCHAR_SIZE_TYPE): Define.
3671 (SIZE_TYPE): Define.
3672
3673 2004-05-07 Uros Bizjak <uros@kss-loka.si>
3674
3675 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Use
3676 testb $4, %ah insn instead of sahf insn if !TARGET_USE_SAHF.
3677
3678 2004-05-07 Andrew Pinski <pinskia@physics.uc.edu>
3679
3680 * loop-doloop.c (doloop_valid_p): Make sure that body
3681 gets freed.
3682
3683 2004-05-07 Eric Botcazou <ebotcazou@act-europe.fr>
3684
3685 * config/sparc/sparc-protos.h (sparc_skip_caller_unimp): New
3686 declaration.
3687 * config/sparc/sparc.c (SKIP_CALLERS_UNIMP_P): Delete.
3688 (sparc_skip_caller_unimp): New global variable.
3689 (sparc_function_epilogue): Set 'sparc_skip_caller_unimp'.
3690 Use it instead of SKIP_CALLERS_UNIMP_P.
3691 * config/sparc/sparc.md (call expander): Add sanity check.
3692 (call_address_struct_value_sp32): Re-sync with expander.
3693 (call_symbolic_struct_value_sp32): Likewise.
3694 (return peepholes): Use 'sparc_skip_caller_unimp' instead
3695 of custom predicate.
3696
3697 2004-05-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3698
3699 PR c++/14962
3700 * c-pragma.c (handle_pragma_redefine_extname): Only change
3701 the assembler name of FUNCTION_DECLs and VAR_DECLs.
3702
3703 2004-05-07 Uros Bizjak <uros@kss-loka.si>
3704
3705 * optabs.h (enum optab_index): Add new OTI_log1p.
3706 (log1p_optab): Define corresponding macro.
3707 * optabs.c (init_optabs): Initialize log1p_optab.
3708 * genopinit.c (optabs): Implement log1p_optab using log1p?f2
3709 patterns.
3710 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG1P{,F,L}
3711 using log1p_optab.
3712 (expand_builtin): Expand BUILT_IN_LOG1P{,F,L} using
3713 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
3714
3715 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2XP1.
3716
3717 * config/i386/i386.c (ix86_emit_i387_log1p): New function.
3718 * config/i386/i386-protos.h (ix86_emit_i387_log1p):
3719 Prototype here.
3720 * config/i386/i386.md (UNSPEC_FYL2XP1): New unspec to represent
3721 x87's fyl2xp1 instruction.
3722 (*fyl2x_xf3): Rename insn definition to fyl2x_xf3.
3723 (fyl2xp1_xf3): New pattern to implement fyl2xp1 x87 instruction.
3724 (log1psf2, log1pdf2, log1pxf2): New expanders to implement log1pf,
3725 log1p and log1pl built-ins as inline x87 intrinsics.
3726
3727 2004-05-07 Loren James Rittle <ljrittle@acm.org>
3728
3729 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Proper redefinition.
3730 * config/arm/freebsd.h: Likewise.
3731 * config/ia64/freebsd.h: Likewise.
3732 * config/sparc/freebsd.h: Likewise.
3733
3734 2004-05-07 Hans-Peter Nilsson <hp@axis.com>
3735
3736 PR optimization/15296
3737 * reorg.c (fill_simple_delay_slots): Use next_real_insn when
3738 getting last consecutive label at a branch.
3739 (relax_delay_slots): Similar, near top of loop.
3740
3741 2004-05-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3742
3743 PR target/15202
3744 * pa.md (movdi, movsi, movhi, movqi): Support move from shift amount
3745 register to general register.
3746
3747 2004-05-07 Alan Modra <amodra@bigpond.net.au>
3748
3749 * config/rs6000/rs6000.h (STACK_BOUNDARY): Use 128 bit for either
3750 TARGET_ALTIVEC or TARGET_ALTIVEC_ABI.
3751 * config/rs6000/sysv4.h (ABI_STACK_BOUNDARY): Likewise.
3752 (STACK_BOUNDARY): Delete.
3753
3754 2004-05-06 Stuart Hastings <stuart@apple.com>
3755
3756 * gcc/doc/invoke.texi: Restore -fgcse-after-reload doc from 1.421,
3757 mistakenly clobbered by 1.423.
3758
3759 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
3760
3761 * doc/invoke.texi: Document -mvr4130-align.
3762 * config/mips/mips.h (MASK_VR4130_ALIGN, TARGET_VR4130_ALIGN)
3763 (TUNE_MIPS4120, TUNE_MIPS4130): New macros.
3764 (TUNE_MACC_CHAINS): Include TUNE_MIPS4120 and TUNE_MIPS4130.
3765 (TARGET_SWITCHES): Add -mvr4130-align and -mno-vr4130-align.
3766 * config/mips/mips.md: Include sched-int.h.
3767 (USEFUL_INSN_P, SEQ_BEGIN, SEQ_END, FOR_EACH_SUBINSN): New macros.
3768 (mips_rtx_costs): Set integer multiplication costs for TUNE_MIPS4130.
3769 (override_options): Enable -mvr4130-align at -O3 and above.
3770 (mips_sim_insn): New variable.
3771 (mips_sim): New structure.
3772 (mips_sim_reset, mips_sim_init, mips_sim_next_cycle, mips_sim_wait_reg)
3773 (mips_sim_wait_regs_2, mips_sim_wait_regs_1, mips_sim_wait_regs)
3774 (mips_sim_wait_units, mips_sim_wait_insn, mips_sim_record_set)
3775 (mips_sim_issue_insn, mips_sim_issue_nop, mips_sim_finish_insn)
3776 (vr4130_avoid_branch_rt_conflict, vr4130_align_insns): New functions.
3777 (mips_reorg): Call vr4130_align_insns.
3778 (vr4130_last_insn): New variable.
3779 (vr4130_true_reg_dependence_p_1, vr4130_true_reg_dependence_p)
3780 (vr4130_swap_insns_p, vr4130_reorder): New functions.
3781 (mips_sched_reorder, mips_variable_issue): Hook in vr4130 code.
3782 (mips_issue_rate): Return 2 for PROCESSOR_R4130.
3783 (mips_use_dfa_pipeline_interface): Return true for the same.
3784 * config/mips/4130.md: New file.
3785 * config/mips/mips.md: Include it. Add a peephole2 to convert
3786 "mult;mflo" into "mtlo;macc".
3787 (*macc, *umul_acc_di, *smul_acc_di): Use $1 rather than $0 as the
3788 target of maccs.
3789 (*msac_using_macc): New pattern.
3790
3791 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
3792
3793 * config/mips/5500.md (ir_vr55_store): Set latency to 0.
3794 (ir_vr55_hilo): Split into...
3795 (ir_vr55_mfhilo, ir_vr55_mthilo): ...these new reservations.
3796 (ir_vr55_imul_si, ir_vr55_imadd): Change latency to 5.
3797 (ir_vr55_imul_di): Change latency to 9. Reserve vr55_mac for 4 cycles.
3798 Add various multiplication bypasses.
3799 * config/mips/mips.c (mips_rtx_costs): Adjust VR5500 costs for integer
3800 multiplication.
3801
3802 2004-05-06 Uros Bizjak <uros@kss-loka.si>
3803
3804 * config/i386/i386.md (*fscalexf4): Correct insn "mode"
3805 attribute to "XF".
3806
3807 2004-05-05 Uros Bizjak <uros@kss-loka.si>
3808
3809 * optabs.h (enum optab_index): Add new OTI_fmod and OTI_drem.
3810 (fmod_optab, drem_optab): Define corresponding macros.
3811 * optabs.c (init_optabs): Initialize fmod_optab and drem_optab.
3812 * genopinit.c (optabs): Implement fmod_optab and drem_optab
3813 using fmod?f3 and drem?f3 patterns.
3814 * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_FMOD{,F,L}
3815 using fmod_optab and BUILT_IN_DREM{,F,L} using drem_optab.
3816 (expand_builtin): Expand BUILT_IN_FMOD{,F,L} and
3817 BUILT_IN_DREM{,F,L} using expand_builtin_mathfn_2 if
3818 flag_unsafe_math_optimizations is set.
3819
3820 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FPREM_F,
3821 UNSPEC_FPREM_U, UNSPEC_FPREM1_F and UNSPEC_FPREM1_U.
3822
3823 * config/i386/i386.c (ix86_emit_fp_unordered_jump): New function.
3824 * config/i386/i386-protos.h (ix86_emit_fp_unordered_jump):
3825 Prototype here.
3826 * config/i386/i386.md (UNSPEC_FPREM_F, UNSPEC_FPREM_U,
3827 UNSPEC_FPREM1_F, UNSPEC_FPREM1_U): New unspecs to represent x87's
3828 fprem and fprem1 instructions.
3829 (*x86_fnstsw_1): Change input parameter to (reg:CCFP 18).
3830 Rename insn definition to x86_fnstsw_1.
3831 (fpremxf4, fprem1xf4): New patterns to implement fprem and fprem1
3832 x87 instructions.
3833 (fmodsf3, fmoddf3, fmodxf3): New expanders to implement fmodf, fmod
3834 and fmodl built-ins as inline x87 intrinsics.
3835 (dremsf3, dremdf3, dremxf3): New expanders to implement dremf, drem
3836 and dreml built-ins as inline x87 intrinsics.
3837
3838 2004-05-05 Roger Sayle <roger@eyesopen.com>
3839
3840 * reload1.c (inherit_piecemeal_p): Mark parameters potentially unused.
3841
3842 2004-05-05 Ian Lance Taylor <ian@wasabisystems.com>
3843
3844 PR driver/9822
3845 * doc/invoke.texi (Spec Files): Remove documentation of %c.
3846
3847 2004-05-05 Chris Demetriou <cgd@broadcom.com>
3848
3849 * config/mips/mips.md: Update the msub define_split for new mflo/mfhi
3850 representation.
3851
3852 2004-05-06 Paul Brook <paul@codesourcery.com>
3853
3854 * config/arm/arm-protots.h (vfp_mem_operand): Rename ...
3855 (arm_coproc_mem_operand): ... To this.
3856 * config/arm/arm.c (arm_legitimate_address_p): Allow ldrd modes.
3857 (arm_legitimate_index_p): Ditto.
3858 (vfp_mem_operand): Rename ...
3859 (arm_coproc_mem_operand): ... To this. Handle writeback modes.
3860 (vfp_secondary_reload_class): Use it.
3861 (output_move_double): Use doubleword load/store instructions.
3862 (arm_hard_regno_mode_ok): Only allow even reg pairs for ldrd.
3863 * config/arm/arm.h (TARGET_LDRD): Define.
3864 (EXTRA_CONSTRAINT_STR_ARM): Add 'Uy'.
3865 * config/gcc/arm/arm.md (arm_movdi): Allow all valid memory operands.
3866 New splitter for invalid doubleword loads.
3867 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Use Uy constraint.
3868 * config/arm/vfp.md (arm_movdi_vfp): Allow all valid memory operands.
3869 * doc/md.texi: Document Uy constraint.
3870
3871 2004-05-05 Jan Hubicka <jh@suse.cz>
3872
3873 PR opt/14980
3874 * cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
3875 inline clones.
3876
3877 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
3878
3879 PR target/15290
3880 * config/i386/i386.c (ix86_split_to_parts): Use real_to_target
3881 instead of REAL_VALUE_TO_TARGET_LONG_DOUBLE.
3882
3883 2004-05-05 Mike Stump <mrs@apple.com>
3884
3885 * config/darwin-c.c (add_framework): Copy the directory name as it
3886 can be freed later. Also, ensure we always allocate enough room
3887 for the cached framework information.
3888 (find_subframework_header): Keep track of the directory where the
3889 subframework header was found.
3890 (framework_construct_pathname): Speed up by not trying to re-add a
3891 framework.
3892 * cppfiles.c (search_path_exhausted): Arrange for the missing
3893 header callback to be able to set the directory where the header
3894 was found.
3895 (cpp_get_dir): Add.
3896 * cpplib.h (missing_header_cb): Add a parameter.
3897 (cpp_get_dir): Add.
3898
3899 2004-05-03 Mike Stump <mrs@apple.com>
3900
3901 * doc/invoke.texi (Directory Options): Document -iquote.
3902 * doc/cpp.texi: Likewise.
3903 * doc/cppopts.texi: Likewise.
3904 * c-opts.c (c_common_missing_argument): Add -iquote processing.
3905 (c_common_handle_option): Likewise.
3906 * c.opt (iquote): Add.
3907 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -iquote.
3908 * c-incpath.c (merge_include_chains): Update comment to use -iquote.
3909
3910 * c-opts.c (case OPT_I): Deprecate -I- support.
3911 * doc/invoke.texi: Likewise.
3912 * doc/cpp.texi: Likewise.
3913 * doc/cppopts.texi: Likewise.
3914
3915 2004-05-05 Steven Bosscher <stevenb@suse.de>
3916
3917 * basic-block.h (free_basic_block_vars): Update prototype.
3918 * flow.c (free_basic_block_vars): Remove the keep_head_end_p
3919 argument.
3920 (life_analysis): Update call.
3921 * ifcvt.c (if_convert): Likewise.
3922 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
3923 * passes.c (rest_of_handle_final): Likewise.
3924 (rest_of_compilation): Likewise.
3925 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3926
3927 * emit-rtl.c (next_real_insn): Use INSN_P.
3928 (prev_real_insn): Likewise.
3929
3930 2004-05-05 Eric Christopher <echristo@redhat.com>
3931
3932 * config/mips/mips.md: Update the madd define_split for new mflo/mfhi
3933 representation.
3934
3935 2004-05-05 Paolo Bonzini <bonzini@gnu.org>
3936
3937 * config/rs6000/rs6000.c (build_opaque_vector_type):
3938 New function.
3939 (rs6000_init_builtins): Use it.
3940
3941 2004-05-04 Bernard Giroud <bgiroud2@free.fr>
3942
3943 * gcc/gcc/vmsdbgout.c (vms_func_node, vms_func_ref): New.
3944 (func_table): Change type from char ** to vms_func_ref.
3945 (write_rtnbeg): Update to reflect func_table change. Use
3946 fde->funcdef_number instead of rtnnum in output.
3947 (write_rtnend, vmxdbgout_begin_function, vmsdbgout_init): Likewise.
3948
3949 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
3950 Richard Henderson <rth@redhat.com>
3951
3952 PR target/14899
3953
3954 * c-common.c (vector_types_convertible_p): New function.
3955 * c-typeck.c (comptypes): Recurse on vector types.
3956 (convert_for_assignment): Use vector_types_convertible_p.
3957 (digest_init): Use vector_types_convertible_p to check
3958 validness of constant vector initializers; otherwise treat
3959 them as scalars.
3960 * tree.c (make_or_reuse_type): New.
3961 (build_common_tree_nodes): Use it.
3962 * cp/call.c (standard_conversion): Likewise.
3963 * cp/typeck.c (comptypes): Recurse on vector types.
3964 (convert_for_assignment): Use vector_types_convertible_p.
3965
3966 2004-05-04 Chris Demetriou <cgd@broadcom.com>
3967
3968 * config/mips/mips.c (override_options): Default to no
3969 generation of branch-likely operations when tuning for
3970 CPUs where they tend to have a negative performance impact
3971 (e.g., SB-1).
3972
3973 2004-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3974
3975 * expr.c (store_constructor_field): Don't call store_constructor
3976 if bitsize is not a multiple of a byte.
3977
3978 2004-05-04 Richard Sandiford <rsandifo@redhat.com>
3979
3980 * reload1.c (inherit_piecemeal_p): New function.
3981 (emit_reload_insns): When reloading a group of hard registers, use
3982 inherit_piecemeal_p to decide whether the values of individual hard
3983 registers can be inherited.
3984
3985 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
3986
3987 * config/ia64/t-ia64 (LIB2ADDEH): Remove gthr-gnat.c.
3988 * config/s390/t-tpf (LIB2ADDEHDEP): Likewise.
3989 * config/t-linux (LIB2ADDEHDEP): Likewise.
3990
3991 2004-05-04 Paul Brook <paul@codesourcery.com>
3992
3993 * config/arm/crti.asm: Push an even number of registers.
3994 * config/arm/crtn.asm: And restore them. Load via sp.
3995
3996 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
3997
3998 * ggc-zone.c (ggc_alloc_zone_1): Add MEM_STAT_DECL parameter.
3999 Collect overhead information.
4000 (ggc_alloc_stat): New name of ggc_alloc. Add MEM_STAT_DECL
4001 parameter and pass it through.
4002 (ggc_alloc_typed_stat): New name of ggc_alloc_typed. Add
4003 MEM_STAT_DECL parameter and pass it through.
4004 (ggc_alloc_zone_stat): New name of ggc_alloc_zone. Add
4005 MEM_STAT_DECL parameter and pass it through.
4006
4007 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
4008
4009 * config/rs6000/rs6000-protos.h: Protoize rs6000_hard_regno_nregs.
4010
4011 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): New.
4012
4013 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Call
4014 rs6000_hard_regno_nregs.
4015
4016 2004-05-03 Eric Christopher <echristo@redhat.com>
4017
4018 * config/s390/s390.c (s390_emit_prologue): Call unspec tpf
4019 prologue insn instead of setting up call.
4020 (s390_emit_epilogue): Ditto.
4021 * config/s390/s390.md (prologue_tpf, epilogue_tpf): New patterns.
4022 (define_constants): Add numbers for above patterns.
4023
4024 2004-05-03 Eric Christopher <echristo@redhat.com>
4025
4026 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Move body...
4027 * config/s390/s390.c (s390_conditional_register_usage): ...here.
4028 * config/s390/s390-protos.h: Prototype.
4029
4030 2004-05-03 Joe Buck <jbuck@welsh-buck.org>
4031
4032 * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
4033 assignment.
4034
4035 2004-05-03 Eric Christopher <echristo@redhat.com>
4036
4037 * config/mips/mips.md: Fix branch length attribute definition.
4038
4039 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
4040
4041 * config.gcc: Remove --enable-altivec support.
4042
4043 * config/rs6000/altivec-defs.h: Remove.
4044
4045 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4046
4047 * fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6.
4048 * fixinc/fixincl.x: Regenerate.
4049
4050 2004-05-03 Uros Bizjak <uros@kss-loka.si>
4051
4052 * config/i386/i386.md (*fyl2x_sfxf3, *fyl2x_dfxf3): Remove insn
4053 definition.
4054 (log?f2, log10?f2, log2?f2): Reimplement expanders with
4055 float_truncate insn.
4056 (*fxtractsf3, *fxtractdf3): Remove insn definition.
4057 (logb?f2): Reimplement expanders with float_truncate insn.
4058
4059 2004-05-03 Graham Stott <graham.stott@btinternet.com>
4060
4061 PR 14718
4062 * dwarf2out.c (dwarf2out_imported_module_or_decl): Use
4063 force_type_die for CONST_DECL.
4064
4065 2004-05-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4066 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4067
4068 * config.gcc (sparc64-*-solaris2*, sparcv9-*-solaris2*): Add
4069 tm-dwarf2.h to tm_file.
4070 (sparc-*-solaris2*): Add tm-dwarf2.h to tm_file for Solaris 7+.
4071 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Delete.
4072 (ASM_DEBUG_SPEC): Delete.
4073
4074 2004-05-03 Uros Bizjak <uros@kss-loka.si>
4075
4076 * optabs.h (enum optab_index): Add new OTI_expm1.
4077 (expm1_optab): Define corresponding macro.
4078 * optabs.c (init_optabs): Initialize expm1_optab.
4079 * genopinit.c (optabs): Implement expm1_optab using expm1?f2
4080 patterns.
4081 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
4082 using expm1_optab.
4083 (expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
4084 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
4085
4086 * config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
4087 to implement expm1, expm1f and expm1l built-ins as inline x87
4088 intrinsics.
4089
4090 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
4091
4092 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
4093 * config/frv/frv.md (*return_true, *return_false): New patterns.
4094
4095 2004-05-02 Kazu Hirata <kazu@cs.umass.edu>
4096
4097 * rtl.h (PHI_NODE_P): Remove.
4098
4099 2004-05-02 Eric Botcazou <ebotcazou@act-europe.fr>
4100
4101 PR middle-end/14988
4102 * function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
4103 when passed -2 as 'align'.
4104 (put_var_into_stack): Use 'bool' as the type for the three local
4105 predicates. Adjust calls to put_reg_into_stack.
4106 When passed a CONCAT, instruct put_reg_into_stack to use
4107 a consecutive stack slot for the second part.
4108 (put_reg_into_stack): Remove 'promoted_mode' parameter, add
4109 'consecutive_p' parameter. Turn the three predicates into 'bool'
4110 parameters. Retrieve the register mode from 'reg'.
4111 When consecutive_p is true, instruct assign_stack_local_1 to use
4112 BITS_PER_UNIT alignment.
4113 (put_addressof_into_stack): Use 'bool' as the type for the two
4114 local predicates. Adjust call to put_reg_into_stack.
4115
4116 2004-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4117
4118 * fold-const.c (fold_convert_const, fold): Add missing
4119 FIX_ROUND_EXPR case.
4120
4121 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
4122
4123 * configure.ac (FLEX, BISON): Only use tools from the build tree
4124 if build equals host.
4125 * configure: Rebuilt.
4126
4127 * config/frv/frv-protos.h (frv_expand_epilogue,
4128 frv_expand_fdpic_call): Add bool argument.
4129 * config/frv/frv.c (frv_function_ok_for_sibcall): New.
4130 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to it.
4131 (frv_expand_epilogue): Use new argument to decide whether to emit
4132 return instruction or copy the return address to LR.
4133 (frv_expand_fdpic_call): Inline PLT entry when emitting direct
4134 sibcalls.
4135 (sibcall_operand): New.
4136 * config/frv/frv.h (PREDICATE_CODES): call_operand doesn't match
4137 PLUS nor LABEL_REF. Add sibcall_operand.
4138 * config/frv/frv.md (call, call_value): Pass false to
4139 frv_expand_fdpic_call.
4140 (call_fdpicdi, call_value_fdpicdi): Insert %i0 in calll.
4141 (sibcall, sibcall_internal, sibcall_fdpicdi, sibcall_value,
4142 sibcall_value_internal, sibcall_value_fdpicdi): New.
4143 (return_unsigned_true, return_unsigned_false): New.
4144 (epilogue): Adjust call to frv_expand_epilogue.
4145 (sibcall_epilogue): New.
4146
4147 * config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
4148 (CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
4149 before redefining them.
4150
4151 2004-05-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4152
4153 * builtins.c (fold_fixed_mathfn): New function.
4154 (fold_builtin_lround, fold_builtin): Use it.
4155
4156 2004-05-01 Jakub Jelinek <jakub@redhat.com>
4157
4158 * config/sparc/linux64.h (TARGET_DEFAULT): Make 64-bit by default
4159 also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.
4160
4161 2004-05-01 Kazu Hirata <kazu@cs.umass.edu>
4162
4163 * config/cris/cris.h: Revert my "fix comment typos" patch.
4164
4165 2004-05-01 Richard Sandiford <rsandifo@redhat.com>
4166
4167 * config/mips/mips.h (TUNE_MACC_CHAINS): Fix comment.
4168
4169 2004-05-01 Falk Hueffner <falk@debian.org>
4170
4171 * config/alpha/alpha.md (builtin_insbl, builtin_inswl,
4172 builtin_insll): Disallow 0 as first input operand.
4173
4174 2004-05-01 Falk Hueffner <falk@debian.org>
4175
4176 * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
4177
4178 2004-05-01 Ulrich Weigand <uweigand@de.ibm.com>
4179
4180 PR middle-end/15054
4181 * expr.c (expand_expr_real): Do not call preserve_temp_slots
4182 on a TARGET_EXPR temp.
4183 * function.c (assign_stack_temp_for_type): Set 'keep' flag for
4184 TARGET_EXPR temp slots.
4185
4186 2004-05-01 Paolo Bonzini <bonzini@gnu.org>
4187
4188 * simplify-rtx.c (simplify_ternary_operation): When
4189 converting an IF_THEN_ELSE to a relational op, return
4190 correct mode.
4191
4192 2004-04-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4193
4194 * builtins.c (fold_builtin_round): Fix comment typo.
4195 (fold_builtin_lround): New function.
4196 (fold_builtin): Use it.
4197
4198 2004-04-20 Andrew Pinski <pinskia@physics.uc.edu>
4199
4200 PR target/11608
4201 * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it
4202 more like the one in config/dbxelf.h.
4203
4204 2004-04-30 Zack Weinberg <zack@codesourcery.com>
4205
4206 * tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
4207 and adjust definition accordingly.
4208 (TYPE_DOMAIN): Allow only SET_TYPE and ARRAY_TYPE.
4209 (TYPE_DEBUG_REPRESENTATION_TYPE): Allow only VECTOR_TYPE.
4210 * expr.c (store_constructor): Do not access TYPE_DOMAIN of a
4211 VECTOR_TYPE.
4212
4213 2004-04-30 Jason Merrill <jason@redhat.com>
4214
4215 PR c++/14587
4216 * config/i386/winnt.c (associated_type): Look for attributes on
4217 the TYPE_MAIN_VARIANT of *this.
4218 * attribs.c (decl_attributes): If ATTR_FLAG_TYPE_IN_PLACE, also
4219 apply the attributes to the variants.
4220
4221 2004-04-30 Paul Brook <paul@codesourcery.com>
4222
4223 * config.gcc: Simplify arm --with-{cpu,tune} test.
4224 * config/arm/arm-cores.def: Document whitespace restrictions.
4225
4226 2004-04-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4227
4228 PR other/1963
4229 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Define.
4230
4231 2004-04-30 Brian Ford <ford@vss.fsi.com>
4232 DJ Delorie <dj@redhat.com>
4233
4234 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
4235 (DWARF2_DEBUGGING_INFO): Define to enable.
4236 (DBX_REGISTER_NUMBER): Define to use the svr4 register map for
4237 DWARF2.
4238 * configure.ac (Target-specific assembler checks)
4239 <i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
4240 relocs.
4241 * configure: Regenerate.
4242 * config.in: Likewise.
4243
4244 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
4245 (ASM_OUPUT_DWARF_OFFSET): Define.
4246
4247 2004-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
4248
4249 * config/s390/s390-protos.h (s390_emit_epilogue): Parameter added.
4250 (s390_emit_call): New function prototype added.
4251 (s390_tls_get_offset): Function removed.
4252 * config/s390/s390.c (s390_function_ok_for_sibcall,
4253 s390_call_saved_register_used_p): New functions.
4254 (TARGET_FUNCTION_OK_FOR_SIBCALL): Definition of target macro added.
4255 (s390_tls_get_offset): Function merged into s390_emit_tls_call_insn.
4256 (s390_emit_tls_call_insn): New function.
4257 (legitimize_tls_address): Call s390_emit_tls_call_insn instead of
4258 emit_call_insn.
4259 (s390_emit_prologue): Use s390_emit_call instead of emit_call_insn.
4260 (s390_emit_epilogue): Like s390_emit_prologue. Parameter for sibcalls
4261 added.
4262 * config/s390/s390.h (SIBCALL_REGNUM): New macro representing the
4263 register number used to hold the target address for sibcalls.
4264 * config/s390/s390.md ("sibcall", "sibcall_value", "sibcall_epilogue"):
4265 New expanders.
4266 ("*sibcall_br", "*sibcall_brc", "*sibcall_brcl", "*sibcall_value_br",
4267 "*sibcall_value_brc", "*sibcall_value_brcl"): New insns.
4268 ("call_exp", "call_value_exp", "call_value_tls", "call_value_tls_exp"):
4269 Expanders removed.
4270 ("call", "call_value"): Call s390_emit_call to emit the call patterns.
4271 ("*bras", "*brasl", "*bras_r", "*brasl_r", "*bras_tls", "*brasl_tls",
4272 "*basr", "*basr_r", "*basr_tls"): Added constraint: !SIBLING_CALL_P.
4273 ("epilogue"): Changed the call to s390_emit_epilogue to use the
4274 new parameter.
4275
4276 2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
4277
4278 * bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,
4279 cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c,
4280 reg-stack.c, varasm.c, config/alpha/ev4.md,
4281 config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c,
4282 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c,
4283 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
4284 config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c,
4285 config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c,
4286 config/ia64/itanium2.md, config/ip2k/ip2k.c,
4287 config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md,
4288 config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix
4289 comment typos.
4290
4291 2004-04-30 Paul Brook <paul@codesourcery.com>
4292
4293 * config.gcc: Default ep9312 to hard-float.
4294 * config/arm/arm-cores.def: Add ARCH field.
4295 * config/arm/arm.c (FL_FOR_ARCH*): Define.
4296 (arm_arch_cirrus): New variable.
4297 (all_cores): Set and use arch.
4298 (all_architectures): Ditto.
4299 (arm_arch_name): New variable.
4300 (arm_override_options): Set it. Use [SUB]TARGET_CPU_DEFAULT.
4301 Set and use arm_arch_cirrus.
4302 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set arch defines.
4303 (enum processor_type): Update ARM_CORE define.
4304 (enum target_cpus): Add. Replaces TARGET_CPU_* defines.
4305 (CPP_SPEC): Remove %(cpp_cpu_arch).
4306 (CPP_ARCH_DEFAULT_SPEC): Remove.
4307 (CPP_CPU_ARCH_SPEC): Remove.
4308 (EXTRA_SPECS): Don't use CPP_*ARCH*_SPEC.
4309 (FPUTYPE_DEFAULT): Don't define here.
4310
4311 2004-04-30 J"orn Rennecke <joern.rennecke@superh.com>
4312
4313 * flow.c (propagate_one_insn): Call mark_set_regs for stack pointer
4314 updates too.
4315
4316 2004-04-30 Paul Brook <paul@codesourcery.com>
4317
4318 * arm.c (arm_needs_doubleword_align): Use mode alignment.
4319
4320 2004-04-30 Paolo Bonzini <bonzini@gnu.org>
4321
4322 * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
4323 vec_sububs.
4324 [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
4325 duplicates.
4326
4327 2004-04-30 Uros Bizjak <uros@kss-loka.si>
4328
4329 * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
4330 atan2?f3 expanders.
4331
4332 2004-04-29 Nick Clifton <nickc@redhat.com>
4333
4334 Bug 14093
4335 * config/sh/sh-protos.h (sh_promote_prototypes): Declare.
4336 * config/sh/sh.c (sh_promote_prototypes): Remove declaration.
4337 Delete static from definition.
4338 * config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.
4339
4340 2004-04-30 Uros Bizjak <uros@kss-loka.si>
4341
4342 * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
4343 UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
4344 <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
4345 <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
4346
4347 2004-04-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
4348
4349 * commom.opt (Wfatal-errors): Add it.
4350 * diagnostic.c (flag_fatal_errors): Define it.
4351 (diagnostic_action_after_output): Check for flag_fatal_errors.
4352 * flags.h (flag_fatal_errors): Declare it.
4353 * opts.c (common_handle_option): Add OPT_Wfatal_errors.
4354 * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
4355
4356 2004-04-30 Josef Zlomek <zlomekj@suse.cz>
4357
4358 * gcse.c (remove_reachable_equiv_notes): Delete notes also in
4359 blocks which have kill flag set.
4360
4361 2004-04-29 Ben Elliston <bje@au.ibm.com>
4362
4363 * configure.ac (--with-as): Abort if user-supplied assembler
4364 cannot be executed.
4365 (--with-ld): Likewise for the linker.
4366 * configure: Regenerate.
4367
4368 2004-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4369
4370 * convert.c (convert_to_integer): Ensure `long_integer_type_node'
4371 isn't NULL before using it.
4372
4373 2004-04-29 Richard Sandiford <rsandifo@redhat.com>
4374
4375 PR target/15189
4376 * config/mips/mips.md (load_df_low): Use default length.
4377 (load_df_high, store_df_high): Likewise.
4378
4379 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
4380
4381 * config/mips/mips.md, config/mips/sb1.md,
4382 config/rs6000/rs6000.c: Fix comment typos.
4383
4384 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
4385
4386 * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
4387 Fix comment typos.
4388
4389 2004-04-29 Douglas B Rupp <rupp@gnat.com>
4390
4391 * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
4392 (delete_if_ordinary): Use above macro.
4393 * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
4394 Update copyright.
4395 * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
4396
4397 2004-04-29 Richard Earnshaw <rearnsha@arm.com>
4398
4399 * c-decl.c (get_parm_info): Use the correct tag keywords when
4400 warning about type declarations in prototypes.
4401
4402 2004-04-29 Paul Brook <paul@codesourcery.com>
4403
4404 * config.gcc: Pull list of cores from arm-cores.def.
4405
4406 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
4407
4408 * combine.c (combine_simplify_rtx): Adjust call to use
4409 simplify_relational_operation. Do not use SELECT_CC_MODE
4410 when a comparison already has a MODE_CC mode.
4411
4412 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
4413
4414 (simplify_set): simplify_relational_operation may now
4415 return another relational expression.
4416 * cse.c (fold_rtx): simplify_relational_operation now
4417 takes of computing the comparison mode.
4418 * dojump.c (compare_from_rtx): Use simplify_relational_operation,
4419 remove dead code.
4420 (do_compare_rtx_and_jump): Likewise.
4421 * integrate.c (subst_constants): simplify_relational_operation
4422 may now return another relational expression.
4423 * simplify-rtx.c (simplify_gen_relational): Move most code to
4424 the new simplify_relational_operation and
4425 simplify_relational_operation_1 functions.
4426 (simplify_relational_operation): Rewritten.
4427 (simplify_relational_operation_1): New function.
4428 (simplify_ternary_operation): simplify_relational_operation
4429 may now return another relational expression.
4430 (simplify_rtx): Remove unnecessary temp variable.
4431
4432 2004-04-29 Uros Bizjak <uros@kss-loka.si>
4433
4434 * reg-stack.c (swap_to_top): New function.
4435 (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
4436 swap_to_top().
4437 (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
4438 (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
4439 UNSPEC_FSCALE_EXP.
4440
4441 * config/i386/i386.md (UNSPEC_FSCALE): Remove.
4442 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
4443 (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
4444 x87's fscale insn.
4445 (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
4446 (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
4447 patterns.
4448
4449 2004-04-28 Serge Belyshev <1319@bot.ru>
4450
4451 PR 14944
4452 * coverage.c (read_counts_file): Fix usage of warning () call.
4453 * pretty-print.c (pp_base_format_text): Fix typo in the comment.
4454
4455 2004-04-28 Ben Elliston <bje@au.ibm.com>
4456
4457 * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
4458 options with "-" in the option index.
4459 (SPARC Options): Likewise.
4460 (M32R/D Options): Likewise.
4461
4462 2004-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4463
4464 * convert.c (convert_to_integer): Convert (long)round -> lround,
4465 etc.
4466
4467 2004-04-28 Andrew Pinski <pinskia@physics.uc.edu>
4468
4469 * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
4470 Return false if we do not have fp register.
4471 (addrs_ok_for_quad_peep): Rename to ...
4472 (mems_ok_for_quad_peep): this.
4473 Add check for volatile memory.
4474 * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
4475 Rename to ...
4476 (mems_ok_for_quad_peep): this.
4477 * config/rs6000/rs6000.md: Change peephole's for lfq/stq
4478 to peephole2's.
4479 (lfq_power2): New instruction.
4480 (stfq_power2): Likewise.
4481
4482 2004-04-28 Jan Hubicka <jh@suse.cz>
4483
4484 PR c/15004
4485 * function.c (do_warn_unused_parameter): Break out form ...
4486 (expand_function_end): ... here; warn only when not using cgraphunit.
4487 * function.h (do_warn_unused_parameter): Declare.
4488 * cgraphunit.c: Include function.h.
4489 (cgraph_finalize_function): Do unused parameter warning.
4490 * Makefile.in (cgraphunit.o): Depend on function.h
4491
4492 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
4493
4494 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
4495 calling install-info on $(DESTDIR)$(infodir)/dir already being
4496 present.
4497
4498 2004-04-28 Paul Brook <paul@codesourcery.com>
4499
4500 * dwarf2out.c (mem_loc_descriptor): Handle shifts.
4501
4502 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4503
4504 * gcse.c (find_moveable_store): Do not accept store insns with
4505 REG_EH_REGION note.
4506
4507 2004-04-28 Paul Brook <paul@codesourcery.com>
4508
4509 * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
4510 * function.c (assign_temp): Ditto.
4511 * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
4512
4513 2004-04-28 Paul Brook <paul@codesourcery.com>
4514
4515 * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
4516
4517 2004-04-28 Josef Zlomek <zlomekj@suse.cz>
4518
4519 * var-tracking.c (variable_different_p): Add a parameter
4520 compare_current_location, compare current location of variable parts
4521 if it is true.
4522 (dataflow_set_different_1): Pass compare_current_location == false.
4523 (dataflow_set_different_2): Pass compare_current_location == false.
4524 (emit_notes_for_differences_1): Pass compare_current_location == true.
4525
4526 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4527
4528 * config/s390/s390.md ("casesi"): Mark jump table access as
4529 non-trapping and unchanging.
4530
4531 2004-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4532
4533 PR debug/14829
4534 * dwarf2out.c (reg_number): Rename to dbx_reg_number. Adjust all
4535 callers.
4536 (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
4537 number for indexing hard_regno_nregs array.
4538
4539 2004-04-27 Geoffrey Keating <geoffk@apple.com>
4540
4541 * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
4542 * config/darwin-crt2.c: Only have contents on __ppc__.
4543
4544 2004-04-27 Bob Wilson <bob.wilson@acm.org>
4545
4546 * config/xtensa/xtensa.c (call_insn_operand): Check
4547 SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
4548 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
4549 * config/xtensa/xtensa.md (call, call_value): Likewise.
4550
4551 2004-04-27 Wu Yongwei <adah@sh163.net>
4552
4553 * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
4554 (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
4555 (__gthread_mutex_init_function): Replace CreateMutex with
4556 initialization of custom mutex using CreateSemaphore.
4557 (__gthread_mutex_lock): Use InterlockedIncrement.
4558 (__gthread_mutex_trylock): Use InterlockedCompareExchange.
4559 (__gthread_mutex_unlock): Use InterlockedDecrement and
4560 ReleaseSemaphore to unlock
4561 * config/i386/gthr-win32.c (__gthread_mutex_init_function,
4562 __gthread_mutex_lock, __gthread_mutex_trylock,
4563 __gthread_mutex_unlock): Adjust to match inline versions in
4564 gthr-win32.h.
4565
4566 2004-04-27 Paul Brook <paul@codesourcery.com>
4567
4568 * config/arm/arm.c (arm_promote_prototypes): New function.
4569 (TARGET_PROMOTE_PROTOTYPES): Use it.
4570
4571 2004-04-27 Paul Brook <paul@codesourcery.com>
4572
4573 * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
4574
4575 2004-04-26 Bernard Giroud <bgiroud@free.fr>
4576
4577 * config/alpha.c (alpha_end_function): For OpenVMS gas,
4578 correctly output .pdesc directive before .end.
4579
4580 2004-04-26 James E Wilson <wilson@specifixinc.com>
4581
4582 Bug 14927
4583 * config/ia64/ia64.md (movxf): New local op0. Handle case where
4584 operands[0] is a SUBREG. Handle case where operands[1] is a GR reg.
4585
4586 2004-04-26 Zack Weinberg <zack@codesourcery.com>
4587
4588 * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
4589 * config/pa/pa-hpux10.h: Likewise.
4590 * config/pa/pa-hpux11.h: Likewise.
4591
4592 2004-04-26 Geoffrey Keating <geoffk@apple.com>
4593
4594 * doc/invoke.texi (Overall Options): Document default for -o
4595 for PCH files.
4596
4597 2004-04-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4598
4599 * builtins.c (expand_builtin_update_setjmp_buf): New function.
4600 (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
4601 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
4602
4603 2004-04-26 Paul Brook <paul@codesourcery.com>
4604
4605 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
4606
4607 2004-04-26 Paul Brook <paul@codesourcery.com>
4608
4609 * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
4610
4611 2004-04-25 Roger Sayle <roger@eyesopen.com>
4612
4613 * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
4614 fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and
4615 X % -1 as 0.
4616
4617 2004-04-26 Hans-Peter Nilsson <hp@bitrange.com>
4618
4619 PR bootstrap/15141
4620 * except.c (connect_post_landing_pads): Delete insns after the
4621 barrier when generating a unwind_resume_libfunc call.
4622
4623 2004-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4624
4625 PR/c++ 15119
4626 * tree.c (substitute_placeholder_in_expr, case 4): New case,
4627 for TARGET_EXPR.
4628
4629 2004-04-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4630
4631 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
4632 __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
4633 inhibit_libc is defined.
4634
4635 2004-04-25 Richard Sandiford <rsandifo@redhat.com>
4636
4637 * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
4638 * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
4639 * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
4640 (TARGET_SCHED_VARIABLE_ISSUE): Define.
4641 (mips_adjust_cost): Move later in file, next to other sched hooks.
4642 (mips_macc_chains_last_hilo): New variable.
4643 (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
4644 (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
4645 * config/mips/mips.md (may_clobber_hilo): New attribute.
4646
4647 2004-04-24 Roger Sayle <roger@eyesopen.com>
4648 Bruce Korb <bkorb@gnu.org>
4649
4650 * fixinc/inclhack.def (aix_syswait_2): New fix.
4651 * fixinc/fixincl.x: Regenerate.
4652 * fixinc/tests/base/sys/wait.h: Update for new test.
4653
4654 2004-04-24 Alan Modra <amodra@bigpond.net.au>
4655
4656 PR target/14960
4657 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
4658 to non_fixed_size, and leave out fixed_size from the sum.
4659 (generate_set_vrsave): Correct clobbers.
4660 (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
4661 (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
4662 (rs6000_libcall_value): Likewise.
4663 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
4664 (FUNCTION_ARG_REGNO_P): Likewise.
4665
4666 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
4667
4668 * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
4669 is a CONST_INT.
4670 (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
4671 with NARROW_OP1 instead of OP1.
4672
4673 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
4674
4675 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
4676 and __s390x__ hosts.
4677
4678 2004-03-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4679
4680 * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
4681 _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
4682 * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
4683 BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
4684 BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
4685 * builtins.c (expand_builtin_fork_or_exec): New.
4686 (expand_builtin): Call it.
4687 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
4688 BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
4689 * c-common.c (PID_TYPE): New macro.
4690 (c_common_nodes_and_builtins): Initialize pid_type_node.
4691 * calls.c (special_function_p): Do not handle fork and exec.
4692 (expand_call): Do not handle ECF_FORK_OR_EXEC.
4693 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
4694 __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
4695 * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
4696 __gcov_execv, __gcov_execvp, __gcov_execve): New.
4697 * tree.h (enum tree_index): Add TI_PID_TYPE.
4698 (pid_type_node): New macro.
4699 (ECF_FORK_OR_EXEC): Removed.
4700
4701 2004-04-23 Eric Botcazou <ebotcazou@libertysurf.fr>
4702
4703 PR optimization/13985
4704 * cfgloopmanip.c (fix_loop_placements): New prototype.
4705 Call fix_bb_placements on the preheader of loops that have
4706 been reparented.
4707 (remove_path): Adjust call to fix_loop_placements.
4708
4709 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
4710
4711 * config/darwin7.h: New file.
4712 * config.gcc (*-*-darwin*): Add darwin7.h if the
4713 version is greater than 6.
4714 * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
4715 (MATH_LIBRARY): Wrap in ifdefs.
4716
4717 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
4718
4719 * config/arm/arm.c (arm_output_epilogue): Reverse the order of
4720 loading iWMMXt registers with a frame pointer. Use post-increment
4721 without a frame pointer.
4722 (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
4723
4724 2004-04-23 Paolo Bonzini <bonzini@gnu.org>
4725
4726 * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
4727 mode" rather than "-funit-at-a-time" since -O2 enables it
4728 without requiring -f* options. Refer to -fprofile-generate and
4729 -fprofile-use correctly. Move -funit-at-a-time among options
4730 enabled by -O. Add information about unit-at-a-time caveats.
4731
4732 2004-04-22 Per Bothner <per@bothner.com>
4733
4734 * line-map.h (struct line_maps): New field highest_line.
4735 (linemap_position_for_column): Make non-inline function.
4736 (LINEMAP_POSITION_FOR_COLUMN): New macro.
4737 * line-map.c (linemap_init): Clear highest_line field.
4738 (linemap_add): Set highest_line field.
4739 (linemap_line_start): Minor optimization - use highest_line field.
4740 Reduce maximum column hint to 10000. Update highest_line field.
4741 (linemap_position_for_column): Moved from line-map.h. Optimize a bit.
4742 * cpphash.h (struct cpp_reader): Remove line field - instead use
4743 line_table->highest_line.
4744 (saved_line): Remove unused field.
4745 (CPP_INCREMENT_FILE): Don't do linemap_lookup - just use newest map.
4746 Use line_table's highest_line field instead of cpp_reader's line.
4747 * cpplib.c (start_directive): Likewise use highest_line field.
4748 (do_line, do_linemarker): Likewise just use newest map.
4749 (_cpp_do_file_change): Don't need to set cpp_reader's line field.
4750 * cpperror.c (cpp_error): Likewise use highest_line field.
4751 * cppfiles.c (open_file_failed: Likewise.
4752 (cpp_make_system_header): Likewise use newest map and highest_line.
4753 * cppinit.c (cpp_create_reader): Don't initialize removed field.
4754 * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
4755 skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
4756 _cpp_lex_direct): Likewise use highest_line.
4757 (_cpp_lex_direct): Use new LINEMAP_POSITION_FOR_COLUMN macro.
4758 * cppmacro.c (_cpp_builtin_macro_text): Likewise use highest_line,
4759 and use newest map.
4760 * cpppch.c (cpp_read_state): Don't save+restore cpp_reader's line.
4761 * cpptrad.c (_cpp_overlay_buffer): Don't save cpp_reader's line.
4762 (copy_comment, _cpp_scan_out_logical_line): Likewise use highest_line.
4763
4764 2004-04-23 Alan Modra <amodra@bigpond.net.au>
4765
4766 PR bootstrap/14992
4767 * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
4768 * config/linux.h (USE_LD_AS_NEEDED): Define.
4769 * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
4770 * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
4771 * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
4772 * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
4773 * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
4774 * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
4775 * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
4776
4777 2004-04-22 Per Bothner <per@bothner.com>
4778
4779 * cppinit.c (cpp_read_main_file): Return NULL rather than false.
4780 Fixes PR preprocessor/15067.
4781
4782 2004-04-23 Andreas Schwab <schwab@suse.de>
4783
4784 * config/ia64/ia64intrin.h: Add intermediate cast to void * to
4785 avoid aliasing warning.
4786
4787 2004-04-22 Jan Hubicka <jh@suse.cz>
4788 Mostafa Hagog <mustafa@il.ibm.com>
4789
4790 * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
4791 * cfgloopanal.c (expected_loop_iterations): Change the return value
4792
4793 2004-04-22 Jakub Jelinek <jakub@redhat.com>
4794
4795 * cselib.h (struct elt_loc_list): Remove canon_loc field.
4796 * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
4797 (cselib_invalidate_mem): Remove all canon_loc and canon_x
4798 traces.
4799
4800 2004-04-22 Josef Zlomek <zlomekj@suse.cz>
4801
4802 Revert
4803 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
4804
4805 * var-tracking.c (variable_part_different_p): Variable parts
4806 differ when the most recent locations differ.
4807
4808 2004-04-22 Richard Sandiford <rsandifo@redhat.com>
4809
4810 * doc/invoke.texi: Remove the MIPS -membedded-pic option.
4811 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
4812 (embedded_pic_offset): Delete.
4813 * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete. Shuffle other
4814 MASK_* constants.
4815 (TARGET_EMBEDDED_PIC): Delete.
4816 (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
4817 (ASM_SPEC): Remove -membedded-pic.
4818 (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
4819 (ASM_OUTPUT_CASE_LABEL): Likewise.
4820 * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
4821 * config/mips/windiss.h (ASM_SPEC): Likewise.
4822 * config/mips/mips.c (struct machine_function): Remove
4823 embedded_pic_fnaddr_rtx.
4824 (TARGET_ENCODE_SECTION_INFO): Remove override.
4825 (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
4826 (override_options): Remove -membedded-pic handling.
4827 (print_operand): Remove handling of '%S'.
4828 (mips_select_section: Remove -membedded-pic handling.
4829 (mips_encode_section_info): Delete.
4830 (mips_output_conditional_branch): Remove mention of -membedded-pic.
4831 * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
4832 -membedded-pic handling.
4833 (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
4834
4835 2004-04-22 Alan Modra <amodra@bigpond.net.au>
4836
4837 * var-tracking.c (frame_base_decl): Remove useless GTY.
4838
4839 2004-04-21 Aldy Hernandez <aldyh@redhat.com>
4840
4841 * config/rs6000/rs6000.c (rs6000_override_options): Error when
4842 user wants altivec and e500 instructions.
4843
4844 2004-04-21 H.J. Lu <hongjiu.lu@intel.com>
4845
4846 PR target/14813
4847 * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
4848 in .init_array section to ...
4849 * config/ia64/crtbegin.asm: Here.
4850
4851 * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
4852 and hidden if HAVE_INITFINI_ARRAY is defined.
4853
4854 2004-04-21 James E Wilson <wilson@specifixinc.com>
4855
4856 * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
4857 * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
4858 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
4859 (fp_register_operand, lo_operand): New.
4860 (mips_rtx_costs): Add TUNE_SB1 support.
4861 (mips_issue_rate): Add comment. Add PROCESSOR_SB1 support.
4862 (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
4863 (mips_multipass_dfa_lookahead): New.
4864 * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
4865 TUNE_SB1): New.
4866 (TARGET_SWITCHES): Add -mfp-exceptions support.
4867 (TARGET_FP_EXCEPTIONS_DEFAULT): New.
4868 (BRANCH_COST): Fix whitespace.
4869 * config/mips/mips.md: Include sb1.md.
4870 * config/mips/sb1.md: New file.
4871 * doc/invoke.texi: Document -mfp-exceptions.
4872
4873 * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix
4874 comment.
4875 * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
4876 (fixincl.o-warn): Delete.
4877
4878 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
4879
4880 * config/rs6000/rs6000 (print_operand) ['z']:
4881 Change ifdef of TARGET_MACHO to if TARGET_MACHO.
4882
4883 2004-04-21 Daniel Jacobowitz <drow@mvista.com>
4884
4885 * config.gcc: Support --with-arch=iwmmxt for ARM.
4886
4887 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4888
4889 * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
4890 in two more places; remove unneeded force_reg
4891
4892 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
4893
4894 * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
4895 for TARGET_MACHO.
4896 (print_operand): For TARGET_MACHO check to see if we need a stub
4897 and output one if we need it.
4898
4899 PR debug/15033
4900 * dwarf2out.c (rtl_for_decl_location): Check for NULL
4901 rtl.
4902
4903 2004-04-20 James E Wilson <wilson@specifixinc.com>
4904
4905 * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
4906 (vall_value_gp): Likewise.
4907
4908 2004-04-20 DJ Delorie <dj@redhat.com>
4909
4910 * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
4911 variables stored in word registers, then in memory.
4912
4913 2004-04-20 Eric Christopher <echristo@redhat.com>
4914
4915 * cp/parser.c (cp_parser_declaration): Move translate
4916 up before tokens are lexed.
4917
4918 2004-04-20 Uros Bizjak <uros@kss-loka.si>
4919
4920 * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
4921 (asin_optab, acos_optab): Define corresponding macros.
4922 * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
4923 * genopinit.c (optabs): Implement asin_optab and acos_optab
4924 using asin?f2 and acos?f2 patterns.
4925 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
4926 using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
4927 (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
4928 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
4929
4930 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
4931 acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
4932 acos, acosf and acosl built-ins as inline x87 intrinsics.
4933
4934 2004-04-20 Paul Brook <paul@codesourcery.com>
4935
4936 * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
4937
4938 2004-04-20 Paul Brook <paul@codesourcery.com>
4939
4940 * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
4941
4942 2004-04-20 Paolo Bonzini <bonzini@gnu.org>
4943
4944 Revert part of 2004-04-17 change that moved -frename-registers
4945 to -O1. -frename-registers is buggy.
4946
4947 * toplev.c (flag_rename_registers): Initialize to 0.
4948 * doc/invoke.texi (Optimize options): Move -frename-registers
4949 to "Not triggered by any -O level" section. Adjust commentary
4950 accordingly.
4951
4952 2004-04-20 Anil Paranjpe <anilp1@kpitcummins.com>
4953
4954 * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
4955
4956 2004-04-20 Richard Sandiford <rsandifo@redhat.com>
4957
4958 * config/mips/mips.c (mips_legitimize_move): Generate special patterns
4959 for mflo and mfhi instructions.
4960 (mips_output_move): Remove mflo and mfhi handling.
4961 * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
4962 (*mulsidi3_64bit): Update for new mfhi/mflo representation.
4963 Likewise various define_peephole2s.
4964 (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
4965 alternatives.
4966 (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
4967 (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
4968 (mfhilo_di, mfhilo_si): New patterns.
4969
4970 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
4971
4972 * function.c (assign_parms): Force
4973 MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
4974
4975 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
4976
4977 * var-tracking.c (variable_part_different_p): Variable parts differ
4978 when the most recent locations differ.
4979
4980 2004-04-19 James E Wilson <wilson@specifixinc.com>
4981
4982 * rtl.h (reg_set_last): Delete declaration.
4983 * rtlanal.c (reg_set_last): Delete.
4984
4985 2004-04-19 Roger Sayle <roger@eyesopen.com>
4986
4987 * fold-const.c (fold_convert): Make function extern/public.
4988 * tree.h (fold_convert): Prototype here.
4989 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
4990 expand_builtin_strrchr, expand_builtin_strpbrk,
4991 expand_builtin_mempcpy, expand_builtin_bcopy,
4992 expand_builtin_bzero, expand_builtin_memcmp,
4993 expand_builtin_strcmp, expand_builtin_strncmp,
4994 stabilize_va_list, expand_builtin_sprintf,
4995 fold_trunc_transparent_mathfn, fold_builtin_logarithm,
4996 fold_builtin_exponent, fold_builtin_mempcpy,
4997 fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
4998 fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
4999 fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
5000
5001 2004-04-19 Aldy Hernandez <aldyh@redhat.com>
5002
5003 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
5004 (move_from_CR_gt_bit): New.
5005 (cceq_ior_compare): Name previously unnamed pattern. Disable for
5006 E500.
5007 (cceq_rev_compare): Name previously unnamed pattern. Allow for
5008 E500.
5009
5010 * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
5011 (tstsfeq_gpr): Same.
5012 (cmpsfgt_gpr): Same.
5013 (tstsfgt_gpr): Same.
5014 (cmpsflt_gpr): Same.
5015 (tstsflt_gpr): Same.
5016 (e500_cceq_ior_compare): New.
5017 (e500_flip_gt_bit): New.
5018
5019 * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
5020 (print_operand): Add 'c' and 'D'.
5021 (rs6000_generate_compare): Rewrite to generate correct rtl.
5022 (rs6000_emit_sCOND): Handle E500.
5023 (output_cbranch): Adjust for changes in rs6000_generate_compare.
5024 (output_e500_flip_gt_bit): New.
5025
5026 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
5027 Protoize.
5028
5029 2004-04-19 Eric Christopher <echristo@redhat.com>
5030
5031 * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
5032
5033 2004-04-19 David Edelsohn <edelsohn@gnu.org>
5034
5035 * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
5036 fix information.
5037
5038 2004-04-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5039
5040 * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
5041 download URL.
5042
5043 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5044
5045 * stor-layout.c (layout_decl): Check DECL_PACKED before calling
5046 ADJUST_FIELD_ALIGN. Check maximum_field_alignment after.
5047
5048 2004-04-19 Andrew PInski <pinskia@physics.uc.edu>
5049
5050 * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
5051 (fold_builtin): Update caller to match.
5052
5053 PR bootstrap/15009
5054 * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
5055
5056 PR bootstrap/14999
5057 * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
5058
5059 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5060
5061 * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
5062
5063 * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
5064 (expand_mult_highpart_optab): Likewise.
5065 (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
5066
5067 2004-04-19 Paul Brook <paul@codesourcery.com>
5068
5069 * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
5070 floatunssisf2, floatunssidf2): New patterns.
5071
5072 2004-04-18 Mark Mitchell <mark@codesourcery.com>
5073
5074 PR other/14918
5075 * doc/invoke.texi (-fprofile-generate): Document requirement to
5076 use -fprofile-generate when linking.
5077
5078 * doc/extend.texi (Strong Using): Warn users against using this
5079 feature.
5080
5081 2004-04-18 Richard Sandiford <rsandifo@redhat.com>
5082
5083 * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
5084 * config/mips/mips.h (mips_entry, mips_string_length): Delete.
5085 (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
5086 * config/mips/mips.c (struct mips16_constant): Renamed from struct
5087 constant. Propogate change throughout file.
5088 (struct machine_function): Remove insns_len.
5089 (mips_string_length, mips16_strings, string_constants): Delete.
5090 (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
5091 when generating mips16 code. Remove special mips16 treatment of
5092 string constants.
5093 (mips_symbolic_constant_p): Allow mips16 constant pool accesses
5094 to have the form LABEL+CONSTANT.
5095 (mips_symbolic_address_p): Fix comment.
5096 (m16_usym8_4, m16_usym5_4): Delete.
5097 (mips_output_function_epilogue): Remove mips16 string handling.
5098 (mips_output_mi_thunk): Call mips16_lay_out_constants.
5099 (mips_select_section, mips_encode_section_info): Remove mips16
5100 string handling.
5101 (struct mips16_constant_pool): New.
5102 (add_constant): Take a mips16_constant_pool structure. Keep pool
5103 sorted into order of ascending mode size. Keep track of the highest
5104 possible start address, taking padding and the masking of the base PC
5105 value into account.
5106 (dump_constants_1): New function, split out from dump_constants.
5107 Handle vector constants. Use gen_consttable_{int,float} rather than
5108 separate functions for each mode.
5109 (dump_constants): Simplify. Use GET_MODE_ALIGNMENT. Use gen_align
5110 rather than separate functions for each alignment.
5111 (mips_find_symbol): Delete.
5112 (mips16_insn_length): New function, split out from
5113 mips16_lay_out_constants.
5114 (mips16_rewrite_pool_refs): New function.
5115 (mips16_lay_out_constants): Rework. Remove string handling.
5116 Always create an inline constant pool.
5117 * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
5118 (UNSPEC_ALIGN): New constants.
5119 (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
5120 (UNSPEC_ALIGN_[248]): Delete.
5121 (consttable_int, consttable_float, align): New patterns.
5122 (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
5123
5124 2004-04-17 Aldy Hernandez <aldyh@redhat.com>
5125
5126 * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
5127 __unn_args_eq.
5128
5129 2004-04-17 Alan Modra <amodra@bigpond.net.au>
5130
5131 PR target/14715
5132 * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
5133 with STARTING_FRAME_OFFSET.
5134
5135 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
5136
5137 * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
5138 * config/mips/mips.c (macc_msac_operand): New function.
5139 * config/mips/mips.md (*msac): Move after *macc.
5140 (*msac2): New. Generalize macc-related peepholes so that they apply
5141 to msac too.
5142
5143 2004-04-17 Paolo Bonzini <bonzini@gnu.org>
5144
5145 * opts.c (decode_options): Do not enable flag_rename_registers
5146 and flag_web at -O3.
5147 * toplev.c (flag_rename_registers): Initialize
5148 flag_rename_registers and flag_web to
5149 AUTODETECT_FLAG_VAR_TRACKING.
5150 (default_debug_hooks): New global.
5151 (process_options): Initialize default_debug_hooks. Warn if
5152 -fvar-tracking specified but not supported by the current
5153 debug format. Do not run var tracking at -O0 or if not
5154 supported by the current debug format, even if
5155 -fvar-tracking was given. If -fno-rename-registers
5156 is not specified, always run register renaming if var
5157 tracking is supported by the default debugging information
5158 format for the target, and we are at -O1 or higher; similarly
5159 for -fweb, but only at -O2 or higher.
5160 * doc/invoke.texi (Optimize Options): Document this.
5161
5162 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
5163
5164 * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
5165 * configure: Regenerate.
5166
5167 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
5168
5169 * gcc.c (used_arg): Check whether an option has been removed.
5170
5171 2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5172
5173 * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
5174 debugging on Solaris 7 and up.
5175
5176 2004-04-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5177
5178 * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
5179 IRIX 5 port.
5180 Remove -save-temps workaround, handled automatically.
5181 Require GNU binutils 2.15 for debugging.
5182 Remove SGI make warnings since GNU make is now required.
5183 (Specific, mips-sgi-irix6): Some markup fixes.
5184 Describe MIPSpro C problems and workarounds.
5185 Mention working O32 ABI support.
5186 Recommend GNU as 2.15 for O32 with debugging.
5187 Remove description of fixed structure pass/return bug.
5188
5189 2004-04-16 DJ Delorie <dj@redhat.com>
5190
5191 * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
5192 TYPE_FIELDS.
5193 (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
5194
5195 2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5196
5197 * pa.md: Remove unnecessary declarations for asm_out_file.
5198
5199 * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
5200 SAR register. Fix comment.
5201 (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
5202 (%cr11).
5203
5204 * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
5205
5206 2004-04-16 Nick Clifton <nickc@redhat.com>
5207
5208 * config/arm/arm.c (arm_override_options): Revert previous patch.
5209 * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
5210 be safely built.
5211
5212 2004-04-16 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
5213
5214 * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
5215 bug.
5216 (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
5217 TARGET_DEFAULT): Changed. Ditto.
5218 (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
5219 TARGET_ENDIAN_DEFAULT): Added. Ditto.
5220 * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
5221 (TARGET_ENDIAN_DEFAULT): Added.
5222
5223 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5224
5225 * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
5226 ATTR_CONST_NOTHROW_LIST.
5227
5228 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5229
5230 PR/middle-end 14915
5231 * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
5232 BITS_BIG_ENDIAN.
5233
5234 2004-04-15 Pat Haugen <pthaugen@us.ibm.com>
5235
5236 * ra-debug.c (ra_print_rtx): Add break's to case legs.
5237
5238 2004-04-14 James E Wilson <wilson@specifixinc.com>
5239
5240 * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
5241
5242 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
5243
5244 * libada-mk.in: New file.
5245 * configure.ac: Create libada-mk from libada-mk.in.
5246 * configure: Regenerate.
5247
5248 2004-04-14 Uros Bizjak <uros@kss-loka.si>
5249
5250 * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
5251 (logb_optab, ilogb_optab): Define corresponding macros.
5252 * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
5253 * genopinit.c (optabs): Implement logb_optab and ilogb_optab
5254 using logb?f2 and ilogb?i2 patterns.
5255 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
5256 using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
5257 (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
5258 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5259
5260 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
5261 and UNSPEC_XTRACT_EXP.
5262
5263 * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
5264 patterns to implement fxtract x87 instruction.
5265 (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
5266 logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
5267 intrinsics.
5268 (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
5269 x87's fxtract insn.
5270
5271 2004-04-14 Eric Christopher <echristo@redhat.com>
5272
5273 * config/mips/t-elf: Enable multilibs by default.
5274
5275 2004-04-14 Andreas Tobler <a.tobler@schweiz.ch>
5276
5277 * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
5278 previous fix to check HAVE_return at runtime too.
5279
5280 2004-04-14 Nick Clifton <nickc@redhat.com>
5281
5282 * config/arm/arm.c (arm_override_options): If the user has not
5283 specified an ABI, then default to AAPCS for the iWMMXt processor.
5284 * config/arm/t-xscale-elf: Remove redundant multilib specifications.
5285 * config/arm/t-xscale-coff: Likewise.
5286
5287 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5288
5289 * builtins.c (fold_builtin_isdigit): New.
5290 (fold_builtin): Handle BUILT_IN_ISDIGIT.
5291 * defaults.h: Add TARGET_DIGIT0 and sort.
5292 * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
5293
5294 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5295
5296 * builtins.c (fold_builtin_cabs, fold_builtin): Use
5297 `mathfn_built_in' to determine the new builtin.
5298 * fold-const.c (fold): Likewise.
5299
5300 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
5301
5302 * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
5303 * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
5304 (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
5305 (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
5306 (ASM_SPEC): Update accordingly.
5307 * config/mips/mips.c: Update after above renaming.
5308 * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
5309 * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
5310
5311 2004-04-13 James E Wilson <wilson@specifixinc.com>
5312
5313 * c-opt.c (c_common_post_options): If this_input_filename is NULL,
5314 increment errorcount and return false instead of true.
5315
5316 2004-04-13 Uros Bizjak <uros@kss-loka.si>:
5317
5318 * optabs.c (expand_twoval_unop): Reorder function arguments.
5319 * builtins.c (expand_builtin_mathfn_3): Update calls to
5320 expand_twoval_unop.
5321
5322 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
5323 and UNSPEC_TAN_TAN. Add missing comment.
5324
5325 * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
5326 patterns to implement fptan x87 instruction.
5327 (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
5328 and tanl built-ins as inline x87 intrinsics. Define corresponding
5329 peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
5330 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
5331 x87's fptan insn.
5332
5333 2004-03-13 Richard Henderson <rth@redhat.com>
5334
5335 * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
5336 for LABEL_REFs.
5337
5338 * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
5339 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
5340 * doc/invoke.texi: Update to match.
5341
5342 * varasm.c (unlikely_text_section): Use assemble_align instead of
5343 ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
5344 correct alignment argument.
5345
5346 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
5347
5348 * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
5349 after setting reg_last_reload_reg for optional output reloads.
5350
5351 2004-04-12 Fariborz Jahanian <fjahanian@apple.com>
5352
5353 * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
5354 Definition of these two macros are corrected by adding
5355 matchine right paren.
5356
5357 2004-04-12 Jonathan Larmour <jifl@eCosCentric.com>
5358
5359 * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
5360
5361 2004-04-12 Roger Sayle <roger@eyesopen.com>
5362
5363 * config/i386/i386.c (output_387_reg_move): New function.
5364 * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
5365 * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
5366 *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
5367 *extendsfdf2_1, *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
5368 truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
5369
5370 2004-04-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5371
5372 * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
5373 TYPE_DECL.
5374 * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
5375 * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
5376 * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
5377 Use skip_simple_arithmetic to find SAVE_EXPR.
5378 (force_type_save_exprs, force_type_save_exprs_1): New functions.
5379 * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
5380 Properly chain multiple pointers.
5381 (copy_tree_r): Copy a TYPE_DECL.
5382 * tree.c (variably_modified_type_p): Add some missing tests and
5383 make some other minor changes.
5384 * tree.h (force_type_save_exprs): New declaration.
5385
5386 2004-04-12 Roger Sayle <roger@eyesopen.com>
5387
5388 * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
5389 Remove fall throughs. Convert 0/x and 0%x into x&0 when x has
5390 side-effects. Don't convert x/1.0 into x if we honor signaling NaNs.
5391 Convert x/-1.0 into -x if we don't honor signaling NaNs. Convert
5392 x/-1 into -x. Optimize x%1 into x&0 if x has side-effects. Optimize
5393 x%-1 into 0 (or x&0 if x has side-effects).
5394
5395 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
5396
5397 * config/rs6000/rs6000.md: Document why a pattern is not
5398 available.
5399
5400 * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
5401 of floats on the E500.
5402 (branch_positive_comparison_operator): Do not allow NE even on the
5403 E500.
5404
5405 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
5406
5407 * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
5408 in_text_unlikely_section to in_unlikely_text_section.
5409
5410 2004-04-11 Roger Sayle <roger@eyesopen.com>
5411
5412 * fold-const.c (fold_binary_op_with_conditional_arg): Tweak
5413 calling convention to allow a NULL_TREE to be returned. Factor
5414 sanity checks from callers, return NULL_TREE when appropriate.
5415 (fold): Handle COMPOUND_EXPR operands of binary expressions
5416 before COND_EXPR operands. Use reorder_operands_p(a,b) to check
5417 whether a op (b,c) can be rewritten as (b, a op c). Simplify
5418 calls to fold_binary_op_with_conditional_arg.
5419
5420 2004-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5421
5422 * config/mips/iris5.h (current_section_flags): Add
5423 in_unlikely_executed_text and default case.
5424
5425 2004-04-11 Andreas Tobler <a.tobler@schweiz.ch>
5426
5427 * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
5428 failure on solaris. Place ifdef HAVE_return around gen_ret call.
5429 * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
5430 HAVE_return and place it around the place where it is needed.
5431
5432 2004-04-11 Andrew Pinski <pinskia@physics.uc.edu>
5433
5434 * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
5435 ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
5436 and NORMAL_TEXT_SECTION_NAME.
5437 (unlikely_text_section): Check targetm.have_named_sections
5438 instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
5439 instead of SECTION_FORMAT_STRING.
5440 * config/mips/iris5.h (current_section_name): Add
5441 in_unlikely_executed_text case and move the abort into the switch.
5442 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
5443 (NORMAL_TEXT_SECTION_NAME): Remove.
5444 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
5445 (SECTION_FORMAT_STRING): Remove.
5446 * defaults.h (SECTION_FORMAT_STRING): Remove.
5447 * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
5448 (SECTION_FORMAT_STRING): Remove.
5449
5450 2004-04-10 Joseph S. Myers <jsm@polyomino.org.uk>
5451
5452 * c-typeck.c (common_type): Prefer long long to long when same
5453 precision.
5454
5455 2004-04-09 Zack Weinberg <zack@codesourcery.com>
5456
5457 PR 14887
5458 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
5459 mode argument.
5460 * config/ia64/ia64.c (ia64_hpux_file_end): Check
5461 TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
5462
5463 2004-04-09 Roger Sayle <roger@eyesopen.com>
5464
5465 * simplify-rtx.c (mode_signbit_p): New function to check whether
5466 an RTX is an immediate constant that represents the most significant
5467 bit of a given machine mode.
5468 (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
5469 C is the sign bit.
5470 (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
5471 when C2 is the sign bit.
5472 (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
5473 is the sign bit. Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
5474 sign bit.
5475
5476 2004-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5477
5478 * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
5479 TYPE_MODE.
5480
5481 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
5482
5483 * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
5484 of TREE_READONLY for types.
5485
5486 2004-04-09 Caroline Tice <ctice@apple.com>
5487
5488 * basic-block.h (struct edge_def): Add new field, crossing_edge.
5489 (struct basic_block_def): Add new field, partition.
5490 (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
5491 definitions.
5492 (partition_hot_cold_basic_blocks): Add extern function
5493 declaration.
5494 * bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
5495 include statements.
5496 (N_ROUNDS): Increase the maximum number of rounds by 1.
5497 (branch_threshold): Add array value for new round.
5498 (exec_threshold): Add array value for new round.
5499 (push_to_next_round_p): New function.
5500 (add_unlikely_executed_notes): New function.
5501 (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
5502 (mark_bb_for_unlikely_executed_section): New function.
5503 (add_labels_and_missing_jumps): New function.
5504 (add_reg_crossing_jump_notes): New function.
5505 (fix_up_fall_thru_edges): New function.
5506 (find_jump_block): New function.
5507 (fix_crossing_conditional_branches): New function.
5508 (fix_crossing_unconditional_branches): New function.
5509 (fix_edges_for_rarely_executed_code): New function.
5510 (partition_hot_cold_basic_blocks): New function.
5511 (find_traces): Add an extra round for partitioning hot/cold
5512 basic blocks.
5513 (find_traces_1_round): Add a parameter. Modify to push all cold blocks,
5514 and only cold blocks, into the last (extra) round of collecting traces.
5515 (better_edge_p): Add a parameter. Modify to favor non-crossing edges
5516 over crossing edges.
5517 (bb_to_key): Add code to correctly identify cold blocks when
5518 doing partitioning.
5519 (connect_traces): Modify to connect all the non-cold traces first, then
5520 go back and connect up all the cold traces.
5521 (reorder_basic_blocks): Add call to add_unlikely_executed_notes.
5522 * cfg.c (entry_exit_blocks): Add initialization for partition field in
5523 entry and exit blocks.
5524 * cfgbuild.c (make_edges): Update current_function_has_computed_jump
5525 if we are doing hot/cold partitioning.
5526 * cfgcleanup.c (cfglayout.h): Add new include statement.
5527 (try_simplify_condjump): Modify to not attempt on blocks with jumps
5528 that cross section boundaries.
5529 (try_forward_edges): Likewise.
5530 (merge_blocks_move_predecessor_nojumps): Likewise.
5531 (merge_blocks_move_successor_nojumps): Likewise.
5532 (merge_blocks_move): Likewise.
5533 (try_crossjump_to_edge): Modify to not attempt after we have done
5534 the block partitioning.
5535 (try_crossjump_bb): Modify to not attempt on blocks with jumps that
5536 cross section boundaries.
5537 (try_optimize_cfg): Likewise.
5538 * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
5539 jumps that cross section boundaries.
5540 * cfglayout.c (flags.h): Add new include statement.
5541 (update_unlikely_executed_notes): New function.
5542 (fixup_reorder_chain): Add code so when a new jumping basic block is
5543 added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
5544 updated appropriately.
5545 (duplicate_insn_chain): Add code to duplicate the new NOTE insn
5546 introduced by this optimization.
5547 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
5548 extern function declaration.
5549 * cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
5550 list of notes that can be deleted.
5551 (create_basic_block_structure): Add initialization for partition field.
5552 (rtl_can_merge_blocks): Modify to test blocks for jumps that cross
5553 section boundaries.
5554 (try_redirect_by_replacing_jump): Modify to not attempt on jumps that
5555 cross section boundaries.
5556 (commit_one_edge_insertion): Add code so newly created basic block
5557 ends up in correct (hot or cold) section. Modify to disallow
5558 insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
5559 (rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
5560 crosses section boundaries.
5561 (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
5562 cross section boundaries.
5563 (force_nonfallthru_and_redirect): Modify to make sure new basic block
5564 ends up in correct section, with correct notes attached.
5565 * common.opt (freorder-blocks-and-partition): Add new flag for this
5566 optimization.
5567 * dbxout.c (dbx_function_end): Add code to make sure scope labels at
5568 the end of functions are written into the correct (hot or cold)
5569 section.
5570 (dbx_source_file): Add code so writing debug file information
5571 doesn't incorrectly change sections.
5572 * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
5573 in partitioning hot/cold basic blocks into separate sections.
5574 (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
5575 section partitioning.
5576 (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
5577 conditional branches can span all of memory.
5578 (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
5579 unconditional branches can span all of memory.
5580 * final.c (scan_ahead_for_unlikely_executed_note): New function.
5581 (final_scan_insn): Add code to check for NOTE instruction indicating
5582 whether basic block belongs in hot or cold section, and to make sure
5583 the current basic block is being written to the appropriate section.
5584 Also added code to ensure that jump table basic blocks end up in the
5585 correct section.
5586 * flags.h (flag_reorder_blocks_and_partition): New flag.
5587 * ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
5588 one of the branches has a jump that crosses between sections.
5589 (find_if_case_2): Likewise.
5590 (ifcvt): Modify to not attempt to mark loop exit edges after
5591 hot/cold partitioning has occurred.
5592 * opts.c (decode_options): Code to handle new flag,
5593 flag_reorder_blocks_and_partition; also to turn it off if
5594 flag_exceptions is on.
5595 (common_handle_option): Code to handle new flag,
5596 flag_reorder_blocks_and_partition.
5597 * output.h (unlikely_text_section): New extern function declaration.
5598 (in_unlikely_text_section): New extern function declaration.
5599 * passes.c (rest_of_handle_stack_regs): Add
5600 flag_reorder_blocks_and_partition as an 'or' condition for calling
5601 reorder_basic_blocks.
5602 (rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
5603 as an 'or' condition for calling reorder_basic_blocks.
5604 (rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
5605 * print-rtl.c (print_rtx): Add code for handling new note,
5606 NOTE_INSN_UNLIKELY_EXECUTED_CODE
5607 * rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
5608 (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
5609 cross between section boundaries.
5610 * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
5611 indicating the basic block containing it belongs in the cold section.
5612 (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
5613 between hot and cold sections.
5614 * toplev.c (flag_reorder_blocks_and_partition): Add code to
5615 initialize this flag, and to tie it to the command-line option
5616 freorder-blocks-and-partition.
5617 * varasm.c (cfglayout.h): Add new include statement.
5618 (unlikely_section_label_printed): New global variable, used for
5619 determining when to output section name labels for cold sections.
5620 (in_section): Add in_unlikely_executed_text to enum data structure.
5621 (text_section): Modify code to use SECTION_FORMAT_STRING and
5622 NORMAL_TEXT_SECTION_NAME macros.
5623 (unlikely_text_section): New function.
5624 (in_unlikely_text_section): New function.
5625 (function_section): Add code to make sure beginning of function is
5626 written into correct section (hot or cold).
5627 (assemble_start_function): Add code to make sure stuff is written to
5628 the correct section.
5629 (assemble_zeros): Add in_unlikely_text_section as an 'or' condition
5630 to an if statement that was checking 'in_text_section'.
5631 (assemble_variable): Add 'in_unlikely_text_section' as an 'or'
5632 condition to an if statement that was checking 'in_text_section'.
5633 (default_section_type_flags_1): Add check: if in cold section
5634 flags = SECTION_CODE.
5635 * config/darwin.c (darwin_asm_named_section): Modify to use
5636 SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
5637 * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
5638 specifically for the i386.
5639 (HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
5640 * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
5641 text string to something more informative.
5642 (NORMAL_TEXT_SECTION_NAME): Add new definition.
5643 (SECTION_FORMAT_STRING): Add new definition.
5644 * config/rs6000/rs6000.c (rs6000_assemble_integer): Add
5645 '!in_unlikely_text_section' as an 'and' condition to an if statement
5646 that was already checking '!in_text_section'.
5647 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
5648 UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
5649 sure these are properly defined for linux on ppc.
5650 * doc/invoke.texi (freorder-blocks-and-partition): Add documentation
5651 for this new flag.
5652 * doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
5653 reg_note.
5654 * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
5655 HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
5656 these new macros.
5657
5658 2004-04-08 Roger Sayle <roger@eyesopen.com>
5659
5660 * function.c (gen_mem_addressof): When changing the RTX from a REG
5661 to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
5662
5663 2004-04-08 Roger Sayle <roger@eyesopen.com>
5664
5665 PR target/14888
5666 * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
5667 truncxfdf2_noop): Provide dummy "fmov" implementations.
5668
5669 2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
5670
5671 * gcc.c (default_compilers): Add missing initializers.
5672
5673 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
5674 Return 1 if file was successfully mapped.
5675
5676 2004-04-08 Geoffrey Keating <geoffk@apple.com>
5677
5678 PR pch/13419
5679 PR pch/14137
5680 Radar #: 3315288
5681 * doc/invoke.texi (Precompiled Headers): Suggest -o
5682 to put an output file in a particular place. Be more detailed
5683 about which options affect PCH validity and which options
5684 might not work.
5685 * c-pch.c (pch_matching): New.
5686 (MATCH_SIZE): New.
5687 (struct c_pch_validity): New field 'match'.
5688 (pch_init): Handle pch_matching.
5689 (c_common_valid_pch): Check pch_matching.
5690
5691 * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
5692
5693 2004-04-08 Mark Mitchell <mark@codesourcery.com>
5694
5695 * doc/invoke.texi (Precompiled Headers): Warn about known
5696 problems.
5697
5698 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
5699
5700 PR c++/14808
5701 * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
5702 to 1 if ASM_OUTPUT_DEF is defined.
5703 * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
5704 * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
5705 Set to non-zero iff not a one_only decl.
5706
5707 2004-04-08 Paul Brook <paul@codesourcery.com>
5708
5709 * arm.h (CLASS_LIKELY_SPILLED_P): Define.
5710
5711 2004-04-08 Paul Brook <paul@codesourcery.com>
5712
5713 * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
5714 PROMOTE_FOR_CALL_ONLY.
5715 * config/arm/arm-protos.h (arm_function_value): Declare.
5716 * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
5717 (TARGET_PROMOTE_PROTOTYPES): Return false.
5718 (arm_function_value): New function.
5719 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
5720 (FUNCTION_VALUE): Call arm_function_value.
5721 * config/cris/cris.h (PROMOTE_MODE): Rename ...
5722 (PROMOTE_FUNCTION_MODE): ... to this.
5723 (PROMOTE_FOR_CALL_ONLY): Remove.
5724 * config/mmix/mmix.h: Likewise.
5725 * config/s390/s390.h: Likewise.
5726 * config/sparc/sparc.h: Likewise.
5727 * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
5728 * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
5729 (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
5730 (PROMOTE_FOR_CALL_ONLY): Remove.
5731
5732 2004-04-08 Joel Sherrill <joel@oarcorp.com>
5733
5734 PR ada/14538
5735 * ada/5rosinte.adb: Remove fake mprotect() body.
5736 * ada/5rosinte.ads: Add SA_SIGINFO.
5737 * ada/5rtpopsp.adb: Rewrite to use new interface.
5738 * ada/init.c: Reorder so the simple single OS conditional __rtems__
5739 is tested before more complex ones which mix UNIX and embedded
5740 systems in the conditional.
5741
5742 2004-04-08 Joel Sherrill <joel@oarcorp.com>
5743
5744 PR ada/14665
5745 * ada/osint.adb (Find_Program_Name): Rework to properly handle
5746 filenames which end in .exe or have versioning suffixes like VMS.
5747
5748 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
5749
5750 PR target/10129
5751 * config/darwin.c (darwin_encode_section_info): When the decl has
5752 a DECL_INITIAL, it is only defined also when it is not a common.
5753
5754 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5755
5756 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
5757 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
5758
5759 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
5760
5761 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
5762 global register variables.
5763
5764 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
5765
5766 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
5767 rpc_xdr_lvalue_cast_b): New fixes.
5768 * fixinc/fixincl.x: Regenerate.
5769 * fixinc/tests/base/rpc/xdr.h: Add new tests.
5770
5771 2004-04-07 David Edelsohn <edelsohn@gnu.org>
5772
5773 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
5774 to power4 and power5 entries.
5775
5776 2004-04-06 Geoffrey Keating <geoffk@apple.com>
5777
5778 * c-common.h (pending_lang_change): Mark for PCH.
5779
5780 2004-04-07 Caroline Tice <ctice@apple.com>
5781
5782 * gcc.c (main): Move 'break' in main loops (on an error)
5783 to wait until error processing has occurred.
5784
5785 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
5786
5787 * config.gcc: Stop changing enable_threads midstream.
5788 Replace uses of enable_threads_flag with enable_threads.
5789 * configure.ac: Replace uses of enable_threads_flag with
5790 enable_threads. Improve autoconf quotation in one place.
5791 * configure: Regenerate.
5792
5793 2004-04-06 Uros Bizjak <uros@kss-loka.si>
5794
5795 * builtins.c: Implement support for sincos function.
5796 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
5797 BUILT_IN_COS{,F,L}.
5798 (expand_builtin_mathfn_3): New function.
5799 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
5800 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
5801 flag_unsafe_math_optimization is set.
5802
5803 * optabs.h (enum optab_index): Add new OTI_sincos.
5804 (sincos_optab): Define corresponding macro.
5805
5806 * optabs.c (init_optabs): Initialize sincos_optab.
5807 (expand_twoval_unop): New function.
5808
5809 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
5810 patterns.
5811
5812 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
5813 and UNSPEC_SINCOS_SIN.
5814
5815 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
5816 sincosxf3): New patterns to implement sincos, sincosf and sincosl
5817 built-ins as inline x87 intrinsics. Define splits for
5818 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
5819 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
5820 sincos patterns.
5821 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
5822 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
5823
5824 (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
5825 x87's fsincos insn.
5826
5827 2004-04-06 Devang Patel <dpatel@apple.com>
5828
5829 PR 14467
5830 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
5831
5832 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5833
5834 * doc/install.texi: Update HP-UX 11 installation procedure.
5835
5836 2004-04-06 Paul Brook <paul@codesourcery.com>
5837
5838 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
5839
5840 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
5841
5842 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
5843 when the TLS address is generated by a function call.
5844 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
5845 (tls_local_dynamic): Likewise.
5846
5847 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
5848
5849 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
5850 and TYPE_VOLATILE.
5851
5852 2004-04-05 Caroline Tice <ctice@apple.com>
5853
5854 * gcc.c (combine_flag): New global variable, for new driver option.
5855 (struct compiler): Add two new fields, to be used when
5856 combining multiple input files in a single pass (IMA).
5857 (default_compilers): Add values for the new fields to all
5858 compiler entries. Modify the "@c" compiler entry for doing IMA
5859 properly with "-save-temps" and the "combine" flag.
5860 (option_map): Add new driver option, "--combine", to tell driver
5861 to pass multiple input files to compiler at one time.
5862 (have_o_argbuf_index): New global variable.
5863 (store_arg): Modify to assign value to have_o_argbuf_index.
5864 (struct infile): Add three new fields, to help with IMA.
5865 (display_help): Add help for new "combine" option.
5866 (process_command): Remove local variable have_o; add code to check
5867 for new "combine" option; remove assignment to combine_inputs.
5868 (do_spec_1): Modify to deal with IMA better.
5869 (main): Make variable 'lang_n_infiles' local to entire function
5870 rather than to a single block. Use flag combine_flag to
5871 determine whether to do IMA or not; Modify loop initializing
5872 infiles to deal properly with linker files.
5873 Add code for doing preprocessing in presence of
5874 IMA with "-save-temps" flag. Modify "main" loop to handle
5875 multiple input files, in multiple languages, with or without
5876 preprocessing, gracefully.
5877 * toplev.c (set_src_pwd): Modify to not complain if attempting to
5878 re-set it to same directory it's previously been set to (avoid
5879 irritating, meaningless warning messages when doing IMA with
5880 save-temps).
5881 * doc/invoke.texi: Add "-combine" to list of Overall Options;
5882 remove documentation about IMA that is no longer accurate; Add
5883 documentation explaining what "-combine" does.
5884 * ada/lang-specs.h: Add initialization values for new fields in
5885 "struct compiler".
5886 * cp/lang-specs.h: Likewise.
5887 * f/lang-specs.h: Likewise.
5888 * java/lang-specs.h: Likewise.
5889 * objc/lang-specs.h: Likewise.
5890 * treelang/lang-specs.h: Likewise.
5891
5892 2004-04-05 David Edelsohn
5893
5894 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
5895 symbol handling.
5896
5897 2004-04-05 Jakub Jelinek <jakub@redhat.com>
5898 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5899
5900 PR optimization/13424 (hppa), bootstrap/14462, c/14828
5901 * pa.md: Use replace_equiv_address to retain the attributes of the
5902 memory operands used in the split and peephole2 patterns for optimizing
5903 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
5904
5905 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5906
5907 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
5908 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5909 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
5910 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
5911 PARM_DECL.
5912 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
5913 for a type.
5914 * print-tree.c (print_node): Properly handle side-effects, readonly,
5915 and constant flags.
5916 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
5917 and TREE_CONSTANT if not a type.
5918 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
5919 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
5920 (NON_TYPE_CHECK): New macro.
5921 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
5922
5923 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
5924
5925 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
5926 to DWARF2_DEBUG unconditionally.
5927 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
5928
5929 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
5930 Nathanael Nerode <neroden@gcc.gnu.org>
5931
5932 PR target/14548
5933 * config.host: Set the shell variable host_can_use_collect2.
5934 Set it to yes by default, and to no for alpha*-dec-*vms*,
5935 i[34567]86-*-mingw32*, and powerpc-*-beos*.
5936 * configure.ac: Set and substitute the shell variable collect2.
5937 Give an error if use_collect2 is yes and host_can_use_collect2 is
5938 no.
5939 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
5940 uses. Initialize to @collect2@.
5941 (STAGESTUFF): Remove $(USE_COLLECT2).
5942 * config/alpha/x-vms (USE_COLLECT2): Don't set.
5943 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
5944 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
5945 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
5946 * configure: Regenerate.
5947
5948 2004-04-04 Roger Sayle <roger@eyesopen.com>
5949
5950 * simplify-rtx.c (simplify_binary_operation): Constant fold
5951 DIV, MOD, UDIV and UMOD using div_and_round_double.
5952
5953 2004-04-04 Mark Mitchell <mark@codesourcery.com>
5954
5955 PR c++/14804
5956 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
5957 RECORD_TYPEs.
5958
5959 2004-04-04 Mark Mitchell <mark@codesourcery.com>
5960
5961 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
5962 documentation.
5963
5964 2004-04-04 Roger Sayle <roger@eyesopen.com>
5965
5966 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
5967 updating the REG_EQUAL note on an insn's libcall_insn.
5968
5969 2004-04-04 Roger Sayle <roger@eyesopen.com>
5970
5971 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
5972
5973 2004-04-03 Roger Sayle <roger@eyesopen.com>
5974
5975 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
5976 with reorder_operands_p.
5977
5978 2004-04-03 Jan Hubicka <jh@suse.cz>
5979
5980 * md.texi (vec_set, vec_extract, vec_init): Document.
5981
5982 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
5983
5984 * opts.c (decode_options): Do function inlining with very small
5985 max-inline-insns-* parameters when optimizing for size.
5986
5987 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
5988
5989 * config/i386/i386.h (TARGET_NOCONA): New macro.
5990 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
5991 (processor_type): Add PROCESSOR_NOCONA.
5992
5993 * config/i386/i386.md (cpu): Add nocona to the attribute values.
5994
5995 * config/i386/i386.c (nocona_cost): New variable.
5996 (m_NOCONA): New macro.
5997 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
5998 x86_branch_hints, x86_use_sahf, x86_single_stringop,
5999 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
6000 x86_integer_DFmode_moves, x86_partial_reg_dependency,
6001 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
6002 x86_decompose_lea, x86_arch_always_fancy_math_387,
6003 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
6004 x86_ext_80387_constants, x86_four_jump_limit):
6005 (override_options): Add nocona_cost to processor_target_table.
6006 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
6007 (incdec_operand): Prevent inc/dec generation for Nocona too.
6008 (ix86_issue_rate): Add PROCESSOR_NOCONA.
6009
6010 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
6011
6012 * rtlanal.c (find_reg_note): Manually
6013 unswitch the loop.
6014
6015 2004-04-01 Mark Mitchell <mark@codesourcery.com>
6016
6017 * genemit.c (gen_split): Change prototype of generated code.
6018 * genrecog.c (write_action): Adjust prototype for and calls to
6019 gen_split_*.
6020 * gensupport.c (struct queue_elem): Add split field.
6021 (queue_pattern): Return a value. Clear the split field.
6022 (process_rtx): Maintain an association between an insn and the
6023 split generated from it for a define_insn_and_split.
6024 (process_one_cond_exec): Generate a new split for a
6025 define_insn_and_split.
6026 * config/arm/arm-protos.h (arm_split_constant): Add insn
6027 parameter.
6028 (emit_constant_insn): New function.
6029 (arm_gen_constant): Use it.
6030 * config/arm/arm.md: Adjust calls to arm_split_constant.
6031
6032 2004-04-02 Jan Hubicka <jh@suse.cz>
6033
6034 * cgraph.c: Add overall comment.
6035 (cgraph_inline_hash): New global variable.
6036 (cgraph_create_node): Break out from ...
6037 (cgraph_node): ... here.
6038 (cgraph_edge): New function.
6039 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
6040 (cgraph_remove_edge): Accept edge, intead of source and destination.
6041 (cgraph_redirect_edge_callee): New.
6042 (cgraph_remove_node): Update all new datastructures.
6043 (cgraph_record_call, cgraph_remove_call): Kill.
6044 (dump_cgraph_node): Break out from ... ; dump new datastructures.
6045 (dump_cgraph): ... here.
6046 (cgraph_function_possibly_inlined_p): Use new hashtable.
6047 (cgraph_clone_edge, cgraph_clone_node): New.
6048 * cgraph.h: Include hashtab.h
6049 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
6050 fields, add inlined_to pointer.
6051 (cgraph_node): Add pointer to next_clone.
6052 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
6053 (cgraph_remove_call, cgraph_record_call): Kill.
6054 (cgraph_inline_hash): Declare.
6055 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
6056 cgraph_redirect_edge_callee): Declare.
6057 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
6058 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
6059 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
6060 * cgraphunit.c: Add overall comment.
6061 (cgraph_optimize_function): Kill.
6062 (cgraph_assemble_pending_functions): Do not assemble inline clones.
6063 (cgraph_finalize_function): Update call of cgraph_remove_node
6064 (record_call_1): Record call sites.
6065 (cgraph_create_edges): Accept node instead of decl argument.
6066 (error_found): New static variable.
6067 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
6068 (cgraph_analyze_function): Update for new datastructures.
6069 (cgraph_finalize_compilation_unit): Plug memory leak.
6070 (cgraph_optimize_function): Kill.
6071 (cgraph_expand_function): Do not use cgraph_optimize_function.
6072 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
6073 cgraph_inlined_callees): Kill.
6074 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
6075 clones.
6076 (estimate_growth): Simplify.
6077 (cgraph_clone_inlined_nodes): New function.
6078 (cgraph_mark_inline_edge): Re-implement.
6079 (cgraph_mark_inline): Likewise.
6080 (cgraph_check_inline_limits): Simplify.
6081 (cgraph_recursive_inlining_p): New.
6082 (update_callee_keys): Break out from ...
6083 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
6084 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
6085 Likewise.
6086 (cgraph_expand_all_functions): Remove inline clones from the ordered
6087 list.
6088 (cgraph_preserve_function_body_p): New predicate.
6089 (cgraph_optimize): Verify cgraph.
6090 * function.h (struct function): Add fields saved_tree/saved_args.
6091 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
6092 * toplev.c (rest_of_compilation): Do not free cfun.
6093 * tree-inline.c: Include function.h
6094 (struct inline_data): Add saving_p field; replace decl/current_decl by
6095 node/current_node.
6096 (insert_decl_map): New function.
6097 (copy_body_r): Handle saving; update cgraph datastructure.
6098 (copy_body): Handle recursive inlining.
6099 (initialize_inlined_parameters): Likewise.
6100 (expand_call_inline): Propagate node attributes; update cgraph.
6101 (optimize_inline_calls): Verify that datastructure still match.
6102 (save_body): New function.
6103 * tree-inline.h (save_body): New.
6104 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
6105 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
6106 * langhooks.c (lang_hooks): Add update_decl_after_saving.
6107
6108 2004-04-01 Serge Belyshev <1319@bot.ru>
6109
6110 PR target/14702
6111 * config/i386/i386.md: fix source operand constraints in
6112 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
6113
6114 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
6115
6116 * fold-const.c (folda): Preserve types of comparisons.
6117
6118 2004-04-01 Richard Henderson <rth@redhat.com>
6119
6120 * toplev.c (backend_init): Move init_optimization_passes call ...
6121 (lang_dependent_init): ... here.
6122
6123 2004-04-01 Alan Modra <amodra@bigpond.net.au>
6124 Jakub Jelinek <jakub@redhat.com>
6125
6126 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
6127 -lgcc --as-needed -lgcc_s --no-as-needed by default.
6128 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
6129 * configure: Rebuilt.
6130 * config.in: Rebuilt.
6131 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
6132 (stage2-start, stage3-start, stage4-start): Likewise.
6133 (stageprofile-start, stagefeedback-start): Likewise.
6134
6135 2004-04-01 Jakub Jelinek <jakub@redhat.com>
6136
6137 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
6138 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
6139 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
6140 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
6141 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
6142 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
6143 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
6144 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
6145 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
6146 * config/sparc/t-linux: Removed.
6147
6148 2004-04-01 Jakub Jelinek <jakub@redhat.com>
6149
6150 PR c++/14755
6151 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
6152 "bitfld++ == const" to "++bitfld == const + incr" transformations.
6153
6154 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6155
6156 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
6157 * stor-layout.c (layout_decl): Likewise.
6158 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
6159 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
6160 * print-tree.c (print_node): Handle various used of unsigned_flag.
6161 * tree.def (BIT_FIELD_REF): Update comment.
6162 * tree.h (TREE_UNSIGNED): Deleted.
6163 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
6164
6165 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6166
6167 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
6168 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
6169 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
6170 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
6171 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
6172 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
6173 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
6174 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
6175 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
6176 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
6177 REAL_TYPE, not INTEGER_TYPE.
6178 (layout_type, case VECTOR_TYPE): Simplify code.
6179 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
6180 * tree.h: Update comments.
6181 (STRIP_NOPS): Use TYPE_UNSIGNED.
6182 (TYPE_UNSIGNED): New macro.
6183 (TYPE_TRAP_SIGNED): Remove now redundant check.
6184 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
6185
6186 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6187
6188 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
6189
6190 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
6191
6192 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
6193 Add darwin-fpsave.asm, darwin-vecsave.asm,
6194 and darwin-world.asm.
6195 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
6196 as the asm files contain altivec instructions.
6197 * config/rs6000/darwin-fpsave.asm: New file.
6198 * config/rs6000/darwin-vecsave.asm: New file.
6199 * config/rs6000/darwin-world.asm: New file.
6200
6201 2004-03-31 Zack Weinberg <zack@codesourcery.com>
6202
6203 * gengtype-yacc.y (option, stringseq): Add missing
6204 terminating semicolon.
6205
6206 2004-03-30 David Edelsohn <edelsohn@gnu.org>
6207
6208 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
6209 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
6210 tls_dtprel_ha_32, tls_dtprel_ha_64,
6211 tls_dtprel_lo_32, tls_dtprel_lo_64,
6212 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
6213 tls_tprel_ha_32, tls_tprel_ha_64,
6214 tls_tprel_lo_32, tls_tprel_lo_64,
6215 tls_got_tprel_32, tls_got_tprel_64,
6216 tls_tls_32, tls_tls_64): Replace register_operand with
6217 gpc_reg_operand.
6218
6219 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
6220
6221 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
6222 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
6223 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
6224 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
6225 *ctrdi_internal6): Replace register_operand with
6226 nonimmediate_operand.
6227
6228 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
6229
6230 * fold-const.c (fold): Reassociate multiply expression
6231 with an adjacent non-multiply expression to use
6232 architecture's multiply-add instruction.
6233
6234 2004-03-30 Zack Weinberg <zack@codesourcery.com>
6235
6236 * gengtype.c (create_option): New function.
6237 * gengtype.h: Prototype it.
6238 * gengtype-yacc.y (stringseq): New rule.
6239 (option): Use create_option. Add new bare ID production. Use
6240 stringseq, not STRING directly.
6241
6242 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
6243 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
6244 * varray.h, config/alpha/alpha.c:
6245 Use new shorter form of GTY markers.
6246
6247 * doc/gty.texi: Rewrite.
6248
6249 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
6250
6251 * config/darwin.c (machopic_function_base_name):
6252 Remove current_name and getting the name of the
6253 current function.
6254
6255 2004-03-30 Nick Clifton <nickc@redhat.com>
6256
6257 * config/arm/arm.md (thumb_jump): Reduce the backward branch
6258 range, and increase the forward branch range, to allow for
6259 the fact that the PC will be off by 4.
6260
6261 2004-03-30 Alan Modra <amodra@bigpond.net.au>
6262
6263 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
6264
6265 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
6266
6267 * config/rs6000/rs6000.c (output_vec_const_move):
6268 Find all cases of EASY_VECTOR_15_ADD_SELF.
6269 (easy_vector_constant_add_self): Accept
6270 all vector constant loadable by vsplt* and vadd*.
6271 (easy_vector_same): Use easy_vector_splat_const.
6272 (easy_vector_const): Use easy_vector_splat_const.
6273 (easy_vector_splat_const): New function.
6274 (gen_easy_vector_constant_add_self): New function.
6275
6276 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
6277 New prototype.
6278
6279 * config/rs6000/altivec.md (movv4si splitter): Change to
6280 emit move insn with halfed vector constant.
6281 (*movv8hi splitter): Likewise.
6282 (*movv16qi splitter): Likewise.
6283
6284 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
6285
6286 PR 11591
6287 * config/rs6000/rs6000.c (rs6000_legitimate_address):
6288 Allow any offset to argument pointer in no-strict case.
6289
6290 2004-03-30 Jan Hubicka <jh@suse.cz>
6291
6292 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
6293 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
6294 dump file in non-unit-at-a-time mode.
6295
6296 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
6297
6298 * config/cris/cris.h: Correct #ifdef to test for
6299 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
6300 HAVE_AS_MUL_BUG_ABORT_OPTION.
6301
6302 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6303
6304 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
6305 the address inside the old RTL.
6306
6307 2004-03-28 Zack Weinberg <zack@codesourcery.com>
6308
6309 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
6310 (struct c_binding, struct c_scope): Add chain_next
6311 attributes to GTY markers.
6312 (struct lang_identifier, struct lang_tree_node): Define
6313 here...
6314 * c-tree.h: ... not here. No longer need to declare struct
6315 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
6316 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
6317 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
6318
6319 PR 14734, 11944
6320 * c-decl.c (get_parm_info): If error_mark_node is encountered
6321 in the bindings chain, unbind and discard it; don't abort.
6322
6323 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
6324 Dorit Naishlos <dorit@il.ibm.com>
6325
6326 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
6327 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
6328
6329 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6330
6331 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
6332
6333 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
6334 (m68hc11_attribute_table): New attribute "page0" to mark a global
6335 variable as being allocated from within page0 section.
6336 (m68hc11_encode_label): New function.
6337 (m68hc11_strip_name_encoding): New function.
6338 (m68hc11_page0_symbol_p): New function.
6339 (m68hc11_indirect_p): Accept global variables marked in page0.
6340 (m68hc11_encode_section_info): Lookup "page0" attribute.
6341
6342 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
6343 represents access to page0 variables.
6344
6345 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
6346 ("*logicalsi3_silshl16_zext"): Likewise.
6347 ("*ashldi3_const32"): Likewise.
6348 (peephole2 ashift): Likewise.
6349
6350 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
6351
6352 * c-tree.h (C_DECL_REGISTER): New.
6353 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
6354 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
6355 (build_array_ref, c_mark_addressable): Set and use it.
6356 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
6357 Allow structures with volatile fields to be declared register.
6358 Don't check TREE_ADDRESSABLE before warning about taking address
6359 of register.
6360 * c-decl.c (finish_decl): Don't allow structures with volatile
6361 fields to be placed in named register.
6362 * doc/trouble.texi: Remove reference to structures with volatile
6363 fields in registers.
6364
6365 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6366
6367 * function.c (thread_prologue_and_epilogue): Move
6368 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
6369 before the epilogue.
6370
6371 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
6372
6373 * expr.c (store_constructor): Use gen_int_mode to correctly
6374 sign-extend CONST_INT value.
6375
6376 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6377
6378 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
6379 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
6380 * doc/extend.texi: Likewise.
6381
6382 2004-03-26 Diego Novillo <dnovillo@redhat.com>
6383
6384 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
6385 with TYPE_ORIG_SIZE_TYPE.
6386
6387 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
6388
6389 PR 14219
6390 * c-typeck.c (build_binary_op): Do not allow comparisons of
6391 vectors.
6392
6393 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
6394
6395 * config.gcc: Remove sparc-tti-*.
6396 * config/sparc/pbd.h: Delete.
6397
6398 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
6399 * config/sparc/aout.h: Likewise.
6400
6401 * config/sparc/sparc.h: Remove if 0'd code.
6402 * config/sparc/sparc.md (call): Remove if 0'd code.
6403 (call_value): Likewise.
6404 (nonlocal_goto): Likewise.
6405 (unimp_insn): Delete.
6406
6407 2004-03-25 Roger Sayle <roger@eyesopen.com>
6408
6409 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
6410 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
6411
6412 2004-03-25 Richard Henderson <rth@redhat.com>
6413
6414 PR 11527
6415 * c-typeck.c (pop_init_level): Emit pending init elements earlier
6416 rather than later.
6417
6418 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6419
6420 * builtins.c (fold_builtin): Fix error in last change.
6421
6422 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
6423
6424 * config/mips/mips.h: Formatting fix.
6425
6426 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6427
6428 * builtins.def: Add ctype builtins.
6429 * doc/extend.texi: Likewise.
6430
6431 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6432
6433 * builtins.c (fold_builtin): Add new builtin optimizations for
6434 sqrt and/or cbrt.
6435 * fold-const.c (fold): Likewise.
6436
6437 2004-03-25 David Edelsohn <edelsohn@gnu.org>
6438
6439 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
6440 (rs6000_sched_groups): New variable.
6441 (processor_target_table): Add power5.
6442 (rs6000_override_options): Set rs6000_sched_insert_nops,
6443 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
6444 from rs6000_sched_groups.
6445 (output_cbranch): Use rs6000_always_hint.
6446 (rs6000_variable_issue): Use rs6000_sched_groups.
6447 (rs6000_adjust_cost): Add CPU_POWER5.
6448 (is_microcoded_insn): Use rs6000_sched_groups.
6449 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
6450 Return 2 for POWER5 cracked instructions.
6451 (is_cracked_insn): Use rs6000_sched_groups.
6452 (is_branch_slot_insn): Use rs6000_sched_groups.
6453 (rs6000_issue_rate): Add CPU_POWER5.
6454 (rs6000_sched_finish): Use rs6000_sched_groups.
6455 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
6456 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
6457 (DEFAULT_SCHED_COSTLY_DEP): Delete.
6458 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
6459 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
6460 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
6461 * config/rs6000/power5.md: New file.
6462 * doc/invoke.texi: Add power5 option.
6463
6464 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
6465
6466 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
6467 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
6468 * doc/invoke.texi: Fix a typo.
6469
6470 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
6471
6472 PR optimization/9707.
6473 * stmt.c (emit_case_nodes): Emit equality comparisons instead
6474 of recursing if both children are single-valued cases with no
6475 children.
6476
6477 2004-03-25 Paul Brook <paul@codesourcery.com>
6478
6479 * config/arm/arm.c (vfp_print_multi): Remove.
6480 (arm_output_fldmx): New function.
6481 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
6482 (arm_expand_prologue): Update to match.
6483 (arm_get_vfp_saved_size): New Function.
6484 (arm_get_frame_offsets): Use it.
6485 (arm_output_epilogue): Use new functions.
6486
6487 2004-03-24 Richard Henderson <rth@redhat.com>
6488
6489 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
6490 (reg_known_value, reg_known_value_size): Likewise; make static.
6491 (reg_known_equiv_p): Make static.
6492 (clear_reg_alias_info): Update for new indexing.
6493 (get_reg_known_value, set_reg_known_value): New.
6494 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
6495 (canon_rtx): Use them.
6496 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
6497 Don't play queer offsetting games with reg_known_value and
6498 reg_known_equiv_p.
6499 (end_alias_analysis): Free reg_known_value with gc.
6500 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
6501 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
6502 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
6503 functions instead.
6504
6505 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
6506
6507 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
6508 config/i386/mmintrin.h: Update copyright.
6509
6510 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
6511
6512 * configure.ac: Add --enable-werror-always (for top level bootstrap
6513 support).
6514 * configure: Regenerate.
6515
6516 2004-03-24 Ziemowit Laski <zlaski@apple.com>
6517
6518 * objc/objc-act.c (objc_comptypes): Treat comparisons
6519 between 'Class' and '<class> *' as explicitly invalid.
6520
6521 2004-03-24 David Edelsohn <edelsohn@gnu.org>
6522
6523 * doc/invoke.texi (-frename-registers): Add enabled at -O3.
6524 (-fprofile-values): Add enabled with profile-{generate,use}.
6525 (-fvpt): Same.
6526 (-ftracer): Add enabled with profile-use.
6527 (-funit-at-a-time): Add enabled at -O2,-O3.
6528 (-funroll-loops): Add enabled with profile-use.
6529 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
6530 (max-gcse-passes): Mention default.
6531 (max-cse-path-length): Mention default.
6532
6533 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
6534
6535 * Makefile.in (STRICT2_WARN): Reorder.
6536 * configure.ac: Check for -Wold-style-definition, and use it
6537 in strict1_warn if it's available.
6538 * configure: Regnerate.
6539
6540 2004-03-24 Paul Brook <paul@nowt.org>
6541
6542 * config.gcc <arm>: Add --with-abi=
6543 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
6544 thumb_far_jump_used): Remove prototypes.
6545 (arm_needs_doubleword_align): Add prototype.
6546 (thumb_compute_initial_elimination_offset): Ditto.
6547 * config/arm/arm.c (arm_get_frame_offsets): New function.
6548 (use_return_insn, output_return_instruction, arm_output_epilogue,
6549 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
6550 arm_expand_prologue, thumb_expand_epilogue): Use it.
6551 (arm_abi, target_abi_name, all_arm_abis): New variables.
6552 (arm_override_options): Set them. Set structure padding for AAPCS.
6553 (arm_return_in_memory): Update ABI check.
6554 (arm_init_cumulative_args): Initialize can_split.
6555 (arm_needs_doubleword_align): New function.
6556 (arm_function_arg): Don't split args after pushing to stack. Handle
6557 doubleword/even reg alignment.
6558 (arm_va_arg): Handle all doubleword aligned args.
6559 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
6560 on ABI, not CPU.
6561 (arm_compute_save_reg0_reg12_mask): Fix comment.
6562 (thumb_get_frame_size, thumb_get_frame_size): Remove.
6563 (thumb_jump_far_used_p): Remove superfluous argument. Return save
6564 value for alignment.
6565 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
6566 to match.
6567 (thumb_compute_initial_elimination_offset): New function.
6568 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
6569 unneccessary rounding.
6570 * config/arm/arm.h (target_abi_name): Declare.
6571 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
6572 arm_abi_type, ARM_DEFAULT_ABI): Define.
6573 (ARM_FLAG_ATPCS): Remove.
6574 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
6575 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
6576 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
6577 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
6578 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
6579 Contitionalize on ABI, not CPU.
6580 (struct arm_stack_offsets): Define.
6581 (struct machine_function): Add stack_offsets. Remove frame_size.
6582 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
6583 pushed.
6584 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
6585 doubleword alignment.
6586 (THUMB_INITIAL_ELIMINATION_OFFSET,
6587 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
6588 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
6589 * config/arm/arm.md (align_8): Enable for all targets.
6590 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
6591 (ARM_DEFAULT_ABI): Define.
6592 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
6593 -mstructure-size-boundary.
6594
6595 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
6596
6597 * configure.ac: Check for -Wno-variadic-macros; don't use
6598 -pedantic (in stage 1 or a simple 'make all') unless it's available,
6599 and if it's available, use it. Also, clean up check for
6600 -Wno-long-long.
6601 * configure: Regenerate.
6602
6603 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
6604
6605 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
6606 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
6607 (MULTILIB_DEFAULTS): Use it.
6608 (MIPS_CPU_STRING_DEFAULT): Remove.
6609 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
6610 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
6611 EABI64 -mlong32 the default ABI. Enforce the default architecture.
6612 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
6613 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
6614 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
6615 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
6616 accordingly.
6617
6618 2004-03-24 DJ Delorie <dj@redhat.com>
6619 Richard Sandiford <rsandifo@redhat.com>
6620
6621 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
6622 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
6623 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
6624 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
6625 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
6626 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
6627 if TARGET_FIX_VR4122.
6628 * config/mips/mips.md (define_attr length): Account for nops inserted
6629 after macc and dmult when using -mfix-vr4122-bugs.
6630 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
6631 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
6632 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
6633 * config/mips/vr4122-div.S: New file.
6634 * doc/invoke.texi: Document -mfix-vr4122-bugs.
6635
6636 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
6637
6638 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
6639 (TARGET_MIPS4130): New macro.
6640 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
6641 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
6642 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
6643 with PROCESSOR_R4130.
6644 * config/mips/mips.md (define_attr cpu): Add r4130.
6645 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
6646
6647 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6648 Richard Sandiford <rsandifo@redhat.com>
6649
6650 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
6651
6652 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
6653
6654 PR preprocessor/14438
6655 * cpplib.c (do_pragma): Remove line_change call after pragma
6656 handler.
6657
6658 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
6659
6660 * doc/extend.texi (ARM Built-in Functions): Replace with correct
6661 declarations.
6662
6663 2004-03-23 Roger Sayle <roger@eyesopen.com>
6664
6665 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
6666 if flag_unsafe_math_optimizations.
6667 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
6668 and TARGET_80387 expand using truncdfsf2_noop pattern.
6669 (truncxfsf2): Likewise using truncxfsf2_noop.
6670 (truncxfdf2): Likewise using truncxfdf2_noop.
6671 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
6672
6673 2004-03-23 Ziemowit Laski <zlaski@apple.com>
6674
6675 * hooks.c (hook_constcharptr_tree_null): New hook.
6676 * hooks.h (hook_constcharptr_tree_null): New prototype.
6677 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
6678 * target.h (mangle_fundamental_type): New target hook.
6679 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
6680 target hook at rs6000_mangle_fundamental_type.
6681 (rs6000_mangle_fundamental_type): New function.
6682 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
6683
6684 2004-03-23 Zack Weinberg <zack@codesourcery.com>
6685
6686 PR 12267, 12391, 12560, 13129, 14114, 14133
6687 * c-tree.h: Forward declare struct c_binding. Declare
6688 c_override_bindings_to_false. Update prototypes.
6689 (struct lang_identifier): Update comments. Change fields to be
6690 struct c_binding *.
6691 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
6692 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
6693 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
6694 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
6695 * c-common.h: Update prototypes.
6696 * c-decl.c (struct c_scope): Update commentary. Remove names,
6697 names_last, parms, parms_last, tags, and shadowed fields. Add
6698 bindings and depth fields.
6699 (scope_freelist): Move to more appropriate location.
6700 (c_print_identifier): Update for changes to struct lang_identifier.
6701 (objc_mark_locals_volatile): Update for new bindings structures.
6702 (global_bindings_p): Honor c_override_global_bindings_to_false.
6703 (pushlevel): Rename to push_scope; take no arguments; use the
6704 scope_freelist; initialize scope->depth and check for overflow.
6705 (poplevel): Rename to pop_scope; totally rewritten for new bindings
6706 structures.
6707 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
6708 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
6709 Improve some commentary. Adjust handling of forward parm decls.
6710 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
6711 Preserve C_DECL_IN_EXTERNAL_SCOPE.
6712 (warn_if_shadowing): Correct indentation. Improve diagnostics.
6713 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
6714 decls. Rewrite for new bindings structures. Improve commentary.
6715 Eliminate the copy_node call.
6716 (implicit_decl_warning): Use the "diag" idiom (as seen in
6717 locate_old_decl) to reduce code duplication; call locate_old_decl
6718 if appropriate. Relocate to remove need for forward declaration.
6719 (implicitly_declare): Adjust for new bindings structures. Kludge
6720 around Objective-C not-really-builtin functions.
6721 (undeclared_variable): Improve diagnostics. If current_function_decl
6722 is nonnull but current_function_scope is null, use current_scope.
6723 Use bind.
6724 (lookup_tag): Adjust for new bindings structures. Kludge around
6725 Objective-C's tag declarations that wind up in the external scope.
6726 (lookup_name): Adjust for new bindings structures. Kludge around
6727 c-common.c's pseudo-typedefs that wind up in the external scope.
6728 (lookup_name_current_level): Rename lookup_name_in_scope; take a
6729 second argument indicating the scope to examine; rewrite for
6730 new bindings structures.
6731 (c_init_decl_processing): Adjust for renamed functions. Do not
6732 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
6733 First scope pushed is the external scope, not the global scope.
6734 (builtin_function): Use bind, not pushdecl. Adjust other bits
6735 for new data structures. Keep track of builtins that should be
6736 made visible automatically.
6737 (start_decl): Adjust diagnostics. Remove unnecessary call to
6738 expand_decl.
6739 (grokparms): Return 0 if arg_types is error_mark_node.
6740 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
6741 reversed sense. Rewrite for new bindings structures. Do not
6742 leave any decls in the scope, to prevent pop_scope from doing
6743 contradictory things with them.
6744 (finish_struct, finish_enum): Remove redundant diagnostics.
6745 (build_enumerator): Don't cascade diagnostics for error_mark_node.
6746 Mark location where -pedantic changes the meaning of the program.
6747 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
6748 parameter decls into the function's scope structure using bind.
6749 Warn here about function definitions in the wrong style.
6750 Adjust diagnostics.
6751 (store_parm_decls): Correct the determination of whether a
6752 function was defined with a prototype.
6753 (c_write_global_declarations): Operate on all file decls and on
6754 the external scope. Split body of the loop to...
6755 (c_write_global_declarations_1): ... this new function, to avoid
6756 code duplication.
6757 (truly_local_externals, first_builtin_decl, last_builtin_decl)
6758 (make_scope, pop_scope, in_parm_level_p, set_block)
6759 (any_external_decl, record_external_decl, bind_label, getdecls)
6760 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
6761 (c_reset_state): Delete.
6762 (visible_builtins, c_override_global_bindings_to_false)
6763 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
6764 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
6765 (external_scope, binding_freelist, bind, free_binding_and_advance)
6766 (push_file_scope, pop_file_scope): New.
6767 (pushtag, pushdecl_top_level, lookup_label, declare_label)
6768 (define_label, c_make_fname_decl, finish_decl)
6769 (mark_forward_parm_decls, build_compound_literal)
6770 (grokdeclarator, start_function, check_for_loop_decls)
6771 (identifier_global_value, record_builtin_type): Minor adjustments
6772 for new bindings structures. Improve diagnostics and commentary.
6773 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
6774 pushlevel/poplevel respectively.
6775 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
6776 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
6777 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
6778 correct loop over multiple translation units; call fatal_error if
6779 requested to compile more than one file at once. (This disables
6780 IMA temporarily - an up-front error being preferable to a crash.)
6781 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
6782 (all actions): Adjust calls to pushlevel/poplevel.
6783 (parsing_iso_function_signature): Delete.
6784 (extdef_1): Fold into extdef.
6785 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
6786 warn here about function definitions in the wrong style.
6787 (after_tyle_declarator, parm_declarator_starttypename)
6788 (parm_declarator_nostarttypename, notype_declarator): Remove
6789 commented-out productions.
6790 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
6791 an empty TREE_LIST node. Adjust calls to get_parm_info.
6792 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
6793 to suppress -Wold-style-definition after this error.
6794 (c_parse_file): Don't clear the binding stack or call
6795 finish_fname_decls here. Correct comment.
6796 * c-typeck.c (same_translation_unit_p): Export.
6797 (common_type): Use c_override_global_bindings_to_false, not
6798 pushlevel/poplevel/declare_parm_level.
6799 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
6800 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
6801 and LANG_HOOKS_GETDECLS with do-nothing stubs.
6802 * objc/objc-lang.c: Likewise.
6803 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
6804 get_parm_info.
6805 (OBJC_VOID_AT_END): Delete; replace all uses
6806 with void_list_node.
6807 (generate_forward_declaration_to_string_table): Delete.
6808 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
6809
6810 * coverage.c (create_coverage): Don't pushdecl anything.
6811 * langhooks.c (lhd_clear_binding_stack): Call
6812 lang_hooks.decls.poplevel, not poplevel.
6813 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
6814 circular list rather than going into an infinite loop.
6815
6816 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
6817
6818 * optabs.c (expand_binop): When synthesizing double word rotates
6819 from single word shifts, use a new register target if the provided
6820 target is not a REG already.
6821
6822 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6823
6824 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
6825 * c-common.c (handle_mode_attribute): Add extra arg to
6826 build_pointer_type_for_mode and build_reference_type_for_mode.
6827 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
6828 for INTEGER_CST.
6829 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
6830 Chain pointers via TYPE_NEXT_PTR_TO.
6831 (build_reference_type_for_mode): Similarly.
6832 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
6833 and build_reference_type_for_mode.
6834 (tree_check4_failed): New function.
6835 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
6836 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
6837 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
6838 Add check.
6839
6840 2004-03-23 Roger Sayle <roger@eyesopen.com>
6841
6842 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
6843 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
6844 when both A and B are nonnegative.
6845 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
6846 nonzero.
6847
6848 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
6849
6850 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
6851 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
6852
6853 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
6854
6855 PR optimization/14669
6856 * fold-const.c (fold): Only unwiden integer comparisons for equality
6857 and inequality operators, or when the signedness doesn't change.
6858
6859 2004-03-23 Jakub Jelinek <jakub@redhat.com>
6860
6861 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
6862 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
6863 * config/sparc/t-linux: New file.
6864
6865 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
6866
6867 * gcse.c (can_assign_to_reg_p): New function, split out from...
6868 (want_to_gcse_p): ...here.
6869 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
6870 the rhs of a store.
6871
6872 2004-03-22 Diego Novillo <dnovillo@redhat.com>
6873
6874 * c-typeck.c (same_translation_unit_p): Fix pasto.
6875
6876 2004-03-22 David Edelsohn <edelsohn@gnu.org>
6877
6878 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
6879 (PARAM_MAX_SCHED_REGION_INSNS): New.
6880 * sched-rgn.c: Include params.h
6881 (MAX_RGN_BLOCKS): Delete.
6882 (MAX_RGN_INSNS): Delete.
6883 (too_large): Return bool. Convert to PARAM_VALUE.
6884 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
6885 * doc/invoke.texi (param): Document max-sched-region-blocks and
6886 max-sched-region-insns.
6887
6888 2004-03-22 Joel Brobecker <brobecker@gnat.com>
6889
6890 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
6891 for base types.
6892
6893 2004-03-22 Joel Brobecker <brobecker@gnat.com>
6894
6895 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
6896 change.
6897
6898 2004-03-22 Jakub Jelinek <jakub@redhat.com>
6899
6900 PR c/14069
6901 * c-decl.c (finish_struct): Change type of incorrect flexible array
6902 field into error_mark_node.
6903
6904 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
6905
6906 PR target/14580
6907 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
6908 who are not local for Darwin PIC.
6909
6910 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
6911
6912 * regrename.c (regrename_optimize): Set regs_ever_live for all
6913 registers introduced as replacement.
6914
6915 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
6916
6917 PR middle-end/14470
6918 * expr.c (mark_queue): New function.
6919 (emit_insns_enqueued_after_mark): New function replacing
6920 emit_queue. Clear the body of emitted queued insns.
6921 (emit_queue): Call emit_insns_enqueued_after_mark.
6922 (store_expr): Mark the increment queue on entry. Emit
6923 only the incrementations queued when expanding the source.
6924
6925 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
6926
6927 * configure.ac: Allow --disable-coverage-flags (for the future benefit
6928 of top level bootstrap, and consistency). Reindent.
6929 * configure: Regenerate.
6930
6931 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
6932
6933 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
6934 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
6935 unnecessary casts.
6936
6937 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
6938
6939 PR target/14291
6940 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
6941 __MINGW32__.
6942
6943 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6944
6945 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
6946 to nonimmediate_operand.
6947 ("*doloop_di"): Likewise.
6948
6949 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
6950
6951 * real.h (struct real_value): Use the same type for all
6952 bitfields. Rename exp to uexp.
6953 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
6954 Adjust all uses of exp...
6955 * builtins.c: ... here, ...
6956 * emit-rtl.c: ... here, and ...
6957 * real.c: ... and here.
6958
6959 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
6960
6961 * pretty-print.c (pp_base_maybe_space): New function.
6962 * pretty-print.h (pp_base_maybe_space): Declare.
6963 (pp_maybe_space): New macro.
6964
6965 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6966
6967 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
6968
6969 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
6970
6971 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
6972 of using register multiplication cost.
6973 (expand_mult): Adapt choose_mult_variant call.
6974 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
6975 of MODE; pass appropriate cost bound. Adjust result when
6976 performing signed multiplication by a negative constant.
6977 Don't use intermediate modes larger than word_mode.
6978
6979 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6980
6981 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
6982 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
6983 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6984 * explow.c (expr_size): Likewise.
6985 * expr.h (placeholder_list, find_placeholder): Deleted.
6986 * expr.c (store_constructor): Likewise.
6987 (get_inner_reference): Likewise. Also don't call find_placeholder.
6988 (placeholder_list, find_placeholder): Deleted.
6989 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
6990 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
6991 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
6992 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
6993 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
6994 Likewise.
6995 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
6996 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
6997 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
6998 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
6999 Clean up by using first_rtl_op.
7000 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
7001 (substitute_placeholder_in_expr): New function.
7002 * tree.def (WITH_RECORD_EXPR): Deleted.
7003 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
7004 (substitute_placeholder_in_expr): New.
7005
7006 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
7007
7008 * dojump.c (prefer_and_bit_test): Fix which part of
7009 the and_test is replaced.
7010
7011 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
7012
7013 * frontends.texi: Add missing line.
7014
7015 2004-03-21 Zack Weinberg <zack@codesourcery.com>
7016 Chris Devers <cdevers@pobox.com>
7017 Joseph S. Myers <jsm@polyomino.org.uk>
7018
7019 * doc/frontends.texi: Rewrite.
7020 * doc/gcc.texi: Update last modification date.
7021
7022 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
7023
7024 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
7025 message before redirecting the edge.
7026
7027 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7028
7029 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
7030 flag.
7031 * explow.c (force_not_mem): Set REG_POINTER flag according to
7032 MEM_POINTER one.
7033 * rtl.h (MEM_POINTER): New macro.
7034 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
7035 for MEM_POINTER.
7036
7037 2004-03-20 Roger Sayle <roger@eyesopen.com>
7038
7039 PR target/13889
7040 * cse.c (fold_rtx): Avoid substituting constants into unary
7041 conversion operations.
7042
7043 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7044
7045 * fold-const.c (fold): Replace "expr" with "t".
7046
7047 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
7048
7049 PR c/12373
7050 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
7051 DECL_ORIGINAL_TYPE if there isn't one.
7052
7053 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7054
7055 * fold-const.c (fold): Replace "final_type" with "type".
7056 Remove variable "final_type".
7057
7058 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7059
7060 * fold-const.c (fold): Constify "type".
7061 Replace "TREE_TYPE (t)" with "type".
7062
7063 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7064
7065 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
7066 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
7067 via (*targetm.foo) () with targetm.foo ().
7068
7069 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
7070
7071 PR other/14630
7072 * doc/install.texi: Add info directory category and entry.
7073
7074 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7075
7076 * fold-const.c (fold): Replace "t" with "tem" where it is used
7077 as a temporary variable. Remove "orig_t" and all of its uses.
7078
7079 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7080
7081 * fold-const.c (fold): Remove variable "invert".
7082 Move the handling of relational expressions that can be folded
7083 to a constant ...
7084 (fold_relational_const): ... here.
7085 (tree_expr_nonzero_p): New.
7086
7087 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
7088
7089 PR c/14635
7090 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
7091 DEF_GCC_BUILTIN.
7092
7093 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
7094
7095 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
7096 (GTFILES): Add $(srcdir)/dojump.h.
7097 (gt-dojump.h): New dependency.
7098 * dojump.c (and_reg, and_test, shift_test): New static variables.
7099 (prefer_and_bit_test): New function.
7100 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
7101
7102 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7103
7104 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
7105 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
7106 reorg.c, tree.h: Fix comment typos.
7107
7108 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
7109
7110 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
7111 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
7112 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
7113 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
7114 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
7115 vmsdbgout.c: Replace calls via (*targetm.foo) () with
7116 targetm.foo ().
7117
7118 2004-03-19 Ziemowit Laski <zlaski@apple.com>
7119
7120 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
7121 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
7122 always_inline attribute.
7123 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
7124 Treat expansion as completed even if literal argument is
7125 invalid (so that other expansions are not tried in vain).
7126
7127 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
7128
7129 * loop-doloop.c (add_test): Replace GEN_INT (0) with
7130 const0_rtx.
7131
7132 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
7133
7134 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
7135 ...
7136 (fold_abs_const): ... here.
7137
7138 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7139
7140 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
7141
7142 2004-03-19 Denis Chertykov <denisc@overta.ru>
7143
7144 PR target/11520
7145 * config/avr/avr.md ("call_insn"): Handle explicit integer
7146 specially.
7147 (call_value_insn): Likewise.
7148
7149 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7150
7151 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
7152
7153 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
7154
7155 * fold-const.c (negate_expr): Move the handling of constants
7156 ...
7157 (fold_negate_const): ... here.
7158
7159 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7160
7161 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
7162 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
7163 * tree.c (debug_no_type_hash): Deleted.
7164 (type_hash_canon): Abort if passed a variant.
7165 Check lang_hooks.types.hash_types.
7166 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
7167 (build_array_type): Remove unnecessary allocation of pointer type.
7168 (build_complex_type): Properly qualify resulting type.
7169
7170 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
7171
7172 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
7173
7174 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
7175
7176 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
7177 (expand_mult): ...here.
7178 (extract_high_half): New, split out from expand_mult_highpart.
7179 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
7180 (expand_highpart): Evaluate the cost of a shift/add sequence,
7181 then see if any of the specialized optabs are cheaper.
7182
7183 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
7184
7185 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
7186
7187 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7188
7189 * convert.c (convert_to_real): Add more math builtins.
7190
7191 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7192
7193 * convert.c (convert_to_real): Reformat using switch stmt.
7194
7195 2004-03-18 Mark Mitchell <mark@codesourcery.com>
7196
7197 * c-common.c (pointer_int_sum): Do not complain about using
7198 pointers to pointers-to-members.
7199
7200 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
7201
7202 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
7203 have moved to the target hooks structure".
7204
7205 2004-03-18 James E Wilson <wilson@specifixinc.com>
7206
7207 * config/mips/mips.md (type): Split move into arith and fmove. Split
7208 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
7209 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
7210 Likewise.
7211 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
7212 Likewise.
7213 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
7214 rm7_fp_quick): Likewise.
7215 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
7216 rm9k_fquick): Likewise.
7217 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
7218 Likewise.
7219 (ir_sr70_icmp): Delete.
7220
7221 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7222
7223 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
7224 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
7225 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
7226 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
7227 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
7228 Protect with proper check.
7229 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
7230 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
7231 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
7232 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
7233 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
7234 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
7235 not TYPE_FIELDS.
7236 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
7237
7238 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
7239
7240 * gcse.c (eliminate_partially_redundant_loads): Reject change if
7241 dest is set between beginning and current insn.
7242
7243 2004-03-18 Mark Mitchell <mark@codesourcery.com>
7244
7245 * c-decl.c (grokdeclarator): Do not complain about redeclaring
7246 visible "static" identifiers "extern" in a local scope.
7247 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
7248 post-increments/decrements.
7249
7250 2004-03-18 Bob Wilson <bob.wilson@acm.org>
7251
7252 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
7253 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
7254 (xtensa_va_start): Remove assignment to current_function_arg_words.
7255
7256 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
7257
7258 * alias.c (record_set): Detect the case where a register is assigned
7259 a new value that has the same base term as the old one.
7260
7261 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7262
7263 * doloop.c: Removed.
7264 * loop-doloop.c: New file.
7265 * Makefile.in (doloop.o): Remove.
7266 (loop-doloop.o): New.
7267 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
7268 * cfgloopanal.c (get_loop_level): New function.
7269 * loop-iv.c (iv_number_of_iterations): Handle case when loop
7270 is leaved immediatelly.
7271 * loop.c (strength_reduce): Do not call doloop optimization.
7272 * loop.h (LOOP_BCT): Removed.
7273 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
7274 (rest_of_handle_loop2): Call doloop_optimize_loops.
7275 (rest_of_compilation): Test for optimizations moved to
7276 rest_of_handle_loop2.
7277
7278 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
7279
7280 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
7281 for mixed mode.
7282 (rs6000_emit_prologue): Ditto.
7283 (rs6000_emit_epilogue): Ditto.
7284 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
7285 macro for mixed mode.
7286
7287 2004-03-18 Jan Hubicka <jh@suse.cz>
7288
7289 * predict.c (propagate_freq): Compute correctly frequency of
7290 EXIT_BLOCK.
7291
7292 2004-03-17 Eric Christopher <echristo@redhat.com>
7293
7294 * builtins.c (apply_args_size): Use reg_raw_mode.
7295 (apply_result_size): Ditto.
7296
7297 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7298
7299 PR target/14620
7300 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
7301
7302 2004-03-17 Jakub Jelinek <jakub@redhat.com>
7303
7304 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
7305 32-bit builds when defaulting to 32-bit.
7306
7307 2004-03-17 Jan Hubicka <jh@suse.cz>
7308
7309 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
7310 array.
7311
7312 2004-03-17 James E Wilson <wilson@specifixinc.com>
7313
7314 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
7315 (hazard_nop): Change type to nop.
7316 (type): Split arith into arith, shift, slt, clz. Delete darith.
7317 Fix all uses. Change arith to multi if more than one insn emitted.
7318 * config/mips/5400.md (ir_vr54_arith): Likewise.
7319 * config/mips/5500.md (ir_vr55_arith): Likewise.
7320 * config/mips/7000.md (rm7_int_other): Likewise.
7321 * config/mips/9000.md (rm9k_int): Likewise.
7322 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
7323
7324 2004-03-17 Joel Brobecker <brobecker@gnat.com>
7325
7326 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
7327 to hold the subtype tree instead of recomputing it several times.
7328
7329 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
7330
7331 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
7332 CC_INVERT.
7333 * config/mn10300/mn10300.md (cc): Remove "invert".
7334
7335 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7336
7337 * builtins.c (integer_valued_real_p): Add builtin rint.
7338 (fold_builtin): Likewise.
7339 * convert.c (convert_to_real): Likewise.
7340
7341 * convert.c (convert_to_real): Fix typos in `long double'
7342 builtins.
7343
7344 2004-03-16 Mark Mitchell <mark@codesourcery.com>
7345
7346 PR c++/14481
7347 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
7348 generated COMPOUND_EXPRs.
7349
7350 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7351
7352 * config/h8300/t-rtems (h8300-*-rtems*): New.
7353
7354 2004-03-16 Eric Christopher <echristo@redhat.com>
7355
7356 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
7357
7358 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
7359
7360 * config/i386/i386-protos.h: Add a prototype for
7361 ix86_reverse_condition.
7362 * config/i386/i386.c (ix86_reverse_condition): New.
7363 * config/i386/i386.h (REVERSE_CONDITION): Use
7364 ix86_reverse_condition.
7365 * config/i386/i386.md: Use ix86_reverse_condition instead of
7366 REVERSE_CONDITION.
7367
7368 2004-03-16 J. Brobecker <brobecker@gnat.com>
7369
7370 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
7371
7372 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
7373
7374 PR bootstrap/12974
7375 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
7376
7377 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
7378
7379 * c-common.c (c_common_type_for_mode): Build vector types on
7380 demand.
7381 (handle_mode_attribute): Deprecate using the mode attribute
7382 to create vector types. Fix indentation.
7383 (vector_type_node_list): Remove.
7384 (handle_vector_size_attribute): Create vector types on demand.
7385 Strip a NON_LVALUE_EXPR from the attribute if there is one.
7386 * c-typeck.c (comptypes): Make vector types compatible if they
7387 have the same underlying mode.
7388 (convert_for_assignment): Use comptypes to convert between
7389 vector types.
7390 * tree.c (build_common_tree_nodes_2): Do not create vector types.
7391 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
7392 vector types.
7393 * tree.h: Remove vector types.
7394 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
7395 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
7396 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
7397 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
7398 * doc/extend.texi (Vector Types): Document how to use the
7399 vector_size attribute to create vectors, rather than mode.
7400
7401 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
7402 * config/i386/emmintrin.h: Likewise.
7403 * config/i386/mmintrin.h: Likewise.
7404 * config/i386/xmmintrin.h: Likewise.
7405 * config/sh/ushmedia.h: Likewise.
7406
7407 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
7408
7409 * config/freebsd-spec.h, config/arc/arc-protos.h,
7410 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
7411 config/arm/linux-gas.h, config/arm/semi.h,
7412 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
7413 config/ia64/freebsd.h, config/mips/7000.md,
7414 config/mips/9000.md, config/ns32k/ns32k-protos.h,
7415 config/sparc/pbd.h: Update copyright.
7416
7417 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7418
7419 PR target/14577
7420 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
7421
7422 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
7423
7424 * combine.c (combine_simplify_rtx): Remove the "last"
7425 parameter and its documentation. Adjust recursive calls.
7426 (simplify_logical): Always perform the only simplification
7427 controlled by "last", if the simplified expression is
7428 actually different.
7429 (try_combine): Do not pass the "last" parameter to
7430 combine_simplify_rtx.
7431
7432 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
7433
7434 PR target/14599
7435 * config/mips/mips.md (UNSPEC_GP): New constant.
7436 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
7437 an UNSPEC instead of (reg $gp).
7438 (mips16_gp_pseudo_reg): Change accordingly.
7439 (print_operand): Print $gp directly when handling CONST_GP_P.
7440
7441 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
7442
7443 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
7444 * longlong.h: Make code 68060 clean when compiling for m68060.
7445
7446 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
7447
7448 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
7449 * doc/md.texi: Clarify description of "i" constraint.
7450
7451 2004-03-15 James E Wilson <wilson@specifixinc.com>
7452
7453 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
7454 Split store into store, fpstore, fpidxstore. Fix all uses.
7455 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
7456 Likewise.
7457 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
7458 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
7459 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
7460 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
7461 ir_sr70_fstore): Likewise.
7462
7463 2004-03-15 Richard Henderson <rth@redhat.com>
7464
7465 PR middle-end/14535
7466 * except.c (collect_one_action_chain): Record action for cleanup
7467 outer of exception spec.
7468
7469 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
7470
7471 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
7472 Fix the check for abort and only do the mmap if we can.
7473
7474 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
7475
7476 * config/sparc/sparc.h: Rework comments about the code model
7477 in 64-bit environment and the mode 'Pmode'.
7478 * doc/invoke.texi (SPARC options): Rework description of the
7479 different code models supported in 64-bit environment.
7480
7481 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
7482
7483 * defaults.h (REVERSIBLE_CC_MODE): Define.
7484 * jump.c (reversed_comparison_code_parts): Don't check if
7485 REVERSIBLE_CC_MODE is defined.
7486
7487 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
7488
7489 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
7490 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
7491 hosthooks.h, params.h, ra-colorize.c, web.c,
7492 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
7493 config/avr/avr-protos.h, config/avr/avr.md,
7494 config/fr30/fr30-protos.h, config/fr30/fr30.md,
7495 config/h8300/fixunssfsi.c, config/i386/darwin.h,
7496 config/i386/freebsd.h, config/i386/freebsd64.h,
7497 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
7498 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
7499 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
7500 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
7501 config/pa/pa64-regs.h, config/rs6000/aix41.h,
7502 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
7503 config/sparc/aout.h, config/sparc/freebsd.h,
7504 config/sparc/litecoff.h, config/vax/vax-protos.h,
7505 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
7506 copyright.
7507
7508 2004-03-15 Paul Brook <paul@codesourcery.com>
7509
7510 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
7511
7512 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
7513
7514 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
7515 (pp_c_cv_qualifier): Document.
7516 (pp_c_space_for_pointer_operator): Likewise.
7517 (pp_c_integer_constant): Likewise.
7518 (pp_c_identifier): Likewise.
7519 (pp_c_init_declarator): Don't print function body.
7520
7521 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
7522
7523 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
7524 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
7525 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
7526 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
7527 wording and grammar.
7528
7529 2004-03-14 Roger Sayle <roger@eyesopen.com>
7530
7531 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
7532 with lang_hooks.foo ().
7533 * builtins.c (expand_builtin_va_arg): Likewise.
7534 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
7535 c_common_type_for_mode, c_common_nodes_and_builtins,
7536 handle_mode_attribute, handle_vector_size_attribute): Likewise.
7537 * c-convert.c (convert): Likewise.
7538 * c-format.c (check_format_types): Likewise.
7539 * c-objc-common.c (c_tree_printer): Likewise.
7540 * c-typeck.c (build_unary_op, build_conditional_expr,
7541 build_binary_op): Likewise.
7542 * calls.c (try_to_integrate, expand_call,
7543 emit_library_call_value_1): Likewise.
7544 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
7545 Likewise.
7546 * cgraphunit.c (record_call_1, cgraph_analyze_function,
7547 cgraph_expand_function): Likewise.
7548 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
7549 * coverage.c (build_fn_info_type, build_ctr_info_type,
7550 build_gcov_info, create_coverage): Likewise.
7551 * dbxout.c (dbxout_init): Likewise.
7552 * diagnostic.c (diagnostic_report_current_function): Likewise.
7553 * dojump.c (do_jump): Likewise.
7554 * dwarf2out.c (dwarf2_name): Likewise.
7555 * except.c (init_eh): Likewise.
7556 * explow.c (expr_size, int_expr_size): Likewise.
7557 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
7558 Likewise.
7559 * expr.c (store_expr, store_constructor, safe_from_p,
7560 expand_expr_real, do_store_flag, try_casesi): Likewise.
7561 * function.c (push_function_context_to, pop_function_context_from,
7562 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
7563 put_var_into_stack, allocate_struct_function, current_function_name):
7564 Likewise.
7565 * integrate.c (copy_decl_for_inlining, expand_inline_function):
7566 Likewise.
7567 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
7568 lhd_print_error_function): Likewise.
7569 * opts.c (handle_option, decode_options): Likewise.
7570 * passes.c (open_dump_file): Likewise.
7571 * print-tree.c (print_node): Likewise.
7572 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
7573 expand_decl_cleanup, emit_case_nodes): Likewise.
7574 * stor-layout.c (variable_size): Likewise.
7575 * toplev.c (announce_function, wrapup_global_declarations,
7576 check_global_declarations, compile_file, default_tree_printer,
7577 process_options, lang_dependent_init, finalize): Likewise.
7578 * tree-dump.c (dequeue_and_dump): Likewise.
7579 * tree-inline.c (remap_decl, remap_block, copy_body_r,
7580 initialize_inlined_parameters, declare_return_variable,
7581 inlinable_function_p, expand_call_inline, optimize_inline_calls,
7582 walk_tree, copy_tree_r): Likewise.
7583 * tree-optimize.c (tree_rest_of_compilation): Likewise.
7584 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
7585 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
7586 variably_modified_type_p, dump_tree_statistics): Likewise.
7587 * varasm.c (assemble_variable, compare_constant, copy_constant,
7588 force_const_mem, compute_reloc_for_constant, output_constant,
7589 output_addressed_constants, initializer_constant_valid_p): Likewise.
7590
7591 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
7592
7593 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
7594
7595 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
7596
7597 * doc/install.texi: Reflect autoconf and automake version for
7598 libffi. Update autoconf version to 2.59.
7599
7600 2004-03-13 Roger Sayle <roger@eyesopen.com>
7601
7602 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
7603 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
7604 make_range, build_range_check, fold_range_test, unextend,
7605 constant_boolean_node, fold_binary_op_with_conditional_arg,
7606 fold_truthop, fold_mathfn_compare, fold_inf_compare,
7607 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
7608 with lang_hooks.foo ().
7609
7610 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
7611
7612 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
7613
7614 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
7615
7616 * doc/install.texi: Note status of -fnew-ra.
7617
7618 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
7619
7620 PR middle-end/14470
7621 * expr.c (store_expr): Call emit_queue before generating the move
7622 from the temporary to the original target. Protect the temporary
7623 from emit_queue.
7624
7625 2004-03-13 Jakub Jelinek <jakub@redhat.com>
7626
7627 PR target/14533
7628 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
7629 other than UNSPEC_GOTOFF.
7630
7631 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
7632
7633 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
7634 to arm_legitimate_index_p. Update all callers with SET as default
7635 value.
7636 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
7637 range if OUTER is a sign-extend operation on QImode. Correctly
7638 reject shift operations on sign-extended QImode addresses.
7639 (bad_signed_byte_operand): Delete.
7640 (arm_extendqisi_mem_op): New function.
7641 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
7642 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
7643 constraints.
7644 (CONSTRAINT_LEN): New.
7645 (EXTRA_CONSTRAINT): Delete. Replace with...
7646 (EXTRA_CONSTRAINT_STR): ... this.
7647 (PREDICATE_CODES): Remove bad_signed_byte_operand.
7648 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
7649 is now always default.
7650 (define_splits for bad sign-extend loads): Delete.
7651 (arm_extendqisi, arm_extendqisi_v5): Likewise.
7652 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
7653 Rework 'U' constraint to 'Uv'.
7654 * arm-protos.h: Remove bad_signed_byte_operand. Add
7655 arm_extendqisi_mem_op.
7656 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
7657 Add Uq constraint.
7658
7659 2004-03-13 Alan Modra <amodra@bigpond.net.au>
7660
7661 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
7662 with targetm version.
7663
7664 PR target/14567
7665 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
7666 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
7667 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
7668 Update all users of RS6000_ARG_SIZE.
7669 (function_arg_advance): Count fregno using mode size.
7670 (function_arg): Handle long double split over regs and memory.
7671 (function_arg_partial_nregs): Likewise.
7672 (rs6000_va_arg): Repackage complex args.
7673
7674 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
7675
7676 PR target/14047
7677 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
7678 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
7679 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
7680
7681 2004-03-12 Jakub Jelinek <jakub@redhat.com>
7682
7683 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
7684 prototype.
7685 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
7686 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
7687
7688 2003-03-12 Andrew Pinski <apinski@apple.com>
7689
7690 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
7691 Use ret instead of result. Use addr instead of base.
7692
7693 2004-03-12 David Edelsohn <edelsohn@gnu.org>
7694
7695 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
7696 fixes required by libstdc++ and update installation instructions
7697 for libstdc++.a.
7698
7699 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
7700
7701 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
7702 leading '@' on fastcall symbols before stripping suffix.
7703
7704 2004-03-12 Roger Sayle <roger@eyesopen.com>
7705
7706 * combine.c (unmentioned_reg_p): New function to check whether an
7707 expression is a "specialization" of another, i.e. that there are
7708 no registers or memory references mentioned in the first that don't
7709 appear in the second.
7710 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
7711 (combine_instructions): Also try combining instructions using the
7712 REG_EQUAL note from a preceding log-linked instruction.
7713
7714 2004-03-12 Roger Sayle <roger@eyesopen.com>
7715
7716 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
7717
7718 2004-03-12 Matt Austern <austern@apple.com>
7719
7720 * target.h (struct gcc_target): New target hook, unwind_label.
7721 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
7722 * output.h (default_emit_unwind_label): New function.
7723 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
7724 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
7725 (TARGET_SUPPORTS_HIDDEN): New target macro.
7726 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
7727 that corresponds to this FDE.
7728 (FRAME_BEGIN_LABEL): Allow target to override default label.
7729 (output_call_frame_info): If FDEs are linknonce, then use extra
7730 indirection for FDE encoding, output a label for each FDE, and
7731 output an empty label for each function without an FDE.
7732 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
7733 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
7734 decls with DECL_ONE_ONLY set, if that macro is defined.
7735 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
7736 for a SUPPORTS_ONE_ONLY target.
7737 * config/darwin-protos.h (darwin_unique_section): Declare.
7738 (darwin_asm_named_section): Likewise.
7739 (darwin_section_type_flags): Likewise.
7740 (darwin_non_lazy_pcrel): Likewise.
7741 (darwin_emit_unwind_label): Likewise.
7742 (darwin_make_decl_one_only): Likewise.
7743 * config/darwin.c (machopic_finish): Get rid of tweak that
7744 eliminate stubs for symbols that are defined.
7745 (darwin_encode_section_info): Don't treat weak functions as defined.
7746 (darwin_make_decl_one_only): Define.
7747 (darwin_asm_named_section): Likewise.
7748 (darwin_section_type_flags): Likewise.
7749 (darwin_unique_section): Likewise.
7750 (darwin_emit_unwind_label): Likewise.
7751 (darwin_non_lazy_pcrel): Likewise.
7752 (darwin_asm_output_dwarf_delta): Difference between two labels is
7753 local only if both labels are local.
7754 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
7755 (ASM_MAKE_LABEL_LINKONCE): Likewise.
7756 (TARGET_SUPPORTS_HIDDEN): Likewise.
7757 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
7758 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
7759 (FRAME_BEGIN_LABEL): Likewise.
7760 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
7761 (ASM_DECLARE_FUNCTION_NAME): Likewise.
7762 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
7763 (TARGET_ASM_UNIQUE_SECTION): Define.
7764 (EH_FRAME_SECTION_NAME): Define.
7765 (EH_FRAME_SECTION_ATTR): Likewise.
7766 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
7767 (TARGET_ASM_NAMED_SECTION): Likewise.
7768 (TARGET_SECTION_TYPE_FLAGS): Likewise.
7769 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
7770 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
7771 TARGET_ASM_EMIT_UNWIND_LABEL.
7772
7773 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7774
7775 * builtins.c (expand_builtin_mathfn): Add pow10* to the
7776 existing exp10* case.
7777 (expand_builtin): Likewise.
7778
7779 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
7780
7781 * doc/tm.texi (registers) <Values in Registers>: Add
7782 entry for REGMODE_NATURAL_SIZE.
7783
7784 2004-03-12 Richard Henderson <rth@redhat.com>
7785
7786 PR target/14547
7787 * target.h (struct gcc_target): Move calls substructure before
7788 booleans. Add split_complex_arg.
7789 * function.c (assign_parms, split_complex_args): Use it.
7790 * calls.c (expand_call): Likewise.
7791 (split_complex_values): Likewise. Check for splittable types
7792 before allocating memory.
7793 (split_complex_types): Likewise.
7794 * system.h (SPLIT_COMPLEX_ARGS): Poison.
7795 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
7796 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
7797 * config/alpha/alpha.c (alpha_split_complex_arg): New.
7798 (TARGET_SPLIT_COMPLEX_ARG): New.
7799 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
7800 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
7801 (rs6000_override_options): Zap it for non-AIX.
7802 (rs6000_function_value): Use targetm.calls.split_complex_arg.
7803 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
7804 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
7805 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
7806 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
7807 SPLIT_COMPLEX_ARGS entry.
7808
7809 2004-03-11 Richard Henderson <rth@redhat.com>
7810
7811 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
7812 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
7813 (alpha_emit_xfloating_arith): Update to match.
7814 (alpha_emit_xfloating_compare): Likewise.
7815 (alpha_emit_xfloating_cvt): Likewise.
7816 (alpha_emit_xfloating_libcall): Take already built symbol,
7817 mark call const.
7818 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
7819 op1 in a register.
7820
7821 2004-03-11 Richard Henderson <rth@redhat.com>
7822
7823 PR target/14539
7824 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
7825
7826 * simplify-rtx.c (simplify_relational_operation): Fix typo.
7827
7828 2004-03-11 Richard Henderson <rth@redhat.com>
7829
7830 PR middle-end/14477
7831 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
7832
7833 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
7834
7835 PR target/14262
7836 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
7837 defined, pass small BLKmode values in registers in the low-order part.
7838
7839 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
7840
7841 * combine.c (if_then_else_cond): Check for NULL return value of
7842 simplify_gen_subreg.
7843
7844 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
7845
7846 PR target/14496
7847 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
7848 TARGET_SINGLE_FLOAT.
7849
7850 2004-03-11 Steve Ellcey <sje@cup.hp.com>
7851
7852 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
7853 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
7854 * config/ia64/ia64.c (ia64_init_libfuncs): New.
7855 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
7856
7857 2004-03-11 Roger Sayle <roger@eyesopen.com>
7858
7859 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
7860 -((int)X>>C) where C is an integer constant one bit less than the
7861 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
7862 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
7863
7864 * simplify-rtx.c (simplify_unary_operation): Also implement the
7865 above transformations at the RTL level.
7866
7867 2004-03-11 Alan Modra <amodra@bigpond.net.au>
7868
7869 * real.c (encode_ibm_extended): Do round low word.
7870
7871 2004-03-11 Ben Elliston <bje@wasabisystems.com>
7872
7873 * config/arm/arm.md (is_xscale): Comment this attribute and move
7874 it a bit further up in the file, closer to related attributes.
7875
7876 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
7877
7878 * config/host-solaris.c (sol_gt_pch_use_address): Add
7879 missing terminating marker to comment.
7880
7881 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
7882
7883 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
7884 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
7885 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
7886 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
7887 move_operand as source predicate in all cases.
7888 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
7889 Test reg_or_0_operand. Use move_operand as source predicate.
7890 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
7891 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
7892 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
7893 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
7894 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
7895 Use move_operand as source predicate. Remove 'K' constraint.
7896 (*movqi_internal): Likewise movqi_internal.
7897 (*movsf_hardfloat): Renamed from movsf_internal1. Test
7898 reg_or_0_operand. Use move_operand as source predicate.
7899 (*movsf_softfloat): Likewise movsf_internal2.
7900 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
7901 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
7902 (*movdf_softfloat): Likewise movdf_internal2.
7903 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
7904 for DImode if !TARGET_64BIT.
7905 (mips_legitimize_move): Simplify accordingly.
7906
7907 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
7908
7909 PR/14362
7910 * var-tracking.c (struct variable_def): Added field refcount.
7911 (variable_htab_free): Decrease the refcount and delete variable
7912 only if there are no more references.
7913 (unshare_variable): New function.
7914 (vars_copy_1): Increase refcount instead of copying the variable.
7915 (variable_union): Share the variables where possible, unshare
7916 the variables if needed.
7917 (variable_different_p): Return false if var1 and var2 are
7918 the same structure.
7919 (variable_was_changed): Init the refcount of new variable.
7920 (set_frame_base_location): Unshare variable if needed.
7921 (set_variable_part): Init the refcount of new variable.
7922 Unshare the variables if needed.
7923 (delete_variable_part): Unshare the variables if needed.
7924 (emit_notes_for_differences_1): Init the refcount of new variable.
7925 (vt_add_function_parameters): Do not add function parameters to
7926 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
7927 (vt_initialize): Do not add frame_base_decl to IN set of
7928 ENTRY_BLOCK_PTR because it is unused anyway.
7929
7930 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
7931
7932 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
7933 (vars_copy): Likewise.
7934 (variable_union): Likewise.
7935 (set_variable_part): Likewise.
7936 (delete_variable_part): Likewise.
7937
7938 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
7939
7940 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
7941 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
7942 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
7943 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
7944 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
7945 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
7946 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
7947 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
7948 config/stormy16/stormy16.c: Fix comment typos and formatting.
7949
7950 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
7951
7952 * configure: Regenerate, since I forgot to while committing Paolo's
7953 changes.
7954
7955 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
7956
7957 PR ada/14131
7958 Move language detection to the top level.
7959 * configure.ac: Remove code to detect languages,
7960 it now lives exclusively in the top level.
7961 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
7962 top level, renamed to ACX_PROG_GNAT.
7963
7964 2004-03-10 Richard Henderson <rth@redhat.com>
7965
7966 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
7967 extra arguments.
7968 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
7969 and host_xmake_file fragments.
7970 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
7971 (gt_pch_restore): Similarly for gt_pch_use_address.
7972 (default_gt_pch_get_address): New.
7973 (mmap_gt_pch_get_address): Split out of gt_pch_save.
7974 (default_gt_pch_use_address): Split out of gt_pch_restore.
7975 (mmap_gt_pch_use_address): Likewise.
7976 * hooks.c (hook_voidp_size_t_null): Remove.
7977 (hook_bool_voidp_size_t_false): Remove.
7978 * hooks.h: Likewise.
7979 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
7980 default_ or mmap_ definitions.
7981 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
7982 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
7983 and gt_pch_use_address.
7984 * config/host-linux.c, config/host-solaris.c: New files.
7985 * config/x-linux, config/x-solaris: New files.
7986 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
7987 Update for changed definition.
7988 (darwin_rs6000_gt_pch_use_address): Likewise.
7989 * doc/hostconfig.texi: Update docs.
7990
7991 2004-03-10 Richard Henderson <rth@redhat.com>
7992
7993 PR c/14517
7994 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
7995 except for pedantic c90 mode.
7996
7997 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
7998
7999 * configure.ac: Bump AC_PREREQ to 2.59.
8000 * configure: Regenerate.
8001
8002 2004-03-10 Uros Bizjak <uros@kss-loka.si>
8003
8004 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
8005 (exp10_optab, exp2_optab): Define corresponding macros.
8006 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
8007 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
8008 using exp10?f2 and exp2?f2 patterns.
8009 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
8010 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
8011 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
8012 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
8013
8014 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
8015 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
8016 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
8017
8018 2004-03-10 Anthony Green <green@redhat.com>
8019
8020 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
8021
8022 2004-03-10 David Edelsohn <edelsohn@gnu.org>
8023
8024 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
8025 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
8026 __LONGDOUBLE128.
8027 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
8028 TARGET_OS_AIX_CPP_BUILTINS.
8029 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
8030 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
8031 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
8032 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
8033 previous change.
8034
8035 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8036
8037 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
8038
8039 2004-03-10 David Edelsohn <edelsohn@gnu.org>
8040
8041 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8042 __LONGDOUBLE128 on AIX.
8043
8044 2004-03-10 Andrew Haley <aph@redhat.com>
8045
8046 PR optimization/14381
8047 * function.c (expand_function_end): Emit a blockage insn before
8048 the epilogue when -fnon-call-exceptions is used.
8049
8050 * except.c (expand_start_all_catch): Make comment more accurate.
8051
8052 2004-03-08 Joel Sherrill <joel@oarcorp.com>
8053
8054 PR target/14480
8055 * config/rs6000/t-rtems: Add missing file on branch.
8056
8057 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
8058
8059 * dbxout.c (dbxout_symbol_location): Do not output references
8060 to optimized-out constant pool symbols.
8061
8062 2004-03-10 Andreas Schwab <schwab@suse.de>
8063
8064 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
8065 twon34_r.
8066
8067 2004-03-09 James E Wilson <wilson@specifixinc.com>
8068
8069 * alias.c (alias_sets_might_conflict_p): New.
8070 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
8071 * common.opt (Wstrict-aliasing=): New.
8072 * flags.h (warn_strict_aliasing): Change type to int.
8073 * opts.c (warn_strict_aliasing): Change type to int.
8074 (common_handle_option): Handle OPT_Wstrict_aliasing_.
8075 * tree.h (alias_sets_might_conflict_p): Declare it.
8076 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
8077
8078 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
8079
8080 PR bootstrap/12371
8081 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
8082 (CALL_USED_REGISTERS): Likewise.
8083 (REG_CLASS_CONTENTS): Likewise.
8084 (REG_ALLOC_ORDER): New.
8085 (REGNO_REG_CLASS): Use regno_reg_class.
8086 * config/m68k/m68k.c: Add regno_reg_class array.
8087
8088 2004-03-09 Steve Ellcey <sje@cup.hp.com>
8089
8090 * config/ia64/ia64.md (divsi3): Fix algorithm.
8091 (udivsi3): Ditto.
8092 (setf_exp_xf): Remove '*' from name.
8093 * testsuite/gcc.dg/20040309-1.c: New test.
8094
8095 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
8096
8097 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
8098 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
8099 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
8100 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
8101 (sparc_aout_select_rtx_section): Don't check
8102 SUNOS4_SHARED_LIBRARIES.
8103 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
8104
8105 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
8106
8107 PR other/14474
8108 * doc/md.texi (Pattern Ordering, Dependent Patterns)
8109 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
8110 INTERNALS".
8111
8112 2004-03-09 Zack Weinberg <zack@codesourcery.com>
8113
8114 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
8115 (LIBGCC_SPEC): Update to match.
8116
8117 2004-03-09 Zack Weinberg <zack@codesourcery.com>
8118
8119 * c-decl.c (last_function_parms, last_function_parm_tags)
8120 (last_function_parm_others, current_function_parms)
8121 (current_function_parm_tags, current_function_parm_others):
8122 Delete.
8123 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
8124 New macros.
8125 (grokdeclarator): For function definitions, save the arg-info
8126 block from the declarator in DECL_ARGUMENTS.
8127 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
8128 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
8129 contains only PARM_DECLs. Improve diagnostics.
8130 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
8131 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
8132 (store_parm_decls_newstyle): Take the function to operate on,
8133 and an arg-info block, as arguments; don't get anything from
8134 current_function_* globals.
8135 (store_parm_decls_oldstyle): Likewise.
8136 (store_parm_decls): Pass fndecl and its arg-info block down to
8137 store_parm_decls_newstyle/oldstyle. Send functions with empty
8138 argument lists through store_parm_decls_newstyle to reduce
8139 overhead.
8140 (pushdecl): Comment on the problems with the call to copy_node.
8141 Clear DECL_ARGUMENTS of the old node after copying it, if it
8142 is an arg-info block instead of a chain of decls.
8143 (start_function): Do not manipulate current_function_parm* or
8144 last_function_parm*.
8145
8146 2004-03-09 Roger Sayle <roger@eyesopen.com>
8147 Andrew Pinski <pinskia@physics.uc.edu>
8148
8149 * ifcvt.c (noce_try_sign_mask): New function to transform
8150 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
8151 (noce_process_if_block): Call noce_try_sign_mask.
8152
8153 2004-03-09 Andrew Pinski <apinski@apple.com>
8154
8155 * c-typeck.c (tagged_types_tu_compatible_p):
8156 Fix typo.
8157
8158 2004-03-09 Roger Sayle <roger@eyesopen.com>
8159
8160 * simplify-rtx.c (simplify_const_relational_operation): New function
8161 renamed from simplify_relational_operation.
8162 (simplify_relational_operation): Change prototype to accept an
8163 additional mode argument. Call simplify_const_relational_operation.
8164 (simplify_gen_relational): Update simplify_relational_operation call.
8165 (simplify_ternary_operation): Update simplify_relational_operation
8166 subroutine call to use simplify_const_relational_operation instead.
8167
8168 * rtl.h (simplify_const_relational_operation): Prototype here.
8169 (simplify_relational_operation): Add addtional mode argument.
8170
8171 * combine.c (combine_simplify_rtx): Update calls to
8172 simplify_relational_operation.
8173 (simplify_set): Likewise.
8174 (gen_binary): Likewise.
8175 * cse.c (fold_rtx): Likewise.
8176 * dojump.c (compare_from_rtx): Likewise.
8177 (do_compare_rtx_and_jump): Likewise.
8178 * integrate.c (subst_constants): Likewise.
8179 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
8180
8181 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
8182
8183 * config/m32r/m32r.md: Remove all define_peephole's.
8184
8185 2004-03-09 Alan Modra <amodra@bigpond.net.au>
8186
8187 * config/rs6000/rs6000.md: Remove trailing whitespace.
8188
8189 2004-03-08 Eric Christopher <echristo@redhat.com>
8190
8191 * Makefile.in (site.exp): Add libiconv variable definition.
8192
8193 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
8194
8195 * configure: Regenerate for config/accross.m4 correction.
8196
8197 2004-03-08 Joel Sherrill <joel@oarcorp.com>
8198
8199 PR target/14480
8200 * config/rs6000/t-rtems: Add missing file on branch.
8201
8202 2004-03-08 Roger Sayle <roger@eyesopen.com>
8203
8204 PR middle-end/14289
8205 * c-typeck.c (c_mark_addressable): A register variable should
8206 be considered global if its not automatic, i.e. TREE_PUBLIC,
8207 TREE_STATIC or DECL_EXTERNAL.
8208 * function.c (put_var_into_stack): Call abort when placing a
8209 hard register into the stack, if x_parm_reg_stack_loc is NULL.
8210
8211 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8212
8213 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
8214 ("*extendqisi2_short_displ"): Likewise.
8215
8216 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
8217
8218 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
8219 (comp_operator): Likewise.
8220 * config/pdp11/pdp11-protos.h: Remove corresponding
8221 prototypes.
8222
8223 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
8224
8225 * expr.c (highest_pow2_factor_for_type): Rename into
8226 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
8227 TYPE_ALIGN when the target is a COMPONENT_REF.
8228 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
8229
8230 2004-03-08 Alan Modra <amodra@bigpond.net.au>
8231
8232 * config/rs6000/rs6000.c: Formatting fix.
8233 (legitimate_offset_address_p): Correct offset range check.
8234
8235 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
8236 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
8237 and MASK_STRING.
8238
8239 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
8240
8241 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
8242 for little endian.
8243 ("ashrdi3_no_power"): Disable for little endian.
8244 (ashrdi3): Same.
8245
8246 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8247
8248 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
8249 builtins.
8250
8251 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
8252
8253 PR target/14471
8254 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
8255 case, checking for -no-mul-bug-abort option.
8256 * configure, config.in: Regenerate.
8257 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
8258 and -mno-mul-bug-workaround.
8259 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
8260 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
8261 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
8262 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
8263 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
8264 sure mulu.d is not last on cache-line.
8265 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
8266 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
8267 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
8268 (TARGET_SWITCHES): New options -mmul-bug-workaround and
8269 -mno-mul-bug-workaround.
8270 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
8271 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
8272 * config/cris/cris.c (cris_operand_extend_operator): Clarify
8273 relation to MULT in head comment.
8274 (cris_op_str): Abort for MULT.
8275 (cris_print_operand) <case '!'>: New case.
8276
8277 2004-03-08 Alan Modra <amodra@bigpond.net.au>
8278
8279 PR debug/11983
8280 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
8281 dw_val_class_vec. Replace use throughout file.
8282 (dw_float_const): Delete.
8283 (dw_vec_const): New.
8284 (dw_val_struct_union): Rename val_float to val_vec. Replace use
8285 throughout file.
8286 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
8287 (same_dw_val_p): Adjust vec comparison. Use memcmp.
8288 (size_of_die): Adjust dw_val_class_vec sizing.
8289 (output_die): Output dw_val_class_vec.
8290 (insert_int, extract_int, insert_float): New functions.
8291 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
8292 Handle CONST_VECTOR.
8293 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
8294
8295 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
8296
8297 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
8298 AltiVec abi cannot co-exist.
8299
8300 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
8301
8302 2004-03-07 Jan Hubicka <jh@suse.cz>
8303
8304 * except.c (emit_to_new_bb_before): Break fallthru edges.
8305
8306 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
8307
8308 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
8309 ("*lshrsi3"): Also accept an immediate for 68HC12.
8310 ("*ashrsi3_const"): Likewise.
8311 ("*ashrsi3"): Likewise.
8312 ("*ashlsi3_const"): Likewise.
8313 ("*ashlsi3"): Likewise.
8314 ("cmphi_1_hc12"): Compare two hard register by pushing them and
8315 comparing with a pop; don't use a split for that.
8316 ("cmphi split"): Disable compare split for 68HC12.
8317
8318 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
8319 the status operands if they have side effects.
8320
8321 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
8322
8323 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
8324 definition.
8325 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
8326 config/h8300/h8300.h, config/ia64/ia64.h,
8327 config/mcore/mcore.h, config/mmix/mmix.h,
8328 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
8329 config/stormy16/stormy16.h, config/v850/v850.h,
8330 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
8331 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
8332 definition.
8333
8334 2004-03-07 Roger Sayle <roger@eyesopen.com>
8335
8336 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
8337 <XOR_EXPR>: Fold x ^ x as zero.
8338 <AND_EXPR>: Fold x & x as x.
8339
8340 2004-03-07 Roger Sayle <roger@eyesopen.com>
8341
8342 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
8343 "foo++ == const" into "++foo == const+incr".
8344
8345 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
8346
8347 * config/mips/mips.c (mips_in_small_data_p): Return false if
8348 TARGET_ABICALLS.
8349
8350 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
8351
8352 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
8353 the stack register.
8354 (expand_prologue): Don't make an interrupt or a trap handler a far
8355 symbol.
8356 (m68hc11_initial_elimination_offset): Likewise.
8357
8358 2004-03-06 Richard Henderson <rth@redhat.com>
8359
8360 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
8361
8362 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
8363
8364 * config/ns32k/ns32k-protos.h: Add a prototype for
8365 ns32k_notice_update_cc.
8366 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
8367 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
8368 ns32k_notice_update_cc.
8369
8370 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
8371
8372 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
8373 "*load_multiple_si"): Allow only if reload_completed.
8374 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
8375 Likewise.
8376
8377 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
8378
8379 * config/vax/vax-protos.h: Add a prototype for
8380 vax_notice_update_cc.
8381 * config/vax/vax.c (vax_notice_update_cc): New.
8382 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
8383 vax_notice_update_cc.
8384
8385 2004-03-06 David Edelsohn <edelsohn@gnu.org>
8386
8387 * collect2.c (main): Only export initfunc and finifunc if
8388 LD_INIT_SWITCH not defined.
8389 (scan_prog_file): Only export constructors and destructors if
8390 LD_INIT_SWITCH not defined. Only export symbols not found in
8391 shared objects.
8392
8393 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8394
8395 * pa.md (icacheflush): Reorder operands to make match_scratch operand
8396 last.
8397 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
8398 from calls to gen_icacheflush.
8399
8400 2004-03-06 Richard Henderson <rth@redhat.com>
8401
8402 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
8403 (TARGET_LONG_DOUBLE_128): New.
8404 (TARGET_SWITCHES): Add long-double-{128,64}.
8405 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
8406 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
8407 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
8408 (WIDEST_HARDWARE_FP_SIZE): New.
8409 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
8410 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
8411 if TARGET_VAX_FLOAT.
8412 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
8413 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
8414
8415 2004-03-06 Richard Henderson <rth@redhat.com>
8416
8417 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
8418 botched rtx class conversion.
8419
8420 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8421
8422 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
8423 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
8424
8425 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
8426 macros.
8427 * fold-const.c (fold_mathfn_compare, fold): Likewise.
8428
8429 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
8430
8431 PR target/14343
8432 * config/i386/i386.md (movv2di_internal): Conditionalize on
8433 TARGET_SSE, not TARGET_SSE2.
8434
8435 2004-03-05 Chris Demetriou <cgd@broadcom.com>
8436
8437 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
8438 duplicated line.
8439
8440 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8441
8442 * builtins.c: Consistently use logN not log* in comments.
8443
8444 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
8445
8446 * rtl.h (mem_expr_equal_p): Function prototype added.
8447 * cfgcleanup.c (merge_memattrs): New function.
8448 (flow_find_cross_jump): Call merge_memattrs for matching insns.
8449 * emit-rtl.c (mem_expr_equal_p): New function.
8450
8451 2004-03-05 Ziemowit Laski <zlaski@apple.com>
8452
8453 * objc/objc-act.c (synth_module_prologue): Const-qualify
8454 objc_selector type if using the GNU runtime; fix generated
8455 signatures for objc_msg_lookup and objc_msg_lookup_super
8456 to match what GNU ObjC headers provide; reformat and clean up.
8457 (synth_self_and_ucmd_args): Use previously constructed (and
8458 hence possibly const-qualified) objc_selector type.
8459
8460 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
8461
8462 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
8463
8464 2004-03-05 Jason Merrill <jason@redhat.com>
8465
8466 * tree.h (TYPE_HASH): Use TYPE_UID.
8467 (TREE_HASH): New macro with old definition of TYPE_HASH.
8468 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
8469 (build_array_type, build_function_type): Likewise.
8470 (build_method_type_directly): Likewise.
8471 (build_offset_type, build_complex_type): Likewise.
8472 (type_hash_list, attribute_hash_list): Likewise. Now static.
8473 * except.c: s/TYPE_HASH/TREE_HASH/.
8474
8475 2004-03-05 Bob Wilson <bob.wilson@acm.org>
8476
8477 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
8478 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
8479 __va_ndx by 2 words when referencing an argument on the stack.
8480 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
8481 words when an arg on the stack is first seen.
8482
8483 2004-03-05 Paul Brook <paul@codesourcery.com>
8484
8485 * arm.h (ARM_FLAG_VFP): Remove.
8486 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
8487 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
8488
8489 2004-03-05 Paul Brook <paul@codesourcery.com>
8490
8491 * function.c (assign_parms): Include pretend alignment offset.
8492
8493 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8494
8495 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
8496 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
8497
8498 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
8499
8500 * configure.ac: When passing --enable-languages to subdir
8501 configure when host != build, make sure we don't pass an empty
8502 value.
8503 * configure: Regenerate.
8504
8505 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
8506
8507 PR 13577
8508 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
8509 options.
8510
8511 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
8512
8513 * simplify-rtx.c (simplify_relational_operation): If
8514 flag_wrapv is set, do not move terms between the two
8515 side of a relational operator.
8516
8517 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
8518
8519 * rtlanal.c: Include target.h and output.h
8520 (rtx_cost, address_cost, default_address_cost): Move from...
8521 * cse.c (rtx_cost, address_cost, default_address_cost):
8522 ... this file.
8523 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
8524 * Makefile.in: Adjust dependencies.
8525
8526 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
8527
8528 * cse.c (cse_end_of_basic_block): Make static.
8529 * local-alloc.c (function_invariant_p): Move to
8530 reload1.c.
8531 * loop.c (libcall_other_reg, record_excess_regs):
8532 Make static.
8533 * reload1.c (function_invariant_p): Moved here
8534 from local-alloc.c, made static.
8535 * rtl.h (cse_end_of_basic_block, function_invariant_p,
8536 libcall_other_reg, record_excess_regs): Remove
8537 declarations.
8538
8539 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
8540
8541 * config/m32r/m32r.c (signed_comparison_operator): Add a
8542 missing parenthesis.
8543
8544 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
8545
8546 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
8547 going to call mmap again. Read the file into the right place.
8548 Give a fatal error if we have to relocate.
8549
8550 2004-03-04 Bob Wilson <bob.wilson@acm.org>
8551
8552 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
8553 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
8554
8555 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
8556
8557 PR other/14354
8558 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
8559 round the same. When rounding, clear bits that would cause a
8560 second rounding in pack_d.
8561 (_fpmul_parts): Ditto. Remove #if 0:d code.
8562
8563 2004-03-04 Ziemowit Laski <zlaski@apple.com>
8564
8565 PR c++/14425, c++/14426
8566 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
8567 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
8568 Change C++ definitions to accept a 'const int' argument;
8569 the prototypes already do.
8570 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
8571 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
8572 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
8573 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
8574 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
8575 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
8576 end in ..._int; change them to accept an int instead of a char
8577 as the last parameter.
8578
8579 2004-03-04 Phil Edwards <phil@codesourcery.com>
8580
8581 * genmultilib: Change '=' to '-' when translating option names
8582 to directory names.
8583
8584 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8585
8586 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
8587 stack slot for temp used for result of BLKmode but in integral mode.
8588
8589 2004-03-04 Jan Hubicka <jh@suse.cz>
8590
8591 * reload.c (find_reloads): Reorganize if seqeunce to switch.
8592
8593 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
8594 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
8595
8596 2004-03-04 Steve Ellcey <sje@cup.hp.com>
8597
8598 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
8599 * testsuite/gcc.dg/20040303-1.c: New test.
8600
8601 2004-03-04 Steven Bosscher <stevenb@suse.de>
8602
8603 * ppro.md: Rewrite as a DFA pipeline description.
8604 * i386.md: Remove all uses of the ppro_uops attribute.
8605 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
8606 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
8607 ix86_sched_reorder, ix86_variable_issue,
8608 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
8609 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
8610 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
8611 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
8612 * athlon.md (athlon_ssecmp_load): Fix comment
8613
8614 2004-03-04 Stuart Hastings <stuart@apple.com>
8615
8616 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
8617
8618 2004-03-04 Stuart Hastings <stuart@apple.com>
8619
8620 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
8621 686, tell Darwin assembler to allow prefetch insns, non-empty def
8622 of SUBTARGET_OPTION_TRANSLATE_TABLE.
8623
8624 2004-03-04 DJ Delorie <dj@redhat.com>
8625
8626 PR optimization/14282
8627 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
8628 between a call and the assignment of its return value.
8629
8630 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
8631
8632 * config/h8300/h8300.c: Put a comment for every function.
8633
8634 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
8635
8636 * config/h8300/h8300.md: Add comments about peephole2's.
8637
8638 2004-03-04 Steven Bosscher <stevenb@suse.de>
8639
8640 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
8641
8642 2004-03-04 Jan Hubicka <jh@suse.cz>
8643
8644 * cfgcleanup.c (thread_jump): Update call of cselib_init.
8645 * cselib.c (cselib_record_memory): New static variable.
8646 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
8647 Give up on memories when asked for.
8648 (cselib_init): Accept new argument.
8649 * cselib.h (cselib_init): Update prototype.
8650 * gcse.c (local_cprop_pass): Update call of cselib_init.
8651 * loop.c (load_mems): Update call of cselib_init.
8652 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
8653 * sched-deps.c (sched_analyze): Update call of cselib_init.
8654
8655 2004-03-04 David Edelsohn <edelsohn@gnu.org>
8656 GP <gp@qnx.com>
8657
8658 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
8659 when compiling PIC.
8660
8661 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
8662
8663 PR/14362
8664 * var-tracking.c (track_expr_p): Do not track variables which
8665 should be ignored for debugging purposes.
8666
8667 2004-03-04 Alan Modra <amodra@bigpond.net.au>
8668
8669 * real.c (encode_ibm_extended): Don't bother rounding low double.
8670 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
8671 when fmt->pnan < fmt->p.
8672
8673 2004-03-04 Eric Christopher <echristo@redhat.com>
8674
8675 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
8676 only range of valid arg registers and fixed_regs.
8677
8678 2004-03-04 Alan Modra <amodra@bigpond.net.au>
8679
8680 PR target/14406
8681 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
8682 (abstf2, abstf2_internal): New define_expand.
8683
8684 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
8685
8686 PR optimization/14235
8687 * expr.c (convert_move): Copy the source to a new pseudo
8688 when converting from a sub-word source to a larger-than-word
8689 register which conflicts with the source.
8690
8691 2004-03-03 Zack Weinberg <zack@codesourcery.com>
8692
8693 PR 13728
8694 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
8695 parameters with the same name, unless one is a forward decl.
8696 Do not issue a redundant-redeclaration warning for forward
8697 decls of parameters.
8698
8699 2004-03-04 David Edelsohn <edelsohn@gnu.org>
8700
8701 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
8702 configuration.
8703
8704 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
8705
8706 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
8707
8708 2004-03-04 Alan Modra <amodra@bigpond.net.au>
8709
8710 * target-def.h (TARGET_OPTF): Delete.
8711 * c-opts.c (TARGET_OPTF): Define.
8712
8713 2004-03-04 Jan Hubicka <jh@suse.cz>
8714
8715 * cselib.c (cselib_finish): Fix another miss-application of my previous
8716 patch.
8717
8718 2004-03-03 Mike Stump <mrs@apple.com>
8719
8720 Add framework support for darwin.
8721
8722 * c-incpath.c: Include target.h and machmode.h.
8723 (add_path): Use a consistent style for cpp_dir. Initialize
8724 p->construct to 0.
8725 (add_cpp_dir_path): New.
8726 (register_include_chains): Add use of extra_includes callback.
8727 (hook_void_int): Add.
8728 (target_c_incpath): Add.
8729 * c-incpath.h (add_cpp_dir_path): New.
8730 (target_c_incpath_s): Add.
8731 (target_c_incpath): Add.
8732 (C_INCPATH_INIT): Add.
8733 * c-opts.c (c_common_missing_argument,
8734 c_common_handle_option): Add -F argument processing.
8735 * c.opt: Add -F argument processing.
8736 * gcc.c (trad_capable_cpp): Add -F argument processing.
8737 * cppfiles.c (find_file_in_dir): Update to use construct
8738 callback.
8739 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
8740 cpp_get_prev): New.
8741 (_cpp_find_file): Use search_path_exhausted.
8742 (make_cpp_dir): Initialize construct to 0.
8743 * cpplib.h (missing_header_cb
8744 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
8745 (cpp_callbacks): Add missing_header
8746 (cpp_dir): Add construct.
8747 * target-def.h: (TARGET_OPTF): New.
8748 * hooks.c (hook_void_int, hook_void_charptr): Add.
8749 * hooks.h (hook_void_int, hook_void_charptr): Add.
8750 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
8751 $(MACHMODE_H) dependencies.
8752 * doc/invoke.texi (Darwin Options): Document -F.
8753 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
8754 (TARGET_OPTF): Add.
8755 * fix-header.c (target_c_incpath): Add.
8756
8757 * config/darwin-c.c: Add c-incpath.h include.
8758 (using_frameworks, find_subframework_file,
8759 find_subframework_header, add_system_framework_path,
8760 frameworks_in_use, num_frameworks, max_frameworks,
8761 add_framework, find_framework, struct framework_header,
8762 framework_header_dirs, framework_construct_pathname,
8763 find_subframework_file, add_system_framework_path,
8764 add_framework_path, framework_defaults,
8765 darwin_register_frameworks, find_subframework_header): Add.
8766 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
8767 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
8768 (CPP_SPEC): Add __APPLE_CC__ support.
8769 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
8770
8771 2004-03-04 Jan Hubicka <jh@suse.cz>
8772
8773 * cselib.c (cselib_finish): Fix miss-application of my previous
8774 patch.
8775
8776 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
8777
8778 * hooks.c (hook_tree_tree_identity): New.
8779 * hooks.h: Add a prototype for hook_tree_tree_identity.
8780 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
8781 instead of MD_ASM_CLOBBERS.
8782 * system.h (MD_ASM_CLOBBERS): Poison.
8783 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
8784 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
8785 * target.h (gcc_target): Add md_asm_clobbers.
8786 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
8787 (ix86_md_asm_clobbers): New.
8788 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
8789 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
8790 TARGET_MD_ASM_CLOBBERS.
8791
8792 2004-03-03 Stuart Hastings <stuart@apple.com>
8793
8794 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
8795
8796 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
8797
8798 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
8799
8800 * config/sparc/sparc.h (ASM_FLOAT): Delete.
8801 (ASM_DOUBLE): Likewise.
8802 (ASM_LONGDOUBLE): Likewise.
8803 * config/sparc/pbd.h (ASM_INT_OP): Delete.
8804
8805 2003-03-03 Richard Henderson <rth@redhat.com>
8806
8807 PR opt/13862
8808 * cselib.c (cselib_record_sets): Don't record multiple sets in
8809 asm insns.
8810
8811 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
8812
8813 * common.opt: Add description of the new -fgcse-after-reload flag.
8814
8815 * flags.h (flag_gcse_after_reload): Declaration of global variable.
8816
8817 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
8818 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
8819 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
8820 get_bb_avail_insn, hash_scan_set_after_reload,
8821 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
8822 gcse_after_reload, get_bb_avail_insn): New functions to implement
8823 gcse-after-reload.
8824 (gcse_after_reload_main): New function, the main entry point to
8825 gcse-after-reload.
8826
8827 * rtl.h (gcse_after_reload_main): Declaration of the new function.
8828
8829 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
8830
8831 * toplev.c (flag_gcse_after_reload): Initialization.
8832
8833 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
8834
8835 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
8836 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
8837 the gcse after reload optimization.
8838
8839 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
8840 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
8841 parameters.
8842
8843 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
8844
8845 2004-03-03 Nicolas Pitre <nico@cam.org>
8846
8847 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
8848 small negative values.
8849
8850 2004-03-03 Jan Hubicka <jh@suse.cz>
8851
8852 * cselib.c (hash_table): Remove GTY marker.
8853 (reg_values): Turn into array.
8854 (used_regs): Likewise.
8855 (n_used_regs): New static variable.
8856 (reg_values_old): Kill.
8857 (clear_table): Update uses of arrays.
8858 (cselib_lookup): Likewise.
8859 (cselib_record_set): Likewise.
8860 (cselib_init): Likewise.
8861 (cselib_finish): Likewise.
8862 (cselib_udpate_varray_sizes): Kill.
8863 * cselib.h (cselib_update_varray_sizes): Kill.
8864
8865 2004-03-03 Paul Brook <paul@codesourcery.com>
8866
8867 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
8868
8869 2004-03-03 Jan Hubicka <jh@suse.cz>
8870
8871 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
8872 Rename from ...; make statistics transparent.
8873 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
8874 (loc_descriptor): New structure.
8875 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
8876 add_statistics):
8877 New static function.
8878 (ggc_record_overhead, dump_statistics): New global function.
8879 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
8880 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
8881 from ...; accept locations
8882 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
8883 ggc_realloc, ggc_alloc_typed): ... this one.
8884 from ...; accept locations
8885 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
8886 ggc_alloc_stat): Rename from ... ; pass locations
8887 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
8888 ... this one.
8889 (ggc_alloc_stat): Record overehead.
8890 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
8891 ggc_realloc, ggc_alloc_typed): Turn to macros
8892 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
8893 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
8894 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
8895 * langhooks.h (lhd_make_node): Declare.
8896 (LANG_HOOKS_MAKE_TYPE): Default to new function,
8897 * langhooks.c (lhd_make_node): New.
8898 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
8899 locations.
8900 (rtx_alloc, swallow_copy_rtx): ... this one.
8901 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
8902 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
8903 * toplpev.c (finalize): Dump stats.
8904 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
8905 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
8906 Rename from ... ; pass locators.
8907 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
8908 build?, build_decl): Declare.
8909 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
8910 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
8911 Declare.
8912 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
8913 build?, build_decl): New macros.
8914 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
8915 * statistics.h: New file.
8916
8917 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8918 Richard Sandiford <rsandifo@redhat.com>
8919
8920 * config/mips/mips.h (MASK_FIX_SB1): Bump.
8921 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
8922 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
8923 * config/mips/mips.c (mips_output_division): Fill the branch delay
8924 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
8925 TARGET_FIX_R4400.
8926 (mips_output_division): Adjust accordingly.
8927 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
8928 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
8929
8930 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
8931
8932 * alias.c (rtx_equal_for_memref_p): Use predicates
8933 to test rtx classes and new rtx class codes, possibly
8934 splitting conditionals that tested against '<' and 'o'.
8935 * caller-save.c (save_call_clobbered_regs): Likewise.
8936 * combine.c (contains_muldiv, find_split_point, subst,
8937 combine_simplify_rtx, simplify_if_then_else,
8938 simplify_set, simplify_logical, expand_compound_operation,
8939 make_compound_operation, if_then_else_cond, known_cond,
8940 apply_distributive_law, cached_nonzero_bits,
8941 cached_num_sign_bit_copies, simplify_shift_const,
8942 gen_binary, simplify_comparison, update_table_tick,
8943 record_value_for_reg, get_lsat_value_validate): Likewise.
8944 * cse.c (mention_regs, find_best_addr, find_comparison_args,
8945 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
8946 Likewise.
8947 * emit-rtl.c (copy_insn_1): Likewise.
8948 * expr.c (force_operand): Likewise.
8949 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
8950 * flow.c (notice_stack_pointer_modification_1,
8951 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
8952 and_reg_cond, elim_reg_cond): Likewise.
8953 * function.c (update_epilogue_consts): Likewise.
8954 * genattrtab.c (attr_rtx_1): Likewise.
8955 * genopinit.c (gen_insn): Likewise.
8956 * integrate.c (subst_constants): Likewise.
8957 * jump.c (reversed_comparison_code_parts,
8958 reversed_comparison_code, delete_related_insns,
8959 rtx_renumbered_equal_p): Likewise.
8960 * local-alloc.c (block_alloc): Likewise.
8961 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
8962 canonicalize_condition): Likewise.
8963 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
8964 Likewise.
8965 * optabs.c (add_equal_node, expand_binop): Likewise.
8966 * predict.c (estimate_probability): Likewise.
8967 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
8968 * recog.c (validate_replace_rtx_1, comparison_operator,
8969 offsettable_address_p, constrain_operands): Likewise.
8970 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
8971 Likewise.
8972 * regclass.c (scan_one_insn): Likewise.
8973 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
8974 * regrename.c (kill_autoinc_value): Likewise.
8975 * reload.c (find_reusable_reload, find_reloads,
8976 reg_overlap_mentioned_for_reload_p): Likewise.
8977 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
8978 * rtl.c (copy_rtx): Likewise.
8979 * rtl.h (CONSTANT_P, INSN_P): Likewise.
8980 * rtlanal.c (commutative_operand_precedence): Likewise.
8981 * sched-deps.c (conditions_mutex_p): Likewise.
8982 * sched-rgn.c (is_cfg_nonregular): Likewise.
8983 * simplify-rtx.c (simplify_gen_binary,
8984 simplify_gen_relational, simplify_replace_rtx,
8985 simplify_unary_operation, simplify_binary_operation,
8986 simplify_ternary_operation, simplify_rtx): Likewise.
8987 * unroll.c (reg_dead_after_loop): Likewise.
8988 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
8989 print_operand): Likewise.
8990 * config/arc/arc.c (proper_comparison_operator): Likewise.
8991 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
8992 Likewise.
8993 * config/avr/avr.c (_reg_unused_after): Likewise.
8994 * config/frv/frv.c (frv_ifcvt_modify_tests,
8995 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
8996 * config/i386/i386.c (ix86_comparison_operator,
8997 ix86_carry_flag_operator, fcmov_comparison_operator,
8998 arith_or_logical_operator, print_operand,
8999 ix86_expand_binary_operator, ix86_binary_operator_ok):
9000 Likewise.
9001 * config/i386/i386.md: Likewise.
9002 * config/ia64/ia64.c (not_postinc_memory_operand,
9003 ia64_print_operand, update_set_flags, errata_emit_nops):
9004 Likewise.
9005 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
9006 CONSTRAINT_OK_FOR_S): Likewise.
9007 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
9008 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
9009 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
9010 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
9011 Likewise.
9012 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
9013 eqne_comparison_operator, signed_comparison_operator):
9014 Likewise.
9015 * config/mips/mips.c (cmp_op, symbolic_expression_p):
9016 Likewise.
9017 * config/mmix/mmix (mmix_foldable_comparison_operator,
9018 mmix_comparison_operator): Likewise.
9019 * config/pa/pa.c (hppa_legitimize_address): Likewise.
9020 * config/rs6000/rs6000.c (stmw_operation,
9021 branch_comparison_operator, trap_comparison_operator,
9022 ccr_bit): Likewise.
9023 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
9024 * config/s390/s390.c (s390_alc_comparison,
9025 s390_slb_comparison):L Likewise.
9026 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
9027 Likewise.
9028 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
9029 noov_compare_op, noov_compare64_op, v9_regcmp_op,
9030 emit_hard_tfmode_operation, reg_unused_after)
9031 * doc/md.texi, doc/rtl.texi: Likewise.
9032
9033 * ra-debug.c: Add 2004 to list of copyright years.
9034 * unroll.c: Likewise.
9035
9036 * combine.c (simplify_logical): Remove dummy test,
9037 (apply_distributive_law): Fix typo in comment.
9038 GET_CODE (x) == AND so x is a commutative binary op.
9039 * jump.c (delete_related_insns): simplify loop
9040 condition, move testing of RTX codes inside the loop.
9041 (rtx_renumbered_equal_p): do not use RTX_CODE.
9042 * rtl.c (rtx_class): Declare as enum rtx_class.
9043 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
9044 Move to RTX_COMM_COMPARE class.
9045 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
9046 Move to RTX_CONST_OBJ class.
9047 * rtl.h (enum rtx_class): New declaration,
9048 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
9049 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
9050 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
9051 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
9052 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
9053 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
9054 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
9055 OBJECT_P): New macros.
9056 * config/sparc/sparc.c (noov_compare_op): Remove register
9057 from parameter.
9058
9059 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
9060
9061 * target.h: Remove texi jargons in comments.
9062
9063 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9064
9065 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
9066 threshold to 0x4f.
9067
9068 Revert:
9069 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
9070 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
9071 as well.
9072 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
9073 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
9074
9075 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9076
9077 * doc/md.texi (cbranchmode4): New.
9078
9079 2004-03-02 Eric Christopher <echristo@redhat.com>
9080
9081 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
9082 fix_trunc.
9083 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
9084 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
9085 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
9086 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
9087
9088 2004-03-02 Richard Henderson <rth@redhat.com>
9089
9090 PR middle-end/11767
9091 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
9092 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
9093 before the compare, if flag_non_call_exceptions.
9094
9095 2004-03-02 Richard Henderson <rth@redhat.com>
9096
9097 PR middle-end/14327
9098 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
9099 emitting the label, not after.
9100
9101 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
9102
9103 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
9104 (m68hc11_mov_addr_mode): Likewise.
9105 (m68hc11_override_options): Initialize them based on target.
9106 (register_indirect_p): Allow a MEM for indirect addressing modes and
9107 use flags to control what is allowed.
9108 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
9109 supported addressing modes.
9110 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
9111 (go_if_legitimate_address_internal): Likewise.
9112 (m68hc11_indirect_p): Likewise and check the mode.
9113 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
9114
9115 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9116
9117 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
9118 (expand_builtin_setjmp_setup): Use
9119 targetm.builtin_setjmp_frame_value instead of
9120 BUILTIN_SETJMP_FRAME_VALUE.
9121 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
9122 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
9123 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
9124 * target.h (gcc_target): Add builtin_setjmp_frame_value.
9125 * targhooks.c (default_builtin_setjmp_frame_value): New.
9126 * targhooks.h: Add a prototype for
9127 default_builtin_setjmp_frame_value.
9128 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
9129 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
9130
9131 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
9132
9133 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
9134 sequences of moves.
9135 (add peepholes): New peepholes to optimize sequences adding small
9136 constants.
9137 (bset peepholes): New peepholes to transform an OR in a bset form
9138 (bclr peepholes): Likewise for bclr form.
9139 (cmp peepholes): New peepholes to avoid register copies when comparing.
9140
9141 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
9142
9143 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
9144 to separate push from moves.
9145 ("*pushdf_internal"): Likewise.
9146 ("*pushsf_internal"): Likewise.
9147 ("*pushsi_internal"): Likewise.
9148 ("movdi_internal"): Use define_insn_and_split; non push operand.
9149 ("movdf_internal"): Likewise.
9150 ("movsf_internal"): Likewise.
9151 ("movsi_internal"): Likewise.
9152 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
9153 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
9154 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
9155
9156 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
9157
9158 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
9159 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
9160 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
9161 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
9162 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
9163 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
9164 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
9165 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
9166 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
9167 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
9168 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
9169
9170 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
9171
9172 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
9173 (SOFT_XY_REGNUM): Define.
9174 (cmp split): Use the above instead of hard coded numbers.
9175 (8-bit op split): No need to check the mode; allow Q_REG.
9176 (ashift split): Adjust the first operand if it uses the SP and we
9177 are pushing the shifted value.
9178 (plus shift split): Fix when a source is in register D+X.
9179 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
9180
9181 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
9182
9183 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
9184 comparing with Z register.
9185
9186 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9187
9188 * cfgloop.h (struct loop_desc): Removed.
9189 (struct loop): Fields simple, desc and has_desc removed.
9190 (simple_loop_p, count_loop_iterations): Declaration removed.
9191 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
9192 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
9193 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
9194 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
9195 simple_loop_exit_p, variable_initial_value, variable_initial_values,
9196 simple_condition_p, simple_increment, count_strange_loop_iterations,
9197 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
9198 Removed.
9199 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
9200
9201 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9202
9203 * genattrtab.c: Don't handle MATCH_INSN.
9204 * genrecog.c: Likewise.
9205 * gensupport.c: Likewise.
9206 * rtl.def (match_insn): Remove.
9207 * doc/md.texi (match_insn, match_insn2): Remove.
9208
9209 2004-03-02 Mark Mitchell <mark@codesourcery.com>
9210
9211 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
9212 macro results in memory allocation.
9213
9214 2004-03-02 David O'Brien <obrien@FreeBSD.org>
9215
9216 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
9217 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
9218 %(fbsd_dynamic_linker),
9219 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
9220 config/i386/freebsd.h
9221 * config/arm/freebsd.h: Ditto.
9222 * config/i386/freebsd.h: Ditto.
9223 * config/i386/freebsd64.h: Ditto.
9224 * config/ia64/freebsd.h: Ditto.
9225 * config/rs6000/sysv4.h: Ditto.
9226 * config/sparc/freebsd.h: Ditto.
9227
9228 2004-03-02 Loren James Rittle <ljrittle@acm.org>
9229
9230 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
9231
9232 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9233
9234 * rtl.def (define_combine): Remove.
9235
9236 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9237
9238 * config/h8300/h8300.md: Tweak formatting.
9239
9240 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9241
9242 * config/h8300/h8300.md (*cmphi_h8300): Rename to
9243 *cmphi_h8300_znvc.
9244 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
9245
9246 2004-03-01 Mark Mitchell <mark@codesourcery.com>
9247
9248 PR bootstrap/14356
9249 * gcc.c (process_command): Remove const-qualification from argv.
9250 (main): Likewise.
9251
9252 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9253
9254 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
9255 pushqi1_h8300hs_advanced. Adjust its caller.
9256 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
9257 Adjust its caller.
9258
9259 2004-03-02 Nicolas Roche <roche@act-europe.fr>
9260
9261 * Makefile.in (install-libgcc, install-multilib): Pass
9262 mkinstalldirs var to libgcc.mk.
9263
9264 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
9265
9266 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
9267 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
9268
9269 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
9270
9271 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
9272 * config/h8300/h8300.md: Split several peephole2's, each into
9273 two.
9274
9275 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9276
9277 * dominance.c (recount_dominator): Handle postdominators.
9278
9279 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
9280
9281 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
9282 (NUM_SYMBOL_TYPES): Likewise.
9283 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
9284 (mips_unspec_address): Declare.
9285 (mips_gotoff_page, mips_gotoff_global): Delete.
9286 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
9287 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
9288 (mips_symbolic_constant_p, mips_symbolic_address_p)
9289 (mips_symbol_insns): Handle new symbol types.
9290 (general_symbolic_operand): New predicate.
9291 (mips_unspec_address): Make extern.
9292 (mips_gotoff_page, mips_gotoff_global): Delete.
9293 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
9294 Handle new symbol types.
9295 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
9296 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
9297 mips_unspec_address directly.
9298 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
9299 the documentation of -mexplicit-relocs.
9300
9301 2004-03-01 Jeff Law <law@redhat.com>
9302
9303 * fold-const.c (fold): An equality comparison of a non-weak object
9304 against zero has a known result. Similarly an equality comparison
9305 of the address of two non-weak, unaliased symbols has a known result.
9306
9307 * ggc-page.c (struct page_entry): New field PREV.
9308 (ggc_alloc): Update PREV field appropriately.
9309 (sweep_pages): Likewise.
9310 (ggc_free): Likewise. Use PREV field rather than loop to
9311 improve ggc_free performance.
9312
9313 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
9314
9315 * config/mips/mips.c (mips_output_division): Use the division
9316 instruction to fill the delay slot of a zero check.
9317 (mips_idiv_insns): Adjust accordingly.
9318
9319 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
9320
9321 * config.gcc: Create a default tmake_file for linux, and use
9322 it in all but two linux clauses. Comment those two.
9323
9324 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
9325
9326 * combine.c (try_combine): Do not refer to is_replaced.
9327 (gen_lowpart_for_combine): Perverse subregs now have a
9328 more politically correct name.
9329 * cse.c (cse_insn): Likewise.
9330 * jump.c: Fix bogus reference to delete_insn.
9331
9332 2004-02-29 Mark Mitchell <mark@codesourcery.com>
9333
9334 PR debug/14328
9335 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
9336 constants as signed values.
9337
9338 PR middle-end/13448
9339 * c-tree.h (readonly_warning): Rename to ...
9340 (readonly_error): ... this.
9341 * c-typeck.c (build_unary_op): Adjust accordingly.
9342 (readonly_warning): Rename to ...
9343 (readonly_error): ... this and issue errors, not warnings.
9344 (build_modify_expr): Call readonly_error, not readonly_warning.
9345 (c_expand_asm_operands): Likewise.
9346 * tree-inline.c (optimize_inline_calls): Do not inline functions
9347 after errors have occurred.
9348
9349 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
9350
9351 * configure.ac: Rearrange some threading code for clarity;
9352 add section comment.
9353 * configure: Regenerate.
9354
9355 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
9356
9357 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
9358 typos.
9359 * doc/cppopts.texi: Fix a typo.
9360
9361 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
9362
9363 * config/i386/i386.md: Fix formatting.
9364
9365 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
9366
9367 * configure.ac: Add some comments delineating sections of code.
9368
9369 * doc/install.texi: Note that libada uses autoconf 2.57 also.
9370
9371 * doc/install.texi: Fix idiot typo in previous commit.
9372
9373 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
9374
9375 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
9376
9377 * config/h8300/h8300.md: Add comments about peephole2's.
9378
9379 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
9380
9381 * config/h8300/h8300.md: Tweak operand numbers of some
9382 peephole2's.
9383
9384 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
9385
9386 * config/h8300/h8300.md: Tweak comments about peephole2's.
9387
9388 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
9389
9390 PR middle-end/14203
9391 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
9392 instead of testing whether DECL_RTL is not NULL.
9393
9394 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
9395
9396 * config/sh/sh.c: Fix formatting.
9397
9398 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
9399
9400 * config/sh/sh.c: Convert to ISO-C.
9401
9402 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
9403
9404 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
9405 my previous patch.
9406
9407 * config/darwin.h (machopic_finish): Output stub even if the
9408 symbol is already defined.
9409
9410 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9411
9412 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
9413
9414 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
9415
9416 * genattr.c (main): Don't define
9417 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
9418 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
9419 (DFA_PIPELINE_INTERFACE): Likewise.
9420 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
9421 (DFA_PIPELINE_INTERFACE): Likewise.
9422
9423 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
9424
9425 * config/mips/mips.md (tstsi, tstdi): Delete.
9426
9427 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9428
9429 * config/mips/mips.c (override_options): Remove an obsolete
9430 duplicate definition of the "e" constraint.
9431 * config/mips/mips.h: Update a comment accordingly.
9432
9433 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9434
9435 * config/mips/mips.md: Complete the unfinished R4000
9436 multiply/shift errata workaround. Improve documentation.
9437 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
9438 has a hilo hazard.
9439 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
9440 (muldi3, muldi3_internal): Likewise.
9441 (muldi3_internal2): Remove, replacing with...
9442 (muldi3_mult3, muldi3_r4000): ...these new patterns.
9443 (mulsidi3): Take the errata into account.
9444 (mulsidi3_32bit): Remove, replacing with...
9445 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
9446 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
9447 (umulsidi3): Take the errata into account.
9448 (umulsidi3_32bit): Remove, replacing with..
9449 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
9450 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
9451 TARGET_FIX_R4000.
9452 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
9453 (smuldi3_highpart, umuldi3_highpart): Likewise.
9454 * doc/invoke.texi: Document the errata workaround.
9455
9456 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9457
9458 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
9459 * config/mips/mips.h (MASK_FIX_SB1): Bump.
9460 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
9461 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
9462 * config/mips/mips.c (mips_idiv_insns): New function.
9463 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
9464 (mips_output_division): Add a workaround for the R4000 divide/shift
9465 errata.
9466 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
9467 the length of an "idiv" instruction.
9468 * doc/invoke.texi: Document the new switches.
9469
9470 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
9471
9472 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
9473 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
9474
9475 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9476
9477 PR optimization/14229
9478 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
9479
9480 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
9481
9482 * fold-const.c (fold): Strip NOPs that change the signedness
9483 for RSHIFT too. Expand comment.
9484
9485 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
9486
9487 PR optimization/7871
9488 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
9489 from or to call insns.
9490
9491 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
9492
9493 PR optimization/7871
9494 * flow.c (propagate_one_insn): Interpret calls as setting global
9495 registers, not merely clobbering them.
9496
9497 2004-02-27 Dale Johannesen <dalej@apple.com>
9498
9499 * config/darwin.c (machopic_output_possible_stub_label): Remove.
9500 config/darwin-protos.h: Ditto.
9501 config/darwin.h: Remove call to it.
9502 * combine.c (distribute_notes): Do not place a REG_DEAD note
9503 when value is both set and used.
9504
9505 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
9506
9507 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
9508 as well.
9509 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
9510 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
9511
9512 2004-02-27 Andrew Pinski <apinski@apple.com>
9513
9514 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
9515 Speedup common case of the type values being in the same order.
9516
9517 2004-02-27 Steve Ellcey <sje@cup.hp.com>
9518
9519 * config/ia64/ia64.h (no-inline-float-divide): New option.
9520 * config/ia64/ia64.h (no-inline-int-divide): New option.
9521 * config/ia64/ia64.h (no-inline-sqrt): New option.
9522 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
9523 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
9524 * config/ia64/ia64.c (ia64_override_options): Modify error
9525 checking for inlined division/sqrt.
9526
9527 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
9528
9529 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
9530 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
9531 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
9532 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
9533 copyright.
9534
9535 2004-02-27 Paul Brook <paul@codesourcery.com>
9536
9537 * function.c (assign_parms): Don't count pretend args for alignment.
9538
9539 2004-02-27 Richard Henderson <rth@redhat.com>
9540
9541 * passes.c: New file.
9542 * Makefile.in (OBJS-common): Add it.
9543 * diagnostic.c (rtl_dump_and_exit): Move decl ...
9544 * flags.h (rtl_dump_and_exit): ... here.
9545 * output.h (size_directive_output, last_assemble_variable_decl):
9546 Move from toplev.c.
9547 * rtl.h (reg_alloc): Move from toplev.c.
9548 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
9549 struct dump_file_info, enum dump_file_index, dump_file_tbl,
9550 open_dump_file, close_dump_file, rest_of_decl_compilation,
9551 rest_of_type_compilation, rest_of_handle_final,
9552 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
9553 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
9554 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
9555 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
9556 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
9557 rest_of_handle_tracer, rest_of_handle_if_conversion,
9558 rest_of_handle_if_after_combine, rest_of_handle_web,
9559 rest_of_handle_branch_prob,
9560 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
9561 rest_of_handle_addressof, rest_of_handle_sibling_calls,
9562 rest_of_handle_jump_bypass, rest_of_handle_inlining,
9563 rest_of_handle_null_pointer, rest_of_handle_combine,
9564 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
9565 rest_of_handle_gcse, rest_of_handle_loop_optimize,
9566 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
9567 (decode_d_option): Use enable_rtl_dump_file.
9568 (compile_file, finalize, do_compile): Move profile+combine+graph
9569 cleanup to finish_optimization_passes.
9570 * toplev.h (init_optimization_passes, finish_optimization_passes,
9571 enable_rtl_dump_file): Declare.
9572
9573 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
9574 Roger Sayle <roger@eyesopen.com>
9575
9576 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
9577 operands to build a tree with swapped operands.
9578 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
9579 'unsignedp' predicate to specify the signedness.
9580
9581 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
9582
9583 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
9584 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
9585 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
9586 comment typos and formatting. Follow spelling conventions.
9587
9588 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
9589
9590 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
9591 fix_truncsfsi2.
9592
9593 * config/rs6000/spe.md: Delete spe_efsctuiz.
9594 Add spe_fixuns_truncsfsi2.
9595 Add spe_fix_truncsfsi2.
9596
9597 2004-02-26 Eric Christopher <echristo@redhat.com>
9598
9599 * c-lex.c (c_lex_string_translate): New variable.
9600 (lex_string): Use to determine string translation.
9601 * c-pragma.h: Prototype.
9602 * c-parse.in (start_string_translation): New. Set above.
9603 (stop_string_translation): Ditto.
9604 (attribute, attribute_list, asm_def, asm_stmt,
9605 asm_operand): Use above functions.
9606 * cp/parser.c (cp_parser_declaration): Translate strings
9607 unless token is RID_EXTERN. Set c_lex_string_translate
9608 for recursive use.
9609 (cp_parser_asm_definition): Only translate argument strings
9610 to asms.
9611 (cp_parser_asm_operand_list): Ditto.
9612 (cp_parser_attribute_list): Do not translate attribute strings.
9613
9614 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
9615
9616 * stmt.c (expand_start_case_dummy): Remove.
9617 * tree.h: Remove the corresponding prototype.
9618
9619 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
9620
9621 * builtins.c (apply_args_register_offset): Remove.
9622 * tree.h: Remove the corresponding prototype.
9623
9624 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
9625
9626 * stor-layout.c (is_pending_size): Remove.
9627 * tree.h: Remove the corresponding prototype.
9628
9629 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
9630
9631 * recog.c (validate_replace_src): Remove.
9632 * recog.h: Remove the corresponding prototype.
9633
9634 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
9635
9636 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
9637 MAYBE_REG_PARM_STACK_SPACE.
9638 * function.c: Likewise.
9639 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
9640 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
9641 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
9642 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
9643
9644 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
9645
9646 * c-decl.c (c_expand_deferred_function): Remove.
9647 * c-tree.h: Remove the corresponding prototype.
9648
9649 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
9650
9651 * postreload.c (reload_cse_move2add): Generate just a PLUS
9652 instead of an entire SET.
9653
9654 2004-02-26 Jan Hubicka <jh@suse.cz>
9655
9656 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
9657 /pentium4m.
9658 * i386.c (override_options): Add support for new CPUs.
9659 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
9660 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
9661 constants.
9662 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
9663
9664 2004-02-26 Bob Wilson <bob.wilson@acm.org>
9665
9666 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
9667
9668 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
9669
9670 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
9671 (sparc_emit_fixunsdi): New prototype.
9672 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
9673 (sparc_emit_fixunsdi): New function.
9674 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
9675 operand 1. Pass SFmode to sparc_emit_floatunsdi.
9676 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
9677 to sparc_emit_floatunsdi.
9678 (fixuns_truncsfdi2): New expander.
9679 (fixuns_truncdfdi2): Likewise.
9680
9681 2004-02-26 Alan Modra <amodra@bigpond.net.au>
9682
9683 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
9684 unless HAVE_cc0.
9685
9686 2004-02-25 Richard Henderson <rth@redhat.com>
9687
9688 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
9689 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
9690 use (op0-op1) == 0 if op0 is a pointer.
9691 * config/alpha/alpha.md (cmpdi): Use some_operand.
9692 (three comparison combine splits): Remove.
9693
9694 2004-02-25 Richard Henderson <rth@redhat.com>
9695
9696 PR c/12794
9697 * c-common.c (handle_alias_attribute): Reject the attribute if
9698 current_function_decl is set.
9699
9700 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
9701
9702 * config.gcc: Add comment describing extra_gcc_objs.
9703 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
9704 * configure.ac (extra_gcc_objs): New substitution variable.
9705 (host_extra_gcc_objs): Don't substitute.
9706 * configure: Regenerate.
9707 * Makefile.in: Use extra_gcc_objs.
9708
9709 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
9710
9711 * doc/contrib.texi: Add an entry for myself.
9712
9713 2004-02-25 Jan Hubicka <jh@suse.cz>
9714
9715 * basic-block.h (make_eh_edge, break_superblocks): Declare.
9716 * cfgbuild.c (make_eh_edge): Make global.
9717 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
9718 * except.c (build_post_landing_pads, connect_post_landing_pads,
9719 dw2_build_landing_pads, sjlj_emit_function_enter,
9720 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
9721 sjlj_build_landing_pads): Update CFG.
9722 (emit_to_new_bb_before): New function.
9723 (finish_eh_generation): Do not rebuild the CFG.
9724
9725 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9726
9727 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
9728 target_cpu_default defines.
9729 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
9730 * pa.h (TARGET_DEFAULT): Likewise.
9731
9732 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
9733
9734 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
9735 comparisons with regard to signedness.
9736
9737 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
9738
9739 * arm.c (thumb_legitimize_address): New function.
9740 * arm-protos.h: Prototype it.
9741 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
9742 (LEGITIMIZE_ADDRESS): Use it.
9743
9744 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
9745
9746 * reload1.c (reload): Only spill eliminable register with multiple
9747 adjacent elimination alternatives if all alternatives fail.
9748
9749 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
9750
9751 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
9752 is -4095...+4095 inclusive.
9753
9754 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
9755
9756 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
9757 the bootstrap failure with Sun CC 5.4 and 5.5.
9758
9759 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
9760
9761 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
9762 which modifies NEWREG.
9763 (cse_condition_code_reg): Update the mode of CC_REG in
9764 CC_SRC_INSN on our own.
9765
9766 2004-02-24 Michael Matz <matz@suse.de>
9767
9768 * config/i386/i386.c (ix86_comp_type_attributes): Check for
9769 regparm attributes.
9770
9771 2004-02-24 Richard Henderson <rth@redhat.com>
9772
9773 * toplev.c (dump_file_tbl): Rename from dump_file.
9774 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
9775 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
9776 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
9777 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
9778 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
9779 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
9780 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
9781 s/rtl_dump_file/dump_file/g.
9782
9783 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
9784
9785 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
9786 (spe_fixuns_truncsfsi2): Delete.
9787
9788 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
9789 (fixuns_truncsfsi2): Delete.
9790
9791 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
9792
9793 PR/14240
9794 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
9795
9796 2004-02-24 Geoffrey Keating <geoffk@apple.com>
9797
9798 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
9799
9800 2004-02-24 Jason Merrill <jason@redhat.com>
9801
9802 * tree.c (check_qualified_type): New fn.
9803 (get_qualified_type): Use it. If type already has the desired
9804 quals, just return it.
9805 * tree.h: Declare it.
9806
9807 2003-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
9808
9809 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
9810 TARGET_SCHED_FINISH_GLOBAL): New macros.
9811
9812 * target.h (md_init_global, md_finish_global): Function
9813 declarations corresponding to new target macros.
9814
9815 * haifa-sched.c (sched_init, sched_finish): Allow target to
9816 call the new schedular hooks.
9817
9818 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
9819 call to update_life_info.
9820
9821 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
9822 flag_schedule_insns for SH4.
9823
9824 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
9825 find_set_regmode_weight, find_insn_regmode_weight,
9826 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
9827 sh_variable_issue, high_pressure, ready_reorder,
9828 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
9829 functions used to throttle the insn movement in first
9830 scheduling pass for SH.
9831
9832 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
9833 TARGET_SCHED_FINISH_GLOBAL.
9834
9835 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
9836
9837 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
9838 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
9839 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
9840 symbols in sections named by the user.
9841 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
9842 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
9843 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
9844 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
9845 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
9846 the above.
9847 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
9848 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
9849 one more pseudo to further improve code generation.
9850 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
9851 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
9852 inside UNSPEC.
9853 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
9854 * config/frv/frv.c (frv_legitimate_address_p): Added
9855 allow_double_reg_p argument. Adjust all callers. Use it to
9856 decide whether to enable double-register indirect addressing.
9857 (frv_funcdesc_alias_set): Remove.
9858 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
9859 register. Emit movdi_ldd.
9860 (ldd_address_operand): New.
9861 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
9862 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
9863 (PREDICATE_CODES): Add ldd_address_operand.
9864 * config/frv/frv.md (movdi_ldd): New.
9865 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
9866 intermediate computations if possible.
9867 (symGOTOFF2reg_i): Fix harmless typo.
9868 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
9869 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
9870 relocated p_vaddr to vaddr type.
9871 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
9872 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
9873 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
9874 MEM, or use a funcdesc alias set. Use regular move instead of
9875 ldd.
9876 (dbl_memory_one_insn_operand): Recognize function descriptors by
9877 type or by alias set, and don't split them.
9878 * config/frv/frv.md (call, call_value): Never use call_internal
9879 for fdpic.
9880 (call_internal, call_value_internal): Never match for FDPIC.
9881 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
9882 call_value_fdpicsi): Require FDPIC.
9883 (ldd): Removed.
9884 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
9885 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
9886 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
9887 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
9888 FDPIC. Compute data base address.
9889 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
9890 before the other self-specs are processed.
9891 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
9892 Build with -fPIC.
9893 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
9894 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
9895 inhibit_libc is defined.
9896 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
9897 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
9898 __FRV_FDPIC__.
9899 (__RELOC_POINTER): Define.
9900 (_Unwind_IteratePhdrCallback): Use it.
9901 * config/frv/frv.h (Twrite): Define.
9902 (TRANSFER_FROM_TRAMPOLINE): Use it.
9903 * config/frv/linux.h (INVOKE__main): Undefine.
9904 (Twrite): Override.
9905 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
9906 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
9907 (-mlibrary-pic): Emphasize that this option generates EABI code.
9908 (-mcpu): Add fr550.
9909 (-mpack): Remove.
9910 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
9911 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
9912 and CONSTs in FDPIC mode.
9913 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
9914 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
9915 * config/frv/frv.c (move_source_operand): Don't accept symbolic
9916 constants.
9917 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
9918 rather than 'i' constraint for the 2-instruction alternative.
9919 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
9920 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
9921 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
9922 EXTRA_CONSTRAINT_FOR_Y.
9923 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
9924 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
9925 (addsi3): Change 'Y' constraint to 'Q'.
9926 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
9927 * reload.c (CONST_POOL_OK_P): New macro.
9928 (find_reloads): Use it to decide whether a constant can be forced
9929 into memory.
9930 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
9931 constant satisfies got12_operand.
9932 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
9933 (frv_legitimate_address_p): Check for valid unspec offsets using
9934 got12_operand rather than frv_legitimate_fdpic_operand_p.
9935 (frv_legitimate_fdpic_operand_p): Delete.
9936 (frv_emit_movsi): Abort if we try to use the FDPIC register during
9937 or after reload.
9938 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
9939 TARGET_FDPIC.
9940 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
9941 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
9942 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
9943 (frv_fdpic_fptr_operand): Don't declare here.
9944 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
9945 rather than fdpic_got12_operand.
9946 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
9947 got12_operand and const_unspec_operand.
9948 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
9949 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
9950 (symbolic_operand): Remove.
9951 (const_unspec_operand): New predicate.
9952 * config/frv/frv.md (*movsi_got): Use got12_operand.
9953 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
9954 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
9955 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
9956 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
9957 * config/frv/frv.c (frv_unspec): New structure.
9958 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
9959 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
9960 validate CONST indices. Use frv_output_const_unspec to print them.
9961 (frv_print_operand): Update call to unspec_got_name. Use
9962 frv_output_const_unspec to print constant unspecs.
9963 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
9964 Reject UNSPECs otherwise.
9965 (unspec_got_name): Take the relocation number as argument, not an
9966 rtx containing it.
9967 (frv_output_addr_const_extra): Remove, replacing with...
9968 (frv_output_const_unspec): ...this new function.
9969 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
9970 (gpr_or_int12_operand): Use fdpic_got12_operand.
9971 (dbl_memory_one_insn_operand): Likewise.
9972 (fdpic_got12_operand): Use frv_const_unspec_p.
9973 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
9974 are already legitimate. Use frv_small_data_reloc_p when deciding
9975 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
9976 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
9977 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
9978 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
9979 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
9980 label, for real this time.
9981 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
9982 representation of visibility.
9983 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
9984 such.
9985 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
9986 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
9987 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
9988 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
9989 it was explicitly disabled.
9990 (frv_stack_info): There is no need to save the link register in every
9991 frame unless TARGET_LINKED_FP is true.
9992 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
9993 frame pointer if the stack pointer might change value.
9994 (frv_return_addr_rtx): Check and process "count" argument.
9995 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
9996 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
9997 (frv_find_base_term): Declare.
9998 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
9999 (FIND_BASE_TERM): Define.
10000 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
10001 small_data_register_operand, small_data_symbolic_operand. Add
10002 symbolic_operand.
10003 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
10004 (frv_print_operand_memory_reference, output_move_single): Remove
10005 special handling for unlegitimized sdata addresses.
10006 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
10007 and symbolic addresses.
10008 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
10009 (frv_find_base_term): New function.
10010 (int_2word_operand): Check specifically for symbolic address constants.
10011 (pic_register_operand, pic_symbolic_operand): Delete.
10012 (small_data_register_operand, small_data_symbolic_operand): Delete.
10013 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
10014 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
10015 (move_source_operand): Only accept CONSTs if they're a two-insn
10016 symbolic constant.
10017 (fdpic_got12_operand): Don't require TARGET_FDPIC.
10018 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
10019 using gen_symGOTOFF2reg*.
10020 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
10021 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
10022 themselves a cost of 3 insns.
10023 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
10024 Change predicate to symbolic_operand.
10025 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
10026 (*movsi_lda_sdata): Delete.
10027 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
10028 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
10029 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
10030 frv-*-*linux*.
10031 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
10032 label.
10033 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
10034 -multilib-library-pic.
10035 (LINK_SPEC): Add -z text for -mfdpic.
10036 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
10037 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
10038 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
10039 Override.
10040 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
10041 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
10042 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
10043 crtstuff-generated files.
10044 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
10045 * config.gcc: Add frv-*-*linux*.
10046 * config/frv/linux.h, config/frv/t-linux: New.
10047 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
10048 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
10049 when -mfdpic even if a linker script is explicitly listed.
10050 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
10051 * config/frv/frv.c (frv_override_options): Clear asm_out
10052 unaligned_op for SImode on FDPIC.
10053 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
10054 argument passed to decl_readonly_section.
10055 (frv_assemble_integer): Revert 2003-09-30's change, but make the
10056 whole block run with FDPIC even with -fno-PIC.
10057 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
10058 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
10059 symbol or label plus offset to memory.
10060 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
10061 GOTOFF and GPREL for LABEL_REF.
10062 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
10063 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
10064 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
10065 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
10066 * doc/invoke.texi: Document them.
10067 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
10068 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
10069 (frv_splittable_got_operand): Removed.
10070 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
10071 LO_SUM. Add comments.
10072 (frv_override_options): Moved enabling of FDPIC to
10073 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
10074 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
10075 (frv_legitimize_fdpic_address): Don't duplicate logic in
10076 frv_emit_movsi.
10077 (frv_gen_GPsym2reg): New.
10078 (unspec_got_name): Added gprel.
10079 (frv_expand_fdpic_call): Add support for inlining PLTs.
10080 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
10081 (gpr_or_int12_operand): Added GPREL12.
10082 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
10083 (small_data_symbolic_operand): Fail if FDPIC.
10084 (fdpic_splittable_got_operand): Removed.
10085 (fdpic_got12_operand): Added GPREL12.
10086 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
10087 when appropriate. Fix sdata GOTOFF.
10088 (frv_legitimate_constant_p): Require legitimate PIC operand for
10089 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
10090 (frv_assemble_integer): Move FDPIC funcdesc handling out of
10091 flag_pic case.
10092 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
10093 frv_assemble_integer fails.
10094 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
10095 (SUBTARGET_DRIVER_SELF_SPECS): New.
10096 (ASM_SPEC): Don't pass -mno-fdpic.
10097 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
10098 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
10099 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
10100 -multilib-library-pic.
10101 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
10102 condexec_si_media_operator, condexec_sf_add_operator and
10103 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
10104 and condexec_sf_unary_operator.
10105 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
10106 New.
10107 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
10108 movsi_internal. Give them internal names. movsi_got has type
10109 int.
10110 (fdpic got splitters): Remove.
10111 (symGPREL2reg, symGPREL2reg_hilo): New.
10112 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
10113 to -mlibrary-pic. Map -multilib-library-pic to it.
10114 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
10115 Document.
10116 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
10117 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
10118 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
10119 (frv_cannot_force_const_mem): New function.
10120 (const_small_data_p, plus_small_data_p): Update comments on sdata
10121 on FDPIC.
10122 (frv_override_options): Set flag_pie for FDPIC too.
10123 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
10124 call-saved registers on FDPIC.
10125 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
10126 don't force LR to be preserved.
10127 (frv_expand_prologue): Likewise.
10128 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
10129 (frv_frame_pointer_required): Don't force it just because the
10130 FDPIC register is used.
10131 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
10132 operand only if !condexec_p.
10133 (frv_legitimize_address): Return the FDPIC-legitimized address.
10134 Don't match small data here on FDPIC.
10135 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
10136 symbols. Use TRUE/FALSE instead of 1/0.
10137 (frv_local_funcdesc_p): New.
10138 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
10139 immediates when possible.
10140 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
10141 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
10142 an UNSPEC_GOT.
10143 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
10144 12-bit immediates when possible.
10145 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
10146 are not legitimate pic operands.
10147 (frv_in_small_data_p): Re-enable for FDPIC.
10148 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
10149 (FRV_GLOBAL_P): Removed.
10150 * config/frv/frv.md: Add modes to CONSTs.
10151 (movsi_got): New.
10152 (movsi_lo_sum_got): Use separate matches instead of match_dup.
10153 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
10154 (fdpic splittable operations): Match on flag_pic != 1.
10155 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
10156 * config/frv/frv.c (frv_asm_out_constructor,
10157 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
10158 bytes, not bits.
10159 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
10160 * config/frv/frv.c (frv_assemble_integer): Reject complex
10161 expressions referencing function SYMBOL_REFs.
10162 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
10163 (move_source_operand): Reject CONSTs that reference function
10164 SYMBOL_REFs on FDPIC.
10165 (frv_emit_movsi): If we get such a CONST, break it up.
10166 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
10167 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
10168 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
10169 MEM.
10170 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
10171 (frv_trampoline_size): Increase for FDPIC.
10172 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
10173 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
10174 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
10175 Disable use of GOTOFF for now.
10176 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
10177 Disable use of small data in FDPIC for now.
10178 (frv_asm_output_mi_thunk): Implement for FDPIC.
10179 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
10180 * config/frv/frv.c (frv_asm_out_constructor): Use
10181 frv_assemble_integer for FDPIC pointers.
10182 (frv_asm_out_destructor): Likewise.
10183 * config/frv/frv.md (ldd): Fix order of operands. Use
10184 address_operand for input.
10185 2003-09-18 DJ Delorie <dj@redhat.com>
10186 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
10187 (unspec_got_name): Correct typo.
10188 (frv_emit_movsi): Pre-expand splittable GOTs.
10189 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
10190 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
10191 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
10192 * config/frv/t-frv: Add -mfdpic multilibs.
10193 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
10194 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
10195 * config/frv/frv.c (frv_override_options): -mfdpic assumes
10196 flag_pic, default to 32-bit pics, require DWORD ops.
10197 (frv_override_options): Add W and Z constraints.
10198 (frv_expand_prologue): No pic prologue for -mfdpic.
10199 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
10200 (frv_print_operand_memory_reference): Handle GOT constants.
10201 (frv_legitimate_address_p): Allow GOT constants.
10202 (frv_legitimize_address): Handle GOT addresses too.
10203 (frv_legitimate_fdpic_operand_p): New.
10204 (frv_legitimize_fdpic_address): New.
10205 (unspec_got_name): New.
10206 (frv_output_addr_const_extra): New.
10207 (frv_expand_fdpic_call): New.
10208 (frv_fdpic_fptr_operand): New.
10209 (gpr_or_int12_operand): Handle GOT operands.
10210 (int_2word_operand): Handle GOT operands.
10211 (fdpic_operand): New.
10212 (fdpic_splittable_got_operand): New.
10213 (fdpic_got12_operand): New.
10214 (frv_emit_movsi): Handle GOT operands.
10215 (frv_assemble_integer): -mfdpic doesn't use rofixups.
10216 (frv_print_operand): Support 'g' code for GOT operands.
10217 * config/frv/frv-protos.h: Add prototypes as needed.
10218 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
10219 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
10220 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
10221 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
10222 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
10223 R_FRV_GOTOFFLO): New.
10224 (movsi_high_got, movsi_lo_sum_got): New.
10225 (*movsi_pic): Don't use this splitter for -mfdpic.
10226 (addsi3): Allow GOT references also.
10227 (call, call_value): Handle -mfdpic separately.
10228 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
10229 call_value_fdpicsi): New.
10230 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
10231 symGOTOFF2reg_i): New.
10232 * config/frv/frv.h (MASK_FDPIC): New.
10233 (TARGET_FDPIC): New.
10234 (TARGET_SWITCHES): Add -mfdpic.
10235 (FDPIC_FPTR_REGNO): New.
10236 (FDPIC_REGNO): New.
10237 (OUR_FDPIC_REG): New.
10238 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
10239 FDPIC_CALL_REGS.
10240 (REG_CLASS_NAMES): Likewise.
10241 (REG_CLASS_CONTENTS): Likewise.
10242 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
10243 (EXTRA_CONSTRAINT): Add it here.
10244 (FRV_GLOBAL_P): New.
10245 (OUTPUT_ADDR_CONST_EXTRA): New.
10246
10247 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
10248
10249 * config/sparc/sparc.h: Remove commented-out definitions of
10250 TARGET_EDOM and GEN_ERRNO_RTX.
10251
10252 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
10253
10254 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
10255 df_analyse with df_analyze.
10256
10257 2004-02-24 Alan Modra <amodra@bigpond.net.au>
10258
10259 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
10260 beginning of block.
10261
10262 2004-02-23 James E Wilson <wilson@specifixinc.com>
10263
10264 * calls.c (precompute_arguments): Update comment.
10265
10266 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
10267
10268 * et-forest.c: Replace et_occurences with et_occurrences.
10269
10270 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
10271
10272 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
10273 with iv_analyze.
10274
10275 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
10276
10277 * config/i386/i386.c: Rename pni to sse3.
10278 * config/i386/i386.h: Likewise.
10279 * config/i386/i386.md: Likewise.
10280 * config/i386/pmmintrin.h: Likewise.
10281 * doc/extend.texi: Likewise.
10282 * doc/invoke.texi: Likewise.
10283
10284 2004-02-23 Zack Weinberg <zack@codesourcery.com>
10285 Kazu Hirata <kazu@cs.umass.edu>
10286
10287 Remove -fwritable-strings.
10288 * c-common.c (fix_string_type): Don't check
10289 flag_writable_strings.
10290 (fix_string_type): Likewise.
10291 * c-opts.c (set_std_c89): Don't initialize
10292 flag_writable_strings.
10293 (set_std_c99): Likewise.
10294 * common.opt (fwritable-strings): Remove.
10295 * flags.h: Remove the external declaration of
10296 flag_writable_strings.
10297 * opts.c (common_handle_option) <OPT_fwritable_strings>:
10298 Remove.
10299 * toplev.c (flag_writable_strings): Remove.
10300 (f_options): Remove an entry for writable-strings.
10301 * varasm.c (const_hash_1) <STRING_CST>: Don't check
10302 flag_writable_strings.
10303 (compare_constant) <STRING_CST>: Likewise.
10304 (build_constant_desc): Likewise.
10305 * config/darwin.c (machopic_select_section): Likewise.
10306 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
10307 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
10308 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
10309 * config/mips/mips.c (mips_select_section): Likewise.
10310 (mips_encode_section_info): Likewise.
10311 * config/pa/pa.c (pa_select_section): Likewise.
10312 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
10313 * config/v850/v850.c (v850_select_section): Likewise.
10314 * doc/invoke.texi (-fwritable-strings): Remove.
10315 (-fno-const-strings): Don't mention -fwritable-strings.
10316 * doc/trouble.texi: Don't mention -fwritable-strings.
10317
10318 2003-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
10319
10320 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
10321
10322 2004-02-23 Dale Johannesen <dalej@apple.com>
10323
10324 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
10325 (movdf_hardfloat64): Ditto.
10326 (movdf_softfloat64): Ditto.
10327
10328 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
10329 * config/rs6000/rs6000.c (function_arg): call to
10330 rs6000_mixed_function_arg for DFmode moved to allow
10331 normal DFmode incoming register assignment.
10332
10333 2004-02-23 Dale Johannesen <dalej@apple.com>
10334
10335 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
10336 (movdf_hardfloat64): Ditto.
10337
10338 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
10339
10340 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
10341 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
10342 copyright.
10343
10344 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
10345
10346 PR c/14156
10347 * c-typeck.c (c_expand_return): Change check for VAR_DECL
10348 to use DECL_P instead.
10349
10350 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
10351 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
10352
10353 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
10354
10355 * Makefile.in (opts.o): Depend on target.h.
10356 * opts.c (decode_options): Use targetm.default_short_enums
10357 instead of DEFAULT_SHORT_ENUMS.
10358 * system.h (DEFAULT_SHORT_ENUMS): Poison.
10359 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
10360 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
10361 * target.h (gcc_target): Add default_short_enums.
10362 * config/cris/cris.h: Remove a comment about
10363 DEFAULT_SHORT_ENUMS.
10364 * config/ip2k/ip2k.h: Likewise.
10365 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
10366 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
10367
10368 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
10369 Falk Hueffner <falk@debian.org>
10370
10371 PR c/14188
10372 * builtins.c (expand_builtin_va_arg): Emit an informative message
10373 if a trap is generated.
10374 * c-typeck.c (build_function_call): Likewise.
10375
10376 2004-02-22 Jakub Jelinek <jakub@redhat.com>
10377
10378 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
10379 fopen.
10380 * libgcov.c: Include sys/stat.h.
10381 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
10382 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
10383 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
10384 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
10385
10386 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
10387
10388 * reorg.c: Remove comments about dead ports.
10389
10390 2004-02-22 Christopher Faylor <cgf@redhat.com>
10391
10392 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
10393 extra host object file when targetting cygwin rather than generic
10394 object files.
10395
10396 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
10397
10398 Merge from tree-ssa:
10399 2003-11-20 Richard Henderson <rth@redhat.com>
10400
10401 * tree-inline.c (insert_decl_map): New.
10402 (remap_decl, remap_type, remap_block, copy_body_r,
10403 initialize_inlined_parameters, declare_return_variable,
10404 remap_save_expr): Use it.
10405
10406 * function.c (copy_body_r): Add mapping from id->ret_label to
10407 id->ret_label. Revert test for ret_label.
10408
10409 2004-02-22 Jakub Jelinek <jakub@redhat.com>
10410
10411 * genoutput.c (process_template): Strip trailing whitespace in @
10412 templates and issue a warning if there was any.
10413
10414 2004-02-21 Christopher Faylor <cgf@redhat.com>
10415
10416 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
10417 object file when targetting cygwin.
10418 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
10419 overridden by top-level Makefile.
10420
10421 2004-02-21 Roger Sayle <roger@eyesopen.com>
10422
10423 * config/i386/i386.c (standard_80387_constant_p): Also prefer
10424 the x87's load constant instructions when optimizing for size.
10425
10426 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
10427
10428 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
10429 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
10430 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
10431 * fold-const.c: Likewise.
10432 * simplify-rtx.c: Likewise.
10433
10434 2004-02-21 Alan Modra <amodra@bigpond.net.au>
10435
10436 * combine.c (can_combine_p): Don't ignore SETs marked with
10437 REG_EH_REGION notes.
10438 (try_combine): When attemting to fix unrecognized insns, don't
10439 split a PARALLEL that contains the original i2.
10440
10441 2004-02-21 Ziemowit Laski <zlaski@apple.com>
10442
10443 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
10444 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
10445 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
10446 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
10447 (vector, pixel, bool): #define to __vector, __pixel and __bool.
10448 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
10449 portion of header.
10450 (__altivec_link_error_invalid_argument): Remove prototype; will use
10451 __builtin_altivec_compiletime_error("vec_*") instead.
10452 (vec_*): Fix/complete set of available operation overloads given the
10453 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
10454 cv-correctness of pointer arguments; in C, always check for correct
10455 argument types before macro expansion.
10456 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
10457 defining Darwin/PowerPC-specific '-f[no-]altivec' and
10458 '-W[no-]altivec-long-deprecated' switches.
10459 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
10460 '__vector', '__pixel' and '__bool' macros using
10461 '__attribute__((altivec(...)))' types.
10462 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
10463 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
10464 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
10465 New type nodes.
10466 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
10467 handling '-W[no-]altivec-long-deprecated'.
10468 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
10469 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
10470 altivec_expand_dst_builtin): Remove casts from integer literals.
10471 (altivec_expand_builtin): Likewise; handle expansion of new
10472 '__builtin_altivec_compiletime_error' function.
10473 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
10474 types, and make them distinct from other vector types; register
10475 '__builtin_altivec_compiletime_error' function.
10476 (print_operand): For 'P', print a full target register name instead of
10477 merely its number.
10478 (rs6000_attribute_table): Add "altivec" attribute.
10479 (rs6000_handle_altivec_attribute): New function.
10480 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
10481 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
10482 maps to).
10483 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
10484 declare.
10485 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
10486
10487 2004-02-20 James E Wilson <wilson@specifixinc.com>
10488
10489 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
10490 check.
10491 (shift_mix4left+2): Delete redundant pattern.
10492
10493 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
10494
10495 * alias.c (OUTGOING_REGNO): Don't define the default.
10496 * builtins.c (OUTGOING_REGNO): Likewise.
10497 (INCOMING_REGNO): Likewise.
10498 (apply_args_register_offset): Always use OUTGOING_REGNO.
10499 * combine.c (OUTGOING_REGNO): Likewise.
10500 * sibcall.c (OUTGOING_REGNO): Likewise.
10501 * defaults.h (INCOMING_REGNO): Provide the default.
10502 (OUTGOING_REGNO): Likewise.
10503
10504 2004-02-21 Jan Hubicka <jh@suse.cz>
10505
10506 * params.def (max-peeled-insns, max-completely-peeled-insns,
10507 max-once-peeled-insns): Set to 400.
10508
10509 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10510
10511 PR c++/12007
10512 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
10513 are set for parameters before outputing debugging information.
10514
10515 2004-02-20 Falk Hueffner <falk@debian.org>
10516
10517 PR target/14201
10518 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
10519 numbers.
10520
10521 2004-02-20 Per Bothner <per@bothner.com>
10522
10523 * input.h: Don't #include line-map.h. It may cause link problems
10524 with undefined linemap_line_start when line-map.h is included but
10525 line-map.o is not linked, as currently happens with gengtype on
10526 compilers that don't support inline.
10527 * toplev.c: So we do have to explicitly #include line-map.h here.
10528
10529 2004-02-20 Richard Henderson <rth@redhat.com>
10530
10531 * doc/invoke.texi: Add -Wvariadic-macros.
10532
10533 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
10534
10535 * haifa-sched.c (sched_emit_insn): Remove.
10536 * sched-int.h: Remove the corresponding prototype.
10537
10538 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
10539
10540 Revert:
10541 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
10542 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
10543 * system.h (DEFAULT_SHORT_ENUMS): Poison.
10544 * config/cris/cris.h: Remove a comment about
10545 DEFAULT_SHORT_ENUMS.
10546 * config/ip2k/ip2k.h: Likewise.
10547 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
10548
10549 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
10550 Tom Tromey <tromey@redhat.com>
10551
10552 * doc/install.texi: Moved --disable-libgcj and
10553 --with-system-zlib documentation to new section for
10554 Java-specific options.
10555 Added explicit Cross-Compiler-Specific Options subheading.
10556 Added section for Java-specific options.
10557
10558 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
10559
10560 * doc/install.texi (Building the Ada compiler): Remove
10561 example.
10562
10563 2004-02-20 James E Wilson <wilson@specifixinc.com>
10564
10565 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
10566
10567 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
10568
10569 * gcc.c (process_command): Allow translation of the copyright
10570 symbol but not the rest of the copyright message.
10571 * gcov.c (print_version): Likewise. Allow translation of the
10572 message about warranty.
10573
10574 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
10575
10576 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
10577 predicate.
10578 ("*andsi_clear"): Tweak constraints to not match postincrement.
10579 Adjust the predicate to exclude a volatile memory reference.
10580 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
10581 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
10582
10583 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
10584
10585 * move-if-change: Remove.
10586 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
10587 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
10588 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
10589 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
10590 (s-gtyp-gen, s-iov): Use the top level move-if-change.
10591 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
10592
10593 2004-02-19 James E Wilson <wilson@specifixinc.com>
10594
10595 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
10596 for operand2. Add condition that requires register_operand operand2
10597 before reload.
10598
10599 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
10600 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10601
10602 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
10603 * config/mips/mips.md: Expand comment above unaligned loads and stores.
10604
10605 2004-02-19 Richard Henderson <rth@redhat.com>
10606
10607 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
10608 * tree.c (build0, build1, build2, build3, build4): Split out from...
10609 (build): ... here. Call them.
10610 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
10611
10612 * convert.c (convert_to_integer): Remove extra build argument.
10613 * tree-inline.c (expand_call_inline): Likewise.
10614
10615 2004-02-19 Richard Henderson <rth@redhat.com>
10616
10617 * c-opts.c (warn_variadic_macros): New.
10618 (c_common_handle_option): Set it.
10619 (sanitize_cpp_opts): Copy it to cpp_opts.
10620 * c.opt (Wvariadic-macros): New.
10621 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
10622 * cppinit.c (cpp_create_reader): Initialize it.
10623 * cppmacro.c (parse_params): Check it.
10624
10625 2004-02-19 David Daney <ddaney@avtrex.com>
10626
10627 PR preprocessor/14198
10628 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
10629 builtin_assert ("machine=mips")
10630
10631 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
10632
10633 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
10634 * system.h (DEFAULT_SHORT_ENUMS): Poison.
10635 * config/cris/cris.h: Remove a comment about
10636 DEFAULT_SHORT_ENUMS.
10637 * config/ip2k/ip2k.h: Likewise.
10638 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
10639
10640 2004-02-19 Zack Weinberg <zack@codesourcery.com>
10641
10642 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
10643 when passing single SFmode quantities in general registers,
10644 put them in the high half.
10645
10646 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
10647
10648 * doc/md.texi (Standard Names): Document additional dependency on
10649 fix pattern.
10650
10651 * optabs.c (ftruncify): Remove.
10652 (expand_fix): Manually inline ftruncify above.
10653 (can_fix_p): Add FIXME note.
10654
10655 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
10656
10657 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
10658 spe_fixuns_truncsfsi2.
10659
10660 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
10661 fixuns_truncsfsi2.
10662
10663 2004-02-19 Steve Ellcey <sje@cup.hp.com>
10664
10665 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
10666 * testsuite/gcc.dg/20040219-1.c: New test.
10667
10668 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
10669
10670 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
10671 "*subsf3_cconly"): Subtraction is not commutative.
10672
10673 2004-02-19 Zack Weinberg <zack@codesourcery.com>
10674
10675 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
10676 (sdbout_symbol): If called before sdbout_init, queue DECL for
10677 later and return.
10678 (sdbout_init): Set sdbout_initialized true, process decls
10679 queued earlier by sdbout_symbol.
10680 (sdbout_finish): Use size_t for index variable.
10681
10682 2004-02-19 Jeff Law <law@redhat.com>
10683
10684 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
10685 for unordered comparison codes.
10686
10687 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
10688
10689 * reload1.c (reload): Correct comment.
10690 (scan_paradoxical_subregs): Remove #if 0 and old comment.
10691 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
10692 register variables are not used by reload.
10693
10694 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
10695
10696 PR target/14209
10697 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
10698 constraints to not match postincrement. Adjust the predicate to
10699 exclude a volatile memory reference.
10700
10701 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
10702
10703 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
10704
10705 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
10706
10707 * hooks.c (hook_void_tree_int): Remove.
10708 (hook_void_constcharptr): Likewise.
10709 (hook_int_void_0): Likewise.
10710 * hooks.h: Remove the prototypes for the above three
10711 functions.
10712 * targhooks.c (hook_bool_machine_mode_true): Remove.
10713 * targhooks.h: Remove the prototype for
10714 hook_bool_machine_mode_true.
10715
10716 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
10717
10718 * emit-rtl.c (subreg_realpart_p): Remove.
10719 (reorder_insns_with_line_notes): Likewise.
10720 (end_full_sequence): Likewise.
10721 * rtl.h: Remove the prototype for the above functions.
10722
10723 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
10724
10725 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
10726 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
10727 config/iq2000/iq2000.h, config/m32r/m32r.h,
10728 config/pdp11/pdp11.h, config/sparc/sparc.h,
10729 config/xtensa/xtensa.h: Remove commented-out or useless
10730 definitions of CASE_VECTOR_PC_RELATIVE.
10731
10732 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
10733
10734 * loop.c (all_sets_invariant_p): Remove.
10735
10736 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
10737
10738 PR target/12916
10739 * config/sparc/sparc.h (NPARM_REGS): Delete.
10740 (BASE_RETURN_VALUE_REG): Likewise.
10741 (BASE_OUTGOING_VALUE_REG): Likewise.
10742 (BASE_PASSING_ARG_REG): Likewise.
10743 (BASE_INCOMING_ARG_REG): Likewise.
10744 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
10745 TARGET_ARCH64, not TARGET_V9.
10746 (function_arg_slotno): Dispatch based on the mode class.
10747 Handle vector modes like floating-point modes.
10748 (function_arg_record_value_1): Handle vector types like
10749 floating-point types.
10750 (function_arg_record_value_2): Likewise.
10751 Calculate regno after mode transformation.
10752 (function_arg): Handle vector modes like floating-point modes.
10753 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
10754 If ARCH64, do not recheck alignment.
10755 (function_arg_pass_by_reference): Reorder the conditions.
10756 (sparc_return_in_memory): Move after function_arg_padding.
10757 Implement calling conventions for vector modes.
10758 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
10759 (function_value): Move scope of 'regbase'.
10760 Implement calling conventions for vector modes.
10761 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
10762 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
10763 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
10764 the argument is passed by reference.
10765 (sparc_type_code): Handle vector types.
10766
10767 2004-02-19 Alan Modra <amodra@bigpond.net.au>
10768
10769 * function.c (assign_parms): When building decl_rtl for
10770 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
10771
10772 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
10773
10774 * expr.c (is_aligning_offset): Check if we are aligning the
10775 expressions's address over BIGGEST_ALIGNMENT in bytes, not
10776 in bits.
10777
10778 2003-02-18 Matt Austern <austern@apple.com>
10779
10780 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
10781 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
10782 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
10783 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
10784 spec string.
10785 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
10786
10787 2004-02-18 Zack Weinberg <zack@codesourcery.com>
10788
10789 * dwarf2out.c (loclabel_num): Move outside #ifdef
10790 DWARF2_DEBUGGING_INFO and mark with GTY(()).
10791 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
10792 Mark with GTY(()).
10793 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
10794 Allocate memory with ggc_alloc. No need to copy anything.
10795 (ia64_hpux_file_end): Update to match.
10796
10797 2004-02-18 Jakub Jelinek <jakub@redhat.com>
10798
10799 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
10800 by default.
10801
10802 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
10803
10804 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
10805 ("divmodtisi3"): Likewise.
10806 ("udivmoddi4", "udivmodtidi3"): Likewise.
10807 ("divmodsi4", "divmoddisi3"): Likewise.
10808 ("udivmodsi4", "udivmoddisi3"): Likewise.
10809 ("udivsi3", "umodsi3"): Likewise.
10810
10811 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
10812
10813 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
10814 placeholder insn when chunkifying the pool.
10815
10816 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10817
10818 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
10819 generating PIC code.
10820
10821 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
10822
10823 * config/h8300/h8300-protos.h: Add a prototype for
10824 h8300_expand_branch.
10825 * config/h8300/h8300.c (h8300_expand_branch): New.
10826 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
10827 bgtu, beq, bne): Call h8300_expand_branch().
10828
10829 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
10830
10831 * config/h8300/h8300-protos.h: Add prototypes for
10832 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
10833 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
10834 (h8300_hard_regno_mode_ok): Likewise.
10835 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
10836 h8300_hard_regno_nregs().
10837 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
10838
10839 2004-02-18 Per Bothner <per@bothner.com>
10840
10841 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
10842 partly reverts my 2003-10-01 change, because we're back to logically
10843 including <command line> inside the main line.
10844 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
10845 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
10846 Fixes PR preprocessor/14103.
10847
10848 * cppfiles.c (_cpp_stack_include): When appropriate decrement
10849 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
10850 (cpp_push_include): Don't need to increment pfile's line field.
10851 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
10852
10853 * c-ppoutput.c (print struct): New first_time field.
10854 (init_pp_output): Set print.first_time.
10855 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
10856 which is set also for (say) <command line>. Clear print.first_time.
10857
10858 * cppfiles.c (struct _cpp_file): Comment and type for pch field
10859 does not match the code, so fix both.
10860 (should_stack_file): Inline include_pch_p function.
10861 (include_pch_p): Remove pointless function.
10862
10863 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
10864
10865 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
10866
10867 * config/h8300/h8300.md (four define_peephole2's): Use
10868 h8300_regs_ok_for_stm().
10869
10870 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
10871
10872 * config/h8300/h8300-protos.h: Update the prototype for
10873 expand_a_rotate().
10874 * config/h8300/h8300.c (expand_a_rotate): Remove the first
10875 argument.
10876 * config/h8300/h8300.md: Update all callers.
10877
10878 2004-02-18 Jan Hubicka <jh@suse.cz>
10879
10880 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
10881 floats.
10882 (simplify_binary_operation): Deal with logicals on floats.
10883
10884 * i386.md (SSE fabs splitters): Emit new patterns.
10885 (SSE cmov splitters): Likewise.
10886 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
10887 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
10888 subregs.
10889 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
10890 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
10891
10892 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
10893
10894 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
10895 by hand.
10896 (output_a_rotate): Tweak a comment.
10897 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
10898 (*rotlhi3_1): Change to rotlhi3_1.
10899 (*rotlsi3_1): Change to rotlsi3_1.
10900
10901 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
10902
10903 PR target/13866
10904 * arm.c (load_multiple_operation): Don't insist that the source reg
10905 of a post-increment component is the same as the destination.
10906 (store_multiple_operation): Likewise.
10907
10908 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
10909
10910 * config/h8300/h8300.md: Move movsf patterns into one section
10911 of the file.
10912
10913 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
10914
10915 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
10916 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
10917 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
10918 config/mips/linux64.h, config/pa/pa-64.h,
10919 config/rs6000/aix51.h, config/rs6000/aix52.h,
10920 config/rs6000/spe.md, config/sparc/linux.h,
10921 config/sparc/linux64.h: Update copyright.
10922
10923 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
10924
10925 * config/h8300/h8300.md: Move push patterns into one
10926 section of the file.
10927
10928 2004-02-18 Mark Mitchell <mark@codesourcery.com>
10929
10930 PR c++/11326
10931 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
10932 fntype.
10933
10934 2004-02-18 Paul Brook <paul@codesourcery.com>
10935
10936 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
10937
10938 2004-02-18 Paul Brook <paul@codesourcery.com>
10939
10940 PR debug/12934
10941 * dwarf2out.c (loc_descriptor_from_tree): Handle
10942 EXPR_WITH_FILE_LOCATION.
10943
10944 2004-02-18 Jakub Jelinek <jakub@redhat.com>
10945
10946 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
10947 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
10948 trailing whitespace from instructions.
10949
10950 2004-02-17 Geoffrey Keating <geoffk@apple.com>
10951
10952 * configure.ac: When generating auto-build.h, pass
10953 --enable-languages to the sub-configure.
10954 Put quotes around ${program_transform_name} when generating
10955 name of as, ld, nm, objdump.
10956 * configure: Regenerate.
10957
10958 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
10959
10960 * Makefile.in (s-check, s-config, s-conditions, s-flags)
10961 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
10962 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
10963 (s-preds, s-iov): Do not depend on move-if-change.
10964
10965 2004-02-17 James E Wilson <wilson@specifixinc.com>
10966
10967 * caller-save.c (insert_restore): Pass mem through copy_rtx.
10968 (insert_save): Likewise.
10969
10970 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
10971
10972 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
10973 warning.
10974
10975 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
10976
10977 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
10978 *one_cmplsi2_h8300.
10979 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
10980
10981 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
10982
10983 * config/h8300/h8300-protos.h: Update the prototype of
10984 fix_bit_operand().
10985 * config/h8300/h8300.c (fix_bit_operand): Remove the second
10986 argument "what".
10987 * config/h8300/h8300.md: Update all callers.
10988
10989 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
10990
10991 * config/h8300/h8300.c (fix_bit_operand): Change the name of
10992 the last argument to "code" from "type".
10993
10994 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
10995
10996 * config/h8300/h8300.c: Remove an extern declaration of
10997 rtx_equal_function_value_matters.
10998
10999 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11000
11001 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
11002 by hand.
11003 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
11004 (*iorqi3_1): Change to iorqi3_1.
11005 (*xorqi3_1): Change to xorqi3_1.
11006
11007 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11008
11009 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
11010 typos.
11011
11012 2004-02-17 Jan Hubicka <jh@suse.cz>
11013
11014 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
11015
11016 2004-02-18 Alan Modra <amodra@bigpond.net.au>
11017
11018 PR optimization/14119
11019 * combine.c (try_combine): When attemting to fix unrecognized insns,
11020 don't delete SETs marked with REG_EH_REGION notes.
11021
11022 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
11023
11024 * combine.c (simplify_if_then_else): Do not replace
11025 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
11026 modes differ.
11027
11028 2004-02017 Steven Bosscher <stevenb@suse.de>
11029
11030 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
11031 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
11032 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
11033 * ada/utils.c: Likewise.
11034 * cp/decl.c: Likewise.
11035 * f/com.c: Likewise.
11036 * java/class.c: Likewise.
11037
11038 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11039
11040 * config/h8300/h8300.md: Fix comment typos.
11041
11042 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11043
11044 * config/mips/t-iris6gld: Renamed to ...
11045 * config/mips/t-irix-gld: ... this.
11046 * config.gcc (mips-sgi-irix6*): Reflect this
11047 (mips-sgi-irix5*): Use it with GNU ld.
11048
11049 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
11050 to ...
11051 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
11052 * config/mips/t-irix-gld: Reflect this.
11053 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
11054
11055 * config/mips/iris5gld.h: New file.
11056 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
11057 Only use collect2 without gas.
11058
11059 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
11060 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
11061 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
11062 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
11063
11064 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
11065 * config/mips/iris5.h: ... here.
11066
11067 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
11068 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
11069 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
11070
11071 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
11072 using irix_startfile_spec, irix_endfile_spec.
11073
11074 2004-02-16 Gunther Nikl <gni@gecko.de>
11075
11076 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
11077
11078 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11079
11080 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
11081 insns by hand.
11082
11083 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11084
11085 * cfghooks.c (split_edge): Speed up updating of dominators.
11086
11087 2004-02-17 Mark Mitchell <mark@codesourcery.com>
11088
11089 PR c++/11326
11090 * c-common.c (flag_abi_version): Remove.
11091 * c-common.h (flag_abi_version): Likewise.
11092 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
11093 * c.opt (fabi-version): Remove.
11094 * calls.c (expand_call): Always pass a function type to
11095 struct_value_rtx. Use convert_memory_address.
11096 * common.opt (fabi-version): Add it.
11097 * flags.h (flag_abi_version): Likewise.
11098 (abi_version_at_least): New macro.
11099 * opts.c (common_handle_option): Add OPT_fabi_version.
11100 * toplev.c (flag_abi_version): Define it.
11101 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
11102 New function.
11103 (ia64_output_mi_thunk): Use it.
11104 (ia64_struct_value_rtx): Likewise.
11105
11106 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11107
11108 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
11109 Don't generate insns by hand.
11110
11111 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
11112
11113 PR c++/14178
11114 * doc/invoke.texi (fabi-version): The default is 2 now.
11115
11116 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11117
11118 * loop-iv.c: New file.
11119 * Makefile.in (loop-iv.o): New.
11120 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
11121 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
11122 num_loop_branches): New functions.
11123 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
11124 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
11125 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
11126 get_simple_loop_desc, free_simple_loop_desc): Declare.
11127 (simple_loop_desc): New inline function.
11128 (struct rtx_iv, struct niter_desc): New.
11129 * cfgloopmanip.c (loopify): Specify semantics more precisely.
11130 * expr.c (force_operand): Handle subregs of expressions created by
11131 loop unroller.
11132 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
11133 parts of the initialization to toplev.c
11134 * loop-unroll.c (loop_exit_at_end_p): New.
11135 (unroll_and_peel_loops): Call iv_analysis_done.
11136 (decide_peel_once_rolling, decide_peel_completely,
11137 decide_unroll_stupid, decide_unroll_constant_iterations,
11138 decide_unroll_runtime_iterations, decide_peel_simple,
11139 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
11140 unroll_loop_runtime_iterations): Use new simple loop analysis.
11141 * loop-unswitch.c (compare_and_jump_seq): New.
11142 (may_unswitch_on_p): Renamed to ...
11143 (may_unswitch_on): Use new iv analysis.
11144 (reversed_condition): Export.
11145 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
11146 * predict.c (estimate_probability): Use new simple loop analysis.
11147 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
11148 canon_condition, simplify_using_condition): Declare.
11149 * stor-layout.c (get_mode_bounds): New.
11150 * toplev.c (rest_of_handle_loop2): Some parts of
11151 initialization/finalization moved here from loop-init.c.
11152
11153 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11154
11155 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
11156 pointer.
11157 (CALL_USED_REGISTERS): Likewise.
11158 (REG_ALLOC_ORDER): Likewise.
11159 (REG_CLASS) <GENERAL_REGS>: Likewise.
11160
11161 2004-02-16 Geoffrey Keating <geoffk@apple.com>
11162
11163 * doc/md.texi (Insn Canonicalizations): Document left-chaining
11164 in associative operators.
11165 * rtlanal.c (commutative_operand_precedence): Create some new
11166 variables. Prefer a commutative operand on the left, then
11167 binary expressions, then NEG and NOT.
11168
11169 2004-02-16 Matthias Klose <doko@debian.org>
11170
11171 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
11172 in terms of SHLIB_SOVERSION.
11173 * config/m68k/t-slibgcc-elf-ver: New file.
11174 * config/pa/t-slibgcc-elf-ver: New file.
11175 * config.gcc (m68k-linux, parisc-linux): Use them when not
11176 sjlj exceptions are not configured.
11177
11178 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
11179
11180 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
11181
11182 2004-02-16 Zack Weinberg <zack@codesourcery.com>
11183
11184 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
11185
11186 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
11187
11188 * doc/sourcebuild.texi: Mention backends.html.
11189
11190 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
11191
11192 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
11193 line-map.c, line-map.h, var-tracking.c: Fix comment
11194 formatting.
11195
11196 2004-02-16 Richard Henderson <rth@redhat.com>
11197
11198 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
11199
11200 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
11201
11202 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
11203
11204 * config/h8300/h8300.md: Remove unnecessary parallels from
11205 all define_insn and define_split patterns.
11206
11207 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
11208
11209 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
11210 "clobber").
11211
11212 2004-02-15 Bernardo Innocenti <bernie@develer.com>
11213
11214 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
11215 '%#'.
11216
11217 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
11218
11219 * config/ia64/ia64.c, config/mips/mips.c,
11220 config/mmix/mmix-modes.def: Fix comment typos.
11221
11222 2004-02-15 Roger Sayle <roger@eyesopen.com>
11223
11224 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
11225 (get_directive_line): Remove unused function prototype.
11226
11227 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
11228
11229 * tree-inline.c (copy_body_r): Do not replace ret_label.
11230
11231 2004-02-14 Jan Hubicka <jh@suse.cz>
11232
11233 * i386.c (x86_four_jump_limit): New variable.
11234 (k8_avoid_jump_misspredicts): Rename to ...
11235 (ix86_avoid_jump_misspredicts): .. this one.
11236 (ix86_pad_returns): Break out from ...
11237 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
11238 to.
11239 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
11240
11241 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
11242
11243 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
11244 PARALLEL is NULL.
11245
11246 2004-02-14 Per Bothner <per@bothner.com>
11247
11248 * fix-header.c (line_table): Move local variable in main to global.
11249 * scan.h (line_table): Use it.
11250 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
11251 line (recently renamed to src_loc) before calling recognized_function.
11252
11253 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
11254
11255 * Makefile.in: Fix comment typos.
11256
11257 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
11258
11259 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
11260 for start_value when it is directly moved into reg, and factorize
11261 the retrieval of GET_MODE (reg).
11262
11263 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
11264
11265 * config/mips/mips-protos.h (mips_load_got_page): Delete.
11266 (mips_load_got_global): Delete.
11267 (mips_gotoff_page): Declare.
11268 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
11269 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
11270 UNSPEC_LOAD_GOT pattern rather than a MEM.
11271 (*load_got[sd]i): New patterns.
11272 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
11273 (mips_load_got_page, mips_load_got_global): Delete.
11274 (mips_gotoff_page): New function.
11275 (override_options): Don't initialize mips_got_alias_set.
11276
11277 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
11278
11279 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
11280 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
11281 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
11282 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
11283 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
11284 * config/mips/mips.c: Fix some overly-long lines.
11285 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
11286 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
11287
11288 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11289
11290 * configure.ac: Search for as, ld below libexec/gcc.
11291 * configure: Regenerate.
11292
11293 2004-02-14 Ben Elliston <bje@wasabisystems.com>
11294
11295 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
11296 __builtin_arm_setwcx ().
11297 * config/arm/arm.c (arm_expand_builtin): Generate operands
11298 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
11299
11300 2004-02-14 Ben Elliston <bje@wasabisystems.com>
11301
11302 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
11303 and "wmuluh" to "wmulsm" and "wmulum", respectively.
11304 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
11305 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
11306 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
11307 (_mm_mulhi_pu16): Likewise.
11308
11309 2004-02-13 Zack Weinberg <zack@codesourcery.com>
11310
11311 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
11312 DECL_NAME != 0 before dereferencing.
11313
11314 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
11315
11316 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
11317 (s390_output_addr_const_extra): Declare.
11318 (s390_output_pool_entry): Remove FILE * argument.
11319 * config/s390/s390.c (s390_output_symbolic_const): Remove.
11320 (s390_output_addr_const_extra): New function.
11321 (print_operand_address): Call output_addr_const instead of
11322 s390_output_symbolic_const.
11323 (print_operand): Likewise.
11324 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
11325 Remove FILE * argument.
11326 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
11327 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
11328 call.
11329
11330 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11331
11332 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
11333 (struct edge, struct vertex, struct graph): New.
11334 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
11335 free_graph): New functions.
11336
11337 2004-02-12 Chris Demetriou <cgd@broadcom.com>
11338
11339 * config/mips/mips.md (casesi_internal, casesi_internal_di):
11340 Use ".set macro" to avoid warnings about multi-instruction
11341 macros, since they're intentional.
11342
11343 2004-02-12 Geoffrey Keating <geoffk@apple.com>
11344
11345 * config/darwin.h: Add include guards. Remove old, now incorrect,
11346 comment about STANDARD_EXEC_PREFIX.
11347
11348 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
11349 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
11350 for installing .1 manpages. Add rules for installing cpp
11351 and gcov manpages under their installed names.
11352
11353 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
11354
11355 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
11356 host, but try LD_FOR_TARGET first.
11357 * configure: Rebuilt.
11358
11359 2004-02-12 Zack Weinberg <zack@codesourcery.com>
11360
11361 * dbxout.c: Move declaration of dbxout_type_decl outside
11362 #ifdef DBX_DEBUGGING_INFO.
11363 * c-parse.in: Don't give the asmdef production a type.
11364
11365 2004-02-12 Zack Weinberg <zack@codesourcery.com>
11366
11367 * debug.h (struct gcc_debug_hooks): Add type_decl field.
11368 (debug_nothing_tree_int): Prototype.
11369 (dwarf_debug_hooks): Delete, unused.
11370 * debug.c (do_nothing_debug_hooks): Update.
11371 (debug_nothing_tree_int): New function.
11372 * langhooks.h (struct lang_hooks_for_decls):
11373 Remove builtin_type_decls field.
11374 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
11375 (LANG_HOOKS_DECLS): Update.
11376 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
11377 Use debug_hooks->type_decl.
11378 * dbxout.c (preinit_symbols): New static.
11379 (dbx_debug_hooks, xcoff_debug_hooks): Update.
11380 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
11381 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
11382 for symbols to output.
11383 (dbxout_type_decl): New function.
11384 (dbxout_symbol): If called before dbxout_init has run, queue
11385 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
11386 to TYPE_DECLs before emitting them.
11387 * xcoffout.c (assign_type_number): Delete.
11388 (xcoff_type_numbers): New static table.
11389 (xcoff_assign_fundamental_type_number): New function.
11390 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
11391 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
11392 * sdbout.c: Include varray.h.
11393 (deferred_global_decls): New static.
11394 (sdb_debug_hooks): Update.
11395 (sdbout_global_decl): If we can't emit something right now,
11396 remember it in deferred_global_decls.
11397 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
11398 (sdbout_init): Initialize deferred_global_decls.
11399 * Makefile.in: Update dependencies of sdbout.o.
11400 * dwarf2out.c (dwarf2out_type_decl): New function.
11401 (dwarf2_debug_hooks): Update.
11402 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
11403 * c-decl.c (getdecls): Just return 0.
11404 (check_for_loop_decls): Don't use getdecls.
11405 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
11406 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
11407
11408 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
11409
11410 * config/s390/s390.c (s390_sched_reorder2): Remove.
11411 (TARGET_SCHED_REORDER2): Do not redefine.
11412
11413 2004-02-12 Zack Weinberg <zack@codesourcery.com>
11414
11415 * c-parse.in (maybe_type_qual): Delete.
11416 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
11417 (asm_argument): New grammar rules.
11418 (extdef_1): Use asmdef.
11419 (maybeasm): Move down with other asm rules; use simple_asm_expr.
11420 (xexpr): Move up with other expression rules.
11421 (stmt): Use asm_stmt.
11422
11423 * c-typeck.c (build_asm_expr): New function - body mostly
11424 pulled from build_asm_stmt.
11425 (build_asm_stmt): Just handle tacking on the volatile qualifier.
11426 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
11427
11428 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
11429
11430 PR bootstrap/13617
11431 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
11432 (mips_declare_object): Make variadic.
11433 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
11434 mips_output_aligned_decl_common.
11435 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
11436 (mips_declare_object): Make variadic.
11437
11438 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11439
11440 * function.c (update_epilogue_consts): Teach about binary operations.
11441
11442 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
11443 previous MEM_VOLATILE in REF.
11444 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
11445 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
11446
11447 2004-02-12 Gunther Nikl <gni@gecko.de>
11448
11449 * config.gcc: Restore support for m68k-openbsd.
11450
11451 2004-02-12 Jan Hubicka <jh@suse.cz>
11452
11453 * tree-optimize.c (tree_rest_of_compilation): Do not release
11454 DECL_ARGUMENTS.
11455
11456 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
11457
11458 * doc/install.texi: Fix the spelling of "explicitly".
11459
11460 2004-02-11 Eric Christopher <echristo@redhat.com>
11461
11462 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
11463 duplicate argument structure of cpp_interpret_string.
11464 * cpphash.h: Move prototype...
11465 * cpplib.h: Here.
11466 * cpplib.c: Fix calls to match new function signature.
11467
11468 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
11469
11470 PR c/456
11471 * cppexp.c (num_binary_op): Don't allow comma operators in #if
11472 constant expressions at all outside C99 mode if pedantic.
11473
11474 2004-02-11 Uros Bizjak <uros@kss-loka.si>
11475
11476 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
11477 (log10_optab, log2_optab): Define corresponding macros.
11478 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
11479 * genopinit.c (optabs): Implement log10_optab and log2_optab
11480 using log10?f2 and log2?f2 patterns.
11481 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
11482 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
11483 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
11484 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
11485
11486 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
11487 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
11488 log2, log2f and log2l built-ins as inline x87 intrinsics.
11489
11490 2004-02-11 Richard Henderson <rth@redhat.com>
11491
11492 PR target/1532
11493 * flow.c (insn_dead_p): A clobber of a dead hard register is a
11494 dead insn after reload.
11495
11496 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
11497
11498 * tree.h (frame_base_decl): Add GTY marker.
11499 * var-tracking.c (frame_base_decl): Likewise.
11500
11501 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
11502
11503 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
11504 incorrect, hunk.
11505 (add_location_or_const_value_attribute): Use text_section_label,
11506 not TEXT_SECTION_NAME.
11507
11508 2004-02-11 Per Bothner <per@bothner.com>
11509
11510 Represent column numbers using line-map's source_location.
11511 The "next available source_location" is now managed internally by
11512 line-maps.c rather than by clients.
11513 * line-map.h (struct line_map): New field column_bits.
11514 <from_line>: Rename field to start_location.
11515 (struct line_maps): New fields highest_location and max_column_hint.
11516 (linemap_check_files_exited): New declaration.
11517 (linemap_line_start): New declaration.
11518 (linemap_add): Remove from_line parameter; use highest_location field.
11519 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
11520 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
11521 (CURRENT_LINE_MAP): Remove macro.
11522 (linemap_position_for_column): New inline function.
11523 * line-map.c (linemap_init): Clear new fields.
11524 (linemap_check_files_exited): New function, extracted from ...
11525 (linemap_free): Use linemap_check_files_exited.
11526 (linemap_add): Remove from_line parameter. Various updates.
11527 (linemap_line_start): New function.
11528 (linemap_lookeup): Update for new field names.
11529 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
11530 linemap_position_for_column may unpredictably change the current map,
11531 it is cleaner and simpler for us to not cache it in cpp_reader.
11532 (struct cpp_buffer): New sysp field.
11533 Changed warned_cplusplus_comments and from_stage3 to bitfields.
11534 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
11535 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
11536 current map using linemap_lookup.
11537 (do_linemarker): Also set buffer's sysp field.
11538 (destringize_and_run): No longer need to decrement current line.
11539 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
11540 (search_path_head, open_file_failed): Use buffer's sysp.
11541 (cpp_make_system_header): Get current map using linemap_lookup.
11542 Also set buffer's sysp flag.
11543 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
11544 * cpphash.h (CPP_INCREMENT_LINE): New macro.
11545 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
11546 (struct cpp_reader): ... and adding saved_line_base field.
11547 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
11548 Update accordingly. Don't adjust line.
11549 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
11550 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
11551 (cpp_in_system_header): ... new inline function, using buffer's sysp.
11552 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
11553 * cpplex.c (_cpp_lex_direct): Likewise.
11554 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
11555 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
11556 * cpplib.h (struct cpp_token): Rename line field to src_loc.
11557 Remove col field as it is now subsumed by src_loc.
11558 * cpperror.c: Update various field, parameter, and macro names.
11559 (print_location): If col==0, try SOURCE_COLUMN of line.
11560 (cpp_error): Use cur_token's src_loc field, rather than line+col.
11561 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
11562 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
11563 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
11564 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
11565 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
11566 (_cpp_lex_direct): Use linemap_position_for_column.
11567 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
11568 parameter. Instead get it from the line_table global. Adjust callers.
11569 (print): Remove map field. Replace line field to src_line.
11570 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
11571 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
11572 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
11573 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
11574 * cpptrad.c (copy_comment): Rename variable.
11575 * c-lex.c (map): Remove static variable, for same reason we removed
11576 cpp_reader's map field.
11577 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
11578 to call linemap_lookup.
11579 (cb_line_change): Token's line field replaced by src_loc.
11580 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
11581 Don't save new_map.
11582
11583 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
11584 source_location.
11585
11586 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
11587
11588 * config/rs6000/altivec.md (*movv4si_internal): At least one
11589 operand must be register_operand.
11590 (*movv8hi_internal1): Likewise.
11591 (*movv16qi_internal1): Likewise.
11592 (*movv4sf_internal1): Likewise.
11593
11594 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
11595
11596 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
11597 operand.
11598 (movv4hi_internal): Same.
11599 (movv2sf_internal): Same.
11600 (movv1di_internal): Same.
11601
11602 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
11603
11604 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
11605 TARGET_OLDABI consistently.
11606 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
11607 mips_va_arg,override_options,compute_frame_size,
11608 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
11609 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
11610 and TARGET_OLDABI consistently.
11611 * config/mips/mips.md (exception_receiver): Likewise.
11612 * config/mips/linux64.h: Likewise.
11613
11614 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
11615
11616 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
11617 Set AltiVec ABI and vrsave as default for ppc64 linux.
11618 (init_cumulative_args): Post error, if try to return
11619 value in AltiVec register without enable AltiVec.
11620 (function_arg_advance): Ditto for passing arguments.
11621
11622 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
11623
11624 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
11625 a label before updating its usage count.
11626
11627 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
11628
11629 * doc/install.texi: Remove extra cd.
11630
11631 2004-02-10 Ziemowit Laski <zlaski@apple.com>
11632
11633 * c-common.c (vector_size_helper): Remove; call
11634 reconstruct_complex_type() instead.
11635 * tree.c (reconstruct_complex_type): New function
11636 (formerly vector_size_helper() in c-common.c).
11637 (make_vector): Make externally visible.
11638 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
11639
11640 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
11641
11642 * config/h8300/h8300-protos.h: Add a prototype for
11643 h8300_regs_ok_for_stm.
11644 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
11645 * config/h8300/h8300.md (stm_h8300s_2_advanced,
11646 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
11647 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
11648 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
11649 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
11650 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
11651 ldm_h8300s_4_normal, ldm_h8300s_4): Use
11652 h8300_regs_ok_for_stm().
11653
11654 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
11655
11656 PR c/14088
11657 * real.c (real_from_string): Look for 'X' as well as 'x' in
11658 hexfloat strings.
11659
11660 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
11661
11662 * config/h8300/h8300.md: Remove an incorrect comment about
11663 peephole2. Add comments.
11664
11665 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
11666
11667 PR/14058
11668 * emit-rtl.c (set_decl_incoming_rtl): New.
11669 * tree.h (set_decl_incoming_rtl): New.
11670 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
11671 DECL_INCOMING_RTL.
11672 * ada/misc.c (adjust_decl_rtl): Likewise.
11673
11674 2004-02-10 Per Bothner <per@bothner.com>
11675
11676 * c-opts.c (c_common_post_options): Don't emit working directory
11677 in cpp output if -P was specified.
11678
11679 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
11680
11681 PR c/14092
11682 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
11683 negate_expr back to the original type.
11684
11685 2004-02-10 Alan Modra <amodra@bigpond.net.au>
11686
11687 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
11688 bump retaddr here.
11689
11690 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
11691
11692 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
11693 gen_lowpart_SUBREG): Move under the file in which they
11694 are actually declared.
11695
11696 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
11697
11698 * doc/sourcebuild.texi: Add libada documentation.
11699
11700 * doc/install.texi: Update documentation on Ada build, now
11701 that the GNAT lib and tools are built automatically.
11702
11703 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
11704
11705 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
11706 && TARGET_IRIX.
11707
11708 2004-02-09 Ziemowit Laski <zlaski@apple.com>
11709
11710 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
11711 boundaries outside build_component_ref() call (a macro in ObjC++).
11712
11713 2004-02-09 Bob Wilson <bob.wilson@acm.org>
11714
11715 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
11716 (init_cumulative_args): Likewise.
11717 (a7_overlap_mentioned_p): Delete prototype.
11718 * config/xtensa/xtensa.c (struct machine_function): Replace
11719 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
11720 Add set_frame_ptr_insn field.
11721 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
11722 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
11723 if the operand is an argument in a7. If so, copy a7 to a new pseudo
11724 at the function entry and replace the operand with the pseudo.
11725 (init_cumulative_args): Remove unused arguments. Add new "incoming"
11726 argument and record this flag in CUMULATIVE_ARGS.
11727 (function_arg): Remove result_mode and special-case code to handle
11728 arguments in a7. Instead, set need_a7_copy flag when there is an
11729 incoming argument in a7.
11730 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
11731 and use the value recorded in cfun->machine->set_frame_ptr_insn.
11732 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
11733 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
11734 special-case code.
11735 (a7_overlap_mentioned_p): Delete.
11736 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
11737 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
11738 arguments to init_cumulative_args and pass "incoming" flag instead.
11739 (BLOCK_REG_PADDING): Delete.
11740 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
11741 checks for reload_in_progress and reload_completed. Update calls to
11742 xtensa_copy_incoming_a7.
11743 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
11744 to call xtensa_copy_incoming_a7.
11745
11746 2004-02-09 DJ Delorie <dj@redhat.com>
11747
11748 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
11749 longer modify standard_exec_prefix, standard_bindir_prefix, or
11750 standard_startfile_prefix.
11751
11752 2004-02-09 James E Wilson <wilson@specifixinc.com>
11753
11754 PR c++/11295
11755 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
11756 to expand_expr_real call, and pass in alt_rtl as last argument.
11757
11758 PR libstdc++/5625
11759 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
11760 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
11761 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
11762 * except.c (expand_builtin_extend_pointer): New.
11763 * except.h (expand_builtin_extend_pointer): Declare.
11764
11765 2004-02-09 David Edelsohn <edelsohn@gnu.org>
11766
11767 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
11768 unaligned loads and stores.
11769
11770 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11771
11772 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
11773 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
11774
11775 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
11776 * config/mips/iris5.h: ... here.
11777 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
11778
11779 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
11780 * config/mips/iris5.h: ... here.
11781
11782 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11783
11784 * configure.ac: Remove default executable files before AC_PROG_CC.
11785 * configure: Regenerate.
11786
11787 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
11788
11789 PR target/13721
11790 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
11791 print a operand other than a register.
11792
11793 2004-02-09 Roger Sayle <roger@eyesopen.com>
11794
11795 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
11796 tree code rather than call fold_convert, which doesn't specify a
11797 default floating point to integer conversion.
11798
11799 2004-02-08 Bernardo Innocenti <bernie@develer.com>
11800
11801 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
11802 code to support SGS assembler. Reformat adjacent code where possible.
11803 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
11804 definition.
11805 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
11806 for '%#'.
11807 * config/m68k/linux.h, config/m68k/m68k.c,
11808 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
11809 macros and asm_printf() format strings.
11810 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
11811 * config/m68k/linux.h: Update copyright.
11812 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
11813
11814 2004-02-08 Andreas Schwab <schwab@suse.de>
11815 Bernardo Innocenti <bernie@develer.com>
11816
11817 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
11818 REGISTER_PREFIX.
11819 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
11820 frame pointer register, overridable by OS targets.
11821 * (M68K_REGNAME): Macro to obtain register name for asm output,
11822 eventually replacing %a6 with M68K_FP_REG_NAME.
11823 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
11824 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
11825 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
11826 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
11827 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
11828
11829 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
11830
11831 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
11832 hook_rtx_tree_int_null.
11833 * targhooks.c (default_struct_value_rtx): Remove.
11834 * targhooks.h: Remove the prototype for
11835 default_struct_value_rtx.
11836 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
11837 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
11838 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
11839 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
11840 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
11841 config/rs6000/rs6000.c, config/s390/s390.c,
11842 config/stormy16/stormy16.c, config/v850/v850.c,
11843 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
11844 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
11845
11846 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
11847
11848 * README.Portability: Change "ISO C89" to "ISO C90".
11849 * c-parse.in (primary, initelt): Likewise.
11850
11851 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
11852
11853 * real.c (encode_ibm_extended): Normalize the input value before
11854 converting it to a double. Handle the case where a normal value
11855 rounds to infinity.
11856
11857 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
11858
11859 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
11860 warning.
11861 * cse.c (preferrable): Change to preferable. Update all of its
11862 callers.
11863 * genautomata.c (ainsn): Change
11864 first_ainsn_with_given_equialence_num to
11865 first_ainsn_with_given_equivalence_num. Update all of its
11866 references.
11867
11868 2004-02-08 Jan Hubicka <jh@suse.cz>
11869
11870 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
11871
11872 2004-02-07 David Edelsohn <edelsohn@gnu.org>
11873
11874 * function.c (assign_parms): Fix formatting.
11875
11876 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
11877
11878 * default.h (PROMOTE_PROTOTYPES): Remove.
11879 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
11880 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
11881 EXPAND_BUILTIN_SAVEREGS): Poison.
11882 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
11883 hook_bool_tree_false.
11884 (TARGET_PROMOTE_PROTOTYPES): Likewise.
11885 * target.h: Replace SETUP_INCOMING_VARARGS with
11886 targetm.calls.setup_incoming_varargs().
11887 * targhooks.c (default_promote_function_return): Remove.
11888 (default_promote_prototypes): Likewise.
11889 (default_struct_value_rtx): Always abort().
11890 (default_expand_builtin_saveregs): Always print an error
11891 message.
11892 (default_setup_incoming_varargs): Do nothing.
11893 (default_pretend_outgoing_varargs_named): Don't depend on
11894 SETUP_INCOMING_VARARGS.
11895 * targhooks.h: Remove the prototype for
11896 default_promote_function_return and
11897 default_promote_prototypes.
11898
11899 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
11900
11901 * system.h (SHARED_SECTION_ASM_OP): Poison.
11902 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
11903 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
11904
11905 2004-02-07 Zack Weinberg <zack@codesourcery.com>
11906
11907 Bug 13856
11908 * c-decl.c (diagnose_mismatched_decls): Only give special
11909 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
11910 is also true.
11911 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
11912 DECL_FUNCTION_CODE when defining a built-in function.
11913 Don't update DECL_ESTIMATED_INSNS.
11914 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
11915 FUNCTION_DECLs.
11916 * tree.h: Delete DECL_ESTIMATED_INSNS.
11917 * tree-inline.c (struct inline_data): Delete inlined_insns field.
11918 (expand_call_inline, optimize_inline_calls): Don't update
11919 DECL_ESTIMATED_INSNS nor inlined_insns.
11920 * cgraphunit.c (cgraph_analyze_function): Don't update
11921 DECL_ESTIMATED_INSNS.
11922
11923 2004-02-07 Zack Weinberg <zack@codesourcery.com>
11924
11925 * c-common.c (shadow_warning): Delete.
11926 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
11927 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
11928 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
11929 * c-parse.in (free_parser_stacks): Delete.
11930
11931 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
11932
11933 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
11934 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
11935 Use the top level mkinstalldirs, not the one in the gcc subdir.
11936 * mkinstalldirs: Remove (from the gcc subdir).
11937
11938 2004-02-07 Roger Sayle <roger@eyesopen.com>
11939
11940 PR middle-end/13696
11941 * fold-const.c (fold_convert): New function to provide type
11942 conversion to the middle-end without using convert.
11943 (negate_expr, associate_trees, size_diffop, omit_one_operand,
11944 operand_equal_for_comparison_p, pedantic_omit_one_operand,
11945 invert_truthvalue, optimize_bit_field_compare, range_binop,
11946 decode_field_reference, make_range, build_range_check, unextend,
11947 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
11948 fold_binary_op_with_conditional_arg, fold_inf_compare,
11949 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
11950 convert with calls to fold_convert.
11951
11952 2004-02-07 Jan Hubicka <jh@suse.cz>
11953
11954 * genrecog.c (find_operand): add extra argument stop.
11955 (validate_pattern): Verify that mach_dup is duplicating operand
11956 defined lexically earlier.
11957
11958 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
11959
11960 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
11961 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
11962 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
11963 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
11964 config/ia64/ia64.h, config/ip2k/ip2k.h,
11965 config/iq2000/iq2000.h, config/mips/iris5.h,
11966 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
11967 config/rs6000/aix51.h, config/rs6000/aix52.h,
11968 config/rs6000/darwin.h, config/rs6000/rs6000.h,
11969 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
11970 config/sparc/linux.h, config/sparc/linux64.h,
11971 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
11972 config/xtensa/xtensa.h: Remove the definitions of
11973 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
11974 MAX_WCHAR_TYPE_SIZE.
11975 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
11976 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
11977
11978 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
11979
11980 PR bootstrap/13990
11981 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
11982 gen_rtx_NE.
11983
11984 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
11985
11986 * var-tracking.c (vt_add_function_parameters): Surround checkings by
11987 #ifdef ENABLE_CHECKING and #endif.
11988
11989 2004-02-07 Roger Sayle <roger@eyesopen.com>
11990
11991 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
11992 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
11993 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
11994 integer types and floating point with unsafe_math_optimizations.
11995 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
11996 Optimize A - B as A + (-B), if B is easily negated.
11997
11998 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
11999
12000 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
12001 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
12002 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
12003 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
12004 Update copyright.
12005
12006 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
12007
12008 * c-ppoutput.c, var-tracking.c: Fix comment typos.
12009
12010 2004-02-06 James E Wilson <wilson@specifixinc.com>
12011
12012 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
12013 glibc 2.3 or better.
12014
12015 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12016
12017 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
12018 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
12019
12020 2004-02-07 Alan Modra <amodra@bigpond.net.au>
12021
12022 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
12023 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
12024 (SHLIB_MKMAP_OPTS): Delete.
12025 (TARGET_LIBGCC2_CFLAGS): Add -specs.
12026 (bispecs): Add rule.
12027 * config/rs6000/libgcc-ppc64.ver: New file.
12028 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
12029 (__floatdidf, __floatdisf): Optimize multiply.
12030 (__fixunstfdi): New function.
12031 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
12032 real and imag parts larger than one register.
12033 (function_arg): Correct type of reg used when fp arg split partially
12034 to stack.
12035 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
12036 and __MACH__ or __powerpc64__.
12037
12038 2004-02-06 Roger Sayle <roger@eyesopen.com>
12039 Ulrich Weigand <uweigand@de.ibm.com>
12040
12041 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
12042 of gen_highpart or gen_lowpart when the floating point format is
12043 wider than the result mode.
12044
12045 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
12046
12047 * dwarf2out.c (loclabel_num): Move into #ifdef
12048 DWARF2_DEBUGGING_INFO.
12049
12050 2004-02-06 Ziemowit Laski <zlaski@apple.com>
12051
12052 * objc/objc-act.c (build_super_template) the 'class' field of
12053 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
12054 (get_super_receiver): Likewise.
12055
12056 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12057
12058 * reload1.c (check_eliminable_occurrences): Optimize the reset
12059 of can_eliminate.
12060 (eliminate_regs_in_insn): Likewise.
12061
12062 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
12063 Josef Zlomek <zlomekj@suse.cz>
12064
12065 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
12066 at the beginning of function, call dwarf2out_var_location for
12067 NOTE_INSN_VAR_LOCATION note.
12068 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
12069 decl_loc_table): New.
12070 (lookup_decl_loc): New function.
12071 (add_var_loc_to_decl): New function.
12072 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
12073 only if can_use_fbreg.
12074 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
12075 functions.
12076 (loc_descriptor): Likewise. Process VAR_LOCATION.
12077 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
12078 (loc_descriptor_from_tree): Call mem_loc_descriptor with
12079 can_use_fbreg == true.
12080 (add_location_or_const_value_attribute): Added parameter enum
12081 dwarf_attribute attr, generate attribute ATTR. Create the location list.
12082 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
12083 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
12084 with attr == DW_AT_location.
12085 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
12086 if frame_base_decl is defined and has a location list.
12087 (gen_variable_die): Call add_location_or_const_value_attribute with
12088 attr == DW_AT_location.
12089 (dwarf2out_var_location): New function.
12090 (dwarf2out_begin_function): New function.
12091 (dwarf2out_init): Create decl_loc_table.
12092
12093 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
12094
12095 * loop.c (force_movables): Transitively increase the priorities of
12096 all insns forces by an insn, not just the first one.
12097
12098 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
12099 Daniel Berlin <dberlin@dberlin.org>
12100
12101 Josef Zlomek <zlomekj@suse.cz>
12102 * Makefile.in (var-tracking.o): New.
12103 * common.opt (fvar-tracking): New.
12104 * flags.h (flag_var_tracking): New.
12105 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
12106 * opts.c (common_handle_option): Add OPT_fvar_tracking.
12107 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
12108 * rtl.c (note_insn_name): Likewise.
12109 * rtl.def (VAR_LOCATION): New.
12110 * rtl.h (NOTE_VAR_LOCATION): New.
12111 (NOTE_VAR_LOCATION_DECL): New.
12112 (NOTE_VAR_LOCATION_LOC): New.
12113 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
12114 (variable_tracking_main): New exported function.
12115 * timevar.def (TV_VAR_TRACKING): New.
12116 * toplev.c (enum dump_file_index): Added DFI_vartrack.
12117 (dump_file): "vartrack" was added (-dV).
12118 (flag_var_tracking): New.
12119 (f_options): "var-tracking" was added.
12120 (rest_of_handle_variable_tracking): New function.
12121 (rest_of_compilation): Run variable tracking.
12122 (process_options): If user has not specified flag_var_tracking set it
12123 according to optimize, debug_info_level and debug_hooks.
12124 * tree.h (frame_base_decl): New.
12125 * var-tracking.c: New file.
12126 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
12127 (ia64_override_options): Set flags to run variable tracking in machine
12128 dependent reorg instead of toplev.c.
12129 (ia64_reorg): Run variable tracking if wanted.
12130 * doc/invoke.texi: Mention variable tracking in -dV,
12131 add and -fvar-tracking.
12132 * doc/passes.texi: Added variable tracking pass.
12133
12134 Daniel Berlin <dberlin@dberlin.org>
12135 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
12136 * dbxout.c (dbx_debug_hooks): Likewise.
12137 (xcoff_debug): Likewise.
12138 * debug.c (do_nothing_debug_hooks): Likewise.
12139 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
12140 * dwarfout.c (dwarf_debug_hooks): Likewise.
12141 * sdbout.c (sdb_debug_hooks): Likewise.
12142 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12143 * final.c (final_scan_insn): Call var_location debug hook for each
12144 NOTE_INSN_VAR_LOCATION.
12145
12146 2004-02-06 Jan Hubicka <jh@suse.cz>
12147
12148 * flow.c (update_life_info): Allocate reg_deaths when called from
12149 scheudler.
12150 (attempt_auto_inc): Update life ranges accordingly.
12151
12152 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
12153
12154 PR debug/11816
12155 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
12156
12157 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
12158
12159 * cfganal.c (flow_call_edges_add): Never split a libcall block.
12160
12161 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
12162
12163 * dwarf2out.c (output_loc_list): Don't use deltas if we have
12164 a separate line info table in use.
12165 Use the correct size for terminators.
12166 (output_die): Use offset, not delta.
12167
12168 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
12169
12170 * doc/invoke.texi: Remove the pni option from -mfpmath=.
12171
12172 2004-02-06 Jan Hubicka <jh@suse.cz>
12173
12174 * recog.c (split_all_insns): Do not update reg info.
12175 * regrename.c (regrename_optimize): Likewise.
12176 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
12177 * flow.c (struct propagate_block_info): Add insn_num field.
12178 (reg_deaths): New array.
12179 (life_analysis): Free reg_deaths info.
12180 (allocate_reg_life_data): Allocate reg_deaths array.
12181 (propagate_one_insn): Use new array.
12182 (init_propagate_block): Initialize it.
12183 (free_propagate_block_info): Finish compuation of
12184 REG_LIVE_LENGTH
12185 (attempt_auto_inc): Sanity check that REG_INFO is not
12186 computed at same time.
12187 (mark_used_regs): Update new array.
12188
12189 * reg-stack.c (subst_stack_regs): Unshare clobbers before
12190 substitution.
12191
12192 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12193
12194 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
12195 *extendqisi2_short_displ.
12196
12197 2004-02-06 Alan Modra <amodra@bigpond.net.au>
12198
12199 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
12200 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
12201 (emit_library_call_value_1): Likewise pass nargs.
12202 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
12203 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
12204 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
12205 parameter instead of scanning TYPE_ARGS_TYPES to count args.
12206 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
12207 prototype.
12208 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
12209 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
12210 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
12211 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
12212 INIT_CUMULATIVE_ARGS.
12213 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
12214 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
12215 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
12216 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
12217 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
12218 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
12219 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
12220 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
12221 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
12222 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
12223 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
12224 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
12225
12226 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12227
12228 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
12229 possible.
12230
12231 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12232
12233 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
12234 note containing (plus (reg) (const_int)), where reg is an
12235 eliminable reg, then perform the register elimination without
12236 depending on eliminate_regs().
12237
12238 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12239
12240 * config/arc/arc.c (arc_return_in_memory): Check the return
12241 value of int_size_in_bytes against -1. Don't check
12242 TREE_ADDRESSABLE.
12243 * config/avr/avr.c (avr_return_in_memory): Check the return
12244 value of int_size_in_bytes against -1.
12245 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
12246 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
12247 Likewise.
12248 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
12249 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
12250 Likewise.
12251
12252 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12253
12254 * config/frv/frv-protos.h: Remove the prototype for
12255 frv_setup_incoming_varargs.
12256 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
12257 (frv_setup_incoming_varargs): Make it static.
12258 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
12259
12260 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12261
12262 * config/fr30/fr30-protos.h: Remove the prototype for
12263 fr30_setup_incoming_varargs.
12264 Update the prototypes for fr30_num_arg_regs and
12265 fr30_function_arg_partial_nregs.
12266 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
12267 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
12268 (fr30_setup_incoming_varargs): Make it static.
12269 Add argument second_time. Don't do anything when second_time
12270 is nonzero.
12271 (fr30_num_arg_regs): Change the type of the first argument to
12272 enum machine_mode.
12273 (fr30_function_arg_partial_nregs): Change the type of the
12274 second argument to enum machine_mode.
12275 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
12276 (SETUP_INCOMING_VARARGS): Remove.
12277
12278 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12279
12280 * config/arc/arc-protos.h: Remove the prototype for
12281 arc_setup_incoming_varargs.
12282 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
12283 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
12284 (arc_setup_incoming_varargs): Make it static.
12285 (arc_external_libcall): Likewise.
12286 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
12287 Remove the commented-out definition of
12288 ASM_OUTPUT_EXTERNAL_LIBCALL.
12289
12290 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
12291
12292 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
12293 to $$(slibdir) in the installation commands.
12294
12295 2004-02-05 David Edelsohn <edelsohn@gnu.org>
12296
12297 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
12298 with inner_regno, not regno.
12299 * rtlanal.c (refers_to_regno_p): Same.
12300
12301 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
12302
12303 * config.gcc: Remove i370 support.
12304
12305 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
12306
12307 * doc/install.texi: Update automake and autoconf version
12308 requirements. Note where to find gcj automake version.
12309
12310 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
12311
12312 * Makefile.in (generate-manpages): Move dependencies to ...
12313 (man): here.
12314 * doc/makefile.texi: Document new targets.
12315 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
12316
12317 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
12318
12319 PR/13485
12320 Makefile.in (srcextra): Add a level of indirection to ...
12321 (gcc.srcextra): ... here.
12322 (po-generated): Delete.
12323 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
12324 options.c.
12325 (start.encap): Remove superfluous lang.srcextra dependency.
12326 objc/Make-lang.in (po-generated): Delete.
12327
12328 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
12329
12330 * config/ia64/ia64.c (REG_GP): Remove.
12331
12332 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12333
12334 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
12335
12336 2004-02-05 Devang Patel <dpatel@apple.com>
12337
12338 * dwarf2out.c (force_type_die): Look up input type itself
12339 instead of root_type() of type.
12340
12341 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
12342
12343 * config/s390/s390.md ("*tmqidi_ext"): New insn.
12344 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
12345 pre-reload splitters are transformed to post-reload
12346 define_insn_and_split patterns.
12347 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
12348
12349 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
12350
12351 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
12352 TARGET_PROMOTE_PROTOTYPES.
12353
12354 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12355
12356 PR middle-end/13750
12357 Revert:
12358 2004-01-15 Geoffrey Keating <geoffk@apple.com>
12359 PR pch/13361
12360 * c-typeck.c (constructor_asmspec): Delete.
12361 (struct initializer_stack): Delete field 'asmspec'.
12362 (start_init): Delete saving of asmspec.
12363 (finish_init): Don't update constructor_asmspec.
12364 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
12365 * stmt.c (expand_asm): Duplicate strings from tree.
12366 (expand_asm_operands): Likewise.
12367 * tree.c (tree_size): Update computation of size of STRING_CST.
12368 (make_node): Don't make STRING_CST nodes.
12369 (build_string): Allocate string with tree node.
12370 * tree.def (STRING_CST): Update comment.
12371 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
12372 (tree_string): Place contents of string in tree node.
12373 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
12374 from tree.
12375
12376 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
12377
12378 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
12379 msgid.
12380
12381 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
12382
12383 * config/rs6000/altivec.md (*movv4si_internal): At least one
12384 operand must be altivec_register_operand.
12385 (*movv8hi_internal1): Likewise.
12386 (*movv16qi_internal1): Likewise.
12387 (*movv4sf_internal1): Likewise.
12388
12389 2004-02-05 David Edelsohn <edelsohn@gnu.org>
12390
12391 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
12392 * configure: Regenerate.
12393
12394 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
12395
12396 * doc/install.texi: Update description of --gxx-include-dir to
12397 give correct default value.
12398
12399 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
12400
12401 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
12402 8 with MAC_REG.
12403
12404 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
12405
12406 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
12407 gen_rtx_PARALLEL.
12408
12409 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
12410
12411 * emit-rtl.c: Update the comment about the file.
12412
12413 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
12414
12415 * sourcebuild.texi (Test Idioms): Update testcase naming
12416 conventions.
12417
12418 2004-02-04 Per Bothner <per@bothner.com>
12419
12420 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
12421 * c-ppoutput.c (pp_dir_change): New function.
12422 * c-common.h (pp_dir_change): New declaration.
12423 * cpplib.h (struct cpp_options): Remove working_directory field.
12424 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
12425 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
12426 Don't handle -fworking_directory here, but in c_common_post_options.
12427 (read_original_directory): Don't back up when done.
12428 Don't clear no-longer used working_directory flag.
12429 * cpplib.h: Update declarations to match.
12430 * c-lex.c (cb_dir_change): Move to c-opts.c.
12431 (init_c_lex): Don't set dir_change callback here, since we want
12432 to set it even if flag_preprocess_only.
12433 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
12434 (c_common_post_options): Set dir_change callback.
12435 Call pp_dir_change if approporiate.
12436 (finish_options): Don't call cpp_find_main_file here. Hence remove
12437 unneeded parameter and result. Do LC_RENAME for <built-in>.
12438 (c_common_post_options): Call cpp_read_main_file here instead.
12439 (c_common_init): Update accordingly.
12440 (push_command_line_include): Don't cpp_push_main_file.
12441 Do LC_RENAME rather than LC_LEASE to get back to main file.
12442 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
12443 (c_common_parse_file): Call cpp_read_main_file for subsequent main
12444 files, but call finish_options for all files.
12445 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
12446 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
12447 cpp_find_main_file + cpp_push_main_file.
12448 * c-lex.c (fe_file_change): Don't set main_input_filename here.
12449 * opts.c (handle_options): Only set main_input_filename first time.
12450
12451 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
12452
12453 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
12454
12455 2004-02-04 Geoffrey Keating <geoffk@apple.com>
12456
12457 * reload.c (find_equiv_reg): When checking for register overlap,
12458 don't index hard_regno_nregs with a pseudo-reg.
12459
12460 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12461
12462 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
12463
12464 2004-02-04 David Edelsohn <edelsohn@gnu.org>
12465
12466 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
12467 against FIRST_PSEUDO_REGISTER.
12468
12469 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12470
12471 * Makefile.in: Move target, host overrides after per-language
12472 fragments.
12473
12474 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
12475 (GNATLIBCFLAGS): Remove -g.
12476
12477 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
12478
12479 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
12480 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
12481 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
12482 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
12483 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
12484 config/sparc/sparc.c, config/vax/vax.c: Revert the
12485 replacements of "FALLTHRU" with "Fall through" done in the
12486 previous patch.
12487
12488 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
12489
12490 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
12491 config/arm/arm.c, config/arm/arm.md,
12492 config/cris/cris-protos.h, config/fr30/fr30.c,
12493 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
12494 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
12495 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
12496 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
12497 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
12498 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
12499 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
12500 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
12501 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
12502 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
12503 config/s390/s390.md, config/sparc/netbsd-elf.h,
12504 config/sparc/openbsd.h, config/sparc/sparc.c,
12505 config/xtensa/lib2funcs.S: Fix comment formatting.
12506
12507 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
12508
12509 * config/alpha/alpha.c, config/arc/arc.c,
12510 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
12511 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
12512 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
12513 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
12514 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
12515 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
12516 config/iq2000/iq2000.c, config/m32r/m32r.c,
12517 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
12518 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
12519 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
12520 config/rs6000/rs6000.h, config/sparc/sparc.c,
12521 config/vax/vax.c: Fix comment typos. Follow spelling
12522 conventions.
12523
12524 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
12525
12526 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
12527 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
12528 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
12529 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
12530 config/arm/fpa.md, config/arm/iwmmxt.md,
12531 config/arm/netbsd-elf.h, config/arm/netbsd.h,
12532 config/m68hc11/m68hc11.md, config/mips/iris5.h,
12533 config/mn10300/mn10300.md, config/rs6000/altivec.md,
12534 config/sparc/netbsd-elf.h: Update copyright.
12535
12536 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
12537
12538 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
12539 for all modes whose size is greater than 8 bytes if ARCH32.
12540 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
12541 by reference if ARCH32.
12542
12543 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
12544
12545 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
12546
12547 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12548
12549 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
12550 to before adddi3 insn patterns.
12551 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
12552 "reload_insi"): Move to before addsi3 insn patterns.
12553
12554 2004-02-04 Mark Mitchell <mark@codesourcery.com>
12555
12556 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
12557 parameter. Use it instead of current_function_is_thunk.
12558 * function.h (struct function): Update documentation for is_thunk.
12559 * tree.h (CALL_FROM_THUNK_P): New macro.
12560 * config/alpha/alpha.c (alpha_sa_mask): Do not check
12561 no_new_pseudos when testing current_function_is_thunk.
12562 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
12563
12564 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
12565
12566 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
12567 TARGET_SETUP_INCOMING_VARARGS.
12568
12569 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
12570
12571 * emit-rtl.c (gen_rtx): Remove.
12572 * genattrtab.c: Don't mention gen_rtx in a comment.
12573 * rtl.h: Remove the prototype for gen_rtx.
12574 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
12575
12576 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
12577
12578 * config/arc/arc.h, config/fr30/fr30.h
12579 (SETUP_INCOMING_VARARGS): Remove the target-independent
12580 comments.
12581 * doc/tm.texi: Don't mention deprecated target macros.
12582
12583 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
12584
12585 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
12586 target-independent comment.
12587
12588 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
12589
12590 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
12591 mention deprecated target macros.
12592
12593 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
12594
12595 * config.gcc: Remove obsolete ports and configurations.
12596 * config/linux-aout.h, config/netware.h,
12597 config/t-linux-gnulibc1, config/d30v/abi,
12598 config/d30v/d30v-protos.h, config/d30v/d30v.c,
12599 config/d30v/d30v.h, config/d30v/d30v.md,
12600 config/d30v/libgcc1.asm, config/d30v/t-d30v,
12601 config/dsp16xx/dsp16xx-modes.def,
12602 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
12603 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
12604 config/i370/README, config/i370/i370-c.c,
12605 config/i370/i370-protos.h, config/i370/i370.c,
12606 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
12607 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
12608 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
12609 config/i386/moss.h, config/i386/netware.h,
12610 config/i386/svr3.ifile, config/i386/svr3dbx.h,
12611 config/i386/svr3gas.h, config/i386/svr3z.ifile,
12612 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
12613 config/i960/i960-c.c, config/i960/i960-coff.h,
12614 config/i960/i960-modes.def, config/i960/i960-protos.h,
12615 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
12616 config/i960/rtems.h, config/i960/t-960bare,
12617 config/m68k/hp310.h, config/m68k/hp320.h,
12618 config/m68k/hp320base.h, config/m68k/m68kv4.h,
12619 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
12620 Remove.
12621 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
12622 doc/md.texi: Remove mentions of obsolete ports.
12623
12624 2004-02-04 Jan Hubicka <jh@suse.cz>
12625
12626 * alias.c (find_base_term, get_addr): Do not dereference NULL
12627 pointer when all VALUE's locations has been invalidated.
12628 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
12629
12630 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
12631
12632 * doc/invoke.texi (x86 options): Fix spelling/wording.
12633
12634 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
12635
12636 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
12637 put the original string in a comment.
12638 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
12639 * config/mips/mips.c (mips_output_ascii): Likewise.
12640 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
12641
12642 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
12643
12644 * system.h (GIV_SORT_CRITERION): Poison.
12645 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
12646 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
12647
12648 2004-02-03 Roger Sayle <roger@eyesopen.com>
12649
12650 PR target/9348
12651 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
12652 multiplies with a multiplication of the wrong signedness, its the
12653 signedness of the multiplication that we've performed that needs to
12654 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
12655 if expand_mult_highpart_adjust places the result in target.
12656
12657 2004-02-03 Richard Henderson <rth@redhat.com>
12658
12659 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
12660
12661 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
12662
12663 * config.gcc (sh[234]l): Use little endian fragments.
12664
12665 2004-02-03 Paul Koning <pkoning@equallogic.com>
12666
12667 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
12668 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
12669 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
12670 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
12671 floating point format.
12672 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
12673 the above functions.
12674 (output_move_quad): Output float values in correct target format.
12675 (legitimate_const_double_p): New function.
12676 * config/pdp11/pdp11.h: Fix typos.
12677 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
12678 (TARGET_FLOAT_FORMAT): Ditto.
12679 (pdp11_f_format, pdp11_d_format): Add external declarations.
12680 (MAX_REGS_PER_ADDRESS): Corrected.
12681 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
12682 (PRINT_OPERAND): Output float literals in target format.
12683
12684 2004-02-03 Mark Mitchell <mark@codesourcery.com>
12685
12686 PR c++/13975
12687 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
12688 TI_PRIVATE.
12689 (access_public_node): Redefine.
12690 (access_protected_node): Likewise.
12691 (access_private_node): Likewise.
12692 * tree.c (build_common_tree_nodes): Create access_public_node,
12693 access_protected_node, and access_private_node.
12694
12695 2004-02-03 Steve Ellcey <sje@cup.hp.com>
12696
12697 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
12698 (MASK_INLINE_INT_DIV_THR): Ditto.
12699 (MASK_INLINE_SQRT_LAT): Ditto.
12700 (MASK_INLINE_SQRT_THR): Ditto.
12701 (MASK_DWARF2_ASM): Ditto.
12702 (MASK_EARLY_STOP_BITS): Ditto.
12703
12704 2004-02-02 Paul Brook <paul@codesourcery.com>
12705
12706 Merge from csl-arm-branch.
12707
12708 2004-01-30 Paul Brook <paul@codesourcery.com>
12709
12710 * aof.h (REGISTER_NAMES): Add vfp reg names
12711 (ADDITIONAL_REGISTER_NAMES): Ditto.
12712 * aout.h (REGISTER_NAMES): Ditto.
12713 (ADDITIONAL_REGISTER_NAMES): Ditto.
12714 * arm-protos.h: Update/Add Prototypes.
12715 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
12716 Only allow 0.0 for VFP.
12717 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
12718 (values_fp): Rename from values_fpa. Update Users.
12719 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
12720 Update users. Only check valid constants for this hardware.
12721 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
12722 Only allow consts for FPA.
12723 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
12724 Only allow consts for FPA.
12725 (use_return_insn): Check for saved VFP regs.
12726 (arm_legitimate_address_p): Handle VFP DFmode addressing.
12727 (arm_legitimize_address): Ditto.
12728 (arm_general_register_operand): New function.
12729 (vfp_mem_operand): New function.
12730 (vfp_compare_operand): New function.
12731 (vfp_secondary_reload_class): New function.
12732 (arm_float_compare_operand): New function.
12733 (vfp_print_multi): New function.
12734 (vfp_output_fstmx): New function.
12735 (vfp_emit_fstm): New function.
12736 (arm_output_epilogue): Output VPF reg restore code.
12737 (arm_expand_prologue): Output VFP reg save code.
12738 (arm_print_operand): Add 'P'.
12739 (arm_hard_regno_mode_ok): Return modes for VFP regs.
12740 (arm_regno_class): Return classes for VFP regs.
12741 (arm_compute_initial_elimination_offset): Include space for VFP regs.
12742 (arm_get_frame_size): Ditto.
12743 * arm.h (FIXED_REGISTERS): Add VFP regs.
12744 (CALL_USED_REGISTERS): Ditto.
12745 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
12746 (FIRST_VFP_REGNUM): Define.
12747 (LAST_VFP_REGNUM): Define.
12748 (IS_VFP_REGNUM): Define.
12749 (FIRST_PSEUDO_REGISTER): Include VFP regs.
12750 (HARD_REGNO_NREGS): Handle VFP regs.
12751 (REG_ALLOC_ORDER): Add VFP regs.
12752 (enum reg_class): Add VFP_REGS.
12753 (REG_CLASS_NAMES): Ditto.
12754 (REG_CLASS_CONTENTS): Ditto.
12755 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
12756 (REG_CLASS_FROM_LETTER): Add 'w'.
12757 (EXTRA_CONSTRAINT_ARM): Add 'U'.
12758 (EXTRA_MEMORY_CONSTRAINT): Define.
12759 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
12760 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
12761 (REGISTER_MOVE_COST): Ditto.
12762 (PREDICATE_CODES): Add arm_general_register_operand,
12763 arm_float_compare_operand and vfp_compare_operand.
12764 * arm.md (various): Rename as above.
12765 (divsf3): Enable when TARGET_VFP.
12766 (divdf3): Ditto.
12767 (movdfcc): Ditto.
12768 (sqrtsf2): Ditto.
12769 (sqrtdf2): Ditto.
12770 (arm_movdi): Disable when TARGET_VFP.
12771 (arm_movsi_insn): Ditto.
12772 (movsi): Only split with general regs.
12773 (cmpsf): Use arm_float_compare_operand.
12774 (push_fp_multi): Restrict to TARGET_FPA.
12775 (vfp.md): Include.
12776 * vfp.md: New file.
12777 * fpa.md (various): Rename as above.
12778 * doc/md.texi: Document ARM w and U constraints.
12779
12780 2004-01-15 Paul Brook <paul@codesourcery.com>
12781
12782 * config.gcc: Add with_fpu. Allow with-float=softfp.
12783 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
12784 Break out of loop when we find a float-abi. Fix typo.
12785 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
12786 Set -mfloat-abi=.
12787 * doc/install.texi: Document --with-fpu.
12788
12789 2003-01-14 Paul Brook <paul@codesourcery.com>
12790
12791 * config.gcc (with_arch): Add armv6.
12792 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
12793 * config/arm/arm.c (arm_overrride_options): Ditto.
12794
12795 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
12796
12797 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
12798 (FL_ARCH6): Renamed from FL_ARCH6J.
12799 (arm_arch3m): Renamed from arm_fast_multiply.
12800 (arm_arch6): Renamed from arm_arch6j.
12801 * arm.h: Update all uses of above.
12802 * arm-cores.def: Likewise.
12803 * arm.md: Likewise.
12804
12805 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
12806 not arm6j. Add entry for arch armv6.
12807
12808 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
12809
12810 * arm.c (arm_emit_extendsi): Delete.
12811 * arm-protos.h (arm_emit_extendsi): Delete.
12812 * arm.md (zero_extendhisi2): Also handle zero-extension of
12813 non-subregs.
12814 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
12815 (thumb_zero_extendhisi2): Only match if not v6.
12816 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
12817 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
12818 (thumb_extendqisi2): Likewise.
12819 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
12820 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
12821 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
12822 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
12823 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
12824 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
12825 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
12826 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
12827 (arm_extendqisi2addsi): Likewise.
12828
12829 2003-12-31 Mark Mitchell <mark@codesourcery.com>
12830
12831 Revert this change:
12832 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
12833 + REG addressing modes.
12834
12835 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
12836 + REG addressing modes.
12837
12838 2003-12-30 Mark Mitchell <mark@codesourcery.com>
12839
12840 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
12841 CONSTANT_P_RTX.
12842
12843 2003-30-12 Paul Brook <paul@codesourcery.com>
12844
12845 * longlong.h: protect arm inlines with !defined (__thumb__)
12846
12847 2003-30-12 Paul Brook <paul@codesourcery.com>
12848
12849 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
12850
12851 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
12852
12853 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
12854 change.
12855
12856 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
12857
12858 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
12859 to the virtual incoming args pointer for downward stacks.
12860
12861 2003-12-29 Paul Brook <paul@codesourcery.com>
12862
12863 * config/arm/arm-cores.def: Add cost function.
12864 * config/arm/arm.c (arm_*_rtx_costs): New functions.
12865 (arm_rtx_costs): Remove
12866 (struct processors): Add rtx_costs field.
12867 (all_cores, all_architectures): Ditto.
12868 (arm_override_options): Set targetm.rtx_costs.
12869 (thumb_rtx_costs): New function.
12870 (arm_rtx_costs_1): Remove cases handled elsewhere.
12871 * config/arm/arm.h (processor_type): Add COSTS parameter.
12872
12873 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
12874
12875 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
12876 (arm926ejs.md): Include it.
12877 * config/arm/arm926ejs.md: New pipeline description.
12878
12879 2003-12-24 Paul Brook <paul@codesourcery.com>
12880
12881 * config/arm/arm.c (arm_arch6j): New variable.
12882 (arm_override_options): Set it.
12883 (arm_emit_extendsi): New function.
12884 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
12885 * config/arm/arm.h (arm_arch6j): Declare.
12886 * config/arm/arm.md: Add sign/zero extend insns.
12887
12888 2003-12-23 Paul Brook <paul@codesourcery.com>
12889
12890 * config/arm/arm.c (all_architectures): Add armv6.
12891 * doc/invoke.texi: Document it.
12892
12893 2003-12-19 Paul Brook <paul@codesourcery.com>
12894
12895 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
12896 insn patterns to match.
12897 * config/arm/arm-generic.md: Ditto.
12898 * config/arm/cirrus.md: Ditto.
12899 * config/arm/fpa.md: Ditto.
12900 * config/amm/iwmmxt.md: Ditto.
12901 * config/arm/arm1026ejs.md: Ditto.
12902 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
12903 for 11_loadb.
12904
12905 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
12906
12907 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
12908 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
12909 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
12910 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
12911 arm_no_early_mul_dep): Correctly deal with conditional execution,
12912 parallels and single shift operations.
12913 (arm_no_early_alu_shift_value_dep): Define.
12914 * arm.md (attr type): Replace 'normal' with 'alu',
12915 'alu_shift' and 'alu_shift_reg'.
12916 (attr core_cycles): Adjust.
12917 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
12918 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
12919 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
12920 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
12921 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
12922 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
12923 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
12924 attribute appropriately.
12925 * config/arm/arm1026ejs.md (alu_op): Adjust.
12926 (alu_shift_op, alu_shift_reg_op): New.
12927 * config/arm/arm1136.md: Add better bypasses for early
12928 registers. Remove load[234] and store[234] bypasses.
12929 (11_alu_op): Adjust.
12930 (11_alu_shift_op, 11_alu_shift_reg_op): New.
12931
12932 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
12933
12934 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
12935 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
12936 * config/arm/arm.c (arm_no_early_store_addr_dep,
12937 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
12938 * config/arm/arm1026ejs.md: Add load-store bypass.
12939 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
12940 Add bypasses between instructions.
12941
12942 2003-12-10 Paul Brook <paul@codesourcery.com>
12943
12944 * config/arm/arm.c (arm_fpu_model): New variable.
12945 (arm_fload_abi): New variable.
12946 (target_fpe_name): Rename from target_fp_name.
12947 (target_fpu_name): New variable.
12948 (arm_is_cirrus): Remove.
12949 (fpu_desc): New struct.
12950 (all_fpus): Define.
12951 (pf_model_for_fpu): Define.
12952 (all_loat_abis): Define.
12953 (arm_override_options): Set fp arch flags based on -mfpu=
12954 and -float-abi=.
12955 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
12956 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
12957 (*): Use new TARGET_* flags.
12958 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
12959 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
12960 (TARGET_SOFT_FLOAT): Ditto.
12961 (TARGET_SOFT_FLOAT_ABI): New.
12962 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
12963 TARGET_HARD_FLOAT.
12964 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
12965 (TARGET_OPTIONS): Add -mfpu=.
12966 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
12967 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
12968 (arm_pf_model): Define.
12969 (arm_float_abi_type): Define.
12970 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
12971 * config/arm/arm.md: Use new TARGET_* flags.
12972 * config/arm/cirrus.md: Ditto.
12973 * config/arm/fpa.md: Ditto.
12974 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
12975 * config/arm/semi.h (ASM_SPEC): Ditto.
12976 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
12977 (FPUTYPE_DEFAULT): Set to VFP.
12978 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
12979
12980 2003-11-22 Phil Edwards <phil@codesourcery.com>
12981
12982 PR target/12476
12983 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
12984 'bx' instead of 'b' to avoid branch range restrictions. Output
12985 the thunk immediately before the thunked-to function.
12986 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
12987 .thumb_func if a thunk is being generated. Emit .code 16 along
12988 with .thumb_func if a thunk is not being generated.
12989
12990 2003-11-15 Nicolas Pitre <nico@cam.org>
12991
12992 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
12993 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
12994 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
12995 (lshrdi3_iwmmxt): Renamed from lshrdi3.
12996 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
12997
12998 2003-11-12 Steve Woodford <scw@wasabisystems.com>
12999 Ian Lance Taylor <ian@wasabisystems.com>
13000
13001 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
13002 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
13003
13004 2003-11-05 Phil Edwards <phil@codesourcery.com>
13005
13006 * config/arm/arm.md (insn): Add new V6 instruction names.
13007 (generic_sched): New attr.
13008 * config/arm/arm-generic.md: Use generic_sched here.
13009 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
13010 stages of pipeline. Adjust latency counts accordingly.
13011 * config/arm/arm1136jfs.md: New file.
13012
13013 2003-10-28 Mark Mitchell <mark@codesourcery.com>
13014
13015 * config/arm/arm.h (processor_type): New enumeration type.
13016 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
13017 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
13018 (CPP_CPU_ARCH_SPEC): Likewise.
13019 * config/arm/arm.c (arm_tune): New variable.
13020 (all_cores): Use cores.def.
13021 (all_architectures): Add representative processor.
13022 (arm_override_options): Restructure way in which tuning
13023 information is deduced.
13024 * arm.md: Update "insn" and "type" attributes throughout.
13025 (insn): New attribute.
13026 (type): Compute "mult" from "insn" attribute. Add load2,
13027 load3, load4 alternatives.
13028 (arm automaton): Move to arm-generic.md.
13029 * config/arm/arm-cores.def: New file.
13030 * config/arm/arm-generic.md: Likewise.
13031 * config/arm/arm1026ejs.md: Likewise.
13032
13033 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
13034
13035 * doc/invoke.texi (SPARC options): Remove -mflat and
13036 all -mxxx (xxx:chip) options.
13037 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
13038 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
13039 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
13040 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
13041 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
13042 * config/sparc/sparc.c: Likewise.
13043 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
13044 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
13045 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
13046 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
13047 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
13048 (sparc_flat_must_save_register_p): Likewise.
13049 (sparc_flat_compute_frame_size): Likewise.
13050 (sparc_flat_save_restore): Likewise.
13051 (sparc_flat_function_prologue): Likewise.
13052 (sparc_flat_function_epilogue): Likewise.
13053 (sparc_flat_epilogue_delay_slots): Likewise.
13054 (sparc_flat_eligible_for_epilogue_delay): Likewise.
13055 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
13056 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
13057 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
13058 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
13059 (CONDITIONAL_REGISTER_USAGE): Likewise.
13060 (FRAME_POINTER_REQUIRED): Likewise.
13061 (INITIAL_ELIMINATION_OFFSET): Likewise.
13062 (BASE_RETURN_VALUE_REG): Likewise.
13063 (BASE_OUTGOING_VALUE_REG): Likewise.
13064 (BASE_PASSING_ARG_REG): Likewise.
13065 (BASE_INCOMING_ARG_REG): Likewise.
13066 (INCOMING_REGNO): Likewise.
13067 (OUTGOING_REGNO): Likewise.
13068 (LOCAL_REGNO): Likewise.
13069 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
13070 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
13071 (EPILOGUE_USES): Likewise.
13072 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
13073 ("flat" attribute): Delete.
13074 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
13075 handling.
13076 (call followed by jump define_peephole's): Delete.
13077 (exception_receiver): Likewise.
13078 (builtin_setjmp_receiver): Likewise.
13079 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
13080
13081 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
13082
13083 PR c/11658
13084 PR c/13994
13085 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
13086 on langhooks.h.
13087 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
13088 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
13089 Include langhooks.h. Replace c_common_truthvalue_conversion
13090 with the truthvalue_conversion language hook throughout.
13091 (expr_no_commas): Call default_conversion before save_expr
13092 for the first term of the production 'x ? : y'.
13093 * c-common.c (c_common_truthvalue_conversion): Remove
13094 obsolete block. Invoke recursively the hook instead
13095 of this function.
13096 * c-convert.c (convert): handle ERROR_MARK_NODE.
13097 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
13098 returned by the truthvalue_conversion language hook.
13099 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
13100 c_objc_common_truthvalue_conversion.
13101 * c-objc-common.c (c_objc_common_truthvalue_conversion):
13102 New function.
13103 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
13104 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
13105 c_objc_common_truthvalue_conversion.
13106
13107 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
13108
13109 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
13110 of gen_rtx.
13111 (LIBCALL_VALUE): Likewise.
13112 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
13113 gen_rtx_CC0 instead of gen_rtx.
13114 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
13115 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
13116 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
13117 gen_rtx.
13118 (m68hc11_emit_logical): Likewise.
13119
13120 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
13121
13122 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
13123 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
13124 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
13125 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
13126 config/mips/mips.md, config/mmix/mmix.c,
13127 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
13128 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
13129 config/rs6000/altivec.md, config/s390/s390.c,
13130 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
13131 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
13132 Use const0_rtx instead of GEN_INT (0). Do the same for other
13133 constants that are readily available.
13134
13135 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
13136
13137 * doloop.c, optabs.c, regmove.c, sched-deps.c,
13138 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
13139 instead of GEN_INT (0). Do the same for other constants that
13140 are readily available.
13141
13142 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
13143
13144 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
13145 gen_rtx.
13146 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
13147 instead of gen_rtx.
13148 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
13149 gen_rtx.
13150 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
13151 gen_rtx_ASHIFT instead of gen_rtx.
13152 (udivmodqi4): Likewise.
13153
13154 2004-02-02 Richard Henderson <rth@redhat.com>
13155
13156 PR target/13789
13157 * expr.c (store_expr): Use force_operand before emit_move_insn.
13158
13159 2004-02-02 Jeff Law <law@redhat.com>
13160 Roger Sayle <roger@eyesopen.com>
13161
13162 * tree.c (commutative_tree_code, associative_tree_code): New
13163 functions.
13164 (iterative_hash_expr): Use commutative_tree_code.
13165 * tree.h (commutative_tree_code, associative_tree_code): Declare.
13166 * fold-const.c (operand_equal_p): Use commutative_tree_code
13167 rather than inlining the commutativity check.
13168 (fold): Likewise.
13169
13170 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
13171
13172 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
13173 * config/frv/frv-protos.h: Remove the prototype for
13174 frv_function_arg_keep_as_reference.
13175 * config/frv/frv.c (frv_function_arg_keep_as_reference):
13176 Remove.
13177 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
13178 * config/stormy16/stormy16.h: Remove the commented-out
13179 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
13180
13181 2004-02-03 Alan Modra <amodra@bigpond.net.au>
13182
13183 PR target/13914
13184 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
13185 for retaddr_column.
13186
13187 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
13188
13189 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
13190 gen_rtx.
13191
13192 2004-02-02 Eric Christopher <echristo@redhat.com>
13193 Zack Weinberg <zack@codesourcery.com>
13194
13195 * c-opts.c (c_common_handle_option): Add -finput-charset.
13196 * c.opt: Ditto.
13197 * cppcharset.c (one_iso88591_to_utf8): Remove.
13198 (convert_iso88591_utf8): Ditto.
13199 (conversion_tab): Remove 8859-1 converter.
13200 (_cpp_input_to_utf8): Remove.
13201 (_cpp_init_iconv_buffer): Ditto.
13202 (_cpp_close_iconv_buffer): Ditto.
13203 (_cpp_convert_input): New function.
13204 (_cpp_default_encoding): Ditto.
13205 * cpphash.h: Add/remove prototypes for above.
13206 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
13207 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
13208 for narrow execution and input character sets.
13209 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
13210 * doc/cppopts.texi: Document -finput-charset.
13211
13212 2004-02-02 David Edelsohn <edelsohn@gnu.org>
13213
13214 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
13215 against FIRST_PSEUDO_REGISTER.
13216
13217 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
13218
13219 * doc/invoke.texi (SPARC options): Further improve.
13220
13221 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
13222
13223 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
13224 config/h8300/h8300.c, config/ip2k/ip2k.md,
13225 config/iq2000/iq2000.c, config/mips/mips.c,
13226 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
13227 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
13228 config/v850/v850.md: Fix indentation.
13229
13230 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
13231
13232 * config/sparc/sparc.c (function_arg_slotno): Align TImode
13233 arguments on a 16-byte boundary in the parameter array if ARCH64.
13234 Split handling of TFmode.
13235
13236 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
13237
13238 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
13239 Don't test CONSTANT_P (x).
13240 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
13241 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
13242 Fix misindentation.
13243
13244 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
13245
13246 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
13247
13248 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
13249
13250 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
13251 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
13252 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
13253 config/iq2000/iq2000.c, config/m32r/m32r.c,
13254 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
13255 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
13256 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
13257 config/stormy16/stormy16.c, config/v850/v850.md,
13258 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
13259
13260 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
13261
13262 * config/mcore/mcore.c (block_move_sequence): Replace
13263 gen_rtx_CONST_INT with GEN_INT.
13264
13265 2004-02-02 Jan Hubicka <jh@suse.cz>
13266
13267 * alias.c (record_set): Use hard_regno_nregs.
13268 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
13269 * builtins.c (apply_args_size): Likewise.
13270 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
13271 mark_set_regs, add_stored_regs, mark_referenced_regs,
13272 insert_restore, insert_save, insert_one_insn): Likewise.
13273 * cfgcleanup.c: Include regs.h
13274 (mark_effect, mentions_nonequal_regs): Likewise.
13275 * cfgrtl.c (mark_killed_regs): Likewise
13276 * combine.c (update_table_tick, record_value_for_reg,
13277 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
13278 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
13279 reg_bitfield_target_p, distribute_notes): Likewise.
13280 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
13281 exp_equiv_p, cse_insn): Likewise.
13282 * cselib.c (cselib_lookup): Likewise.
13283 (cselib_invalidate_regno, cselib_record_set): Likewise.
13284 * df.c (df_ref_record): Likewise.
13285 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
13286 Likewise.
13287 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
13288 count_or_remove_death_notes_bb): Likewise.
13289 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
13290 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
13291 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
13292 * integrate.c (mark_stores): Likewise.
13293 * jump.c (delete_prior_computation): Likewise.
13294 * lcm.c (reg_dies, reg_becomes_live): Likewise.
13295 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
13296 * loop.c (LOOP_REGNO_NREGS): Likewise.
13297 * postreload.c (reload_combine, reload_combine_note_store,
13298 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
13299 * ra-colorize.c (combine, color_usable_p, get_free_reg,
13300 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
13301 try_recolor_web, insert_coalesced_conflicts, check_colors,
13302 break_precolored_alias): Likewise.
13303 * ra-debug.c: Include regs.h
13304 (ra_print_rtx_object): Likewise.
13305 * ra-rewrite (choose_spill_colors): Likewise.
13306 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
13307 * ra.c (init_ra): Likewise.
13308 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
13309 peep2_find_free_register): Likewise.
13310 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
13311 * regclass.c (hard_regno_nregs): New array.
13312 (init_reg_modes_once): Initialize it.
13313 (choose_hard_reg_mode): Use it.
13314 (record_reg_classes): Likewise.
13315 * regmove.c (mark_flags_life_zones): Likewise.
13316 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
13317 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
13318 copy_value, maybe_mode_change, find_oldest_value_reg,
13319 copyprop_hardreg_forward_1):
13320 * regs.h (hard_regno_nregs): Declare.
13321 * realod.c (reload_inner_reg_of_subreg): Use it.
13322 (push_reload, combine_reloads, find_dummy_reload,
13323 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
13324 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
13325 reload_adjust_reg_for_mode): Likewise.
13326 * reload1.c (compute_use_by_pseudos, count_pseudo,
13327 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
13328 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
13329 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
13330 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
13331 delete_output_reload): Likewise.
13332 * resource.c (update_live_status, mark_referenced_resources,
13333 mark_set_resources, mark_target_live_regs): Likewise.
13334 * rtlanal.c: Include regs.h
13335 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
13336 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
13337 subreg_regno_offset, subreg_offset_representable_p,
13338 hoist_test_store): Likewise.
13339 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
13340 * sched-rgn.c (check_live_1, update_live_1): Likewise.
13341 * stmt.c: Include regs.h
13342 (decl_conflicts_with_clobbers_p): Likewise.
13343 * varasm.c (make_decl_rtl): Likewise.
13344 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
13345
13346 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
13347
13348 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
13349 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
13350 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
13351 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
13352 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
13353 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
13354 config/iq2000/iq2000.h, config/m32r/m32r.c,
13355 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
13356 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
13357 config/mcore/mcore.c, config/mcore/mcore.h,
13358 config/mcore/mcore.md, config/mips/mips.c,
13359 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
13360 config/rs6000/rs6000.c, config/s390/s390.c,
13361 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
13362 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
13363 "gen_rtx (FOO, " with "gen_rtx_FOO (".
13364
13365 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
13366
13367 * config/h8300/h8300.md (two peephole2's): New.
13368
13369 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
13370
13371 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
13372 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
13373 (ASM_CPU_SPEC): Likewise
13374 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
13375 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
13376
13377 2004-02-01 Roger Sayle <roger@eyesopen.com>
13378
13379 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
13380 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
13381 (expand_builtin): Always call expand_builtin_pow.
13382
13383 2004-02-01 Roger Sayle <roger@eyesopen.com>
13384
13385 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
13386 BUILT_IN_SIGNBITL): New GCC builtins.
13387 * builtins.c (expand_builtin_signbit): New function to RTL expand
13388 calls to signbit, signbitf and signbitl as inline intrinsics.
13389 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
13390 (fold_builtin_signbit): New function to perform constant folding
13391 of signbit, signbitf and signbitl.
13392 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
13393
13394 * doc/extend.texi: Document new signbit{,f,l} builtins.
13395
13396 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
13397
13398 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
13399
13400 2004-02-01 Chris Demetriou <cgd@broadcom.com>
13401
13402 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
13403 "mips_const_double_ok" and "simple_memory_operand", which were
13404 removed from the MIPS port with the mips-3_4-rewrite branch merge.
13405 * config/mips/mips.c (mips16_lay_out_constants): Update comment
13406 for removal of simple_memory_operand.
13407
13408 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
13409
13410 * config/c4x/c4x.md: Use GEN_INT instead of
13411 gen_rtx (CONST_INT, ...).
13412
13413 2004-01-31 Richard Henderson <rth@redhat.com>
13414
13415 * varasm.c (output_constant_pool): Don't zap the pool.
13416
13417 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
13418
13419 * genrecog.c (decision_type): Add DT_const_int.
13420 (write_cond) [DT_const_int]: Print a comparison against small
13421 constant.
13422 (write_node): Simplify comparisons against small constants
13423 before printing tests.
13424
13425 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
13426
13427 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
13428 instead of gen_rtx_CONST_INT.
13429
13430 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
13431
13432 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
13433 instead of gen_rtx_CONST_INT.
13434
13435 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
13436
13437 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
13438 hook_bool_CUMULATIVE_ARGS_false.
13439 * targhooks.c (default_strict_argument_naming): Rename to
13440 hook_bool_CUMULATIVE_ARGS_false.
13441 * targhooks.h: Update the prototype for
13442 default_strict_argument_naming.
13443
13444 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
13445
13446 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
13447 * config/sh/sh.h: Likewise.
13448 * config/sh/sh.md: Likewise.
13449
13450 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
13451
13452 * doc/invoke.texi (SPARC options): Restructure and update.
13453
13454 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
13455
13456 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
13457 STRICT_ARGUMENT_NAMING): Poison.
13458 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
13459 hook_bool_tree_false.
13460 * targhooks.c (default_promote_function_args): Remove.
13461 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
13462 Don't check incoming.
13463 (default_strict_argument_naming): Don't use
13464 STRICT_ARGUMENT_NAMING.
13465 * targhooks.h: Remove the prototype for
13466 default_promote_function_args.
13467
13468 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
13469
13470 * config/i386/i386-protos.h: Remove the prototype for
13471 ix86_setup_incoming_varargs.
13472 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
13473 (ix86_setup_incoming_varargs): Make it static.
13474 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
13475
13476 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
13477
13478 * alloc-pool.c: Fix comment typos.
13479 * builtin-types.def: Likewise.
13480 * builtins.def: Likewise.
13481 * c-pretty-print.c: Likewise.
13482 * df.h: Likewise.
13483 * reload1.c: Likewise.
13484
13485 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
13486
13487 * doc/invoke.texi: Follow spelling conventions.
13488 * doc/tm.texi: Likewise.
13489
13490 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
13491
13492 * doc/install.texi: Fix typos.
13493 * doc/invoke.texi: Likewise.
13494
13495 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
13496
13497 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
13498 registers as pointers.
13499 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
13500
13501 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
13502
13503 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
13504 and restore it to gen_lowpart_general on exit.
13505 (gen_lowpart_for_combine): Adjust all callers to go through
13506 gen_lowpart.
13507 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
13508 and restore it to gen_lowpart_general on exit.
13509 (gen_lowpart_if_possible): Adjust all callers to go through
13510 gen_lowpart.
13511 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
13512 (gen_lowpart): Declare as pointer to function, initialized to
13513 gen_lowpart_general.
13514 * rtl.h (gen_lowpart): Declare as pointer to function.
13515
13516 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
13517
13518 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
13519 * calls.c: Likewise.
13520 * emit-rtl.c: Likewise.
13521 * function.c: Likewise.
13522 * reload1.c: Likewise.
13523 * config/i386/cygming.h: Likewise.
13524 * config/i386/i386.c: Likewise.
13525 * config/i386/winnt.c: Likewise.
13526
13527 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
13528
13529 PR bootstrap/9249
13530 * doc/install.texi: document --enable-__cxa_atexit option.
13531 * configure.ac: Disable __cxa_atexit if not supported.
13532 * configure: Regenerate.
13533
13534 2003-01-30 Daniel Berlin <dberlin@dberlin.org>
13535
13536 * ggc-zone.c (ggc_free): New function.
13537
13538 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
13539
13540 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
13541 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
13542 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
13543 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
13544 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
13545 config/alpha/alpha.c, config/alpha/alpha.h,
13546 config/alpha/alpha.md, config/alpha/unicosmk.h,
13547 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
13548 config/c4x/c4x-protos.h, config/c4x/c4x.md,
13549 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
13550 config/frv/frvend.c, config/i386/cygming.h,
13551 config/i386/djgpp.h, config/i386/emmintrin.h,
13552 config/i386/gthr-win32.c, config/i386/i386-interix.h,
13553 config/i386/i386-protos.h, config/i386/openbsd.h,
13554 config/i386/winnt.c, config/i386/xm-mingw32.h,
13555 config/i386/xmmintrin.h, config/ia64/ia64.md,
13556 config/iq2000/iq2000.md, config/m32r/m32r.md,
13557 config/m68k/m68k.md, config/mcore/mcore-elf.h,
13558 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
13559 config/mips/iris5gas.h, config/mips/iris6.h,
13560 config/mips/iris6gas.h, config/mips/linux.h,
13561 config/mips/mips.md, config/mips/netbsd.h,
13562 config/mips/openbsd.h, config/mips/windiss.h,
13563 config/pa/fptr.c, config/rs6000/aix.h,
13564 config/rs6000/altivec.h, config/rs6000/darwin.h,
13565 config/rs6000/xcoff.h, config/s390/s390-protos.h,
13566 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
13567 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
13568 config/sparc/sol2.h: Update copyright.
13569
13570 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
13571
13572 * Makefile.in (abs_docdir, abs_srcdir): Define.
13573 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
13574
13575 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
13576
13577 * genconfig.c (main): Have CC0_P check its operand even on a
13578 target without cc0.
13579
13580 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
13581
13582 * config/alpha/alpha.c: Remove mentions of deprecates macros
13583 in comments, remove some target-independent comments about target
13584 macros, and/or add minimal function comments for target hook
13585 implementations.
13586 * config/avr/avr.c: Likewise.
13587 * config/ia64/ia64.h: Likewise.
13588 * config/ip2k/ip2k.c: Likewise.
13589 * config/iq2000/iq2000.c: Likewise.
13590 * config/m32r/m32r.h: Likewise.
13591 * config/m68hc11/m68hc11.c: Likewise.
13592 * config/mcore/mcore.c: Likewise.
13593 * config/mmix/mmix.c: Likewise.
13594 * config/mn10300/mn10300.c: Likewise.
13595 * config/pa/pa.c: Likewise.
13596 * config/pdp11/pdp11.c: Likewise.
13597 * config/rs6000/rs6000.h: Likewise.
13598 * config/sh/sh.c: Likewise.
13599 * config/sh/sh.h: Likewise.
13600 * config/sparc/sparc.c: Likewise.
13601 * config/sparc/sparc.h: Likewise.
13602 * config/stormy16/stormy16.c: Likewise.
13603 * config/xtensa/xtensa.c: Likewise.
13604
13605 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13606
13607 PR optimization/12147
13608 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
13609 RELOAD_FOR_OPADDR_ADDR.
13610 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
13611 might be reused as RELOAD_FOR_OPADDR_ADDR register.
13612
13613 2004-01-30 Jan Hubicka <jh@suse.cz>
13614
13615 * reload.c (get_secondary_mem): Fix updating of
13616 secondary_memlocs_elim_used.
13617
13618 2004-01-30 Richard Henderson <rth@redhat.com>
13619
13620 * varasm.c (struct rtx_const, struct pool_constant): Remove.
13621 (MAX_RTX_HASH_TABLE): Remove.
13622 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
13623 (first_pool, last_pool, pool_offset): Remove.
13624 (struct rtx_constant_pool): Split out from ...
13625 (struct varasm_status): ... here. Reference one via pointer.
13626 (struct constant_descriptor_rtx): Merge struct pool_constant.
13627 (SYMHASH): Remove.
13628 (decode_rtx_const): Remove.
13629 (const_hash_rtx, compare_constant_rtx): Remove.
13630 (record_constant_rtx): Remove.
13631 (const_desc_rtx_hash, const_desc_rtx_eq): New.
13632 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
13633 (const_rtx_hash_1, const_rtx_hash): New.
13634 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
13635 (simplify_subtraction): Use simplify_rtx.
13636 (force_const_mem): Rewrite to use new data structures.
13637 (find_pool_constant): Likewise.
13638 (get_pool_constant, get_pool_constant_mark,
13639 get_pool_constant_for_function, get_pool_mode,
13640 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
13641 (output_constant_pool_2): Split out from output_constant_pool.
13642 (output_constant_pool_1): Likewise. Use new pool datastructures.
13643 (output_constant_pool): Zap entire pool datastructure.
13644 (mark_constant): Use new pool datastructures.
13645 (mark_constants): Use for_each_rtx.
13646 (mark_constant_pool): Use new pool datastructures.
13647
13648 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
13649
13650 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
13651 Copy operands[1] to pseudo for simplify_gen_subreg.
13652
13653 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
13654
13655 * gcse.c (bypass_block): Fix a typo in the previous check-in
13656 to the file.
13657
13658 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
13659
13660 * toplev.c: Include alloc-pool.h.
13661 * Makefile.in (toplev.c): Update dependencies.
13662
13663 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13664
13665 * combine.c (simplify_shift_const, case XOR): Be careful when
13666 commuting XOR with ASHIFTRT.
13667
13668 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
13669 Eric Botcazou <ebotcazou@libertysurf.fr>
13670
13671 * config/sparc/sparc-protos.h: Remove the prototype for
13672 sparc_builtin_saveregs.
13673 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
13674 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
13675 (TARGET_PROMOTE_PROTOTYPES): Likewise.
13676 (TARGET_STRUCT_VALUE_RTX): Likewise.
13677 (TARGET_RETURN_IN_MEMORY): Likewise.
13678 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
13679 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
13680 (sparc_builtin_saveregs): Make it static.
13681 (sparc_promote_prototypes): New.
13682 (sparc_struct_value_rtx): Likewise.
13683 (sparc_return_in_memory): Likewise.
13684 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
13685 (PROMOTE_FUNCTION_RETURN): Likewise.
13686 (RETURN_IN_MEMORY): Likewise.
13687 (STRUCT_VALUE): Likewise.
13688 (STRUCT_VALUE_INCOMING): Likewise.
13689 (EXPAND_BUILTIN_SAVEREGS): Likewise.
13690 (STRICT_ARGUMENT_NAMING): Likewise.
13691 (PROMOTE_PROTOTYPES): Likewise.
13692
13693 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
13694
13695 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
13696
13697 PR c/12818
13698 * varasm.c (const_hash_1) <STRING_CST>: Use the
13699 address to compute the hash value if flag_writable_strings.
13700 (compare_constant) <STRING_CST>: Compare the addresses
13701 if flag_writable_strings.
13702 (build_constant_desc): Do not copy the expression for a
13703 STRING_CST if flag_writable_strings.
13704
13705 2004-01-30 Jan Hubicka <jh@suse.cz>
13706
13707 * alloc-pool.c: Include hashtab.h
13708 (alloc_pool_descriptor): New structure
13709 (alloc_pool_hash): New global variable.
13710 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
13711 (create_alloc_pool): Update statistics.
13712 (free_alloc_pool): Likewise.
13713 (pool_alloc): Likewise.
13714 (output_info): New structure
13715 (print_statistics, dump_alloc_pool_statistics): New function.
13716 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
13717 (dump_alloc_pool_statistics): Declare.
13718 * toplev.c (finalize): Dump statistics.
13719
13720 * reload.c (secondary_memlocs_elim_used): New static variable.
13721 (get_secondary_mem): Update it.
13722 (find_reloads): Use it.
13723
13724 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
13725
13726 * toplev.c: Fix broken checkin of 2003-12-30, again.
13727
13728 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13729
13730 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
13731 s390*-*-* targets by specifying a 'nop' insn.
13732 * configure: Regenerate.
13733
13734 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
13735
13736 PR target/11475
13737 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
13738
13739 2004-01-29 Jakub Jelinek <jakub@redhat.com>
13740
13741 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
13742 of addr when creating MEM copy.
13743
13744 2004-01-29 Devang Patel <dpatel@apple.com>
13745
13746 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
13747
13748 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
13749
13750 PR inline-asm/6162
13751 * reload.c (find_reloads): Only support one pair of commutative
13752 operands.
13753
13754 2004-01-29 Roger Sayle <roger@eyesopen.com>
13755
13756 PR java/13824
13757 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
13758 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
13759 recursion.
13760
13761 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
13762
13763 * config/frv/frv.c: Don't mention deprecated macros in
13764 comments. Remove some target-independent comments about
13765 target macros.
13766 * config/frv/frv.h: Likewise.
13767
13768 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13769
13770 * cfghooks.c (split_block): Set probability and count of the
13771 new edge.
13772
13773 2005-01-29 Josef Zlomek <zlomekj@suse.cz>
13774
13775 * dwarf2out.c (struct die_struct): Added field decl_id.
13776 (decl_die_table): Changed to hash table.
13777 (decl_die_table_allocated): Deleted.
13778 (decl_die_table_in_use): Deleted.
13779 (DECL_DIE_TABLE_INCREMENT): Deleted.
13780 (decl_die_table_hash): New function.
13781 (decl_die_table_eq): New function.
13782 (lookup_decl_die): Lookup in a hash table.
13783 (equate_decl_number_to_die): Insert into a hash table.
13784 (dwarf2out_init): Init hash table decl_die_table.
13785
13786 2004-01-29 Jakub Jelinek <jakub@redhat.com>
13787
13788 PR optimization/13424
13789 * expr.c (store_constructor): Revert 2003-12-03 change.
13790
13791 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
13792 expected before returning early. Avoid sharing RTL if they
13793 need to be changed.
13794
13795 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
13796 handling so that memory attributes are preserved. Don't call
13797 ix86_set_move_mem_attrs.
13798 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
13799 (ix86_expand_clrstr): Rename src argument to
13800 dst. Rework rep_stos and strset handling so that memory attributes
13801 are preserved.
13802 (ix86_expand_strlen): Pass src argument to
13803 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
13804 memory attributes are preserved.
13805 (ix86_expand_strlensi_unroll_1): Add src argument. Use
13806 change_address instead of gen_rtx_MEM.
13807 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
13808 expanders.
13809 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
13810 strmovqi, strmovqi_rex64): Remove.
13811 (rep_mov*, strmov*): Prefix insn names with *.
13812 (strset, strset_singleop, rep_stos): New expanders.
13813 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
13814 strsetqi, strsetqi_rex64): Remove.
13815 (rep_stos*, strset*): Prefix insn names with *.
13816 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
13817 to SImode.
13818 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
13819 are preserved.
13820 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
13821 Prefix insn names with *.
13822 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
13823 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
13824 (strlenqi_1): New expander.
13825 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
13826
13827 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13828
13829 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
13830 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
13831 verify_flow_info): Declaration removed.
13832 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
13833 (debug_bb, debug_bb_n): Add argument to dump_bb call.
13834 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
13835 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
13836 instead of delete_block.
13837 * cfghooks.c: Include timevar.h and toplev.h.
13838 (cfg_hooks): Define here.
13839 (verify_flow_info, dump_bb): Moved from cfg.c.
13840 (redirect_edge_and_branch, redirect_edge_and_branch_force,
13841 split_block, split_block_after_labels, move_block_after,
13842 delete_basic_block, split_edge, create_basic_block,
13843 create_empty_bb, can_merge_blocks_p, merge_blocks,
13844 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
13845 New functions.
13846 * cfghooks.h (struct cfg_hooks): Added fields name,
13847 make_forwarder_block, tidy_fallthru_edge and
13848 move_block_after. Changed type of verify_flow_info, dump_bb,
13849 split_block fields. Renamed cfgh_split_edge and delete_block
13850 fields.
13851 (redirect_edge_and_branch, redirect_edge_and_branch_force,
13852 split_block, delete_block, split_edge, create_basic_block,
13853 can_merge_blocks_p, merge_blocks): Macros removed.
13854 (cfg_hooks): Do not export.
13855 (verify_flow_info, dump_bb, redirect_edge_and_branch,
13856 redirect_edge_and_branch_force, split_block, split_block_after_labels,
13857 move_block_after, delete_basic_block, split_edge, create_basic_block,
13858 create_empty_bb, can_merge_blocks_p, merge_blocks,
13859 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
13860 Declare.
13861 (cfg_layout_rtl_cfg_hooks): Declare.
13862 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
13863 New functions.
13864 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
13865 (redirect_edge_with_latch_update): Removed.
13866 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
13867 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
13868 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
13869 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
13870 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
13871 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
13872 cfghooks.c.
13873 (rtl_create_basic_block): Coding style fix.
13874 (rtl_tidy_fallthru_edge, rtl_move_block_after,
13875 rtl_make_forwarder_block): New functions.
13876 (update_cfg_after_block_merging): Removed.
13877 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
13878 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
13879 to dump_bb.
13880 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
13881 find_if_case_2): Don't update dominators.
13882 * timevar.def (TV_CFG_VERIFY): New.
13883 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
13884 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
13885 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
13886 (remove_bbs): Don't call remove_bbs.
13887 (create_preheader): Use make_forwarder_block.
13888 (mfb_keep_just, mfb_update_loops): New static functions.
13889
13890 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
13891
13892 * config/avr/avr.h: Remove target-independent comments about
13893 target macros.
13894
13895 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
13896
13897 * timevar.c (timevar_print): Mention when checking is enabled.
13898
13899 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
13900
13901 * c-lex.c (c_lex): Rename to...
13902 (c_lex_with_flags): Add new parameter to get CPP flags.
13903 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
13904 * c-pragma.h (c_lex_with_flags): Declare.
13905
13906 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
13907
13908 * config/mcore/mcore.c (mcore_external_libcall): Add a
13909 comment.
13910 (mcore_return_in_memory): Likewise.
13911
13912 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
13913
13914 * config/mcore/mcore-protos.h: Remove the prototype for
13915 mcore_setup_incoming_varargs.
13916 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
13917 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
13918 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
13919 (TARGET_PROMOTE_PROTOTYPES): Likewise.
13920 (TARGET_STRUCT_VALUE_RTX): Likewise.
13921 (TARGET_RETURN_IN_MEMORY): Likewise.
13922 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
13923 (mcore_setup_incoming_varargs): Make it static. Receive the
13924 first argument by reference. Add argument second_time.
13925 (mcore_external_libcall): New.
13926 (mcore_return_in_memory): Likewise.
13927 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
13928 (PROMOTE_FUNCTION_RETURN): Likewise.
13929 (STRUCT_VALUE): Likewise.
13930 (RETURN_IN_MEMORY): Likewise.
13931 (SETUP_INCOMING_VARARGS): Likewise.
13932 (PROMOTE_PROTOTYPES): Likewise.
13933 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
13934
13935 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
13936
13937 * config/m32r/m32r-protos.h: Remove the prototype for
13938 m32r_setup_incoming_varargs.
13939 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
13940 (TARGET_STRUCT_VALUE_RTX): Likewise.
13941 (TARGET_RETURN_IN_MEMORY): Likewise.
13942 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
13943 (m32r_return_in_memory): New.
13944 (m32r_setup_incoming_varargs): Make it static.
13945 * config/m32r/m32r.h: Remove #undef of
13946 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
13947 definitions of PROMOTE_FUNCTION_ARGS and
13948 PROMOTE_FUNCTION_RETURN.
13949 (PROMOTE_PROTOTYPES): Remove.
13950 (RETURN_IN_MEMORY): Likewise.
13951 (STRUCT_VALUE): Likewise.
13952
13953 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
13954
13955 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
13956 (TARGET_STRUCT_VALUE_RTX): Likewise.
13957 (m68k_struct_value_rtx): Likewise.
13958 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
13959 STRUCT_VALUE_REGNUM.
13960 (PROMOTE_PROTOTYPES): Remove.
13961 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
13962 STRUCT_VALUE_REGNUM.
13963 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
13964 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
13965
13966 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
13967
13968 * config/stormy16/stormy16.c
13969 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
13970 TARGET_BUILD_BUILTIN_VA_LIST.
13971
13972 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
13973
13974 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
13975 (TARGET_STRUCT_VALUE_RTX): Likewise.
13976 (TARGET_RETURN_IN_MEMORY): Likewise.
13977 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
13978 (v850_return_in_memory): Likewise.
13979 (v850_setup_incoming_varargs): Likewise.
13980 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
13981 (SETUP_INCOMING_VARARGS): Likewise.
13982 (RETURN_IN_MEMORY): Likewise.
13983 (STRUCT_VALUE): Likewise.
13984
13985 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
13986
13987 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
13988 (fr30_setup_incoming_varargs): Don't use
13989 STRICT_ARGUMENT_NAMING.
13990 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
13991 (STRICT_ARGUMENT_NAMING): Likewise.
13992
13993 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
13994
13995 * config/frv/frv-protos.h: Remove the prototype for
13996 frv_expand_builtin_saveregs.
13997 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
13998 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
13999 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
14000 STRUCT_VALUE_REGNUM.
14001 (frv_expand_builtin_saveregs): Make it static.
14002 (frv_struct_value_rtx): New.
14003 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
14004
14005 2004-01-29 Jan Hubicka <jh@suse.cz>
14006
14007 PR c++/12850
14008 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
14009 initial pointers.
14010 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
14011 for functions that will be only inlined.
14012 (cgraph_mark_function_to_output): Likewise.
14013 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
14014 do not clear function body.
14015 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
14016 (tree_rest_of_compilation): Reorganize the logic releasing function
14017 body to use callgraph datastructure.
14018
14019 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14020
14021 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
14022 to register_operand.
14023
14024 2004-01-28 Zack Weinberg <zack@codesourcery.com>
14025
14026 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
14027 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
14028 match_operand expressions so that all match_dups appear
14029 lexically after their corresponding match_operands.
14030
14031 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14032
14033 * config/h8300/h8300.c (WORD_REG_USED): Use
14034 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
14035 (compute_saved_regs): Likewise.
14036 (h8300_expand_prologue): Likewise. Allocate locals after
14037 saving registers.
14038 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
14039 of FRAME_POINTER_REGNUM. Deallocate locals before saving
14040 registers.
14041 (h8300_initial_elimination_offset): Adjust for the new frame
14042 layout, which swaps flips the order of locals and saved
14043 registers.
14044 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
14045 (HARD_FRAME_POINTER_REGNUM): New.
14046 (ELIMINABLE_REGS): Add an elimination rule from
14047 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
14048 (REGISTER_NAMES): Add fp.
14049 * config/h8300/h8300.md (FP_REG): Change to 11.
14050 (HFP_REG): New.
14051
14052 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14053
14054 * genrecog.c (write_node): Remove a useless local variable.
14055
14056 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
14057
14058 * Makefile.in (options.c options.h): Use stamp file s-options to
14059 avoid unnecessary rebuilds.
14060 (options.o): New target listing dependencies.
14061 (gtyp-gen.h): Use stamp file s-gtyp-gen.
14062 (STAGESTUFF): Add s-gtyp-gen.
14063
14064 2004-01-28 Richard Henderson <rth@redhat.com>
14065
14066 * ggc.h (ggc_free): Declare.
14067 * ggc-common.c (ggc_realloc): Use it.
14068 * ggc-page.c: Remove lots of inline markers.
14069 (globals): Add free_object_list.
14070 (ggc_alloc): Tidy.
14071 (ggc_free, validate_free_objects): New.
14072 (poison_pages): Provide default.
14073 (ggc_collect): Call validate_free_objects; emit markers to
14074 the debug file.
14075
14076 2004-01-28 Zack Weinberg <zack@codesourcery.com>
14077 Jim Wilson <wilson@specifixinc.com>
14078
14079 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
14080 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
14081 scratch pointer.
14082 (ia64_secondary_reload_class): Delete case GR_REGS.
14083 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
14084 Do not allocate a scratch register.
14085 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
14086
14087 2004-01-28 Jan Hubicka <jh@suse.cz>
14088
14089 * gcse.c (bypass_block): Prevent edges to be unified when we are
14090 about to emit compenstation code.
14091
14092 2004-01-28 Nick Clifton <nickc@redhat.com>
14093
14094 * config/arm/arm.c (arm_expand_builtin): Force second argument of
14095 the setcwx insn into a register.
14096
14097 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
14098
14099 * config/fp-bit.c (pack_d): When using paired doubles to implement
14100 a long double, round the high part separately.
14101 (unpack_d): Fix the case in which the high part is a power of two
14102 and the low part is a nonzero value of the opposite sign.
14103
14104 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14105
14106 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
14107 (TARGET_STRUCT_VALUE_RTX): Likewise.
14108 (c4x_external_libcall): Likewise.
14109 (c4x_struct_value_rtx): Likewise.
14110 * config/c4x/c4x.h: Remove.
14111 (STRUCT_VALUE_REGNUM): Likewise.
14112 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
14113
14114 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14115
14116 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
14117 (TARGET_STRUCT_VALUE_RTX): Likewise.
14118 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
14119 (STRUCT_VALUE): Likewise.
14120 (PROMOTE_PROTOTYPES): Likewise.
14121
14122 2004-01-27 Roger Sayle <roger@eyesopen.com>
14123
14124 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
14125 CONST_INT before using INTVAL.
14126
14127 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
14128
14129 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
14130 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
14131 frame if !TARGET_BACKCHAIN.
14132 * config/s390/s390.md ("allocate_stack"): Use pattern only if
14133 TARGET_BACKCHAIN.
14134 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
14135
14136 2004-01-27 Zack Weinberg <zack@codesourcery.com>
14137
14138 * ia64.c (ia64_function_arg): When placing HFAs in integer
14139 registers, do not special case the mode used for complex
14140 types. Do not advance int_regs until the current register
14141 is full.
14142
14143 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
14144
14145 PR target/7297
14146 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
14147
14148 2004-01-27 David Edelsohn <edelsohn@gnu.org>
14149
14150 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
14151 slow, unaligned loads and stores while debugging. Fix formatting.
14152
14153 2004-01-27 David Edelsohn <edelsohn@gnu.org>
14154
14155 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
14156 of computing wmode.
14157 (restore_stack_nonlocal): Same.
14158
14159 2004-01-27 Devang Patel <dpatel@apple.com>
14160
14161 * Makefile.in (dwarf2out.o): Depend on input.h
14162 * dbxout.c (dbx_debug_hooks): Add new empty hook for
14163 imported_module_or_decl.
14164 (xcoff_debug_hooks): Same.
14165 * sdbout.c (sdb_debug_hooks): Same.
14166 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
14167 * debug.c (do_nothing_debug_hooks): Same.
14168 (debug_nothing_tree_tree): New function.
14169 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
14170 * dwarf2out.c: Include input.h.
14171 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
14172 (remove_child_TAG): New function.
14173 (dwarf_tag_name): Handle DW_TAG_imported_module.
14174 (gen_subprogram_die): Equate decl number to declaration die. Do not
14175 remove all children dies while reusing declaration die for definition.
14176 Instead, selectively remove only formal parameters.
14177 (gen_variable_die): Equate variable decl to declaration die.
14178 (gen_field_die): Equate field decl to line number.
14179 (force_namespace_die): Replace it with ...
14180 (force_decl_die): ... this.
14181 (force_type_die): New function.
14182 (setup_namespace_context): Replace use of force_namespace_die() with
14183 force_decl_die().
14184 (gen_namespace_die): Same.
14185 (dwarf2out_imported_module_or_decl): New function.
14186
14187 2004-01-27 Bob Wilson <bob.wilson@acm.org>
14188
14189 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
14190 on CQImode and CHImode incoming arguments in register a7.
14191 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
14192 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
14193 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
14194 xtensa_copy_incoming_a7 before reload.
14195
14196 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
14197
14198 * coverage.c (get_coverage_counts): Give a different message
14199 if flag_guess_branch_prob is set.
14200 * predict.c (counts_to_freqs): Return an int.
14201 (estimate_bb_frequencies): If counts_to_freqs returns zero,
14202 calculate estimates.
14203
14204 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
14205
14206 * config/iq2000/iq2000-protos.h: Remove the prototype for
14207 iq2000_setup_incoming_varargs.
14208 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
14209 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
14210 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14211 (TARGET_STRUCT_VALUE_RTX): Likewise.
14212 (TARGET_RETURN_IN_MEMORY): Likewise.
14213 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14214 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
14215 (iq2000_return_in_memory): Likewise.
14216 (iq2000_setup_incoming_varargs): Make it static. Receive the
14217 first argument by reference.
14218 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
14219 (PROMOTE_FUNCTION_RETURN): Likewise.
14220 (PROMOTE_PROTOTYPES): Likewise.
14221 (RETURN_IN_MEMORY): Likewise.
14222 (STRUCT_VALUE): Likewise.
14223 (SETUP_INCOMING_VARARGS): Likewise.
14224 (STRICT_ARGUMENT_NAMING): Likewise.
14225
14226 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
14227
14228 * fixinc/fixinc.c (test_test): Initialize res.
14229 (start_flexer): Initialize pz_cmd_save.
14230
14231 2004-01-27 Zack Weinberg <zack@codesourcery.com>
14232
14233 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
14234 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
14235
14236 2004-01-27 Zack Weinberg <zack@codesourcery.com>
14237
14238 PR 7198
14239 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
14240 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
14241 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
14242 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
14243 Possibly rename pattern for consistency.
14244 Remove ??? comments suggesting that this be done.
14245 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
14246 New patterns.
14247 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
14248 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
14249 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
14250 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
14251 Update to match.
14252
14253 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
14254
14255 * config/arm/arm.c (output_return_instruction): Only restore IP
14256 into SP if frame_pointer_needed.
14257
14258 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
14259
14260 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
14261 for SCmode and DCmode if ARCH32.
14262 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
14263 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
14264 if ARCH32.
14265 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
14266 if ARCH32.
14267 (BASE_OUTGOING_VALUE_REG): Likewise.
14268
14269 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
14270
14271 PR target/10904
14272 PR target/13058
14273 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
14274 Forbid mode changes from SImode for lower FP regs if ARCH64.
14275
14276 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
14277
14278 * Makefile.in (bt-load.o): Depend on except.h.
14279 * bt-load.c (except.h): #include.
14280 (compute_defs_uses_and_gen): If insn at end of BB can throw
14281 within this function, consider registers used by it unavailable for
14282 btr migration.
14283 (move_btr_def): If insn at end of BB can throw, insert before rather
14284 than after.
14285
14286 * flags.h (flag_btr_bb_exclusive): Declare.
14287 * toplev.c (flag_btr_bb_exclusive): New variable.
14288 (f_options): Add btr-bb-exclusive.
14289 * bt-load.c (augment_live_range): Restore old behaviour if
14290 flag_btr_bb_exclusive is set.
14291 * common.opt: Add entry for -fbtr-bb-exclusive.
14292 * opts.c (common_handle_options): Same.
14293 * doc/invoke.texi: Document -fbtr-bb-exclusive.
14294
14295 * bt-load.c (btrs_live_at_end): New variable.
14296 (compute_defs_uses_and_gen): Compute its pointed-to array.
14297 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
14298 (augment_live_range): When augmenting with a new dominator,
14299 use only its btrs_live_at_end set, but also add in the full set
14300 of the old dominator.
14301 (btr_def_live_range): Use btrs_live_at_end.
14302 (move_btr_def): Set other_btr_uses_before_def, and move new set
14303 to the end of the basic block, if appropriate.
14304 (migrate_btr_defs): Allocate and free btrs_live_at_end.
14305
14306 * bt-load.c (basic_block_freq): Remove outdated comment.
14307
14308 2004-01-27 Alan Modra <amodra@bigpond.net.au>
14309
14310 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
14311 (PREDICATE_CODES): Remove duplicate.
14312 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
14313 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
14314 (MASK_PROFILE_KERNEL): Adjust define.
14315
14316 2004-01-27 Jakub Jelinek <jakub@redhat.com>
14317
14318 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
14319 of long string literals from 32 bytes to sizeof (void *) when !-Os
14320 and to 1 with -Os.
14321
14322 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
14323
14324 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
14325 constant addresses in the normal mode.
14326
14327 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14328
14329 * system.h (CHAR_BITFIELD): Delete.
14330 (BOOL_BITFIELD): New.
14331 * c-decl.c (c_scope): Use BOOL_BITFIELD.
14332 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
14333
14334 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
14335
14336 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
14337 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
14338 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14339 (TARGET_STRUCT_VALUE_RTX): Likewise.
14340 (TARGET_RETURN_IN_MEMORY): Likewise.
14341 (arc_return_in_memory): Likewise.
14342 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
14343 (PROMOTE_FUNCTION_RETURN): Likewise.
14344 (RETURN_IN_MEMORY): Likewise.
14345 (STRUCT_VALUE): Likewise.
14346
14347 2004-01-26 Richard Henderson <rth@redhat.com>
14348
14349 * c-parse.in (extension): Use itype.
14350 (SAVE_EXT_FLAGS): Don't allocate a tree.
14351 (RESTORE_EXT_FLAGS): Don't read a tree.
14352
14353 2004-01-26 Jan Hubicka <jh@suse.cz>
14354
14355 * cselib.c (discard_useless_values): Clear out value pointer pointing
14356 to datastructure to be recycled.
14357
14358 2004-01-25 Jan Hubicka <jh@suse.cz>
14359
14360 * genextract.c (main): Do not output the memset when not checking.
14361
14362 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
14363
14364 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
14365 switch statement instead of a chain of if statements.
14366
14367 2004-01-26 Jeff Law <law@redhat.com>
14368
14369 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
14370 acute accents for Petur Runolfsson's entry.
14371
14372 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
14373
14374 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
14375 (TARGET_RETURN_IN_MEMORY): Likewise.
14376 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
14377 (RETURN_IN_MEMORY): Likewise.
14378
14379 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
14380
14381 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
14382 unaligned load/store into smaller loads and stores.
14383
14384 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
14385
14386 * function.c (assign_parms): Do not assign
14387 long long argument to memory in prologue if
14388 is it loaded into register.
14389
14390 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
14391
14392 PR middle-end/13779
14393 * expr.c (emit_group_load): split constant
14394 correctly into register components of PARALLEL insn.
14395
14396 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
14397
14398 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
14399 Use adjust_address_nv directly with appropriate mode.
14400 (restore_stack_nonlocal): Ditto.
14401
14402 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
14403
14404 * config/xtensa/xtensa-protos.h: Remove the prototype for
14405 xtensa_builtin_saveregs.
14406 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
14407 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
14408 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14409 (TARGET_STRUCT_VALUE_RTX): Likewise.
14410 (TARGET_RETURN_IN_MEMORY): Likewise.
14411 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
14412 (xtensa_builtin_saveregs): Make it static.
14413 (xtensa_return_in_memory): New.
14414 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
14415 (PROMOTE_FUNCTION_RETURN): Likewise.
14416 (PROMOTE_PROTOTYPES): Likewise.
14417 (STRUCT_VALUE): Likewise.
14418 (RETURN_IN_MEMORY): Likewise.
14419 (EXPAND_BUILTIN_SAVEREGS): Likewise.
14420
14421 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
14422
14423 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
14424 (arm_setup_incoming_varargs): Likewise.
14425 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
14426
14427 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
14428
14429 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
14430 (cris_setup_incoming_varargs): Likewise.
14431 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
14432
14433 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
14434
14435 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
14436 (ns32k_struct_value_rtx): Likewise.
14437 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
14438 NS32K_STRUCT_VALUE_REGNUM.
14439
14440 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
14441
14442 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
14443 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14444 (TARGET_STRUCT_VALUE_RTX): Likewise.
14445 (arm_struct_value_rtx): Likewise.
14446 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
14447 (STRUCT_VALUE): Likewise.
14448 (STRUCT_VALUE_REGNUM): Likewise.
14449 (PROMOTE_PROTOTYPES): Likewise.
14450
14451 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
14452
14453 * config/ia64/ia64-protos.h: Remove the prototype for
14454 ia64_setup_incoming_varargs and ia64_return_in_memory.
14455 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
14456 (TARGET_RETURN_IN_MEMORY): Likewise.
14457 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14458 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
14459 (ia64_setup_incoming_varargs): Adjust the arguments to meet
14460 the requirement of TARGET_SETUP_INCOMING_VARARGS.
14461 (ia64_return_in_memory): Make it static. Change the return
14462 type to bool from int. Add an argument.
14463 (ia64_struct_value_rtx): New.
14464 * config/ia64/ia64.h: Remove commented-out definitions of
14465 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
14466 PROMOTE_PROTOTYPES.
14467 (RETURN_IN_MEMORY): Remove.
14468 (STRUCT_VALUE_REGNUM): Likewise.
14469 (STRICT_ARGUMENT_NAMING): Likewise.
14470
14471 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
14472
14473 PR target/13666
14474 * config/sparc/sparc.c (function_arg_union_value): New function.
14475 (function_arg): Use it to deal with unions.
14476 (function_value): Likewise. Define 'regbase' only for ARCH64.
14477 Replace a conditional statement by a simpler one.
14478
14479 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
14480
14481 * config/mips/mips.c (mips16_optimize_gp): Delete.
14482 (mips_reorg): Don't call it.
14483
14484 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14485
14486 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
14487 (floatunsqihf2): Remove operand 6.
14488 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
14489 fix patterns.
14490 (ldi_conditional, ldf_conditional): Validate operands.
14491
14492 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14493
14494 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
14495 (HAVE_GAS_HIDDEN): Undefine as interim measure.
14496
14497 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14498
14499 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
14500 memory references if TARGET_EXPOSE_LDP nonzero.
14501
14502 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14503
14504 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
14505
14506 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14507
14508 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
14509 invalid operand combinations.
14510
14511 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14512
14513 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
14514 c4x_legitimate_address_p. Fix post_modify check.
14515
14516 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
14517 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
14518
14519 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
14520
14521 * config/pa/pa-protos.h: Remove the prototype for
14522 hppa_builtin_saveregs. Add a prototype for
14523 pa_return_in_memory.
14524 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
14525 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14526 (TARGET_STRUCT_VALUE_RTX): Likewise.
14527 (TARGET_RETURN_IN_MEMORY): Likewise.
14528 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
14529 (pa_struct_value_rtx): Likewise.
14530 (pa_return_in_memory): Likewise.
14531 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
14532 PA_STRUCT_VALUE_REGNUM.
14533 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
14534 (EXPAND_BUILTIN_SAVEREGS): Remove.
14535 (PROMOTE_PROTOTYPES): Likewise.
14536 (PROMOTE_FUNCTION_RETURN): Likewise.
14537
14538 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
14539
14540 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
14541 (TARGET_STRUCT_VALUE_RTX): Likewise.
14542 (vax_struct_value_rtx): Likewise.
14543 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
14544 VAX_STRUCT_VALUE_REGNUM.
14545 (PROMOTE_PROTOTYPES): Remove.
14546
14547 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14548
14549 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
14550
14551 2003-04-25 Chris Demetriou <cgd@broadcom.com>
14552
14553 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
14554 and MIPS64 have HI/LO interlocks. Update comment.
14555
14556 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
14557
14558 * config/stormy16/stormy16-protos.h: Remove the prototype for
14559 xstormy16_setup_incoming_varargs.
14560 * config/stormy16/stormy16.c
14561 (xstormy16_setup_incoming_varargs): Remove.
14562 (xstormy16_return_in_memory): New.
14563 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
14564 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
14565 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14566 (TARGET_STRUCT_VALUE_RTX): Likewise.
14567 (TARGET_RETURN_IN_MEMORY): Likewise.
14568 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
14569 (PROMOTE_FUNCTION_RETURN): Likewise
14570 (PROMOTE_PROTOTYPES): Likewise
14571 (RETURN_IN_MEMORY): Likewise
14572 (STRUCT_VALUE): Likewise
14573 (SETUP_INCOMING_VARARGS): Likewise
14574
14575 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
14576
14577 * config/mips/mips.c (mips_offset_within_object_p): New function.
14578 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
14579 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
14580 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
14581
14582 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
14583
14584 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
14585 (PROMOTE_FUNCTION_RETURN): Likewise.
14586
14587 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
14588
14589 * config/mn10300/mn10300-protos.h: Remove the prototype for
14590 mn10300_builtin_saveregs.
14591 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
14592 (TARGET_STRUCT_VALUE_RTX): Likewise.
14593 (TARGET_RETURN_IN_MEMORY): Likewise.
14594 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
14595 (mn10300_return_in_memory): Likewise.
14596 (mn10300_builtin_saveregs): Make it static.
14597 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
14598 (RETURN_IN_MEMORY): Likewise.
14599 (STRUCT_VALUE): Likewise.
14600 (EXPAND_BUILTIN_SAVEREGS): Likewise.
14601
14602 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
14603
14604 PR bootstrap/13853
14605 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
14606
14607 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
14608
14609 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
14610 using ccr.
14611
14612 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
14613
14614 * config/i860/i860-protos.h: Remove the prototype for
14615 i860_saveregs.
14616 * config/i860/i860.c (i860_saveregs): Make it static.
14617 (i860_struct_value_rtx): New.
14618 (TARGET_STRUCT_VALUE_RTX): Likewise.
14619 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
14620 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
14621 I860_STRUCT_VALUE_REGNUM.
14622 (EXPAND_BUILTIN_SAVEREGS): Remove.
14623
14624 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
14625
14626 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
14627 (TARGET_RETURN_IN_MEMORY): Likewise.
14628 (m68hc11_struct_value_rtx): Likewise.
14629 (m68hc11_return_in_memory): Likewise.
14630 * config/m68hc11/m68hc11.h: Remove a commented-out definition
14631 of PROMOTE_PROTOTYPES.
14632 (RETURN_IN_MEMORY): Remove.
14633 (STRUCT_VALUE_REGNUM): Likewise.
14634
14635 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
14636
14637 * config/mmix/mmix-protos.h: Remove the prototype for
14638 mmix_setup_incoming_varargs.
14639 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
14640 (TARGET_STRUCT_VALUE_RTX): Likewise.
14641 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14642 (mmix_setup_incoming_varargs): Make it static.
14643 (mmix_struct_value_rtx): New.
14644 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
14645 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
14646 (STRUCT_VALUE_REGNUM): Remove.
14647 (SETUP_INCOMING_VARARGS): Likewise.
14648
14649 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
14650
14651 * config/mips/mips-protos.h: Remove the prototypes for
14652 mips_setup_incoming_varargs and mips_return_in_memory.
14653 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
14654 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
14655 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14656 (TARGET_STRUCT_VALUE_RTX): Likewise.
14657 (TARGET_RETURN_IN_MEMORY): Likewise.
14658 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14659 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
14660 (mips_setup_incoming_varargs): Match the prototype for
14661 TARGET_SETUP_INCOMING_VARARGS.
14662 (mips_return_in_memory): Make it static. Add argument fntype.
14663 (mips_strict_argument_naming): New.
14664 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
14665 (PROMOTE_FUNCTION_ARGS): Likewise.
14666 (PROMOTE_FUNCTION_RETURN): Likewise.
14667 (STRUCT_VALUE): Likewise.
14668 (RETURN_IN_MEMORY): Likewise.
14669 (SETUP_INCOMING_VARARGS): Likewise.
14670 (STRICT_ARGUMENT_NAMING): Likewise.
14671
14672 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
14673
14674 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
14675 (TARGET_RETURN_IN_MEMORY): Likewise.
14676 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14677 (ip2k_return_in_memory): Likewise.
14678 (ip2k_setup_incoming_varargs): Likewise.
14679 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
14680 (STRUCT_VALUE): Likewise.
14681 (STRUCT_VALUE_INCOMING): Likewise.
14682 (SETUP_INCOMING_VARARGS): Likewise.
14683
14684 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
14685
14686 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
14687 (TARGET_RETURN_IN_MEMORY): Likewise.
14688 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
14689 (avr_return_in_memory): Remove.
14690 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
14691 (STRUCT_VALUE): Likewise.
14692 (STRUCT_VALUE_INCOMING): Likewise.
14693 (STRICT_ARGUMENT_NAMING): Likewise.
14694
14695 2004-01-25 Jan Hubicka <jh@suse.cz>
14696
14697 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
14698
14699 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
14700
14701 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
14702 (mips_regno_mode_ok_for_base_p): Declare.
14703 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
14704 (FRAME_POINTER_REGNUM): Renumber to 78.
14705 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
14706 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
14707 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
14708 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
14709 (REG_MODE_OK_FOR_BASE_P): Likewise.
14710 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
14711 entry for 77 to "$arg" and entry for 78 to "$frame".
14712 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
14713 (mips_reg_mode_ok_for_base_p): Remove.
14714 (mips_regno_mode_ok_for_base_p): New function, derived from old
14715 BASE_REG_P macro. Don't enforce the mips16 stack pointer
14716 restrictions unless we're being strict.
14717 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
14718
14719 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
14720
14721 * c-common.h: Fix comment typos.
14722 * c-decl.c: Likewise.
14723 * cgraphunit.c: Likewise.
14724 * combine.c: Likewise.
14725 * et-forest.c: Likewise.
14726 * flow.c: Likewise.
14727 * function.c: Likewise.
14728 * ifcvt.c: Likewise.
14729 * integrate.c: Likewise.
14730 * jump.c: Likewise.
14731 * postreload.c: Likewise.
14732 * varray.c: Likewise.
14733
14734 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
14735
14736 * doc/frontends.texi: Update copyright.
14737 * doc/gcov.texi: Likewise.
14738 * doc/gty.texi: Likewise.
14739 * doc/sourcebuild.texi: Likewise.
14740 * doc/standards.texi: Likewise.
14741
14742 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
14743
14744 PR target/12978
14745 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
14746 Remove movstrqi_small because it conflicts with movstrqi_large.
14747
14748 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
14749
14750 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
14751 (TARGET_STRUCT_VALUE_RTX): Likewise.
14752 (cris_struct_value_rtx): Likewise.
14753 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
14754 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
14755 STRUCT_VALUE_REGNUM.
14756 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
14757
14758 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
14759
14760 PR bootstrap/13848
14761 * cse.c (cse_cc_succs): Change the mode of the source expression
14762 as soon as decide we need a new mode. Don't permit changing modes
14763 if we found a match in a successor block.
14764 (cse_condition_code_reg): Save original mode of source expression
14765 so that we know whether we have to change the mode in other
14766 insns.
14767
14768 2004-01-24 Jan Hubicka <jh@suse.cz>
14769
14770 * emit-rtl.c (change_address, adjust_address_1, offset_address,
14771 widen_memory_access): Return early when there is nothing to change.
14772
14773 2004-01-24 Jakub Jelinek <jakub@redhat.com>
14774
14775 * simplify-rtx.c (simplify_relational_operation): Don't
14776 simplify address == constant into address + -constant == 0.
14777
14778 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
14779
14780 * gcc.c (process_command): Don't internationalize the
14781 Copyright message.
14782 * mips-tfile.c (main): Likewise.
14783
14784 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
14785
14786 * cse.c: (cse_cc_succs) Fix comparison warning.
14787
14788 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
14789
14790 * config/h8300/h8300.md: Remove extraneous USE in expanders.
14791
14792 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
14793
14794 * config/h8300/h8300-protos.h: Provide prototypes for
14795 h8300_legitimate_constant_p and h8300_legitimate_address_p.
14796 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
14797 (h8300_rtx_ok_for_base_p): Likewise.
14798 (h8300_legitimate_address_p): Likewise.
14799 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
14800 h8300_legitimate_constant_p.
14801 (RTX_OK_FOR_BASE_P): Remove.
14802 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
14803
14804 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
14805
14806 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
14807 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
14808 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
14809 (REG_OK_FOR_BASE_STRICT_P): Likewise.
14810 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
14811 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
14812 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
14813 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
14814
14815 2004-01-24 Jan Hubicka <jh@suse.cz>
14816
14817 * cselib.c (remove_useless_values): Do not access discarded values.
14818
14819 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
14820
14821 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
14822 arrays.
14823
14824 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
14825
14826 * recog.c: Fix a typo in copyright.
14827
14828 2004-01-23 Andrew Pinski <apinski@apple.com>
14829
14830 * config/rs6000/rs6000.md (call): Fix misappiled patch.
14831 (call_value): Likewise.
14832
14833 2004-01-23 Richard Henderson <rth@redhat.com>
14834
14835 PR opt/12941
14836 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
14837 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
14838 if SHIFT_COUNT_TRUNCATED is set.
14839
14840 2004-01-23 Bob Wilson <bob.wilson@acm.org>
14841
14842 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
14843 separate real and imaginary parts.
14844 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
14845
14846 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
14847
14848 PR target/13674
14849 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
14850 loading into GPR.
14851
14852 2004-01-23 Jan Hubicka <jh@suse.cz>
14853
14854 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
14855 change.
14856
14857 * alloc-pool.c (align_four): Kill.
14858 (create_alloc_pool): Align size to eight.
14859 (free_alloc_pool, free_pool): Invalidate deallocated data.
14860
14861 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
14862
14863 PR gcc/1532
14864 * cse.c (cse_change_cc_mode): New static function.
14865 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
14866 (cse_condition_code_reg): New function.
14867 * rtl.h (cse_condition_code_reg): Declare.
14868 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
14869 * target.h (struct gcc_target): Add fixed_condition_code_regs and
14870 cc_modes_compatible.
14871 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14872 (TARGET_CC_MODES_COMPATIBLE): Define.
14873 (TARGET_INITIALIZER): Add new initializers.
14874 * targhooks.c (default_cc_modes_compatible): New function.
14875 * targhooks.c (default_cc_modes_compatible): Declare.
14876 * hooks.c (hook_bool_intp_intp_false): New function.
14877 * hooks.h (hook_bool_intp_intp_false): Declare.
14878 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14879 (TARGET_CC_MODES_COMPATIBLE): Define.
14880 (ix86_fixed_condition_code_regs): New static function.
14881 (ix86_cc_modes_compatible): Likewise.
14882 * doc/tm.texi (Condition Code): Document new hooks.
14883
14884 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14885
14886 * fixinc/inclhack.def (bad_lval): Renamed to ...
14887 (alpha_bad_lval): ... this.
14888 Removed file list.
14889 Restrict to alpha*-dec-osf*.
14890 * fixinc/fixincl.x: Regenerate.
14891 * fixinc/tests/base/dirent.h: Remove, moving test ...
14892 * fixinc/tests/base/testing.h: ... here, reflecting new name.
14893
14894 2004-01-23 Zack Weinberg <zack@codesourcery.com>
14895
14896 PR c/13814
14897 * c-decl.c (diagnose_mismatched_decls): Also discard a
14898 built-in if we encounter an old-style definition with the
14899 same name.
14900
14901 2004-01-23 Jakub Jelinek <jakub@redhat.com>
14902
14903 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
14904 set to default{32,64}.
14905
14906 2004-01-21 Jakub Jelinek <jakub@redhat.com>
14907
14908 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
14909 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
14910
14911 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
14912 Olivier Hainque <hainque@act-europe.fr>
14913
14914 * fold-const.c (fold_binary_op_with_conditional_arg): Only
14915 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
14916
14917 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
14918
14919 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
14920 size for minipool references.
14921
14922 2004-01-23 Roger Sayle <roger@eyesopen.com>
14923
14924 * real.c (real_floor, real_ceil): Tweak to allow input and output
14925 arguments to overlap.
14926 (real_round): New function to implement round(3m) semantics.
14927 * real.h (real_round): Prototype here.
14928 * builtins.c (fold_builtin_round): New function to constant fold
14929 round, roundf and roundl.
14930 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
14931
14932 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
14933
14934 PR optimization/13819
14935 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
14936 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
14937 (sh_handle_sp_switch_attribute): Remove warning.
14938
14939 2003-11-30 Jan Hubicka <jh@suse.cz>
14940
14941 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
14942
14943 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
14944
14945 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
14946 may or may not return non-NIL.
14947 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
14948 check CANNOT_CHANGE_MODE_CLASS
14949
14950 2004-01-23 Jan Hubicka <jh@suse.cz>
14951
14952 * basic-block.h (PROP_POSTRELOAD): New macro.
14953 (CLEANUP_LOG_LINKS): New.
14954 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
14955 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
14956
14957 * cselib.c (value_pool): New.
14958 (new_cselib_val): Use pool.
14959 (cselib_init): Initialize value_pool
14960 (cselib_finish): Free pool.
14961
14962 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
14963
14964 * config/sparc/sparc.c (scan_record_type): New function.
14965 (function_arg_slotno): Use it to determine which kinds of
14966 registers the record can be passed in.
14967
14968 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
14969
14970 * config/pa/fptr.c: Fix old-style definition.
14971
14972 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
14973
14974 PR optimization/13724
14975 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
14976 represents the zero bits produced by a ZERO_EXTEND operation.
14977
14978 2004-01-22 Roger Sayle <roger@eyesopen.com>
14979
14980 PR optimization/13821
14981 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
14982 correctly calculate the lowpart offset of the contracted subreg.
14983
14984 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
14985
14986 * doc/invoke.texi (Optimize Options): Note that --param arguments
14987 are subject to change without notice.
14988
14989 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14990
14991 * config.gcc (mips-sgi-irix6*o32): Removed.
14992 * config/mips/iris6-o32-as.h: Likewise.
14993 * config/mips/iris6-o32-gas.h: Likewise.
14994 * config/mips/iris6-o32.h: Likewise.
14995
14996 2004-01-22 Jan Hubicka <jh@suse.cz>
14997
14998 * cfgcleanup.c (first_pass): New static variable.
14999 (try_forward_edges): Add work limiting check for threading.
15000 (try_crossjump_bb): Add work limiting check for crossjumping.
15001 (try_optimize_cfg): Maintain first pass variable.
15002
15003 2004-01-22 Bob Wilson <bob.wilson@acm.org>
15004
15005 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
15006 handles complex and vector modes.
15007
15008 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
15009
15010 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
15011 (REG_OK_FOR_BASE_P_STRICT): Likewise.
15012 (STRICT): Likewise.
15013
15014 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
15015
15016 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
15017 (genrtl_for_stmt): Remove emit_nop calls.
15018
15019 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15020
15021 PR target/13713
15022 PR target/13324
15023 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
15024 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
15025 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
15026
15027 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
15028
15029 * config/arm/arm.c: Include "debug.h".
15030 (thumb_pushpop): Take two new arguments. Add some commentary.
15031 Output frame information when pushing.
15032 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
15033 thumb_pushpop.
15034 (thumb_output_function_prologue): Likewise. Accumulate a CFA
15035 offset, and pass it to thumb_pushpop. Output CFI information.
15036 (thumb_expand_prologue): Add some frame-related markers and notes.
15037
15038 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
15039
15040 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
15041 for TARGET_64BIT.
15042 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
15043 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
15044
15045 2004-01-22 Roger Sayle <roger@eyesopen.com>
15046 Paolo Bonzini <bonzini@gnu.org>
15047
15048 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
15049 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
15050 * rtl.h (subreg_lsb_1): Prototype here.
15051 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
15052 sign extensions.
15053
15054 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
15055
15056 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
15057 macro need not be defined if jump-tables should contain
15058 relative addresses only when -fPIC or -fPIC is in effect.
15059
15060 2004-01-22 Jan Hubicka <jh@suse.cz>
15061
15062 * alias.c (reg_base_value): Turn into varray.
15063 (reg_base_value_size): Kill.
15064 (old_reg_base_value): New deletable varray.
15065 (alias_invariant_size): New variable.
15066 (REG_BASE_VALUE): Update to use varray.
15067 (find_base_value): Likewise.
15068 (record_set): Likewise.
15069 (record_base_value): Likewise.
15070 (memrefs_conflict_p): Likewise.
15071 (record_set): Likewise
15072 (record_base_value): Likewise.
15073 (memrefs_conflict_p): Use alias_invariant_size.
15074 (init_alias_analysis): Use varray; set alias_invariant_size;
15075 rescale other arrays to be sized by maxreg.
15076 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
15077
15078 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
15079
15080 * config/sparc/sparc.c (function_arg_slotno): Use
15081 FLOAT_TYPE_P to detect FP fields in structures.
15082 (function_arg_record_value_1): Likewise.
15083 (function_arg_record_value_2): Likewise.
15084
15085 2004-01-22 Jan Hubicka <jh@suse.cz>
15086
15087 * function.c (allocate_struct_function): Do not initialize expr, emit
15088 and varasm.
15089 (prepare_function_start): Do it here.
15090 * c-parse.in (maybe_type_qual): Do not produce line number notes.
15091
15092 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
15093
15094 PR target/13559
15095 * config/sparc/sparc.c (function_arg_record_value_3): Revert
15096 to 'word_mode' once the first slot has been filled.
15097
15098 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
15099
15100 * config/sparc/sparc.c (function_arg_record_value_1): Fix
15101 computation of the number of integer registers required.
15102
15103 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
15104
15105 * config/i386/i386.md: Simplify certain comparisons of
15106 const_int.
15107
15108 2004-01-21 Andrew Pinski <apinski@apple.com>
15109
15110 PR target/13785
15111 * config/rs6000/rs6000.md (call_value): Force operand
15112 1 not operand 0 into a register.
15113
15114 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
15115
15116 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
15117 unwind-dw2-fde.h: Update copyright.
15118
15119 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15120
15121 * pa-protos.h: Update copyright.
15122 * pa.h: Likewise.
15123 * pa.md: Likewise.
15124
15125 2004-01-21 Caroline Tice <ctice@apple.com>
15126
15127 PR target/12308
15128 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
15129 flags register.
15130 (fix_truncdfdi2): Likewise.
15131 (fix_truncsfdi2): Likewise.
15132 (*fix_truncdi_1): Likewise.
15133 (fix_truncxfsi2): Likewise.
15134 (fix_truncdfsi2): Likewise.
15135 (fix_truncsfsi2): Likewise.
15136 (*fix_truncsi_1): Likewise.
15137 (fix_truncxfhi2): Likewise.
15138 (fix_truncdfhi2): Likewise.
15139 (fix_truncsfhi2): Likewise.
15140 (*fix_trunchi_1): Likewise.
15141
15142 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
15143
15144 * alias.c, basic-block.h, c-common.c, c-common.h,
15145 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
15146 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
15147 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
15148 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
15149 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
15150 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
15151 genautomata.c, genconditions.c, genemit.c, genflags.c,
15152 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
15153 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
15154 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
15155 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
15156 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
15157 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
15158 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
15159 unwind.h, varray.c, varray.h: Update copyright.
15160
15161 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
15162
15163 * config/h8300/coff.h: Update copyright.
15164 * config/h8300/elf.h: Likewise.
15165 * config/h8300/h8300-protos.h: Likewise.
15166 * config/h8300/h8300.c: Likewise.
15167 * config/h8300/h8300.h: Likewise.
15168 * config/h8300/h8300.md: Likewise.
15169
15170 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15171
15172 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
15173 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
15174 ultrix_unistd): New hacks.
15175 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
15176 ULTRIX_CONST2_CHECK): Add checks.
15177 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
15178 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
15179 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
15180 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
15181 * fixinc/tests/base/locale.h: New file.
15182 * fixinc/fixincl.x: Rebuilt.
15183
15184 2004-01-21 Andreas Jaeger <aj@suse.de>
15185 Michael Matz <matz@suse.de>
15186
15187 * doc/extend.texi (Extended Asm): Clarify memory clobber.
15188
15189 2004-01-21 Jakub Jelinek <jakub@redhat.com>
15190
15191 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
15192 _Jv_RegisterClasses through a function pointer.
15193
15194 2004-01-21 Falk Hueffner <falk@debian.org>
15195
15196 PR target/12898
15197 * config/alpha/alpha.c (alpha_emit_set_const_1): If
15198 no_new_pseudos, use gen_rtx_SET directly for SImode constants
15199 which need multiple instructions to emit.
15200
15201 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
15202
15203 * config/m32r/m32r.h (CPP_SPEC): Define.
15204
15205 2004-01-21 Zack Weinberg <zack@codesourcery.com>
15206
15207 * c-decl.c (merge_decls): Kill different_binding_level and
15208 different_tu arguments; simplify throughout.
15209 (duplicate_decls): Likewise.
15210 (pushdecl, merge_translation_unit_decls): Update calls to
15211 duplicate_decls.
15212
15213 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15214
15215 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
15216 $(SYSTEM_H).
15217 (print-rtl1.o): Depend on $(SYSTEM_H).
15218
15219 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
15220
15221 PR bootstrap/12730
15222 * configure.ac: Delete definition and subsitution of docdir.
15223 Add info, man, srcman and srcinfo to target hooks. Create doc/
15224 directory.
15225 * configure: Regenerate.
15226 * Makefile.in: Don't substitute docdir and delete all references
15227 throughout.
15228 (MAKEINFOFLAGS): Define.
15229 (stmp-docobjdir): Delete.
15230 (INFOFILES, MANFILES): Define.
15231 (info): Call lang.info, srcinfo and lang.srcinfo.
15232 (generated-manpages): Call lang.man, srcman and lang.srcman.
15233 (srcinfo, srcman): New rules to copy back files to source directory.
15234 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
15235 (install-man): Revamp rule.
15236 (clean): Update dvi directory.
15237 (distclean): Delete TAGS from front end directorys.
15238 (maintainer-clean): Delete all document files in source directory.
15239
15240 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
15241 (objc.srcman, objc.srcinfo): Likewise.
15242
15243 2004-01-20 Bruce Korb <bkorb@gnu.org>
15244
15245 * fixinc/inclhack.def(math_exception): bypass only for glibc.
15246 (matherr_decl): rename & relocate as exception_structure.
15247 This fix must precede the math_exception fix.
15248
15249 2004-01-20 Roger Sayle <roger@eyesopen.com>
15250
15251 * fold-const.c (fold_convert): Rename to fold_convert_const.
15252 (fold_convert_const): Change arguments to take a tree_code,
15253 a type and the operand/expression to be converted. Return
15254 NULL_TREE if no simplification is possible. Add support for
15255 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
15256 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
15257 Adjust call to fold_convert to match new fold_convert_const.
15258 Avoid modifying the tree passed to fold in-place.
15259
15260 2004-01-21 Alan Modra <amodra@bigpond.net.au>
15261
15262 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
15263 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
15264 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
15265
15266 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15267
15268 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
15269 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
15270 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
15271 (emit_move_sequence): Check scratch_reg first in various if statements.
15272 Extend source simplification to handle all 64-bit CONST_INTs.
15273 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
15274 frame size.
15275 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
15276 frame offset calculations.
15277 * pa.h (NEW_HP_ASSEMBLER): Add comment.
15278 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
15279 LEGITIMATE_64BIT_CONST_INT_P): Define.
15280 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
15281 any CONST_INT as legitimate during and after reload.
15282 (VAL_32_BITS_P, INT_32_BITS): Define.
15283 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
15284
15285 2004-01-20 Jan Hubicka <jh@suse.cz>
15286
15287 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
15288 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
15289 containing hard regs are shared.
15290 (gen_hard_reg_clobber): New function.
15291 (hard_reg_clobbers): New array.
15292 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
15293 (copy_rtx): Do not copy clobbers containing hard regs.
15294 * rtl.h (gen_hard_reg_clobber): Declare.
15295
15296 2004-01-20 Jan Hubicka <jh@suse.cz>
15297
15298 * varray.c: Include hashtab.h
15299 (varray_descriptor): New structure.
15300 (hash_descriptor, eq_descriptor, varray_descriptor,
15301 print_statistics): New static functions
15302 (varray_init, varray_grow): Update statistics
15303 (dump_varray_statistics): New function.
15304 * varray.h (dump_varray_statistics): Declare.
15305 * toplev.c (finalize): Call it.
15306 * Makefile.in (varray.o): Add dependency.
15307
15308 2004-01-20 Jan Hubicka <jh@suse.cz>
15309
15310 * cselib.c: Include alloc-pool.h
15311 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
15312 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
15313 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
15314 unchain_one_elt_loc_list_pool, unchain_one_value,
15315 new_cselib_val): Simplify using allocpool.
15316 (cselib_init): Initialize allocpools.
15317 (cselib_finish): Finish allocpools.
15318 * Makefile.in (cselib.o): Depend on alloc-pool.h
15319
15320 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
15321
15322 * config/mips/mips.c (mips_load_call_address): Make the call insn
15323 use $gp if it could be calling a lazy binding stub.
15324
15325 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
15326
15327 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
15328 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
15329 (TARGET_STRUCT_VALUE_RTX): Likewise.
15330 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
15331 (PROMOTE_FUNCTION_RETURN): Remove.
15332 (STRUCT_VALUE): Remove.
15333
15334 2004-01-20 Denis Chertykov <denisc@overta.ru>
15335
15336 PR bootstrap/13735
15337 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
15338 register as pointer after reload.
15339
15340 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15341
15342 PR optimization/12440
15343 * loop.c: Include ggc.h.
15344 (loop_optimize): Run garbage collector between optimization of loops.
15345 * Makefile.in (loop.o): Add GGC_H dependency.
15346
15347 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
15348
15349 * gcc/config/rs6000/rs6000.c (function_arg) Handle
15350 vector register special in function without prototype.
15351 (function_arg_advance): Vector parameters get always
15352 GPRs allocated for the linux64 target.
15353
15354 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
15355
15356 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
15357 not TARGET_M32RX_MASK.
15358
15359 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
15360
15361 PR target/13557
15362 * config/sparc/sparc.c (function_arg): Reorder the cases.
15363
15364 2004-01-19 Per Bothner <per@bothner.com>
15365
15366 Move cpp_reader's line_maps field to a shared global.
15367 * cpphash.h (cpp_reader): Rename line_maps field to line_table
15368 and change the type to a pointer rather than a struct.
15369 * cppinit.c (cpp_push_main_field): Adjust accordingly.
15370 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
15371 Likewise.
15372 * cppfiles.c (validate_pch): Likewise.
15373 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
15374 Likewise.
15375 * cpperror.c (print_location): Likewise.
15376 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
15377 * cppinit.c (cpp_create_reader): Handle new parameter.
15378 (cpp_destroy): Don't free line_maps - that's no longer our job.
15379 * input.h (line_table): New variable.
15380 * toplev.c (line_table): Declare variable.
15381 (general_init): Initialize line_table.
15382 * c-opts.c (c_common_init_options): Pass line_table to
15383 cpp_create_reader.
15384 * fix-header.c (read_scan_file): New local variable line_table.
15385 Initialize, and pass it to cpp_create_reader.
15386 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
15387 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
15388
15389 2004-01-19 Per Bothner <per@bothner.com>
15390
15391 Implement a cache for linemap_lookup.
15392 * line-map.h (struct_line_maps): Add cache field.
15393 * line-map.c (linemap_init): Zero cache field.
15394 (linemap_add): Set cache field to offset of newly allocated map.
15395 (linemap_lookup): Use and set cache field.
15396
15397 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
15398
15399 PR optimization/13567
15400 * cse.c (cse_basic_block): Call cse_insn with a non-null
15401 libcall_insn for the last SET insn of a no-confilict block.
15402
15403 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
15404
15405 * Makefile.in (target_noncanonical, program_transform_name): Use
15406 immediate define instead of deferred.
15407 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
15408 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
15409 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
15410 deferred backquote.
15411
15412 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
15413
15414 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
15415 true unconditionally.
15416 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
15417 Remove.
15418 (build_unary_op, build_modify_expr): Don't handle extended
15419 lvalues.
15420 (build_component_ref, build_conditional_expr): Call non_lvalue
15421 instead of pedantic_non_lvalue.
15422 (build_c_cast): Don't condition use of non_lvalue on pedantic.
15423 * fold-const.c (fold): Don't check pedantic directly for
15424 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
15425 passed to pedantic_non_lvalue.
15426 * doc/extend.texi: Remove documentation of extended lvalues.
15427
15428 2004-01-19 Roger Sayle <roger@eyesopen.com>
15429
15430 PR optimization/5263
15431 * simplify-rtx.c (associative_constant_p): Delete.
15432 (simplify_associative_operation): Rewrite to linearize terms, and
15433 attempt to simplify new term against both left and right subterms.
15434 (simplify_binary_operation): Call swap_commutative_operands_p on
15435 op0 and op1, not trueop0 and trueop1. Move the initialization of
15436 trueop0 and trueop1 down to where first needed.
15437 (simplify_relational_operation): Likewise.
15438 * rtlanal.c (commutative_operand_precedence): Also order constant
15439 operands using avoid_constant_pool_reference.
15440
15441 2004-01-19 Richard Henderson <rth@redhat.com>
15442
15443 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
15444 don't check memory mode.
15445 (unaligned_memory_operand): Likewise.
15446 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
15447 abort for op0 not MEM.
15448
15449 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
15450 is not a reg, copy to a scratch first.
15451 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
15452 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
15453 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
15454 (reload_inqi, reload_inhi): Fix mode of op0.
15455 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
15456 reload_outhi_help): Likewise. Use define_insn_and_split.
15457
15458 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
15459 as well as $29 dead.
15460
15461 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
15462
15463 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
15464 "tls_object" for thread-local objects.
15465 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
15466 "#tls" for thread-local sections.
15467 * configure.ac (thread-local checks): Specify --fatal-warnings in
15468 every binutils-specific checks. For sparc*-*-*, test whether the
15469 OS is Solaris and the tools are native and act accordingly.
15470 * configure: Rebuild.
15471
15472 2004-01-19 Jeff Law <law@redhat.com>
15473
15474 * contrib.texi: Update Paolo Carlini's entry. New entries for
15475 Jerry Quinn and Petur Runolfsson.
15476
15477 2004-01-19 Roger Sayle <roger@eyesopen.com>
15478
15479 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
15480 size, don't use the larger zero-extending loads.
15481
15482 2004-01-19 Richard Henderson <rth@redhat.com>
15483
15484 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
15485 * alpha.md (UNSPEC_NT_LDA): Remove.
15486 (UNSPEC_CVTLQ, cvtlq): New.
15487 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
15488 (extendsidi2_fix): Remove.
15489 (extendsidi2 splitter): Use cvtlq.
15490 (extendsidi2 fp peepholes): Remove.
15491 (cvtql): Use SFmode instead of SImode.
15492 (fix_trunc?fsi): Update to match.
15493 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
15494 (movsi): Rename from movsi_nofix, remove f alternatives.
15495 (movsi_nt_vms): Similarly.
15496 (movsi_fix, movsi_nt_vms_fix): Remove.
15497 (nt_lda): Remove.
15498 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
15499
15500 2004-01-19 Jan Hubicka <jh@suse.cz>
15501
15502 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
15503 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
15504 list.
15505 (cgraph_remove_unreachable_nodes): New function
15506 (cgraph_decide_inlining_of_small_function): Fix pasto.
15507 (cgraph_decide_inlining_incrementally): Fix pasto.
15508 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
15509
15510 2004-01-19 Steven Bosscher <stevenb@suse.de>
15511
15512 * gengtype.c (header_file): Make it static.
15513 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
15514 * gengtype.h (header_file): No longer extern.
15515
15516 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
15517
15518 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
15519 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
15520 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
15521
15522 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
15523
15524 * stmt.c (HAVE_casesi): Define it not already defined.
15525 (HAVE_tablejump): Likewise.
15526 (expand_end_case_type): Resort to the binary tree method if
15527 neither casesi or tablejump is available.
15528
15529 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
15530
15531 * final.c (final_scan_insn): Make non-static again.
15532 * output.h (final_scan_insn): Re-add prototype.
15533 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
15534 to final_scan_insn call.
15535 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
15536 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
15537 * config/pa/pa.c (output_lbranch, output_call): Likewise.
15538 * config/sh/sh.c (print_slot): Likewise.
15539 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
15540 (output_sibcall, sparc_flat_function_epilogue): Likewise.
15541
15542 2004-01-18 Jan Hubicka <jh@suse.cz>
15543
15544 * basic-block.h (try_redirect_by_replacing_jump): Declare.
15545 * cfgcleanup.c (try_optimize_cfg): Use it.
15546 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
15547 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
15548 Kill hack.
15549 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
15550
15551 Revert:
15552 2004-01-16 Geoffrey Keating <geoffk@apple.com>
15553
15554 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
15555 even after reload, just don't remove the actual jump tables.
15556
15557 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
15558
15559 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
15560
15561 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
15562
15563 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
15564 the size of a pointer in bytes.
15565
15566 2004-01-18 Roger Sayle <roger@eyesopen.com>
15567
15568 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
15569 live "next" variable, which could lead to an infinite loop.
15570
15571 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
15572
15573 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
15574 block.
15575
15576 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
15577 Check for NULL in the chain and remove repeated code.
15578
15579 2004-01-18 Jan Hubicka <jh@suse.cz>
15580
15581 * coverage.c (checksum_string): Rename to ...
15582 (coverage_checksum_string): ... this one, Use crc32_string; recognize
15583 names containing random number and zero the number out in order to get
15584 match.
15585
15586 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
15587
15588 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
15589
15590 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
15591
15592 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
15593 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
15594 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
15595 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
15596 doc/trouble.texi: Remove trailing whitespace.
15597
15598 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
15599
15600 PR target/7618
15601 * config/mips/mips.c: Include cfglayout.h.
15602 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
15603 (mips_unspec_offset_high): Add temporary register argument.
15604 (mips_load_call_address): New function, split out from...
15605 (mips_expand_call): ...here.
15606 (mips_output_cplocal): New function.
15607 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
15608 (mips_emit_loadgp): New function, split out from...
15609 (mips_expand_prologue): ...here.
15610 (mips_output_mi_thunk): New function.
15611
15612 2004-01-17 Bernardo Innocenti <bernie@develer.com>
15613
15614 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
15615 mcpu32): Remove redundant checks for implied target predefines.
15616
15617 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
15618
15619 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
15620 Return type is unsigned int not int.
15621 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
15622 Likewise.
15623
15624 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
15625
15626 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
15627 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
15628 "GNU/Linux" and "Microsoft Windows" terminology.
15629
15630 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
15631
15632 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
15633 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
15634 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
15635 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
15636 @smallexample instead of @example.
15637
15638 2004-01-17 Ziemowit Laski <zlaski@apple.com>
15639
15640 * objc/objc-act.c (build_objc_method_call): Use target
15641 hooks instead of macros to determine if ..._stret
15642 dispatchers should be used (NeXT runtime only).
15643
15644 2004-01-17 Roger Sayle <roger@eyesopen.com>
15645
15646 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
15647 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
15648
15649 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
15650
15651 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
15652 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
15653 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
15654 macros.
15655 * reload1.c (emit_reload_insns): Use them.
15656 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
15657 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
15658 for NULL PATTERN.
15659
15660 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
15661
15662 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
15663 (final_scan_insn): Update to take an additional SEEN argument. Emit
15664 a line note after the prologue. Make static.
15665 (line_note_exists): Remove.
15666 (final): Don't initialize line_note_exists. Update call to
15667 final_scan_insn.
15668 * output.h (final_scan_insn): Remove prologue.
15669 * function.c (set_insn_locators): Update comment.
15670 (thread_prologue_and_epilogue_insns): Add a comment.
15671
15672 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
15673
15674 PR target/10781
15675 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
15676 Prototype.
15677 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
15678 New function.
15679 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
15680 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
15681 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
15682
15683 2004-01-17 Jan Hubicka <jh@suse.cz>
15684
15685 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
15686 commit.
15687
15688 * toplev.c (HAVE_conditional_execution): Provide default.
15689 (rest_of_handle_reorder_blocks): For conditional_execution target
15690 update liveness once after all transformations
15691 (rest_of_compilation): Do crossjumping before ce3.
15692
15693 2004-01-17 Geoffrey Keating <geoffk@apple.com>
15694
15695 * alias.c (new_alias_set): Mark last_alias_set for PCH.
15696 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
15697 for PCH.
15698 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
15699 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
15700 (get_TOC_alias_set): Mark 'set' for PCH.
15701
15702 2004-01-16 Geoffrey Keating <geoffk@apple.com>
15703
15704 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
15705 even after reload, just don't remove the actual jump tables.
15706
15707 2004-01-17 J. Brobecker <brobecker@gnat.com>
15708
15709 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
15710 Remove checks for is_ada() and TREE_UNSIGNED.
15711 (subrange_type_die): Emit a byte_size attribute if the subrange
15712 type size is different from the base type size.
15713 (modified_type_die): Replace call to is_ada_subrange_type() by
15714 call to is_subrange_type().
15715
15716 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
15717
15718 * config/sh/sh.c: Include ggc.h.
15719
15720 2004-01-16 Geoffrey Keating <geoffk@apple.com>
15721
15722 * Makefile.in (MD5_H): New.
15723 (fold-const.o): Depend on md5.h.
15724 (dwarf2out.o): Likewise.
15725 (cppfiles.o): Likewise.
15726 * cppfiles.c: Include md5.h.
15727 (should_stack_file): Check against list read from PCH file.
15728 (struct pchf_data): New.
15729 (pchf): New variable.
15730 (struct pchf_adder_info): New.
15731 (pchf_adder): New.
15732 (pchf_save_compare): New.
15733 (_cpp_save_file_entries): New.
15734 (_cpp_read_file_entries): New.
15735 (struct pchf_compare_data): New.
15736 (pchf_compare): New.
15737 (check_file_against_entries): New.
15738 * cpphash.h (_cpp_save_file_entries): Prototype.
15739 (_cpp_read_file_entries): Prototype.
15740 * cpppch.c (cpp_write_pch_state): Write the list of headers.
15741 (cpp_read_state): Read the list of headers.
15742
15743 2004-01-17 Jan Hubicka <jh@suse.cz>
15744
15745 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
15746 builtin_expect specially.
15747 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
15748 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
15749 * invoke.texi (max-inline-insns-single): Set to 100.
15750 (large-function-insns): Set to 3000.
15751
15752 2004-01-16 Eric Christopher <echristo@redhat.com>
15753 Chandrakala Chavva <cchavva@redhat.com>
15754
15755 * cppcharset.c (one_iso88591_to_utf8): New function.
15756 (convert_iso88591_utf8): Ditto. Use.
15757 (conversion_tab): Use.
15758 (_cpp_input_to_utf8): New function.
15759 (_cpp_init_iconv_buffer): Ditto.
15760 (_cpp_close_iconv_buffer): Ditto.
15761 * cpphash.h: Prototype new functions.
15762 (cpp_buffer): Add input_cset_desc.
15763 * cppinit.c: Add input_charset default.
15764 * cpplib.c (cpp_push_buffer): Support init and
15765 close of iconv.
15766 * cpplib.h (cpp_options): Add input_charset.
15767
15768 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
15769
15770 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
15771 * config/alpha/unicosmk.h: Remove a commented-out definition
15772 of ASM_OUTPUT_SECTION_NAME.
15773 * config/stormy16/stormy16.h: Likewise.
15774
15775 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15776
15777 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
15778 (alpha___extern_prefix_sys_stat): ... this.
15779 Apply to <sys/mount.h>, too.
15780 Tweak to match more variations.
15781 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
15782
15783 * fixinc/inclhack.def (alpha___extern_prefix,
15784 alpha___extern_prefix_standards): New hacks to obey
15785 __PRAGMA_EXTERN_PREFIX.
15786 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
15787 test.
15788 * fixinc/tests/base/standards.h: Likewise.
15789
15790 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
15791 variations.
15792 New testcase.
15793 * fixinc/tests/base/pthread.h: Handle it.
15794
15795 * fixincl/inclhack.def (bad_lval): Sort file list.
15796 Add many missing files up to Tru64 UNIX V5.1B.
15797 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
15798 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
15799 order.
15800
15801 * fixinc/fixincl.x: Regenerate.
15802
15803 2004-01-16 Mark Mitchell <mark@codesourcery.com>
15804
15805 * version.c (version_string): Change to 3.5.0.
15806 * doc/include/gcc-common.texi (version-GCC): Likewise.
15807
15808 2004-01-16 Jan Hubicka <jh@suse.cz>
15809
15810 * i386.md (load_tp_di): Fix pasto.
15811
15812 PR opt/13608
15813 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
15814
15815 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
15816 pp_c_character_constant, pp_c_floating_constant,
15817 pp_c_additive_expression, pp_c_shift_expression,
15818 pp_c_equality_expression, pp_c_and_expression,
15819 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
15820 pp_c_logical_and_expression): Remove inline modifier.
15821 * dwarf2out.c (get_AT): Likewise.
15822 * et-forest.c (et_splay): Likewise.
15823 * ra.h (ra_alloc, ra_calloc): Likewise
15824
15825 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
15826
15827 * config/frv/frv-protos.h: Fix comment formatting.
15828 * config/frv/frv.c: Likewise.
15829 * config/frv/frv.h: Likewise.
15830 * config/frv/frv.md: Likewise.
15831 * config/frv/frvbegin.c: Likewise.
15832 * config/frv/frvend.c: Likewise.
15833
15834 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
15835
15836 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
15837 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
15838 LINKER_DOES_NOT_WORK_WITH_DWARF2.
15839 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
15840
15841 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
15842
15843 PR 11864
15844 * postreload.c (reload_cse_simplify_operands): Don't remove
15845 implicit extension from LOAD_EXTEND_OP.
15846
15847 2004-01-16 Jan Hubicka <jh@suse.cz>
15848
15849 PR opt/11350
15850 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
15851 after reload.
15852 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
15853 rtl_try_redirect_by_replacing_branch): Likewise.
15854
15855 2004-01-15 Geoffrey Keating <geoffk@apple.com>
15856
15857 PR pch/13689
15858 * alias.c (struct alias_set_entry): Mark for GC.
15859 (alias_sets): Make static, mark for GC.
15860 (record_alias_subset): Use GC to allocate alias structures.
15861 * varray.c (element): Make generic varrays GCed.
15862
15863 PR pch/13361
15864 * c-typeck.c (constructor_asmspec): Delete.
15865 (struct initializer_stack): Delete field 'asmspec'.
15866 (start_init): Delete saving of asmspec.
15867 (finish_init): Don't update constructor_asmspec.
15868 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
15869 * stmt.c (expand_asm): Duplicate strings from tree.
15870 (expand_asm_operands): Likewise.
15871 * tree.c (tree_size): Update computation of size of STRING_CST.
15872 (make_node): Don't make STRING_CST nodes.
15873 (build_string): Allocate string with tree node.
15874 * tree.def (STRING_CST): Update comment.
15875 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
15876 (tree_string): Place contents of string in tree node.
15877 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
15878 from tree.
15879
15880 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
15881 altivec operands.
15882
15883 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
15884
15885 * c-common.h: Fix comment formatting.
15886 * c-cppbuiltin.c: Likewise.
15887 * c-pragma.c: Likewise.
15888 * calls.c: Likewise.
15889 * collect2.c: Likewise.
15890 * cppcharset.c: Likewise.
15891 * cpptrad.c: Likewise.
15892 * dbxout.c: Likewise.
15893 * defaults.h: Likewise.
15894 * dwarf2out.c: Likewise.
15895 * fold-const.c: Likewise.
15896 * genautomata.c: Likewise.
15897 * genconditions.c: Likewise.
15898 * genflags.c: Likewise.
15899 * gengtype.c: Likewise.
15900 * integrate.c: Likewise.
15901 * loop.c: Likewise.
15902 * predict.c: Likewise.
15903 * sdbout.c: Likewise.
15904
15905 2004-01-15 Zack Weinberg <zack@codesourcery.com>
15906
15907 * config/ia64/ia64.md (*movti_internal): C output template
15908 extracted to ia64.c.
15909 (*movti_internal_reg): Delete.
15910 (reload_inti, reload_outti): Use the correct mode on operand 2
15911 in the first place, don't fix it up in the output template.
15912 (movtf, reload_ointf, reload_outtf): New expanders.
15913 (*movtf_internal): New define_insn_and_split.
15914 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
15915 make static; do not hand TFmode CONST_DOUBLEs to split_double.
15916 (ia64_split_tmode_move): New function, body mostly pulled
15917 from ia64.md:*movti_internal.
15918 (ia64_function_arg_words): New function, extracted common
15919 logic from ia64_function_arg et seq.
15920 (ia64_function_arg_offset): Likewise. Handle correctly the
15921 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
15922 (ia64_function_arg, ia64_function_arg_partial_nregs)
15923 (ia64_function_arg_advance): Use ia64_function_arg_words and
15924 ia64_function_arg_offset.
15925 (ia64_function_value): TCmode does not go in float regs.
15926 (ia64_secondary_reload_class): Also handle TFmode.
15927 * config/ia64/ia64-protos.h: Remove prototype for
15928 ia64_split_timode; add prototype for ia64_split_tmode_move.
15929
15930 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
15931
15932 * Makefile.in (MAINT): Make it an immediate assignment.
15933
15934 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
15935
15936 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
15937
15938 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
15939
15940 * config/h8300/coff.h: Replace Hitachi with Renesas.
15941 * config/h8300/elf.h: Likewise.
15942 * config/h8300/h8300-protos.h: Likewise.
15943 * config/h8300/h8300.c: Likewise.
15944 * config/h8300/h8300.h: Likewise.
15945 * config/h8300/h8300.md: Likewise.
15946 * config/h8300/lib1funcs.asm: Likewise.
15947
15948 2004-01-15 Andrew Pinski <apinski@apple.com>
15949
15950 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
15951 around it.
15952
15953 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
15954
15955 * config/h8300/h8300.c (h8300_return_in_memory): New.
15956 (TARGET_STRUCT_VALUE_RTX): Likewise.
15957 (TARGET_RETURN_IN_MEMORY): Likewise.
15958 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
15959 (RETURN_IN_MEMORY): Likewise.
15960
15961 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
15962
15963 PR optimization/13375
15964 * gcse.c (handle_avail_expr): Just return if the source is not a
15965 single set.
15966
15967 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
15968 Daniel Jacobowitz <drow@mvista.com>
15969
15970 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
15971 (EQUIV): Define.
15972 (ARM_FUNC_ALIAS): New macro.
15973 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
15974 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
15975
15976 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15977
15978 PR optimization/12372
15979 * calls.c (expand_call): Add call_fusage data for stack arguments in
15980 constant calls.
15981
15982 2004-01-15 Alan Modra <amodra@bigpond.net.au>
15983
15984 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
15985 (rs6000_elf_declare_function_name): Formatting.
15986 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
15987
15988 2004-01-15 Jan Hubicka <jh@suse.cz>
15989
15990 PR bootstrap/13692
15991 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
15992 previous patch.
15993
15994 2004-01-15 Richard Henderson <rth@redhat.com>
15995
15996 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
15997 integer regs of the same call-savedness.
15998
15999 2004-01-15 Andreas Schwab <schwab@suse.de>
16000
16001 PR bootstrap/13562
16002 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
16003 status for NOTB/NOTW/NEGW methods.
16004
16005 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
16006
16007 * doc/invoke.texi: Update dump file names. Fix a typo.
16008
16009 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
16010
16011 * builtins.c (expand_builtin_va_end): Don't use
16012 EXPAND_BUILTIN_VA_END.
16013 * system.h (EXPAND_BUILTIN_VA_END): Poison.
16014 * config/d30v/d30v.h: Remove a commented-out definition of
16015 EXPAND_BUILTIN_VA_END.
16016 * config/stormy16/stormy16.h: Likewise.
16017
16018 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
16019
16020 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
16021 * targhooks.c (default_struct_value_rtx): Don't use
16022 STRUCT_VALUE_INCOMING_REGNUM.
16023
16024 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
16025
16026 PR bootstrap/12744
16027 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
16028 GENINSRC and not parsedir. Define srcextra as a langhook.
16029 * configure: Regenerate.
16030 * Makefile.in: Suppress default .l.c rule. Don't substitute
16031 parsedir and delete all references throughout. Conditionally define
16032 rule for srcextra dependent on GENINSRC.
16033 (stmp-docobjdir): Delete.
16034 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
16035 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
16036 and gengtype-yacc.h back to source directory.
16037 (maintainer-clean): Delete all parse files in source directory.
16038 (distclean): Delete generated files.
16039
16040 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
16041 (objc-parse.c, objc-parse.y): Don't use parsedir.
16042 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
16043 directory if requested.
16044 (po-generated): Don't use parsedir.
16045 (objc.maintainer-clean): Delete above files from source directory.
16046
16047 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16048
16049 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
16050
16051 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16052
16053 * doc/tm.texi: Replace RETURN_IN_MEMORY with
16054 TARGET_RETURN_IN_MEMORY.
16055
16056 2004-01-15 Jan Hubicka <jh@suse.cz>
16057
16058 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
16059 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
16060 functions accepting SSE arguments
16061 (function_arg): Warn only when asked to warn.
16062 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
16063
16064 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
16065
16066 * c-parse.in (stmts_and_decls): Make label at end of compound
16067 statement a hard error.
16068
16069 2004-01-14 Jan Hubicka <jh@suse.cz>
16070
16071 * cgraph.c (create_edge): Use local.redefined_extern_inline.
16072 * cgraph.h (cgraph_local_info): Sort fields by size; add
16073 redefined_extern_inline
16074 (cgraph_global_info): Sort fields by size.
16075 (cgraph_node): Likewise.
16076 * cgraphunit.c (cgraph_finalize_function): Se
16077 local.redefined_extern_inline on redefinition.
16078 (cgraph_analyze_function): Use it; fix formating.
16079
16080 2004-01-14 Jan Hubicka <jh@suse.cz>
16081
16082 PR c++/10776
16083 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
16084 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
16085 bitmaps
16086 (cache_size): New variable
16087 (add_dependence): Update use; canonize early memory locations
16088 (sched_analyze_1): Likewise.
16089 (sched_analyze_2): Likewise.
16090 (init_dependency_caches): Initialize bitmaps.
16091 (free_dependency_caches): Free bitmaps
16092
16093 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16094
16095 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
16096 targetm.calls.strict_argument_naming().
16097 * target.h: Likewise.
16098
16099 2004-01-14 Richard Henderson <rth@redhat.com>
16100
16101 PR debug/13231
16102 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
16103 instructions.
16104
16105 2004-01-14 Richard Henderson <rth@redhat.com>
16106
16107 PR c++/12491
16108 * except.c (struct eh_region): Add u.fixup.resolved.
16109 (resolve_one_fixup_region): Split out from ...
16110 (resolve_fixup_regions): ... here.
16111
16112 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16113
16114 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
16115
16116 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16117
16118 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
16119 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
16120 (STRUCT_VALUE): Remove.
16121
16122 2004-01-14 Steven Bosscher <stevenb@suse.de>
16123
16124 * system.h: Poison PROMOTED_MODE
16125 * integrate.c (expand_inline_function): Don't mention the
16126 PROMOTED_MODE.
16127 * loop.c (update_giv_derive): Same.
16128 * tree.h (DECL_RTL): Same.
16129
16130 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
16131
16132 PR target/9365
16133 * sh.c (gen_block_redirect): Add special handling of RETURN.
16134 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
16135 far branch target (i.e. it's a return).
16136
16137 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16138
16139 * regrename.c (find_oldest_value_reg): Fix a warning.
16140
16141 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
16142
16143 PR bootstrap/12527
16144 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
16145 Move linux-gas.h and linux-elf.h before aout.h.
16146 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
16147 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
16148
16149 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16150
16151 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
16152 (CONST_INT, VOIDmode, ...).
16153
16154 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
16155
16156 * regrename.c (find_oldest_value_reg): If the replacement uses
16157 multiple hard registers, check that all of them are in CLASS.
16158
16159 2004-01-14 Jan Hubicka <jh@suse.cz>
16160
16161 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
16162 impossible.
16163
16164 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
16165
16166 * Makefile.in: Define MAINT from --enable-maintainer-mode.
16167
16168 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
16169
16170 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
16171 Calculate always vrsave_mask if TARGET_ALTIVEC.
16172 (rs6000_emit_prologue): Emit code for vrsave
16173 only if TARGET_ALTIVEC_VRSAVE.
16174 (rs6000_emit_epilogue): Likewise.
16175
16176 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
16177
16178 * config/sparc/sparc.md (tie_add32): Fix pasto.
16179 (tie_add64): Likewise.
16180
16181 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16182
16183 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
16184
16185 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
16186
16187 * config/iq2000/iq2000-protos.h: Fix comment formatting.
16188 * config/iq2000/iq2000.c: Likewise.
16189 * config/iq2000/iq2000.md: Likewise.
16190
16191 2004-01-14 J. Brobecker <brobecker@gnat.com>
16192
16193 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
16194 (subrange_type_die): Add handle for nameless subrange types.
16195
16196 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
16197
16198 * config/h8300/h8300-protos.h: Replace do_movsi with
16199 h8300_expand_movsi.
16200 * config/h8300/h8300.c (do_movsi): Change to
16201 h8300_expand_movsi.
16202 * config/h8300/h8300.md (movsi): Replace do_movsi with
16203 h8300_expand_movsi.
16204 (movsf): Likewise.
16205
16206 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
16207
16208 * config/h8300/h8300.c (dosize): Change to
16209 h8300_emit_stack_adjustment. Update callers.
16210
16211 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
16212
16213 * config/h8300/h8300.md (movstrictqi): Add an alternative with
16214 the source being post_inc. Tighten the predicate for the
16215 destination to register_operand.
16216 (movstricthi): Likewise.
16217
16218 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
16219
16220 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
16221 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
16222 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
16223
16224 2004-01-14 Jan Hubicka <jh@suse.cz>
16225
16226 Partial fix PR c++/12850
16227 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
16228 at zero nest level.
16229
16230 2004-01-13 Bernardo Innocenti <bernie@develer.com>
16231
16232 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
16233 pseudo-register.
16234
16235 2004-01-13 Devang Patel <dpatel@apple.com
16236
16237 PR debug/7078
16238 * dbxout.c (dbxout_symbol_name): Emit mangled names for
16239 NAMESPACE_DECL memebers.
16240
16241 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
16242
16243 PR c++/12709
16244 * c-common.c (finish_fname_decls): Use the chain only if the
16245 tree is an expr_stmt.
16246
16247 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
16248
16249 * rtl.def: Add comment about new option in automata_option.
16250
16251 * genautomata.c (PROGRESS_OPTION): New macro.
16252 (progress_flag): New global variable.
16253 (gen_automata_option): Process `progress'.
16254 (transform_insn_regexps, check_unit_distributions_to_automata,
16255 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
16256 expand_automata, write_automata): Print about the progress only if
16257 progress_flag. Remove fflush.
16258 (initiate_automaton_gen): Process command line flag `-progress'.
16259
16260 * doc/md.texi: Describe the new option.
16261
16262 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16263
16264 * cfg.c (dump_bb): Dump entry edges.
16265
16266 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
16267
16268 * arm.c (thumb_legitimate_address_p): Only allow constant pool
16269 references from SImode.
16270 * arm.md (thumb_movhi_insn): Don't allow minipool references.
16271
16272 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
16273
16274 * system.h (TEXT_SECTION): Poison.
16275 * varasm.c (text_section): Don't use TEXT_SECTION.
16276 * config/sh/sh.c (sh_file_start): Fix a comment typo.
16277 * doc/tm.texi (TEXT_SECTION): Remove.
16278
16279 2004-01-13 Ben Elliston <bje@wasabisystems.com>
16280
16281 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
16282
16283 2004-01-12 James E Wilson <wilson@specifixinc.com>
16284
16285 * unwind-libunwind.c: Delete.
16286
16287 2004-01-12 Zack Weinberg <zack@codesourcery.com>
16288
16289 PR 13656
16290 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
16291 oldtype is set, set *newtypep or *oldtypep too. Do not set
16292 them at the very end.
16293 (validate_proto_after_old_defn): Restructure for comprehensibility;
16294 make error messages clearer.
16295
16296 2004-01-12 Zack Weinberg <zack@codesourcery.com>
16297
16298 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
16299 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
16300 * varray.c: No need to prototype error.
16301 (varray_check_failed): Wrap long string onto two lines.
16302 (varray_underflow): New function.
16303
16304 2004-01-13 Steven Bosscher <stevenb@suse.de>
16305
16306 PR c++/13376
16307 * function.h (struct function): Kill `name' field.
16308 (current_function_name): Make it an extern function.
16309 * function.c (current_function_name): New function.
16310 * graph.c: Update all uses of current_function_name.
16311 * gcse.c: Likewise.
16312 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
16313 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
16314 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
16315 instead of a strcmp with "main".
16316
16317 2004-01-13 Jan Hubicka <jh@suse.cz>
16318
16319 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
16320
16321 * cgraphunit.c (cgraph_optimize_function): Always do
16322 optimize_inline_calls when there is always_inline callee.
16323 (cgraph_decide_inlining): Fix formating.
16324 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
16325 functions.
16326 (expand_call_inline): Likewise.
16327 * toplev.h (sorry): Fix prototype.
16328
16329 2004-01-12 Roger Sayle <roger@eyesopen.com>
16330
16331 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
16332 conditional jumps that drop through to unconditional jumps or the
16333 end of the sequence.
16334
16335 2004-01-13 Jan Hubicka <jh@suse.cz>
16336
16337 * alias.c (new_alias_set): Construct the alias_set varray.
16338 (init_alias_once): Don't do it here.
16339
16340 2004-01-12 Marc Espie <espie@openbsd.org>
16341
16342 * system.h: handle YYBYACC like YYBISON.
16343
16344 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
16345
16346 PR target/10847
16347 * config.gcc: No longer includes conflicting header sparc/sol2.h when
16348 building on sparc64-*-openbsd*.
16349
16350 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
16351
16352 PR debug/13539
16353 * dbxout.c (dbxout_type): Protected inheritance is not
16354 private but protected.
16355
16356 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
16357
16358 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
16359
16360 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
16361
16362 PR optimization/12508.
16363 * combine.c (try_combine): Remove a dead set in a parallel
16364 even if its destination is a subreg.
16365
16366 Revert:
16367 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
16368 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
16369 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
16370
16371 2004-01-12 Geoffrey Keating <geoffk@apple.com>
16372
16373 * real.c: Update copyright date.
16374 * emit-rtl.c: Likewise.
16375 * rtl.h: Likewise.
16376 * dwarf2out.c: Likewise.
16377 * config/rs6000/darwin-ldouble.c: Likewise.
16378 * config/rs6000/rs6000.md: Likewise.
16379
16380 2004-01-12 David Edelsohn <edelsohn@gnu.org>
16381
16382 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
16383 TFmode to SImode libfuncs.
16384
16385 2004-01-12 Roger Sayle <roger@eyesopen.com>
16386
16387 PR middle-end/11397
16388 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
16389
16390 2004-01-12 Jan Hubicka <jh@suse.cz>
16391
16392 PR opt/12826
16393 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
16394 stored.
16395
16396 PR opt/12863
16397 * cfgcleanup.c (label_is_jump_target_p): Move to...
16398 * rtlanal.c (label_is_jump_target_p): ... here.
16399 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
16400 edges unified with branch edges.
16401
16402 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
16403
16404 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
16405 high word of an integral CONST_DOUBLE.
16406
16407 2004-01-12 Paul Brook <paul@codesourcery.com>
16408
16409 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
16410
16411 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
16412
16413 PR target/13585
16414 * sh-protos.h (check_use_sfunc_addr): Declare.
16415 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
16416 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
16417
16418 2004-01-12 Jan Hubicka <jh@suse.cz>
16419
16420 * alias.c: Invlude varray.h
16421 (alias_sets): Turn into varray.
16422 (get_alias_set_entry): Use VARRAY; mark inline.
16423 (mems_in_disjoint_alias_sets_p): Mark inline.
16424 (record_alias_subset): Use varray.
16425 (init_alias_once): Initialize varray.
16426 (new_alias_set): Grow array.
16427 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
16428
16429 2004-01-12 Jan Hubicka <jh@suse.cz>
16430
16431 Partial fix for PR opt/10776 II
16432 * cselib.c: Include params.h
16433 (cselib_invalidate_mem): Limit amount of nonconflicting memory
16434 locations.
16435 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
16436 * Makefile.in (cselib.o): Depend on params.h
16437
16438 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
16439
16440 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
16441 simplify_unary_operation if the operand has a known mode.
16442
16443 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
16444
16445 PR target/13534
16446 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
16447 predicate to handle 'ld' conform addresses.
16448 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
16449 contraint.
16450 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
16451 are memory contraints.
16452 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
16453 New prototype.
16454 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
16455 Change 'o' to 'Y' constraint.
16456 (*movdf_softfloat64): Ditto.
16457
16458 2004-01-12 Bernardo Innocenti <bernie@develer.com>
16459
16460 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
16461 brace-enclosed syntax in all C output statements.
16462
16463 2004-01-12 David Edelsohn <edelsohn@gnu.org>
16464
16465 PR target/13401
16466 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
16467 Objective-C language type value is 14.
16468
16469 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
16470
16471 PR c/12148
16472 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
16473 `int' in a number of places to make sure we always have a SImode
16474 and not a HImode. Add a 'L' suffix to a number of constants.
16475
16476 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16477
16478 * pa.c: Don't include obstack.h.
16479
16480 * pa.md: Correct constraint in pattern for loading PIC label address.
16481
16482 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
16483
16484 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
16485 before defining.
16486
16487 2004-01-11 Steven Bosscher <stevenb@suse.de>
16488
16489 PR fortran/9972
16490 * toplev.c (rest_of_handle_inline): Also consider functions
16491 for deferral if the language is GNU F77.
16492
16493 2004-01-11 Zack Weinberg <zack@codesourcery.com>
16494
16495 * c-decl.c (diagnose_arglist_conflict): Add missing space to
16496 diagnostic messages.
16497
16498 2004-01-11 Jakub Jelinek <jakub@redhat.com>
16499
16500 PR middle-end/13392
16501 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
16502 to drop through label. Don't fall back to SCC even when conditional
16503 jump has not been found.
16504
16505 2004-01-11 Jan Hubicka <jh@suse.cz>
16506
16507 * invoke.texi: Fix syntax error in previous patch.
16508
16509 Partial fix for PR opt/10776
16510 * Makefile.in (reload.o): Include param.h
16511 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
16512 * reload.c: Include params.h.
16513 (find_equiv_reg): Work limiting check.
16514 * invoke.texi: Document.
16515
16516 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
16517
16518 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
16519 out-of-bounds accesses to string constants. Simplify mips16
16520 case accordingly.
16521
16522 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
16523
16524 PR optimization/13469
16525 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
16526 reload_cse_regs (-fnon-call-exceptions only).
16527
16528 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
16529
16530 * config/mcore/lib1.asm: Fix comment formatting.
16531 * config/mcore/mcore-elf.h: Likewise.
16532 * config/mcore/mcore.c: Likewise.
16533 * config/mcore/mcore.h: Likewise.
16534 * config/mcore/mcore.md: Likewise.
16535
16536 2004-01-10 Zack Weinberg <zack@codesourcery.com>
16537
16538 * c-decl.c (duplicate_decls): Break apart into...
16539 (diagnose_arglist_conflict, validate_proto_after_old_defn)
16540 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
16541 ... these new functions. Restructure for comprehensibility.
16542 Remove various archaic special cases. Always report the
16543 location of the previous declaration when a diagnostic is issued.
16544 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
16545 (match_builtin_function_types): Delete unnecessary forward declaration.
16546
16547 2004-01-10 Zack Weinberg <zack@codesourcery.com>
16548
16549 * genautomata.c (make_automaton, NDFA_to_DFA):
16550 Print progress bars with '.' characters instead of '*'.
16551 (build_automaton): Change notes to match.
16552
16553 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
16554
16555 * config/m32r/m32r.md: Use define_constants for unspec and
16556 unspec_volatile.
16557
16558 2004-01-10 Jan Hubicka <jh@suse.cz>
16559
16560 PR opt/11635
16561 * expr.c (expand_expr_real): More curefully expand union casts.
16562
16563 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
16564
16565 * config/m32r/m32r.md (flush_icache): Use 1 for
16566 unspec_volatile.
16567
16568 2004-01-10 David Edelsohn <edelsohn@gnu.org>
16569 James E Wilson <wilson@specifixinc.com>
16570
16571 PR debug/12860
16572 * dbxout.c (dbxout_symbol): Remove initialization of
16573 current_sym_code, current_sym_value, and current_sym_addr.
16574 (dbxout_symbol_location): Same.
16575 (dbxout_prepare_symbol): Zero current_sym_code,
16576 current_sym_value, and current_sym_addr.
16577
16578 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
16579
16580 * tree.c (get_unwidened): Reorder conditions so that the null pointer
16581 check is done first.
16582
16583 2004-01-09 Eric Christopher <echristo@redhat.com>
16584
16585 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
16586 if we're running mark_constant_function.
16587
16588 2004-01-09 Jeff Bailey <jbailey@nisa.net>
16589
16590 PR target/12561
16591 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
16592
16593 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
16594
16595 PR debug/11231
16596 * dbxout.c (dbxout_type_fields): Return if any item is
16597 error_mark_node or the type is error_mark_node.
16598
16599 2004-01-09 Geoffrey Keating <geoffk@apple.com>
16600
16601 * config/rs6000/darwin-ldouble.c: Add big comment explaining
16602 exactly what is expected as a 'long double'.
16603 (_xlqadd): When a value to be returned is representable as a
16604 'double', just return it directly, do not construct it using a union.
16605 Also, correct final fixup.
16606 (_xlqmul): Likewise.
16607 (_xlqdiv): Likewise.
16608 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
16609
16610 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
16611
16612 2004-01-09 Richard Henderson <rth@redhat.com>
16613
16614 * recog.c (constrain_operands): Validate mem operands.
16615
16616 2004-01-09 James E Wilson <wilson@specifixinc.com>
16617
16618 * gcc.c (init_spec): Remove -lunwind from shared case.
16619 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
16620
16621 2004-01-09 Steve Ellcey <sje@cup.hp.com>
16622
16623 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
16624 * configure: Regenerate
16625
16626 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
16627
16628 PR c/11234
16629 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
16630 between function and object pointers.
16631 (digest_init): When comparing a pointer to function type to the
16632 target type, only apply TREE_TYPE once to the pointer to function
16633 type.
16634 * except.c (for_each_eh_label_1): Treat data as a pointer to a
16635 function pointer rather than casting it to a function pointer.
16636 (for_each_eh_label): Update caller.
16637 * recog.h (struct insn_data): Use a struct or union for output.
16638 * genoutput.c (output_insn_data): Update.
16639 * final.c (get_insn_template): Update.
16640
16641 2004-01-09 Mark Mitchell <mark@codesourcery.com>
16642
16643 * expr.h (expand_expr): Make it a macro, not a function.
16644 (expand_expr_real): New function.
16645 * expr.c (store_expr): Adjust logic for deciding whether or not to
16646 copy the value returned by expand_expr.
16647 (expand_expr): Rename to ...
16648 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
16649 calls to language hooks.
16650 * c-common.h (c_expand_expr): Adjust prototype.
16651 * c-common.c (c_expand_expr): Add alt_rtl parameter.
16652 * langhooks-def.h (lhd_expand_expr): Change prototype.
16653 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
16654 * langhooks.h (lang_hooks): Change type of expand_expr.
16655 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
16656 (last_expr_alt_rtl): Likewise.
16657 (expand_expr_stmt_value): Set last_expr_alt_rtl.
16658 (clear_last_expr): Clear it.
16659 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
16660 (expand_end_bindings): Save and restor last_expr_alt_rtl.
16661 * tree.def (RTL_EXPR): Give it an additional operand.
16662 * tree.h (RTL_EXPR_ALT_RTL): New macro.
16663
16664 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
16665
16666 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
16667 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
16668
16669 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
16670
16671 PR target/13380.
16672 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
16673 or (ne:SI (reg:CC 17) (const_int 0)).
16674 Be specific about modes wherever possible.
16675
16676 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
16677
16678 * config/m32r/m32r.c (m32r_expand_block_move): Call
16679 gen_movestrsi_internal with two more arguments.
16680 (m32r_output_block_move): Adjust operand numbers.
16681 Properly update the source and destination pointers.
16682 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
16683 'r+'. Change the set detinations to match_operand.
16684
16685 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
16686
16687 * final.c (FIRST_INSN_ADDRESS): Remove.
16688 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
16689 * system.h (FIRST_INSN_ADDRESS): Poison.
16690 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
16691 * config/m32r/m32r-protos.h: Remove the prototype for
16692 m32r_first_insn_address.
16693 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
16694 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
16695 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
16696
16697 2004-01-09 J. Brobecker <brobecker@gnat.com>
16698
16699 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
16700 we just created.
16701 (is_ada_subrange_type): DIEs for enumeration subtypes should be
16702 emitted as subrange types too.
16703 (subrange_type_die): Add handling of enumeration subtypes.
16704
16705 2004-01-08 Richard Henderson <rth@redhat.com>
16706
16707 PR opt/12441
16708 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
16709 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
16710 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
16711 (ix86_address_cost): Be prepared for SUBREGed registers.
16712 (legitimate_address_p): Accept SUBREGed registers.
16713
16714 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
16715
16716 * Makefile.in: Rename configure.in to configure.ac
16717 * doc/sourcebuild.texi: Likewise.
16718 * configure: Regenerate.
16719 * config.in: Regenerate.
16720
16721 2004-01-08 Stuart Hastings <stuart@apple.com>
16722
16723 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
16724
16725 2004-01-08 Jan Hubicka <jh@suse.cz>
16726
16727 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
16728
16729 2004-01-08 Geoffrey Keating <geoffk@apple.com>
16730
16731 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
16732 (UNSPEC_FIX_TRUNC_TF): New constant.
16733 (movtf_internal): Make splitter active only when insn is active.
16734 (extenddftf2): Rewrite to properly load zero into low part.
16735 (extenddftf2_internal): New.
16736 (extendsftf2): Rewrite.
16737 (truncdftf2): Correct length.
16738 (floatditf2): Delete.
16739 (fix_trunc_helper): New.
16740 (fix_trunctfdi2): Use fix_trunc_helper.
16741 (fix_trunctfsi2): Likewise.fix_trunc
16742 (fix_trunctfsi2_internal): New.
16743
16744 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
16745 addresses are legitimate on Darwin even when flag_pic.
16746 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
16747 non-offsettable addresses for loads of TFmode constants.
16748
16749 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
16750
16751 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
16752 variables in the appropriate bss section.
16753
16754 2004-01-09 Alan Modra <amodra@bigpond.net.au>
16755
16756 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
16757 target_flags has MASK_POWERPC64 when -m64.
16758 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
16759 to 620, 630, power3, power4 and rs64a entries.
16760 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
16761
16762 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
16763
16764 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
16765 floating-point constants.
16766
16767 2004-01-08 J. Brobecker <brobecker@gnat.com>
16768
16769 * dwarf2out.c (subrange_type_die): Add context_die parameter.
16770 Create the subrange_type DIE using the given context DIE.
16771 (modified_type_die): Update call to subrange_type_die.
16772
16773 2004-01-08 Zack Weinberg <zack@codesourcery.com>
16774
16775 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
16776 Add multiple-include guard.
16777
16778 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
16779
16780 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
16781 all vector constant loadable by vsplt*.
16782 (output_vec_const_move): Likewise.
16783
16784 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
16785
16786 PR c/6024
16787 * c-typeck.c (comptypes): Only treat enumerated types in the same
16788 translation unit as compatible with each other when they are the
16789 same type.
16790 * doc/extend.texi: Update.
16791
16792 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
16793
16794 PR c/12165
16795 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
16796 array type from the array element type.
16797
16798 2004-01-07 Alan Modra <amodra@bigpond.net.au>
16799
16800 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
16801 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
16802 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
16803 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
16804 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
16805
16806 2004-01-06 Eric Christopher <echristo@redhat.com>
16807
16808 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
16809 (DWARF2_DEBUGGING_INFO): Define.
16810 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
16811 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
16812 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
16813 for irix as.
16814 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
16815 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
16816 * config/mips/iris5gas.h: Ditto.
16817 (DBX_DEBUGGING_INFO): Remove.
16818 (DWARF2_DEBUGGING_INFO): Ditto.
16819 (MIPS_DEBUGGING_INFO): Ditto.
16820 (PREFERRED_DEBUGGING_TYPE): Ditto.
16821 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
16822 (PREFERRED_DEBUGGING_TYPE): Ditto.
16823 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
16824 * config/mips/elf64.h: Ditto.
16825
16826 2004-01-06 Jan Hubicka <jh@suse.cz>
16827
16828 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
16829 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
16830
16831 2004-01-06 Geoffrey Keating <geoffk@apple.com>
16832
16833 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
16834 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
16835 * config/rs6000/darwin-ldouble.c: New.
16836
16837 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
16838 for constants.
16839 (constant_subword): Delete.
16840 * rtl.h (constant_subword): Delete prototype.
16841 (immed_double_const): Is not in varasm.c.
16842 * simplify-rtx.c (simplify_immed_subreg): New.
16843 (simplify_subreg): Use simplify_immed_subreg.
16844
16845 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
16846 than trying to generate RTL directly.
16847 (fix_trunctfsi2): Use expand_fix rather than trying to generate
16848 RTL directly.
16849
16850 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
16851
16852 2004-01-06 David Edelsohn <edelsohn@gnu.org>
16853
16854 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
16855 function into a separate macro.
16856 (read_only_data_section): Add void argument.
16857 (private_data_section): Same.
16858 (read_only_private_data_section): Same.
16859 (toc_section): Same.
16860
16861 2004-01-06 Jan Hubicka <jh@suse.cz>
16862
16863 * invoke.texi: Remove typo in last change.
16864
16865 PR target/10301
16866 * config.gcc: Accept opteron and athlon-64 as variants
16867 of k8.
16868 * i386.c (override_options): Likewise.
16869 * invoke.texi (i386 -mtune): Expand documentation.
16870
16871 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
16872
16873 * alias.c: Fix comment typos.
16874 * builtins.c: Likewise.
16875 * cfg.c: Likewise.
16876 * df.c: Likewise.
16877 * dominance.c: Likewise.
16878 * dwarf2out.c: Likewise.
16879 * emit-rtl.c: Likewise.
16880 * expr.c: Likewise.
16881 * final.c: Likewise.
16882 * fold-const.c: Likewise.
16883 * gcse.c: Likewise.
16884 * genattrtab.c: Likewise.
16885 * genrecog.c: Likewise.
16886 * gensupport.c: Likewise.
16887 * ggc-zone.c: Likewise.
16888 * integrate.c: Likewise.
16889 * local-alloc.c: Likewise.
16890 * loop.c: Likewise.
16891 * recog.c: Likewise.
16892 * regmove.c: Likewise.
16893 * reg-stack.c: Likewise.
16894 * reorg.c: Likewise.
16895 * rtlanal.c: Likewise.
16896 * rtl.h: Likewise.
16897 * sched-ebb.c: Likewise.
16898 * simplify-rtx.c: Likewise.
16899 * toplev.c: Likewise.
16900 * varasm.c: Likewise.
16901
16902 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
16903
16904 * doc/install.texi: Fix typos.
16905 * doc/invoke.texi: Likewise.
16906 * doc/md.texi: Likewise.
16907
16908 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
16909
16910 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
16911
16912 2004-01-06 Jan Hubicka <jh@suse.cz>
16913
16914 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
16915 (function_arg_advance): Do not pass aggregates in SSE; deal handling
16916 of MMX_REGPARM.
16917 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
16918 add MMX_REGPARM.
16919 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
16920 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
16921 (MMX_REGPARM_MAX): Similarly for -mmmx.
16922
16923 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
16924
16925 * config/sh/linux.h: Fix comment formatting.
16926 * config/sh/netbsd-elf.h: Likewise.
16927 * config/sh/sh.c: Likewise.
16928 * config/sh/sh.h: Likewise.
16929 * config/sh/vxworks.h: Likewise.
16930
16931 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
16932
16933 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
16934 * toplev.c (output_file_directive): Don't use
16935 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
16936
16937 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
16938
16939 * toplev.c: Fix broken checkin of 2003-12-30.
16940
16941 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
16942
16943 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
16944 (USING_MMAP): We don't support non-mmap.
16945 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
16946 large objects.
16947 (struct page_entry): Remove bytes_free.
16948 (struct page_table_chain): Remove.
16949 (struct globals): Remove page_table member.
16950 (loookup_page_table_entry): Function deleted.
16951 (set_page_table_entry): Ditto.
16952 (ggc_allocated_p): No longer need page table lookups.
16953 (ggc_marked_p): Ditto.
16954 (alloc_small_page): Don't care about bytes_free anymore.
16955 (alloc_large_page): Round up size.
16956 (ggc_alloc_zone_1): Mark large objects as such, and calculate
16957 their size the new way.
16958 Remove page table lookups and setting.
16959 (ggc_get_size): Calculate large object size the new way.
16960 (sweep_pages): Redo to account for fact that we no longer have
16961 bytes_free.
16962 (ggc_collect): No longer need to reincrement bytes_free.
16963 (ggc_pch_alloc_object): Handle new large objects properly.
16964 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
16965
16966 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
16967
16968 * doc/invoke.texi: Remove a page break.
16969
16970 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
16971
16972 * config/avr/avr.c (avr_output_function_prologue): Remove an
16973 extra pair of curly braces.
16974
16975 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
16976
16977 * config/mn10300/mn10300.c: Fix comment formatting.
16978 * config/mn10300/mn10300.h: Likewise.
16979
16980 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16981
16982 * tree.h: Update documentation on nothrow_flag.
16983 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
16984 types.
16985
16986 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
16987
16988 * doc/invoke.texi: Remove traces of dead ports.
16989
16990 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
16991
16992 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
16993 option.
16994
16995 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
16996
16997 PR target/12945
16998 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
16999 counter labels.
17000 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
17001 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
17002 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
17003 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
17004 (mips_symbol_insns): Don't trust the local/global classification.
17005 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
17006 (override_options): Make -mabicalls -fno-unit-at-a-time imply
17007 -mno-explicit-relocs.
17008 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
17009 between local and global symbols.
17010
17011 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
17012
17013 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
17014 (mips_preferred_reload_class): Declare.
17015 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
17016 (EXTRA_CONSTRAINT): Update accordingly.
17017 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
17018 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
17019 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
17020 mips_dangerous_for_la25_p.
17021 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
17022 if mips_dangerous_for_la25_p.
17023
17024 2004-01-05 Bernardo Innocenti <bernie@develer.com>
17025
17026 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
17027 warning.
17028
17029 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
17030
17031 * configure.ac: Use AC_PROG_CPP_WERROR.
17032 * configure: Regenerate.
17033
17034 2004-01-04 Zack Weinberg <zack@codesourcery.com>
17035
17036 * .cvsignore: Add autom4te.cache.
17037
17038 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
17039
17040 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
17041 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
17042 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
17043 then architecture options, then ABI options. General rewording.
17044
17045 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
17046
17047 PR c/3414
17048 * doc/extend.texi: Clarify definition of malloc attribute.
17049
17050 2004-01-04 Jan Hubicka <jh@suse.cz>
17051
17052 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
17053 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
17054 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
17055 (cgraph_inline_p): Add extra argument reason.
17056 * cgraphunit.c: Minor formating fixes.
17057 cgraph_first_inlined_callee): New functions.
17058 (record_call_1): Record builtins too.
17059 (cgraph_analyze_function): Update inline_failed messages.
17060 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
17061 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
17062 (cgraph_check_inline_limits): Likewise; Add argument reason.
17063 (cgraph_set_inline_failed): New static function.
17064 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
17065 reasons.
17066 (cgraph_inline_p): Add new argument reason.
17067 * tree-inline.c (expand_call_inline): Update warning.
17068
17069 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
17070
17071 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
17072 with modern equivalents.
17073 * configure: Regenerate.
17074
17075 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
17076 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
17077 * configure: Regenerate.
17078
17079 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
17080
17081 * configure.in: Rename to configure.ac.
17082 * configure.ac: Renamed from configure.in; make minimum necessary
17083 changes for autoconf 2.5x.
17084 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
17085 * configure: Regenerate with autoconf 2.57.
17086
17087 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
17088
17089 * config/mips/linux.h: Fix comment formatting.
17090 * config/mips/mips.c: Likewise.
17091 * config/mips/mips.h: Likewise.
17092 * config/mips/mips.md: Likewise.
17093 * config/mips/netbsd.h: Likewise.
17094 * config/mips/windiss.h: Likewise.
17095
17096 2004-01-02 Richard Henderson <rth@redhat.com>
17097
17098 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
17099 for sse and 387; add suppression for mmx.
17100
17101 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
17102
17103 * loop.c (loop_optimize): Free all loops_info's mems.
17104
17105 * c-typeck.c (finish_init): Free spelling_base before
17106 setting it again.
17107
17108 * cfgloop.c (flow_loops_find): Always free the sbitmap
17109 headers.
17110
17111 * predict.c (estimate_probability): Free bbs after being
17112 done with it.
17113
17114 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
17115
17116 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
17117 const_8bit_operand and call_address_operand.
17118
17119 2004-01-02 Jan Hubicka <jh@suse.cz>
17120
17121 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
17122 when there is nothing to inline but warnings are requested.
17123 (cgraph_decide_inlining): Fix memory leak.
17124
17125 2004-01-02 Jan Hubicka <jh@suse.cz>
17126
17127 * expr.c (store_constructor): Fix pasto in previous patch.
17128
17129 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
17130
17131 * config/i386/cygming.h: Fix comment formatting.
17132 * config/i386/djgpp.h: Likewise.
17133 * config/i386/gthr-win32.c: Likewise.
17134 * config/i386/i386-interix.h: Likewise.
17135 * config/i386/i386.c: Likewise.
17136 * config/i386/i386.h: Likewise.
17137 * config/i386/openbsd.h: Likewise.
17138 * config/i386/winnt.c: Likewise.
17139 * config/i386/xm-mingw32.h: Likewise.
17140
17141 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
17142
17143 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
17144 copyright and last modification dates.
17145
17146 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
17147
17148 * doc/install.texi (Specific): Mention x86_64.
17149
17150 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
17151
17152 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
17153 Call force_operand on plus_constant result.
17154
17155 2004-01-01 Jan Hubicka <jh@suse.cz>
17156
17157 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
17158 * expr.c (store_constructor): Use vec_init pattern.
17159 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
17160 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
17161 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
17162 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
17163 New patterns.
17164 (sse2_unpc?pd): Fix pattern.
17165 (sse2_movlpd): Kill.
17166 (sse2_movsd): Deal with movlpd too.
17167 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
17168 (ix86_expand_vector_init): New.
17169 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
17170 * md.texi (vec_set, vec_extract): Document
17171
17172 2003-12-31 Jan Hubicka <jh@suse.cz>
17173
17174 PR opt/13473
17175 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
17176 ASM input operands
17177
17178 PR opt/12617
17179 * toplev.c (dump_file_index): Reorder ce3 and bbro.
17180 (dump_file): Likewise.
17181 (rest_of_compilation): Likewise.
17182
17183 PR debug/13367
17184 * cgraph.c (cgraph_function_possibly_inlined): Even with
17185 flag_really_no_inline we inline always_inline functions.
17186 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
17187 for non-always_inline functions when there is flag_really_no_inline.
17188 (cgraph_decide_inlining): Limit work done when not inlining.
17189 (cgraph_decide_inlining_incrementally): Likewise.
17190 (cgraph_optimize_function): Check whether something got inlined.
17191 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
17192 extern inline functions when not inlining.
17193
17194 * opts.c (decode_options): Disable crossjumping at -O1
17195 * invoke.texi (-O1): Document change.
17196
17197 See ChangeLog.10 for earlier changes.