e6038259986830db2a3e178e774d5f69365ff505
[gcc.git] / gcc / ChangeLog
1 2004-06-15 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2
3 * config/m32r/m32r.h (RETURN_ADDR_RTX): Define.
4 (INCOMING_RETURN_ADDR_RTX): Define.
5 * config/m32r/m32r-protos.h (m32r_return_addr): Added.
6 * config/m32r/m32r.c (m32r_exppand_prologue): Changed for
7 __builtin_return_address(0).
8 (m32r_return_addr): Added for __builtin_return_address(0).
9 (m32r_reload_lr): Ditto.
10
11 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
12
13 * doc/install.texi (Prerequisites): Update libbanshee,
14 fastjar, libcpp, libjava/libltdl entries to
15 automake 1.8.5.
16
17 2004-06-15 Eric Botcazou <ebotcazou@act-europe.fr>
18 Olivier Hainque <hainque@act-europe.fr>
19
20 * function.c (fixup_var_refs): Also adjust the start of sequence
21 after fixing up the insns.
22
23 2004-06-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
24
25 * gccbug.in: Update optimization -> tree-optimization/rtl-optimization.
26
27 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
28
29 * doc/install.texi (Prerequisites): Update libstdc++ entry to
30 automake 1.8.5.
31
32 2004-06-14 Eric Christopher <echristo@redhat.com>
33
34 * config/s390/s390.h (TARGET_SWITCHES): Change -mtpf (-mno-tpf)
35 to -mtpf-trace (-mno-tpf-trace).
36 * doc/invoke.texi (S/390 and zSeries Options): Add tpf option
37 documentation.
38
39 2004-06-14 Eric Botcazou <ebotcazou@libertysurf.fr>
40
41 * real.c: Fix bit count in head comment.
42
43 2004-06-14 Jeff Law <law@redhat.com>
44
45 * tree-ssa.c (kill_redundant_phi_nodes): More correctly handle
46 PHIs where the destination or an argument is marked with
47 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
48
49 2004-06-14 Jakub Jelinek <jakub@redhat.com>
50
51 PR middle-end/15945
52 * simplify-rtx.c (simplify_binary_operation): Don't optimize out
53 Inf + -Inf, Inf - Inf, Inf / Inf and 0 * Inf if flag_trapping_math.
54
55 2004-06-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
56
57 * opts.sh (var_args): Fix regexp.
58
59 2004-06-14 Jakub Jelinek <jakub@redhat.com>
60
61 PR target/15178
62 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
63
64 2004-06-14 Paul Brook <paul@codesourcery.com>
65
66 * dwarf2out.c (output_call_frame_info): Support dwarf3 cie entries.
67
68 2004-06-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
69
70 * Makefile.in (FLAGS_H): New.
71 (flags.h): Replace by FLAGS_H.
72 * c.opt: Document Var, VarExists, Init and Report attributes.
73 * common.opt: Fill the values of the attributes.
74 * diagnostic.c (flag_fatal_errors): Do not define.
75 * except.c (flag_non_call_exceptions): Do not define.
76 * flags.h: Include options.h. Remove declarations conflicting with
77 the automatically defined ones.
78 * opts.c: Remove automatically defined variables.
79 (handle_option): Perform default initialization.
80 (common_handle_option): Do not handle options covered by the
81 default initialization.
82 * opts.h (struct cl_option): Add flag_var, has_set_value and set_value
83 fields.
84 (CL_REPORT): New.
85 * opts.sh: Generate variable declarations, handle CL_REPORT.
86 * toplev.c: Remove automatically defined variables.
87 (f_options): Removed.
88 (print_switch_values): Use cl_options instead of f_options.
89 * toplev.h (version_flag): Declaration removed.
90
91 2004-06-14 Ian Lance Taylor <ian@wasabisystems.com>
92
93 * config/sparc/sparc.h: Correct comment about availability of
94 little endian option.
95
96 * config.gcc: Remove sparc64-*-aout*.
97 * config/sparc/sparc.c (sparc_aout_select_rtx_section): Remove.
98 * config/sparc/sp64-aout.h: Remove.
99 * config/sparc/aout.h: Remove.
100
101 2004-06-14 Ulrich Weigand <uweigand@de.ibm.com>
102
103 * config/s390/s390.c: Include "tree-gimple.h".
104 (s390_gimplify_va_arg): New function.
105 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
106 (s390_va_arg): Remove.
107 * config/s390/s390-protos.h (s390_va_arg): Remove.
108 * config/s390/s390.h (EXPAND_BUILTIN_VA_ARG): Call abort ().
109
110 2004-06-14 J"orn Rennecke <joern.rennecke@superh.com>
111
112 * basic-block.h (could_fall_through): Declare.
113 * cfganal.c (can_fallthru): Succeed if the target is EXIT_BLOCK_PTR.
114 Fail if the source already has a fallthrough edge to the exit
115 block pointer.
116 (could_fall_through): New function.
117 * cfgbuild.c (make_edges): Check if we already have a fallthrough
118 edge to the exit block pointer.
119 * cfglayout.c (fixup_fallthru_exit_predecessor): Check that it is
120 not called before reload has completed.
121 Handle special case of first block having a fall-through exit edge.
122 (cfg_layout_finalize): Don't call it before reload or if we have
123 rtl epilogues.
124 (fixup_reorder_chain): A fall through to the exit block does not
125 require the block to come last. Add sanity checks.
126 * cfgrtl.c (rtl_split_edge): Add special handling of fall through
127 edges to the exit block.
128 * function.c (cfglayout.h): #include.
129 (thread_prologue_and_epilogue_insns): If we have neither return nor
130 epilogue, but a fall through to the exit block from mid-function,
131 force a non-fall-through exit.
132 * Makefile.in (function.o): Depend on CFGLAYOUT_H.
133
134 2004-06-14 Alan Modra <amodra@bigpond.net.au>
135
136 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu
137 for power5 and rs64a. Correct condition for default. Correct power3,
138 620, 630, 7400, 7450, G4, 970 and G5 -mcpu entries. Add -many.
139
140 2004-06-13 Steven Bosscher <stevenb@suse.de>
141
142 * gcse.c (hash_scan_set, hash_scan_insn, mark_set, mark_oprs_set):
143 Revert previous change, don't use CALL_P.
144
145 2004-06-13 Jason Merrill <jason@redhat.com>
146
147 * tree.h: Move std_gimplify_va_arg_expr protoype here.
148 * tree-gimple.h: From here.
149
150 2004-06-13 Daniel Berlin <dberlin@dberlin.org>
151
152 Fix PR tree-optimization/15979
153 Fix PR tree-optimization/15981
154 * tree-ssa-pre.c (insert_aux): Fix faulty logic so that we don't
155 try to insert values undefined along some path.
156
157 2004-06-13 Daniel Berlin <dberlin@dberlin.org>
158
159 * tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things
160 are available everywhere too.
161
162 2004-06-13 Andrew Pinski <pinskia@physics.uc.edu>
163
164 * fold-const.c (fold_checksum_tree <case 't'>): Only
165 look at TREE_VALUES if the EXPR is an ENUMERAL_TYPE.
166 Only look at TYPE_MIN_VALUE and TYPE_MAX_VALUE if
167 EXPR is an INTEGERAL_TYPE or a scalar float type.
168
169 2004-06-13 Diego Novillo <dnovillo@redhat.com>
170
171 * tree-sra.c (tree_sra): Update documentation.
172
173 2004-06-13 Joseph S. Myers <jsm@polyomino.org.uk>
174
175 * c-typeck.c (comptypes, tagged_types_tu_compatible_p,
176 function_types_compatible_p, type_lists_compatible_p): Remove
177 flags parameter.
178 * c-tree.h (comptypes): Likewise.
179 (COMPARE_STRICT): Remove.
180 * c-decl.c, c-lang.c, c-parse.in, c-typeck.c, objc/objc-act.c: All
181 callers changed.
182
183 2004-06-13 Eric Christopher <echristo@redhat.com>
184
185 * c-decl.c (diagnose_mismatched_decls): Improve error message.
186 Remove unused code.
187 * c-typeck.c (comptypes): Add location in standard we're checking.
188
189 2004-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
190
191 * config/sh/libgcc-std.ver: Add __unorddf2 and __unordsf2 with
192 version 3.3.4.
193
194 2004-06-12 Roger Sayle <roger@eyesopen.com>
195
196 * expmed.c (shift_cost, shiftadd_cost, shiftsub_cost): Additionally
197 index by machine mode.
198 (init_expmed): Initialize shift_cost, shiftadd_cost and shiftsub_cost
199 tables inside the loop over machine modes.
200 (synth_mult, expand_mult_highpart_optab, expand_mult_highpart,
201 expand_divmod): Index shift*_cost by the appropriate machine mode.
202
203 2004-06-12 Eric Christopher <echristo@redhat.com>
204
205 * config/s390/s390.h: Rename TARGET_TPF to TARGET_TPF_PROFILING.
206 * config/s390/s390.md: Ditto.
207 * config/s390/s390.c: Ditto.
208 (s390_frame_info): Conditionalize frame and setup info on
209 TARGET_TPF_PROFILING.
210 (s390_arg_frame_offset): Ditto.
211
212 2004-06-12 Roger Sayle <roger@eyesopen.com>
213
214 * fold-const.c (omit_two_operands): New function.
215 * tree.h (omit_two_operands): Prototype here.
216 * builtins.c (fold_builtin_unordered_cmp): New function to lower
217 C99 unordered comparison builtins to the appropriate tree nodes.
218 (fold_builtin_1): Use fold_builtin_unordered_cmp to lower
219 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
220 BUILT_IN_ISLESSEQUAL and BUILT_IN_ISLESSGREATER. Manually lower
221 BUILT_IN_ISUNORDERED comparisons to an UNORDERED_EXPR tree node.
222 (simplify_builtin_memcmp, simplify_builtin_strncmp,
223 simplify_builtin_strncat, simplify_builtin_strspn): Use the new
224 omit_two_operands function to build the required COMPOUND_EXPRs.
225
226 2004-06-12 Steven Bosscher <stevenb@suse.de>,
227 Andreas Jaeger <aj@suse.de>
228
229 * gcse.c (record_set_info): Use predicates like REG_P.
230 (mems_conflict_for_gcse_p): Likewise.
231 (load_killed_in_block_p): Likewise.
232 (hash_expr_1): Likewise.
233 (insert_set_in_table): Likewise.
234 (gcse_constant_p): Likewise.
235 (hash_scan_set): Likewise.
236 (hash_scan_insn): Likewise.
237 (canon_list_insert): Likewise.
238 (record_last_mem_set_info): Likewise.
239 (record_last_set_info): Likewise.
240 (compute_hash_table_work): Likewise.
241 (mark_set): Likewise.
242 (mark_clobber): Likewise.
243 (mark_oprs_set): Likewise.
244 (compute_transp): Likewise.
245 (find_avail_set): Likewise.
246 (cprop_insn): Likewise.
247 (do_local_cprop): Likewise.
248 (cprop): Likewise.
249 (find_implicit_sets): Likewise.
250 (find_bypass_set): Likewise.
251 (bypass_conditional_jumps): Likewise.
252 (insert_insn_end_bb): Likewise.
253 (pre_insert_copy_insn): Likewise.
254 (compute_transpout): Likewise.
255 (next_ls_expr): Likewise.
256 (invalidate_any_buried_refs): Likewise.
257 (compute_ld_motion_mems): Likewise.
258 (reg_set_info): Likewise.
259 (reg_clear_last_set): Likewise.
260 (find_moveable_store): Likewise.
261 (compute_store_table): Likewise.
262 (find_loads): Likewise.
263 (store_killed_in_insn): Likewise.
264 (insert_insn_start_bb): Likewise.
265 (reg_set_between_after_reload_p): Likewise.
266 (reg_used_between_after_reload_p): Likewise.
267 (is_jump_table_basic_block): Likewise.
268 (gcse_after_reload): Likewise.
269 (hash_scan_set_after_reload): Likewise.
270 (compute_hash_table_after_reload): Likewise.
271
272 2004-06-12 Steven Bosscher <stevenb@suse.de>
273
274 * rtl.h (MEM_P, NONJUMP_INSN_P, CALL_INSN_P): New predicates.
275 (INSN_P): Don't look at the rtx code class, just explicitly
276 check for one of the tree RTX_INSN codes.
277
278 2004-06-11 Zack Weinberg <zack@codesourcery.com>
279
280 * c-typeck.c (default_function_array_conversion): Use
281 build_pointer_type not TYPE_POINTER_TO.
282
283 2004-06-11 Zack Weinberg <zack@codesourcery.com>
284
285 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
286 * configure, config.in: Regenerate.
287 * system.h: Unconditionally define bool as unsigned char,
288 BOOL_BITFIELD as unsigned int.
289 * domwalk.h: Use BOOL_BITFIELD.
290
291 2004-06-12 Andreas Jaeger <aj@suse.de>
292
293 * libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4.
294 * libgcc-darwin.ver: Likewise.
295
296 2004-06-12 Peter Jakubek <peter@laseranimation.com>
297
298 * reload.c (find_reloads): Force reload for pseudo registers on big
299 endian machines.
300
301 2004-06-11 Steven Bosscher <stevenb@suse.de>
302
303 * tree-ssa-dce.c (mark_control_dependent_edges_necessary):
304 Don't try to mark anything control dependent on the entry or
305 exit blocks.
306
307 2004-06-11 Daniel Berlin <dberlin@dberlin.org>
308
309 Fix Bug 15899
310 Fix Bug 15460
311 * tree.h (SSA_NAME_VALUE): New macro.
312 (struct tree_ssa_name): Add value_handle member.
313 * tree-ssa-pre.c: Replaced.
314 * tree-flow.h (tree_ann_type): Add CST_ANN, EXPR_ANN.
315 (struct cst_ann_d): New.
316 (struct expr_ann_d): New.
317 (union tree_ann_d): Add cst_ann, expr_ann.
318 * tree-dfa.c (create_cst_ann): New function.
319 (create_expr_ann): Ditto.
320 * tree-flow-inline.h (cst_ann): New function.
321 (expr_ann): Ditto.
322 (get_cst_ann): Ditto.
323 (get_expr_ann): Ditto..
324
325 2004-06-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
326
327 * pa.c (pa_hpux_init_libfunc): Add support for unord_optab.
328 * pa/quadlib.c (enum qfcmp_magic): Define magic values for call to
329 _U_Qfcmp library function.
330 (_U_Qfltgt, _U_Qfunle, _U_Qfunlt, _U_Qfunge, _U_Qfungt, _U_Qfuneq,
331 _U_Qfunord, _U_Qford): Add more TFmode builtin compare functions.
332
333 * pa.c (legitimize_pic_address): Use UNSPEC_DLTIND14R to identify
334 unspec used for loading address from DLT.
335 * pa.md: Define constants for the uses of UNSPEC and UNSPEC_VOLATILE.
336 Change all users of UNSPEC and UNSPEC_VOLATILE to use new constants.
337 Don't use short code sequence when loading the address of a nonlocal
338 label.
339 (nonlocal_goto): New expander.
340 (indirect_goto): New jump pattern for nonlocal gotos.
341 (short_jump): Remove extra whitespace.
342 (builtin_longjmp): Clobber memory and hard frame pointer. Restore
343 frame pointer via virtual_stack_vars_rtx when we have a nonlocal goto
344 pattern.
345
346 2004-06-11 Roger Sayle <roger@eyesopen.com>
347
348 * expmed.c (synth_mult): Add an additional MODE argument for the
349 machine mode of the multiplication. Update recursive calls. Use
350 mode instead of word_mode for determining operation costs.
351 (choose_mult_variant): Update calls to synth_mult with "mode".
352
353 2004-06-11 Richard Henderson <rth@redhat.com>
354
355 * tree-ssa-operands.c (get_stmt_operands): Clear makes_aliased_loads
356 and makes_aliased_stores.
357
358 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
359
360 * doc/install.text (--enable-shared): Fix typo.
361
362 2004-06-11 Richard Henderson <rth@redhat.com>
363
364 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Remove post_p
365 argument. Use internal post for call to gimplify_expr. Tidy
366 rounded type size computation.
367 (alpha_gimplify_va_arg): Use get_formal_tmp_var and
368 get_initialized_tmp_var.
369
370 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
371
372 * doc/install.texi (--enable-shared): Update libobjc's shared library
373 status. Remove reference to libf2c.
374
375 2004-06-11 Jason Merrill <jason@redhat.com>
376
377 * config/i386/i386.h (EXPAND_BUILTIN_VA_ARG): Just abort.
378 * config/i386/i386.c (ix86_va_arg): Remove.
379 * config/rs6000/rs6000.h (EXPAND_BUILTIN_VA_ARG): Just abort.
380 * config/rs6000/rs6000.c (rs6000_va_arg): Remove.
381 * config/alpha/alpha.h (EXPAND_BUILTIN_VA_ARG): Just abort.
382 * config/alpha/alpha.c (alpha_va_arg): Remove.
383 * config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Just abort.
384 * config/sparc/sparc.c (sparc_va_arg): Remove.
385
386 * tree-ssa-operands.c (get_stmt_operands): Use a V_MAY_DEF if the
387 assignment might throw.
388 * tree-eh.c (tree_could_throw_p): Support non-call exceptions in
389 expressions.
390
391 2004-06-11 J"orn Rennecke <joern.rennecke@superh.com>
392
393 PR 15886:
394 * sh.h (ALLOCATE_INITIAL_VALUE): Use return_address_pointer_rtx.
395
396 2004-06-11 Joseph S. Myers <jsm@polyomino.org.uk>
397
398 * doc/install.texi (Prerequisites): Update documentation of
399 required versions of autoconf and automake. Remove mention of
400 libf2c.
401
402 2004-06-11 Jason Merrill <jason@redhat.com>
403
404 * config/sparc/sparc.c (sparc_gimplify_va_arg): New fn.
405 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
406
407 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
408
409 * typeclass.h: Add GPL plus exception license. Add include
410 guard.
411
412 2004-06-10 Jason Merrill <jason@redhat.com>
413
414 * gimplify.c (gimplify_modify_expr): Don't force a temporary
415 of an aggregate_value_p type.
416
417 2004-06-10 Jeff Law <law@redhat.com>
418
419 * fold-const.c (fold_inf_compare): Avoid creating non-gimple
420 code when we are in gimple form.
421
422 2004-06-10 Diego Novillo <dnovillo@redhat.com>
423
424 * Makefile.in (tree-ssanames.o): Depend on TREE_FLOW_H.
425 * tree-flow.h (ssa_names, num_ssa_names, ssa_name): Declare.
426 (highest_ssa_version): Remove.
427 * tree-outof-ssa.c (new_temp_expr_table): Replace
428 highest_ssa_version with num_ssa_names.
429 (dump_replaceable_exprs): Likewise.
430 (rewrite_vars_out_of_ssa): Likewise.
431 * tree-ssa-ccp.c (initialize): Likewise
432 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
433 * tree-ssa-dce.c (tree_dce_init): Likewise.
434 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
435 * tree-ssa-live.c (create_ssa_var_map): Likewise.
436 (dump_var_map): Likewise.
437 * tree-ssa.c (verify_ssa): Likewise.
438 (kill_redundant_phi_nodes): Likewise.
439 Do not build a local array of SSA_NAMEs. Use the ssa_names table.
440 * tree-ssanames.c: Include tree-flow.h
441 (ssa_names): New varray.
442 (init_ssa_names): Initialize ssa_names.
443 Reserve the first slot of the ssa_names table.
444 (make_ssa_name): Push the newly created SSA_NAME into ssa_names.
445 Assign version numbers using num_ssa_names.
446
447 2004-06-10 Joseph S. Myers <jsm@polyomino.org.uk>
448
449 * doc/sourcebuild.texi (Front End): Add details of more
450 installation documentation required.
451
452 2004-06-10 Brian Booth <bbooth@redhat.com>
453
454 * doc/tree-ssa.texi: Remove references to VDEF and add descriptions
455 of V_MAY_DEF and V_MUST_DEF.
456 * tree-dfa.c (dfa_stats_d): Add num_v_must_defs and rename
457 num_vdefs to num_v_may_defs.
458 (compute_immediate_uses_for_stmt): Rename occurences of vdef
459 to v_may_def.
460 (redirect_immediate_uses): Ditto.
461 (dump_dfa_stats): Ditto. Also added code to dump num_v_must_defs.
462 (collect_dfa_stats_r): Rename occurences of vdef to v_may_def.
463 Also add code to sum up the number of v_must_defs.
464 (vdefs_disappeared_p): Replace with...
465 (v_may_defs_disappeared_p): This.
466 (v_must_defs_disappeared_p): New function.
467 (mark_new_vars_to_rename): Rename occurences of vdef to v_may_def.
468 Also add code to mark new variables found in V_MUST_DEFs for
469 renameing.
470 * tree-flow.h (stmt_ann_d): Add v_must_def_ops and replace
471 vdef_ops to v_may_def_ops.
472 (get_vdef_ops): Replace with...
473 (get_v_may_def_ops): This.
474 * tree-flow-inline.h (get_vdef_ops): Replace with...
475 (get_v_may_def_ops): This.
476 (get_v_must_def_ops): New function.
477 (get_vdef_result_ptr): Replace with...
478 (get_v_may_def_result_ptr): This.
479 (get_vdef_op_ptr): Ditto with...
480 (get_v_may_def_op_ptr); This.
481 (get_v_must_def_op_ptr): New function.
482 * tree-into-ssa.c (mark_def_sites): Rename occurences of vdef
483 to v_may_def. Also add code to mark statements with
484 V_MUST_DEFs as definition sites.
485 (rewrite_stmt): Rename occurences of vdef to v_may_def. Also
486 add code to register new V_MUST_DEFs made by the statement.
487 * tree-outof-ssa.c (VIRTUAL_PARTITION): Update comments.
488 (check_replaceable): Rename occurences of vdef to v_may_def. Also
489 add check for V_MUST_DEFs.
490 (find_replaceable_in_bb): Ditto.
491 * tree-pretty-print.c (dump_vops): Rename occurences of vdef
492 to v_may_def. Also add code to dump V_MUST_DEFs.
493 * tree-sra.c (mark_all_vdefs): Replace with...
494 (mark_all_v_may_defs): This.
495 (mark_all_v_must_defs): New function.
496 (create_scalar_copies): Replace call to mark_all_vdefs with
497 calls to mark_all_v_may_defs and mark_all_v_must_defs.
498 (scalarize_structures): Rename occurences of vdef to v_may_def.
499 Also add a check for V_MUST_DEFs.
500 (scalarize_modify_expr): Rename occurences of vdef to v_may_def.
501 * tree-ssa-alias.c (global_var): Update comment.
502 (compute_may_aliases): Ditto.
503 (compute_points_to_and_addr_escape): Rename occurences of vdef
504 to v_may_def. Also add code to mark variables in V_MUST_DEF
505 operands as being written to.
506 (group_aliases): Update comment.
507 (maybe_create_global_var): Ditto.
508 * tree-ssa.c (verify_ssa): Rename occurences of vdef to v_may_def.
509 Also add a check for V_MUST_DEFs on GIMPLE registers.
510 (replace_immediate_uses): Rename occurences of vdef to v_may_def.
511 * tree-ssa-ccp.c (visit_stmt): Rename occurences of vdef
512 to v_may_def. Also add code to mark all V_MUST_DEF operands
513 VARYING.
514 (initialize): Ditto.
515 (set_rhs): Rename occurences of vdef to v_may_def. Also add
516 code to update SSA_NAMEs in V_MUST_DEFs.
517 * tree-ssa-copy.c (cprop_into_stmt): Rename occurences of vdef
518 to v_may_def.
519 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Rename
520 occurences of vdef to v_may_def. Also add code to mark statements
521 with V_MUST_DEFs as necessary.
522 (propagate_necessity): Rename occurences of vdef to v_may_def.
523 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Rename
524 occurences of vdef to v_may_def. Also add code to mark operands
525 in V_MUST_DEFs for renaming.
526 (eliminate_redundant_computations): Rename occurences of vdef
527 to v_may_def.
528 (record_equivalences_from_stmt): Rename occurences of vdef
529 to v_may_def. Also add code to record VUSEs for V_MUST_DEFs.
530 (optimize_stmt): Remove unnesessary variable vdefs. Update
531 comment.
532 (register_definitions_for_stmt): Rename occurences of vdef
533 to v_may_def. Also add code to register definitions made with
534 V_MUST_DEFs.
535 * tree-ssa-dse.c (fix_stmt_vdefs): Replace with...
536 (fix_stmt_v_may_defs): This.
537 (fix_phi_uses): Rename occurences of vdef to v_may_def.
538 (dse_optimize_stmt): Ditto.
539 * tree-ssa-live.c (create_ssa_var_map): Rename occurences of vdef
540 to v_may_def. Also add code to mark V_MUST_DEF operands as being
541 used in virtual operators.
542 * tree-ssa-loop.c (mark_defs_for_rewrite): Rename occurences of
543 vdef to v_may_def. Also add code to mark V_MUST_DEF operands for
544 renaming.
545 * tree-ssa-operands.c (opf_kill_def): New flag for killing
546 definitions.
547 (build_vdefs): Renamed to...
548 (build_v_may_defs): This.
549 (build_v_must_defs): New variable.
550 (voperands_d): Add v_must_def_ops and replace vdef_ops with
551 v_may_def_ops.
552 (append_vdef): Replace with...
553 (append_v_may_def): This.
554 (append_v_must_def): New function.
555 (NUM_FREE): Increment for V_MUST_DEF
556 (optype_freelist): Increment its size for V_MUST_DEF
557 (allocate_vdef_optype): Replace with...
558 (allocate_v_may_def_optype): This.
559 (allocate_v_must_def_optype): New function.
560 (free_vdefs): Replace with...
561 (free_v_may_defs): This.
562 (free_v_must_defs): New function.
563 (remove_vdefs): Replace with...
564 (remove_v_may_defs): This.
565 (remove_v_must_defs): New function.
566 (init_ssa_operands): Rename occurences of vdef to v_may_def. Also
567 add code to initialize build_v_must_defs.
568 (finalize_ssa_vdefs): Replace with...
569 (finalize_ssa_v_may_defs): This.
570 (finalize_ssa_vuses): Rename occurences of vdef to v_may_def.
571 (finalize_ssa_v_must_defs): New function.
572 (finalize_ssa_stmt_operands): Replace call to finalize_ssa_vdefs
573 with calls to finalize_ssa_v_may_defs and finalize_ssa_v_must_defs.
574 (verify_start_operands): Rename occurences of vdef to v_may_def.
575 Also add check for build_v_must_defs.
576 (get_stmt_operands): Rename occurences of vdef to v_may_def.
577 Also add code to handle V_MUST_DEFs and to use opf_kill_def for
578 killing definitions.
579 (get_expr_operands): Update comment and use opf_kill_def for
580 killing definitions.
581 (add_stmt_operand): Replace code that appends VDEFs with code
582 that appends V_MUST_DEFs when opf_kill_def is set and V_MAY_DEFs
583 otherwise.
584 (add_call_clobber_ops): Update comments.
585 * tree-ssa-operands.h (vdef_optype_d): Replace with...
586 (v_may_def_optype_d): This.
587 (v_must_def_optype_d): New structure.
588 (VDEF_OPS): Replace with...
589 (V_MAY_DEF_OPS): This.
590 (STMT_VDEF_OPS): Same with...
591 (STMT_V_MAY_DEF_OPS): This.
592 (NUM_VDEFS): And...
593 (NUM_V_MAY_DEFS): This.
594 (VDEF_RESULT_PTR): As well as...
595 (V_MAY_DEF_RESULT_PTR): This.
596 (VDEF_RESULT): Same goes for...
597 (V_MAY_DEF_RESULT): This.
598 (VDEF_OP_PTR): And...
599 (V_MAY_DEF_OP_PTR): This.
600 (VDEF_OP): And...
601 (V_MAY_DEF_OP): This.
602 (V_MUST_DEF_OPS): New macro.
603 (STMT_V_MUST_DEF_OPS): Ditto.
604 (NUM_V_MUST_DEFS): Ditto.
605 (V_MUST_DEF_OP_PTR): Ditto.
606 (V_MUST_DEF_OP): Ditto.
607 (remove_vdefs): Replace signature with...
608 (remove_v_may_defs): This.
609 (remove_v_must_defs): New function signature.
610 * tree-ssa-pre.c (subst_phis): Replace call to remove_vdefs
611 with calls to remove_v_may_defs and remove_v_must_defs.
612 (process_left_occs_and_kills): Rename occurences of vdef to v_may_def.
613 Also add code that marks left occurences of operands in V_MUST_DEFs.
614 * tree-tailcall.c (find_tail_calls): Rename occurences of vdef
615 to v_may_def. Also add check for V_MUST_DEFs.
616 (eliminate_tail_call):Rename occurences of vdef to v_may_def.
617
618 2004-06-10 Vladimir Makarov <vmakarov@redhat.com>
619
620 PR target/15653
621 * haifa-sched.c (schedule_block): Finish cycle after issuing asm
622 insn.
623
624 2004-06-10 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
625
626 PR web/15263
627 * doc/install.texi: Remove superfluous linebreak.
628
629 2004-06-10 Roger Sayle <roger@eyesopen.com>
630
631 * builtins.c (expand_builtin): Fall back to library function call for
632 conj, conjf, conjl, creal, crealf, creall, cimag, cimagf and cimagl.
633 (fold_builtin_1): Lower built-ins BUILT_IN_CONJ{,F,L} to CONJ_EXPR,
634 BUILT_IN_CREAL{,F,L} to REALPART_EXPR, and BUILT_IN_CIMAG{,F,L} to
635 IMAGPART_EXPR respectively.
636
637 2004-06-10 J"orn Rennecke <joern.rennecke@superh.com>
638
639 * sh.c (dump_table): New argument start. Changed caller.
640 (fixup_mova): New function.
641 (find_barrier): Use it.
642 (sh_reorg): Likewise. Check for CODE_FOR_casesi_worker_2.
643 If the label a mova refers to is above the mova itself, change
644 the mova into a load.
645 * sh.md (*casesi_worker): Rename to:
646 (casesi_worker_1).
647 (casesi_worker_2): New insn.
648
649 2004-06-10 Jason Merrill <jason@redhat.com>
650
651 * target.h (struct gcc_target): Change gimplify_va_arg_expr
652 hook signature.
653 * tree-gimple.h: Adjust.
654 * config/alpha/alpha.c (alpha_gimplify_va_arg): Adjust.
655 * config/i386/i386.c (ix86_gimplify_va_arg): Adjust.
656 Use fold_convert.
657 * config/ia64/ia64.c (ia64_gimplify_va_arg): Adjust.
658 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust.
659 Use COMPLEX_EXPR for complex numbers. Use fold_convert.
660 * builtins.c (std_gimplify_va_arg_expr): Adjust. Use fold_convert.
661 (gimplify_va_arg_expr): Return GS_ERROR in error case.
662 Gimplify valist rather than calling stabilize_va_list.
663
664 2004-06-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
665
666 * Makefile.in (df.o): Remove fibheap dependency.
667 * df.h: Do not include sbitmap.h.
668 (struct ref): New field "data".
669 (DF_REF_DATA): New accessor macro.
670 (struct df): Field "dom" removed.
671 (df_analyze_subcfg): New function.
672 (transfer_function_sbitmap, transfer_function_bitmap): Replaced by ...
673 (transfer_function): ... new type.
674 (iterative_dataflow_sbitmap, iterative_dataflow_bitmap): Replaced by ...
675 (iterative_dataflow): ... new function.
676 (enum set_representation, struct dataflow): New.
677 * df.c: Do not include fibheap.h.
678
679 (df_reg_def_chain_clean, df_reg_use_chain_clean,
680 (df_bb_table_realloc, df_analyse_subcfg, free_reg_ref_chain,
681 prune_to_subcfg, df_bb_modify): New functions.
682 (df_bitmaps_alloc, df_reg_def_chain_create, df_reg_use_chain_create,
683 df_refs_update, df_reg_table_realloc, df_ref_create,
684 df_bb_reg_def_chain_create, df_bb_reg_use_chain_create,
685 df_bb_rd_local_compute, df_bb_ru_local_compute, df_bb_lr_local_compute,
686 df_analyse_1, df_insn_modify): Support analysing only a part of the cfg.
687
688 (dataflow_set_a_op_b, dataflow_set_copy): New functions.
689 (df_rd_transfer_function, df_ru_transfer_function,
690 df_lr_transfer_function): Type of bitmaps changed to void *.
691 (hybrid_search_bitmap, hybrid_search_sbitmap): Merge into ...
692 (hybrid_search): ... new function.
693 (iterative_dataflow_bitmap, iterative_dataflow_sbitmap): Merge into ...
694 (iterative_dataflow): ... new function. Avoid use of fibheaps for
695 a worklist. Do not process basic blocks unnecessarily.
696
697 2004-06-10 Roger Sayle <roger@eyesopen.com>
698
699 * fold-const.c (fold_abs_const): Make extern.
700 * tree.h (fold_abs_const): Prototype here.
701 * builtins.c (fold_builtin_fabs): New function to transform
702 fabs, fabsf and fabsl builtins into ABS_EXPR tree nodes.
703 (fold_builtin_abs): New function to transform abs, labs, llabs
704 and imaxabs builtins into ABS_EXPR tree nodes.
705 (expand_builtin): Fall back to a function call for abs, labs,
706 llabs and imaxabs builtins that survive constant folding.
707 (fold_builtin_1): Call fold_builtin_fabs for FABS, FABSF and
708 FABSL, and fold_builtin_abs for ABS, LABS, LLABS and IMAXABS.
709
710 2004-06-10 Jakub Jelinek <jakub@redhat.com>
711
712 * config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a
713 leaf function without unwind info at RP 0.
714
715 2004-06-10 Jakub Jelinek <jakub@redhat.com>
716
717 PR c++/14791
718 * tree.h (enum tree_index): Add TI_FILEPTR_TYPE.
719 (fileptr_type_node): Define.
720 * tree.c (build_common_tree_nodes_2): Initialize
721 fileptr_type_node to ptr_type_node.
722 * c-common.c (c_common_nodes_and_builtins): For C++, make
723 fileptr_type_node a distinct type copy.
724 * builtin-types.def (BT_FILEPTR, BT_FN_INT_CONST_STRING_FILEPTR,
725 BT_FN_INT_INT_FILEPTR, BT_FN_INT_FILEPTR_CONST_STRING_VALIST_ARG,
726 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_FILEPTR,
727 BT_FN_INT_FILEPTR_CONST_STRING_VAR): Add.
728 (BT_FN_INT_CONST_STRING_PTR, BT_FN_INT_INT_PTR,
729 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_PTR, BT_FN_INT_PTR_CONST_STRING_VAR,
730 BT_FN_INT_PTR_CONST_STRING_VALIST_ARG): Remove.
731 * builtins.def (BUILT_IN_FPRINTF, BUILT_IN_FPRINTF_UNLOCKED,
732 BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS,
733 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FSCANF, BUILT_IN_FWRITE,
734 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): Use
735 the above *FILEPTR* types instead of *PTR*.
736
737 2004-06-09 Daniel Berlin <dberlin@dberlin.org>
738
739 * tree-ssa.c (verify_ssa): Verify that vdefs/makes_aliased_stores
740 match.
741
742 2004-06-09 Roger Sayle <roger@eyesopen.com>
743
744 * fold-const.c (fold_not_const): New function.
745 (fold) <ABS_EXPR>: Don't bother testing wins.
746 (fold) <BIT_NOT_EXPR>: Call fold_not_const.
747 (nondestructive_fold_unary_to_constant) <BIT_NOT_EXPR>: Likewise.
748
749 2004-06-09 Richard Henderson <rth@redhat.com>
750
751 PR middle-end/15228
752 * function.c (assign_parms): Always set_mem_align with the computed
753 FUNCTION_ARG_BOUNDARY. Don't clear stack_parm if !STRICT_ALIGNMENT.
754
755 2004-06-09 Richard Henderson <rth@redhat.com>
756
757 PR opt/15108
758 * tree-tailcall.c (find_tail_calls): Don't check early for
759 tail_recursion failure.
760
761 2004-06-09 Diego Novillo <dnovillo@redhat.com>
762
763 Move SSA_NAME annotations into tree_ssa_name.
764
765 * tree-dfa.c (create_ssa_name_ann): Remove.
766 * tree-flow-inline.h (ssa_name_ann, get_ssa_name_ann): Remove.
767 * tree-flow.h (enum tree_ann_type): Remove SSA_NAME_ANN.
768 (struct ssa_name_ann_d): Remove.
769 (union tree_ann_d): Update.
770 (ssa_name_ann_t): Remove.
771 * tree-ssa-alias.c: (get_ptr_info): New local function.
772 Replace references to ssa_name_ann_t with struct ptr_info_def.
773 * tree-ssa-operands.c (get_expr_operands): Likewise.
774 * tree.h (SSA_NAME_PTR_INFO): Define.
775 (struct ptr_info_def): Declare.
776 (struct tree_ssa_name): Add field 'ptr_info'.
777
778 2004-06-09 Danny Smith <dannysmith@users.sourceforge.net>
779
780 * config/i386/winnt.c (i386_pe_output_labelref): Correct
781 misplaced ')'.
782
783 2004-06-09 Steven Bosscher <stevenb@suse.de>
784
785 * config/i386/k6.md: Rewrite using the DFA model.
786 * config/i386/i386.c (ix86_adjust_cost): Don't increase the
787 cost of load-operation insns for the K6.
788 (ia32_use_dfa_pipeline_interface): Add TARGET_K6.
789 (ia32_multipass_dfa_lookahead): Likewise.
790
791 2004-06-09 Richard Henderson <rth@redhat.com>
792
793 * config/alpha/alpha.c (alpha_gimplify_va_arg_1,
794 alpha_gimplify_va_arg, TARGET_GIMPLIFY_VA_ARG_EXPR): New.
795
796 2004-06-09 Richard Henderson <rth@redhat.com>
797
798 * expmed.c (emit_store_flag): Cope with FLOAT_STORE_FLAG_VALUE.
799
800 2004-06-09 Geoffrey Keating <geoffk@apple.com>
801
802 * Makefile.in (CPPLIB_H): Put files in order of inclusion.
803 (CPP_ID_DATA_H): New.
804 (gtype-desc.o): Update dependencies.
805 (GTFILES): Use CPP_ID_DATA_H.
806
807 2004-06-09 Mark Mitchell <mark@codesourcery.com>
808
809 Revert:
810 PR c++/15815
811 2004-06-07 Mark Mitchell <mark@codesourcery.com>
812 * doc/extend.texi: Deprecate #pragma interface and #pragma
813 implementation.
814
815 2004-06-09 David S. Miller <davem@nuts.davemloft.net>
816
817 * config/sparc/sparc.h (MOVE_RATIO): New definition.
818
819 2004-06-09 Richard Henderson <rth@redhat.com>
820
821 * basic-block.h (struct edge_def): Add goto_locus.
822 * tree-cfg.c (make_goto_expr_edges): Set it.
823 (disband_implicit_edges): Use it.
824 * tree-pretty-print.c (dump_implicit_edges): Print it.
825
826 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
827
828 * h8300.md (ldm_h8300s_4): Fix condition for expander.
829
830 2004-06-08 Jason Merrill <jason@redhat.com>
831
832 Gimplify VA_ARG_EXPR into simpler forms.
833 * target.h: Add gimplify_va_arg_expr hook.
834 * target-def.h: Add TARGET_GIMPLIFY_VA_ARG_EXPR.
835 * fold-const.c (build_fold_addr_expr)
836 (build_fold_addr_expr_with_type): Move from gimplify.c.
837 * tree.h: Declare them.
838 * gimplify.c (gimplify_and_add): New fn.
839 (build_addr_expr, build_addr_expr_with_type): Move to fold-const.c.
840 (gimplify_array_ref_to_plus, gimplify_modify_expr)
841 (gimplify_expr): Use build_fold_*.
842 (copy_if_shared_r): Only mark VA_ARG_EXPR volatile if we
843 don't know how to gimplify it.
844 * builtins.c (std_gimplify_va_arg_expr): New fn.
845 (dummy_object): New static fn.
846 (gimplify_va_arg_expr): New fn.
847 (stabilize_va_list): Use build_fold_*.
848 * tree-gimple.h: Declare new fns.
849 * config/i386/i386.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
850 (ix86_gimplify_va_arg): New fn.
851 * config/ia64/ia64.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
852 (ia64_gimplify_va_arg): New fn.
853 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): New fn.
854 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
855 * alias.c (get_varargs_alias_set): Just return 0 for now.
856
857 * c-objc-common.c (c_tree_printer): Improve handling of %T.
858
859 2004-06-09 Andrew Pinski <pinskia@physics.uc.edu>
860
861 * tree-complex.c (expand_complex_comparison): Use fold_convert instead
862 of convert.
863 * tree-inline.c (setup_one_parameter): Likewise.
864 * tree-sra.c (csc_build_component_ref): Likewise.
865 * tree-ssa-ccp.c (ccp_fold): Likewise.
866 * tree-ssa-copy.c (cprop_operand): Likewise.
867 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
868 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
869
870 2004-06-09 J"orn Rennecke <joern.rennecke@superh.com>
871
872 PR rtl-optimization/15521:
873 * sched-int.h (in_post_call_group_p): Change type to enum.
874 * sched-deps.c (sched_analyze_insn):
875 (sched_analyze): When in_post_call_group_p is post_call_initial,
876 don't add a dependency, but still set SCHED_GROUP_P and CANT_MOVE,
877 and also reset in_post_call_group_p to post_call.
878 (sched_analyze): When the previous basic block ended in a CALL_INSN,
879 initialize in_post_call_group_p as post_call_initial.
880 (init_deps): initialize in_post_call_group_p to not_post_call.
881
882 2004-06-09 Arnaud Charlet <charlet@act-europe.fr>
883
884 PR ada/6637
885 * doc/install.texi: List ada, libada as options to --enable-shared
886
887 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
888
889 * aclocal.m4 (gcc_AC_PROG_LN): Remove.
890 (gcc_AC_CHECK_DECLS): Use AH_TEMPLATE to generate
891 config.in entries.
892 * configure.ac: Call ACX_PROG_LN, falling back to $LN_S
893 if hard links are not available.
894 * configure: Regenerate.
895 * config.in: Regenerate.
896
897 2004-06-08 Per Bothner <per@bothner.com>
898
899 * configure.ac: New --enable-mapped-location sets USE_MAPPED_LOCATION.
900
901 2004-06-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
902
903 * toplev.c (floor_log2_wide): Correct casts for 64-bit hosts.
904 Correct formatting.
905
906 2004-06-08 James E Wilson <wilson@specifixinc.com>
907
908 PR target/15790
909 * config/i386/i386-coff.h (ASM_OUTPUT_ALIGN): Define.
910
911 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
912
913 * fold-const.c (fold_convert): Treat OFFSET_TYPE like
914 POINTER_TYPE and INTEGER_TYPE.
915
916 2004-06-08 Bernardo Innocenti <bernie@develer.com>
917
918 * modulo-sched.c: Compile only when INSN_SCHEDULING is
919 defined.
920
921 2004-06-08 Jeff Law <law@redhat.com>
922
923 * doc/contrib.texi: Add entries for Stefan Olsson and
924 Ola Ronnerup.
925
926 2004-06-08 DJ Delorie <dj@redhat.com>
927
928 * toplev.c (floor_log2_wide): Replace loop with faster bit
929 operations.
930 (exact_log2_wide): Define in terms of the above.
931 * toplev.h (floor_log2): Use _builtin_clz family of builtins if
932 available.
933
934 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
935
936 * config/rs6000/rs6000.c (print_operand, <case 'z'>):
937 Make sure that we are in INDIRECT mode when getting the
938 stub name.
939
940 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
941
942 * h8300.md (extendqisi2_h8300): Add constraints.
943 (ldm_h8300s_4_normal): Fix typo.
944
945 2004-06-08 Richard Henderson <rth@redhat.com>
946
947 * gimple-low.c (struct lower_data): Replace the_return_label and
948 one_return_stmt with return_statements.
949 (lower_function_body): Process the entire list of return_statements.
950 (lower_return_expr): Check source value before unifying return_exprs.
951 * gimplify.c (gimplify_return_expr): Force the use of a temporary
952 for !aggregate_value_p.
953 * tree-gimple.c: Update RETURN_EXPR grammer.
954
955 2004-06-08 Vladimir Makarov <vmakarov@redhat.com>
956
957 PR target/15598
958 * config/ia64/ia64.c (bundling): Add missed TYPE_A.
959
960 2004-06-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
961
962 PR rtl-optimization/15717
963 * config/i386/i386.c (legitimate_constant_p): Do not allow
964 x - symbol_ref.
965
966 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
967
968 * gimplify.c (copy_if_shared_r): Revert:
969 2004-05-21 Richard Henderson <rth@redhat.com>
970 * gimplify.c [...] Don't mark VA_ARG_EXPRs volatile here.
971
972 2004-06-07 Roger Sayle <roger@eyesopen.com>
973
974 * expmed.c (add_cost, neg_cost, sdiv_pow2_cheap, smod_pow2_cheap):
975 Make arrays indexed by machine mode. Rename negate_cost to neg_cost.
976 (init_expmed): Initialize these cost arrays as appropriate.
977 (store_bit_field, extract_bit_field): Correct whitespace.
978 (synth_mult, choose_mult_variant, expand_mult, expand_mult_highpart,
979 expand_mult_highpart_optab, expand_divmod): Update uses of add_cost,
980 neg_cost, sdiv_pow2_cheap, smod_pow2_cheap to index with mode,
981 word_mode or compute_mode as appropriate.
982
983 2004-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
984
985 PR target/15783
986 * config/sparc/sparc.c (function_arg_union_value): Add 'mode'
987 parameter. Enumerate the registers inside the PARALLEL.
988 (function_arg): Adjust call to function_arg_union_value.
989 (function_value): Likewise.
990
991 * config/sparc/sparc.c (sparc_function_epilogue): Properly format.
992
993 2004-06-07 Roger Sayle <roger@eyesopen.com>
994
995 * real.c (real_copysign): New function to implement libm's copysign.
996 * real.h (real_copysign): Prototype here.
997 * fold-const.c (tree_expr_nonnegative_p): The result of sqrt, sqrtf
998 and sqrtl can be negative, as sqrt(-0.0) = -0.0. Correct whitespace.
999 * builtins.c (fold_builtin_isascii, fold_builtin_toascii,
1000 fold_builtin_isdigit): Add function prototypes.
1001 (fold_builtin_copysign): New function to fold copysign, copysignf
1002 and copysignl. Optimize copysign(x,x) as x. Evaluate copysign of
1003 constant arguments at compile-time using real_copysign. Fold
1004 copysign(X,Y) as fabs(X) if Y is always non-negative.
1005 (fold_builtin_1): Correct minor whitespace/style issues. Call
1006 fold_builtin_copysign for BUILT_IN_COPYSIGN{,F,L}.
1007
1008 2004-06-07 J"orn Rennecke <joern.rennecke@superh.com>
1009
1010 * tree.c (iterative_hash_expr): Use real_hash.
1011
1012 2004-06-07 Joseph S. Myers <jsm@polyomino.org.uk>
1013
1014 PR c/14765
1015 * c-parse.in (compstmt_primary_start): Set last_expr_type to
1016 NULL_TREE.
1017
1018 2004-06-07 Mark Mitchell <mark@codesourcery.com>
1019
1020 PR c++/15815
1021 * doc/extend.texi: Deprecate #pragma interface and #pragma
1022 implementation.
1023
1024 2004-06-07 Alexandre Oliva <aoliva@redhat.com>
1025
1026 PR middle-end/15666
1027 * c-decl.c (finish_decl): Use change_decl_assembler_name for the
1028 builtin decl as well.
1029
1030 2004-06-07 Roger Sayle <roger@eyesopen.com>
1031
1032 PR c/14649
1033 * c-typeck.c (require_constant_value, require_constant_elements):
1034 Move declarations to the top of the file.
1035 (build_function_call): If we require a constant value, fold with
1036 fold_initializer. If the result is a constant, and the function
1037 wasn't called using __builtin_foo, issue a pedantic warning.
1038 (build_unary_op): If we require a constant value, fold tree with
1039 fold_initializer.
1040 (build_binary_op): Use require_constant_value to determine whether
1041 to call fold or fold_initializer.
1042
1043 2004-06-07 Richard Henderson <rth@redhat.com>
1044
1045 * gimple-low.c (struct lower_data): Add the_return_label and
1046 one_return_stmt.
1047 (lower_function_body): Initialize and use them.
1048 (lower_return_expr): New.
1049 (lower_stmt): Call it.
1050 * gimplify.c (gimplify_return_expr): Force the argument to be either
1051 null or a result_decl.
1052 * tree-gimple.c: Update gimple grammer to match.
1053 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Deny
1054 coalescing of result_decls.
1055
1056 2004-06-07 Richard Henderson <rth@redhat.com>
1057
1058 PR rtl-opt/15193
1059 * expmed.c (extract_bit_field): Fix vector_extract return.
1060
1061 * config/i386/i386.md (negv4sf2): New pattern.
1062
1063 2004-06-07 Mark Mitchell <mark@codesourcery.com>
1064
1065 PR c++/15337
1066 * c-common.c (c_sizeof_or_alignof_type): Use more detailed error
1067 message.
1068
1069 2004-06-06 Paolo Bonzini <bonzini@gnu.org>
1070
1071 * config.in: Regenerate.
1072
1073 2004-06-06 Steven Bosscher <stevenb@suse.de>
1074
1075 * tree-cfg.c (tree_verify_flow_info): Make sure that labels in
1076 SWITCH_LABELS are always sorted.
1077
1078 2004-06-06 Steven Bosscher <stevenb@suse.de>
1079
1080 * hooks.c (hook_int_void_1): New generic hook.
1081 * hooks.h (hook_int_void_1): Add prototype.
1082 * config/c4x/c4x.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
1083 Define to hook_int_void_1.
1084 * config/c4x/c4x.md: Replace dummies for the old pipeline model
1085 with dummies for the new one.
1086
1087 2004-06-06 Roger Sayle <roger@eyesopen.com>
1088
1089 * tree.h (lvalue_or_else): Delete function prototype.
1090 * c-typeck.c (lvalue_or_else): Make static. Add static prototype.
1091
1092 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
1093
1094 PR target/14542
1095 * config/m68hc11/m68hc11.md (move peephole2): Emit a use note to avoid
1096 a live change of a register after peephole replacement.
1097
1098 2004-06-06 Joseph S. Myers <jsm@polyomino.org.uk>
1099
1100 PR c/13519
1101 * c-typeck.c (composite_type, common_pointer_type): New functions.
1102 (common_type): Split parts into composite_type and
1103 common_pointer_type. Ensure that arithmetic operations return
1104 unqualified types without attributes. Don't make composite type
1105 of signed enum and compatible integer be unsigned.
1106 (build_conditional_expr, build_binary_op): Use
1107 common_pointer_type.
1108 * c-decl.c (merge_decls): Use composite_type.
1109 * c-tree.h (composite_type): Declare.
1110
1111 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
1112
1113 PR target/14457
1114 * config/m68hc11/m68hc11.c (splitable_operand): New predicate.
1115 * config/m68hc11/m68hc11-protos.h (splitable_operand): Declare.
1116 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register it.
1117 (inhibit_libc): Must define.
1118 * config/m68hc11/m68hc11.md ("movhi_const0"): Use splitable_operand.
1119 ("*andhi3_gen", "iorhi3", "*iorhi3_gen"): Likewise.
1120 ("xorhi3"): Likewise.
1121
1122 2004-06-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1123
1124 * cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in
1125 always_inline pass.
1126
1127 2004-06-05 David S. Miller <davem@nuts.davemloft.net>
1128
1129 * config/sparc/linux.h (TARGET_C99_FUNCTIONS): Set.
1130 * config/sparc/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
1131
1132 2004-06-05 Bernardo Innocenti <bernie@develer.com>
1133
1134 * regclass.c (init_reg_sets): Check for missing registers in target
1135 initializer macros FIXED_REGISTERS and CALL_USED_REGISTERS.
1136
1137 2004-06-05 Zack Weinberg <zack@codesourcery.com>
1138
1139 * Makefile.in (MKDEPS_H): New shorthand.
1140 (c-opts.o): Update dependencies.
1141 * c-opts.c: Include mkdeps.h.
1142 (handle_deferred_opts): Use cpp_get_deps and deps_add_target,
1143 not cpp_add_dependency_target.
1144
1145 2004-06-05 Steven Bosscher <stevenb@suse.de>
1146
1147 * config/v850/v850.c (v850_use_dfa_pipeline_interface): New.
1148 * config/v850/v850.md: Convert to DFA scheduler description.
1149
1150 2004-06-05 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1151
1152 PR fortran/15478
1153 * doc/install.texi: Document GMP as prerequisite. Document
1154 --with-gmp and --with-gmp-dir configure options.
1155 * fortran/gfortran.texi: Remove section "Compiling and testing",
1156 remove TOC reference to it.
1157
1158 2004-06-05 Graham Stott <graham.stott@btinternet.com>
1159
1160 * combine.c(simplify_shift_const): Check shift amount is a
1161 CONST_INT.
1162
1163 2004-06-05 Danny Smith <dannysmith@users.sourceforge.net>
1164
1165 * toplev.c (init_asm_output): Add explicit 'b' to mode when
1166 opening asm_out_file.
1167 * c-pch.c (c_common_write_pch): Remove unnecessary fflush before
1168 reading asm_out_file. Replace fflush after reading asm_out_file
1169 with fseek.
1170 * hosthooks-def.h (HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY): Define
1171 default and add to HOST_HOOKS_INITIALIZER.
1172 * hosthooks.h (gt_pch_alloc_granularity): Declare hook function.
1173 * ggc-common.c (default_gt_pch_alloc_granularity): New function.
1174 (gt_pch_save): Use host_hooks.gt_pch_alloc_granularity
1175 to set mmi.offset padding.
1176 * config.gcc (i[34567]86-*-mingw32*): Set target_gtfiles to
1177 $(srcdir)/config/i386/winnt.c.
1178 (i[34567]86-*-pe | i[34567]86-*-cygwin*): Likewise.
1179 (i[34567]86-*-uwin*): Likewise.
1180 *i[34567]86-*-interix3*): Likewise.
1181 * config.host (i[34567]86-*-mingw32*): Set out_host_hook_obj.
1182 * config/i386/host-mingw32.c: New file.
1183 * config/i386/x-mingw32: Add rule for host-mingw32.o.
1184 * config/i386/winnt.c: (struct extern_list) Tag as GTY.
1185 (extern_head): Likewise.
1186 (struct export_list) Likewise.
1187 (export_head): Likewise.
1188 (i386_pe_record_external_function): Use ggc_alloc.
1189 (i386_pe_record_exported_symbol): Likewise.
1190 Include "gt-winnt.h" at end.
1191 * doc/hostconfig.texi: Document
1192 HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY.
1193
1194 2004-06-04 Bernardo Innocenti <bernie@develer.com>
1195
1196 * config/m68k/m68k.h: Remove comments copied over from tm.texi.
1197 Rename 68000 and 68k to m68k for consistency in comments. Remove
1198 trailing whitespace before EOLs and before TABs.
1199 (MAX_CODE_ALIGN): Remove unused macro.
1200 (CALL_USED_REGISTERS): Reformat and add comments.
1201
1202 2004-06-04 Frank Ch. Eigler <fche@redhat.com>
1203
1204 * gcc.c (MFLIB_SPEC): Remove library references, to require users
1205 to enumerate -lmudflap* and dependencies when linking.
1206
1207 2004-06-04 Paolo Bonzini <bonzini@gnu.org>
1208
1209 PR target/15822
1210 * dojump.c (do_jump): Fix uninitialized variable tcode1.
1211
1212 2004-06-04 Jerry Quinn <jlquinn@optonline.net>
1213
1214 * Makefile.in (insn-conditions.o): Back out removal of reload.h.
1215 * genconditions.c (write_header): Back out removal of reload.h.
1216
1217 2004-06-04 Jan Hubicka <jh@suse.cz>
1218
1219 Re-apply hopefully fixed patch:
1220 * i386.md (UNSPECV_EH_RETURN): Kill.
1221 (eh_return): Use jump_insn.
1222 (eh_return_si, eh_return_di): Change pattern to jump instruction.
1223
1224 2004-06-04 Jeff Law <law@redhat.com>
1225
1226 * cfgrtl.c (try_redirect_by_replacing_jump): Fix return value.
1227
1228 2004-06-04 Steven Bosscher <stevenb@suse.de>
1229
1230 * except.c (for_each_eh_region): New function.
1231 * except.h (for_each_eh_region): Add a prototype for it.
1232 * tree-cfg.c (update_eh_labels): New function, callback for
1233 for_each_eh_region.
1234 (label_for_bb): Make global static, unfortunately.
1235 (cleanup_dead_labels): Also update label references for
1236 exception regions.
1237
1238 2004-06-03 Chris Demetriou <cgd@broadcom.com>
1239
1240 * config/mips/mips.c (struct irix_section_align_entry): Fix
1241 GTY marker.
1242
1243 2004-06-03 Geoffrey Keating <geoffk@apple.com>
1244
1245 * toplev.c (check_global_declarations): Don't ask for
1246 DECL_ASSEMBLER_NAME unless the function really is declared
1247 static and not defined.
1248
1249 2004-06-03 Matt Austern <austern@apple.com>
1250
1251 PR c++/15428
1252 * default.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New name
1253 for TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, with reversed sense.
1254 * config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Likewise.
1255 * doc/tm.texi (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Rewrite
1256 documentation to reflect the new macro name and to clarify its
1257 meaning.
1258
1259 2004-06-03 Steven Bosscher <stevenb@suse.de>
1260
1261 * rtl.def (VAR_LOCATION): Make RTX_EXTRA.
1262
1263 2004-06-03 Andrew Pinski <pinskia@physics.uc.edu>
1264
1265 * config/darwin.c (machopic_indirect_data_reference): Copy
1266 the SYMBOL_REF_DECL from the original RTX for the new
1267 non-lazy pointer RTX.
1268
1269 2004-06-03 Mark G. Adams <mark.g.adams@sympatico.ca>
1270
1271 * tree.h: Remove include of version.h
1272 * c-cppbuiltin.c: Include version.h
1273 * diagnostic.c: Include version.h
1274 * dwarf2out.c: Include version.h
1275 * toplev.c: Include version.h
1276 * vmsdbgout.c: Include version.h
1277 * Makefile.in: Remove dependency on version.h from TREE_H, and
1278 add dependencies to required .o targets
1279
1280 2004-06-03 Jerry Quinn <jlquinn@optonline.net>
1281
1282 * Makefile.in (RA_H, RESOURCE_H, SCHED_INT_H, CFGLAYOUT_H,
1283 CFGLOOP_H, DF_H, DDG_H, TREE_SSA_LIVE_H): New.
1284 (TARGET_H): Add insn-modes.h.
1285 (tree-ssa.o, tree-cfg.o, tree-ssa-loop.o, toplev.o, passes.o,
1286 loop.o, loop-doloop.o, unroll.o, cfgloop.o, cfgloopanal.o,
1287 loop-iv.o, cfgloopmanip.o, loop-init.o, loop-unswitch.o,
1288 loop-unroll.o, ddg.o, modulo-sched.o, predict.o,
1289 cfglayout.o, ifcvt.o): Replace cfgloop.h with CFGLOOP_H.
1290 (toplev.o, passes.o, cfghooks.o, cfgloopmanip.o, loop-init.o,
1291 loop-unswitch.o, loop-unroll.o, ddg.o, modulo-sched.o,
1292 bb-reorder.o, tracer.o, cfglayout.o): Replace cfglayout.h with
1293 CFGLAYOUT_H.
1294 (ra.o, ra-build.o, ra-colorize.o, ra-debug.o, ra-rewrite.o):
1295 Replace ra.h with RA_H.
1296 (resource.o, regrename.o, insn-conditions.o, insn-emit.o,
1297 insn-recog.o): Replace resource.h with RESOURCE_H.
1298 (ddg.o, modulo-sched.o, haifa-sched.o, sched-deps.o, sched-rgn.o,
1299 sched-ebb.o, sched-vis.o, out_object_file): Replace sched-int.h
1300 with SCHED_INT_H.
1301 (web.o, lcm.o, df.o, ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
1302 ra-rewrite.o): Replace df.h with DF_H.
1303 (ddg.o, modulo-sched.o): Replace ddf.h with DDG_H.
1304 (tree-outof-ssa.o, tree-ssa-live.o, tree-ssa-copyrename.o):
1305 Replace tree-ssa-live.h with TREE_SSA_LIVE_H.
1306 (insn-conditions.o): Remove unused reload.h.
1307 * cfglayout.h: Add include guard. Include basic-block.h.
1308 * cfgloop.h: Add include guard. Include basic-block.h, rtl.h.
1309 * ddg.h: Include sbitmap.h, basic-block.h, df.h.
1310 * df.h: Add include guard. Include bitmap.h, sbitmap.h,
1311 basic-block.h.
1312 * genconditions.c: Remove reload.h.
1313 * ra.h: Add include guard. Include bitmap.h, sbitmap.h,
1314 hard-reg-set.h, insn-modes.h.
1315 * resource.h: Add include guard. Include hard-reg-set.h.
1316 * sched-int.h: Add include guard. Include insn-attr.h,
1317 basic-block.h, rtl.h.
1318 * target.h: Add include guard. Include insn-modes.h.
1319 * tree-ssa-live.h: Include partition.h.
1320
1321 2004-06-03 Daniel Berlin <dberlin@dberlin.org>
1322 Kenneth Zadeck <zadeck@naturalbridge.com>
1323
1324 * tree-ssa-ccp.c (varying_ssa_edges): New worklist.
1325 (add_var_to_ssa_edges_worklist): Add value argument.
1326 Update callers.
1327 Use new worklist.
1328 (process_ssa_edge_worklist): New function.
1329 (tree_ssa_ccp): Move worklist processing core to
1330 process_ssa_edge_worklist, and just call that for the two worklists.
1331
1332 2004-06-03 Steven Bosscher <stevenb@suse.de>
1333
1334 * basic-block.c (tail_recursion_label_list): Don't declare.
1335 (CLEANUP_PRE_SIBCALL): Remove. Renumber the other CLEANUP_*
1336 accordingly.
1337 * cfgbuild.c (find_label_refs): Remove.
1338 (find_basic_blocks_1): Don't handle CALL_PLACEHOLDER insns.
1339 * cfgcleanup.c (tail_recursion_label_p): Remove.
1340 (merge_blocks_move): Do not check for tail recursion.
1341 (try_optimize_cfg): Likewise.
1342 (cleanup_cfg): Never handle CLEANUP_PRE_SIBCALL.
1343 * cfgrtl.c (tail_recursion_label_list): Remove.
1344 * except.c (remove_unreachable_regions): Don't handle
1345 CALL_PLACEHOLDER insns.
1346 (convert_from_eh_region_ranges_1, can_throw_internal,
1347 can_throw_external): Likewise.
1348 * function.c (free_after_compilation): Don't clear
1349 x_tail_recursion_label.
1350 (fixup_var_refs_insns): Don't handle CALL_PLACEHOLDER insns.
1351 (identify_blocks_1): Don't recurse for CALL_PLACEHOLDER insns.
1352 (reorder_blocks_1): Likewise.
1353 * function.h (struct function): Remove x_tail_recursion_label
1354 member. Don't define tail_recursion_label.
1355 * jump.c (mark_all_labels): Don't handle CALL_PLACEHOLDER insns.
1356 * print-rtl.c (print_rtx): Likewise.
1357 * rtl.def (CALL_PLACEHOLDER): Remove.
1358 * rtl.h (sibcall_use_t): Remove enum.
1359 (optimize_sibling_and_tail_recursive_calls,
1360 replace_call_placeholder): Remove function prototypes.
1361 * stmt.c (tail_recursion_args): Remove.
1362 (optimize_tail_recursion): Remove.
1363 (expand_return): Don't check for possible tail recursion.
1364 * tree.h (optimize_tail_recursion): Remove prototype.
1365
1366 2004-06-02 Jan Hubicka <jh@suse.cz>
1367
1368 * tree-cfg.c (tree_find_edge_insert_loc): Allow inserting before
1369 return_stmt.
1370
1371 2004-06-02 Jason Merrill <jason@redhat.com>
1372
1373 * Makefile.in (TAGS): Don't mess with c-parse.[ch].
1374 Do include c-parse.in.
1375
1376 2004-06-02 Eric Christopher <echristo@redhat.com>
1377
1378 * c-typeck.c (common_type): Don't lose type qualifiers
1379 when creating new variants.
1380
1381 2004-06-02 Andrew Pinski <pinskia@physics.uc.edu>
1382
1383 PR tree-optimization/14042
1384 PR tree-optimization/14729
1385 PR tree-optimization/14736
1386 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
1387 Check the type which the pointer points to
1388 instead of the pointer types.
1389
1390 2004-06-02 Kazu Hirata <kazu@cs.umass.edu>
1391
1392 PR tree-optimization/15738.
1393 * builtins.c (fold_builtin_strchr): Transform
1394 strrchr (s, '\0') to strchr (s, '\0').
1395
1396 2004-06-02 Steven Bosscher <stevenb@suse.de>
1397
1398 * i386.c (ix86_adjust_cost): Don't increase the cost for
1399 load+operation for PROCESSOR_PENTIUMPRO, it is already
1400 modelled in the DFA description
1401
1402 2004-06-01 Jerry Quinn <jlquinn@optonline.net>
1403
1404 * Makefile.in (EXPR_H): Add insn-config.h, function.h,
1405 $(RTL_H), flags.h, $(TREE_H), $(MACHMODE_H), $(EXPR_H).
1406 (ALIAS_H, EMIT_RTL_H): New.
1407 (cselib.o): Replace EXPR_H with EMIT_RTL_H.
1408 (cfgcleanup.o): Add EMIT_RTL_H.
1409 (alias.o): Replace EXPR_H with EMIT_RTL_H and ALIAS_H.
1410 * alias.c: Replace expr.h with emit-rtl.h and alias.h.
1411 * attribs.c, c-lex.c, c-obj-common.c, c-semantics.c: Remove expr.h.
1412 * cfgcleanup.c, cselib.c: Replace expr.h with emit-rtl.h.
1413 * expr.h: Add include guard. Include function.h, rtl.h, flags.h,
1414 tree.h, machmode.h, insn-config.h, alias.h, emit-rtl.h.
1415 (get_varargs_alias_set, get_frame_alias_set, record_base_value,
1416 record_alias_subset, new_alias_set, can_address_p): Move to alias.h.
1417 (set_mem_alias_set, set_mem_align, set_mem_expr, set_mem_offset,
1418 set_mem_size): Move to emit-rtl.h.
1419 * emit-rtl.h: New.
1420 * alias.h: New.
1421
1422 2004-06-01 Eric Botcazou <ebotcazou@act-europe.fr>
1423
1424 * function.c (walk_fixup_memory_subreg): New parameter 'var'.
1425 Call fixup_memory_subreg only if the MEM is equal to 'var'.
1426 Adjust recursive calls to self.
1427 (fixup_var_refs_insn): Pass 'var' to walk_fixup_memory_subreg.
1428
1429 2004-06-01 Richard Henderson <rth@redhat.com>
1430 Andrew Pinski <pinskia@physics.uc.edu>
1431
1432 * c-parse.in (OFFSETOF, offsetof_member_designator): New.
1433 (primary): Handle offsetof. Add error productions for faux functions.
1434 Move component_ref objc checking to build_component_ref.
1435 (reswords): Add offsetof.
1436 (rid_to_yy): Add offsetof.
1437 * c-tree.h (build_offsetof): Declare.
1438 * c-common.h (objc_is_public): Declare.
1439 * c-typeck.c (build_component_ref): Check objc_is_public.
1440 (build_offsetof): New.
1441 * stub-objc.c (objc_is_public): New.
1442 * objc/objc-act.c, objc/objc-act.h (objc_is_public): Rename
1443 from is_public.
1444 * ginclude/stddef.h (offsetof): Use __builtin_offsetof.
1445 * doc/extend.texi (Offsetof): Move from C++ section to C section
1446 and rewrite for __builtin_offsetof.
1447
1448 2004-06-01 Peter Barada <peter@the-baradas.com>
1449 Peter Jakubek <peter@laseranimation.com>
1450
1451 * config/m68k/m68k.c(m68k_output_mi_thunk): For ColdFire, use %d0 as
1452 a scratch to perform an add to memory.
1453
1454 2004-06-01 Bernardo Innocenti <bernie@develer.com>
1455
1456 PR target/14018
1457 * config/m68k/m68k.c (m68k_align_loops_string, m68k_align_jumps_string,
1458 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
1459 m68k_align_funcs): Remove.
1460 (override_options): Remove code to handle -malign-* options.
1461 * config/m68k/m68k.h (TARGET_OPTIONS): Remove -malign-* options.
1462 (FUNCTION_BOUNDARY, LOOP_ALIGN, LOOP_ALIGN_AFTER_BARRIER): Remove.
1463 (m68k_align_loops_string, m68k_align_jumps_string,
1464 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
1465 m68k_align_funcs): Remove definitions.
1466
1467 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
1468
1469 PR target/15626
1470 * doc/install.texi (sparc-sun-solaris2*): Document messages issued
1471 by the Sun linker in conjunction with the Sun assembler.
1472 (sparc-sun-solaris2.7): Update revision info for Sun patch 106950.
1473
1474 2004-06-01 Jeff Law <law@redhat.com>
1475
1476 * stmt.c (expand_decl): Be more selective about calling
1477 mark_reg_pointer.
1478
1479 2004-06-01 Nicola Pero <nicola@brainstorm.co.uk>
1480
1481 PR objc/7993
1482 * objc-act.c (is_private): Do not emit the 'instance variable %s
1483 is declared private' error.
1484 (is_public): Emit the error after calling is_private.
1485 (lookup_objc_ivar): If the instance variable is private, return 0
1486 - the instance variable is invisible here.
1487
1488 2004-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
1489
1490 * doc/invoke.texi (-static-libgcc): Explicitly mention
1491 non-GNU linkers.
1492
1493 2004-06-01 Bernardo Innocenti <bernie@develer.com>
1494
1495 PR target/12968
1496 * doc/invoke.texi: Document stack alignment side-effect of -mshort.
1497
1498 2004-05-31 Joseph S. Myers <jsm@polyomino.org.uk>
1499
1500 PR c/15749
1501 * c-decl.c (grokdeclarator, finish_struct): Don't pedwarn for
1502 misuses of structures with flexible array members if
1503 in_system_header.
1504
1505 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
1506
1507 PR target/15693
1508 * config/sparc/sparc.c (compare_operand): New predicate.
1509 * config/sparc/sparc.h (PREDICATE_CODES): Add it.
1510 * config/sparc/sparc.md (cmpsi expander): Use it. If the first
1511 operand is a ZERO_EXTRACT and the second operand is not zero,
1512 force the former to a register.
1513 (cmpdi expander): Likewise.
1514
1515 2004-05-31 Geoffrey Keating <geoffk@apple.com>
1516
1517 * gengtype-lex.l: Catch stray GTY markers in the files gengtype
1518 looks at.
1519 * alias.c (alias_invariant_size): Make alias_invariant_size
1520 static, fix GTY marker.
1521
1522 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
1523
1524 PR tree-optimization/15743.
1525 * builtins.c (fold_builtin_1): Fold index() and rindex().
1526
1527 2004-05-31 Roger Sayle <roger@eyesopen.com>
1528
1529 PR middle-end/15069
1530 * fold-const.c (fold_single_bit_test): Only perform "(X & C) != 0"
1531 into "X < 0" (where C is the signbit) if X's type is a full mode.
1532
1533 2004-05-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1534
1535 * pa.md: Disable the peephole2 patterns that generate indexed
1536 floating-point stores when indexing is disabled.
1537
1538 2004-05-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
1539
1540 * c-pretty-print.c (pp_c_left_bracket): Make a function.
1541 (pp_c_right_bracket): Likewise.
1542 (pp_c_star): Likewise.
1543 (pp_c_ampersand): Define.
1544 * c-pretty-print.h (pp_c_left_bracket): Declare.
1545 (pp_c_right_bracket): Likewise.
1546 (pp_c_star): Likewise.
1547 (pp_c_ampersand): Likewise.
1548
1549 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
1550
1551 * config/sol2.h (__enable_execute_stack): ANSIfy function
1552 definition.
1553
1554 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
1555
1556 * c-incpath.c (add_path): Canonicalize paths to use '/' if
1557 HAVE_DOS_BASED_FILESYSTEM.
1558
1559 2004-05-31 Steven Bosscher <stevenb@suse.de>
1560
1561 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
1562 Only look at case labels if the immediate dominator is also
1563 the only predecessor. Don't look for more case labels if the
1564 first seen is a case range.
1565
1566 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
1567
1568 * builtins.c: Add a prototype for fold_builtin_strchr().
1569
1570 2004-05-31 Paolo Bonzini <bonzini@gnu.org>
1571
1572 Revert this patch:
1573 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
1574
1575 * combine.c (gen_binary): Remove.
1576 (known_cond, simplify_shift_const
1577 find_split_point, combine_simplify_rtx,
1578 simplify_if_then_else, simplify_set,
1579 simplify_logical, expand_field_assignment,
1580 extract_left_shift, force_to_mode,
1581 if_then_else_cond, apply_distributive_law,
1582 simplify_and_const_int, simplify_shift_const,
1583 gen_lowpart_for_combine, simplify_comparison,
1584 reversed_comparison): Replace with
1585 simplify_gen_binary, simplify_gen_relational or
1586 distribute_and_simplify_rtx.
1587 (distribute_and_simplify_rtx): New function.
1588
1589 2004-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1590
1591 * pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
1592 when generating PIC code.
1593
1594 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
1595
1596 * c-decl.c (c_expand_body_1): Remove and fold back into ...
1597 (c_expand_body): here.
1598 (c_expand_decl): Move to ...
1599 * c-common.c (c_expand_decl): Here and remove check for nested
1600 functions.
1601 * c-common.h (c_expand_decl): Add prototype.
1602 * c-tree.h (c_expand_decl): Remove.
1603
1604 2004-05-30 Roger Sayle <roger@eyesopen.com>
1605
1606 * fold-const.c (combine_comparisons, optimize_bit_field_compare,
1607 range_binop, fold_truthop, fold_binary_op_with_conditional_arg,
1608 fold_mathfn_compare, fold_inf_compare, fold,
1609 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
1610 Use constant_boolean_node where appropriate. Don't bother using
1611 fold_convert on the second argument to omit_one_operand.
1612
1613 2004-05-30 Roger Sayle <roger@eyesopen.com>
1614
1615 * doc/c-tree.texi (Expressions): Document FLOOR_DIV_EXPR,
1616 CEIL_DIV_EXPR, ROUND_DIV_EXPR, FLOOR_MOD_EXPR, CEIL_MOD_EXPR,
1617 ROUND_MOD_EXPR, EXACT_DIV_EXPR. Improve documentation of
1618 TRUNC_DIV_EXPR, TRUNC_MOD_EXPR and comparison operations.
1619 Add missing (but documented) tree nodes to the index.
1620
1621 2004-05-30 Steven Bosscher <stevenb@suse.de>
1622
1623 PR tree-optimization/14819
1624 * builtins.c (fold_builtin_strchr): New.
1625 (fold_builtin_1): Handle BUILT_IN_STRCHR and BUILT_IN_STRRCHR
1626 with fold_builtin_strchr().
1627
1628 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
1629
1630 * bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
1631 c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
1632 expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
1633 passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
1634 tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
1635 tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
1636 tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
1637 tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
1638 tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
1639 formatting.
1640
1641 2004-05-30 Steven Bosscher <stevenb@suse.de>
1642
1643 * gimplify.c (sort_case_labels): New. Split out from...
1644 (gimplify_switch_expr): ...here. Use it.
1645 * tree-eh.c (lower_try_finally_switch): Sort the labels of
1646 the SWITCH_EXPR created here before leaving the function.
1647 * tree.c (sort_case_labels): Add prototype.
1648
1649 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
1650
1651 * fold-const.c (fold) [case TRUTH_NOT_EXPR]: Make sure the type is
1652 of BOOLEAN_TYPE.
1653
1654 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
1655
1656 * c-common.c, calls.c, cfgcleanup.c, cgraph.c, cgraphunit.c,
1657 ddg.c, ddg.h, df.c, df.h, except.c, expr.c, flags.h,
1658 fold-const.c, gcc.c, gimplify.c, haifa-sched.c,
1659 modulo-sched.c, tree-inline.c, tree-into-ssa.c, tree-nested.c,
1660 tree-nrv.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-live.c,
1661 tree-ssa-loop.c, tree-ssa-pre.c, tree-tailcall.c, tree.h: Fix
1662 comment typos. Follow spelling conventions.
1663
1664 2004-05-29 Geoffrey Keating <geoffk@apple.com>
1665
1666 * gengtype-yacc.y: Add NESTED_PTR token.
1667 (option): Record `nested_ptr' option.
1668 * gengtype-lex.l: Handle `nested_ptr' keyword.
1669 * gengtype.c (walk_type): Process `nested_ptr' option.
1670 * gengtype.h (struct nested_ptr_data): New.
1671 * doc/gty.texi (GTY Options): Document `nested_ptr' option.
1672 * stringpool.c (struct string_pool_data): Make 'entries' point to
1673 ht_identifier instead of tree.
1674 (gt_pch_save_stringpool): Don't adjust pointers.
1675 (gt_pch_restore_stringpool): Call ht_load.
1676
1677 2004-05-29 Jason Merrill <jason@redhat.com>
1678
1679 * gimplify.c (gimplify_expr): Don't build a statement list
1680 if no gimplification was necessary.
1681
1682 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
1683
1684 * pretty-print.c (pp_base_format_text): Support %< instead of %`
1685 and %> as well as %'.
1686 * c-format.c: Use %< and %>.
1687 (gcc_diag_char_table, gcc_cdiag_char_table,
1688 gcc_cxxdiag_char_table): Update.
1689
1690 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
1691
1692 * c-typeck.c (common_type): Correct comment.
1693
1694 2004-05-29 Peter Barada <peter@the-baradas.com>
1695
1696 * config/m68k/m68k.c (CONST_METHOD): Add MVZ, MVS.
1697 * config/m68k/m68k.c (const_method): Likewise.
1698 * config/m68k/m68k.c (const_int_cost): Likewise.
1699 * config/m68k/m68k.c (const_int_cost): Likewise.
1700 * config/m68k/m68k.c (output_move_const_into_data_reg): Likewise.
1701
1702 2004-05-29 Peter Barada <peter@the-baradas.com>
1703
1704 * config/m68k/m68k.h (EXTRA_CONSTRAINT): add 'U' for register offset
1705 addressing.
1706 * config/m68k/m68k.md: Add 'U,U' alternative to ColdFire variants of
1707 movsi,movhi,movqi insn patterns.
1708
1709 2005-05-28 Andrew Pinski <pinskia@physics.uc.edu>
1710
1711 * c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.
1712
1713 PR target/15720
1714 * config/darwin.c (machopic_indirect_call_target): Copy
1715 the SYMBOL_REF_DECL from the original RTX for the new
1716 stub RTX.
1717
1718 2004-05-28 DJ Delorie <dj@redhat.com>
1719
1720 * stor-layout.c (place_field): Revert erroneous commit.
1721
1722 2004-05-28 Ziemowit Laski <zlaski@apple.com>
1723
1724 * config/rs6000/altivec.h (vec_ctf, vec_vcfsx, vec_vcfux, vec_cts,
1725 vec_ctu, vec_dss, vec_dst, vec_dstst, vec_dststt, vec_dstt, vec_ld,
1726 vec_ldl, vec_lvsl, vec_lvsr, vec_sld, vec_splat, vec_vspltw,
1727 vec_vsplth, vec_vspltb, vec_splat_s8, vec_splat_s16, vec_splat_s32,
1728 vec_splat_u8, vec_splat_u16, vec_splat_u32, vec_st, vec_stl,
1729 vec_ste): Remove type checks for integral parameters and literals
1730 from '..._args_eq' macros.
1731
1732 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
1733
1734 * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
1735
1736 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
1737
1738 * testsuite/g++.dg/charset/function.cc: New.
1739
1740 * testsuite/gcc.dg/charset/function.c: New.
1741
1742 * c-decl.c (c_make_fname_decl): Free return value from
1743 fname_as_string.
1744
1745 * cp/decl.c (cp_make_fname_decl): Free return value from
1746 fname_as_string.
1747
1748 * c-common.c (fname_as_string): Translate if necessary.
1749
1750 2004-05-28 Geoffrey Keating <geoffk@apple.com>
1751
1752 * stringpool.c: Add comments to PCH saving/restoring routines.
1753
1754 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
1755
1756 * c-common.c (c_estimate_num_insns_1): Kill.
1757 (c_estimate_num_insns): Kill.
1758 * c-common.h (c_estimate_num_insns): Kill.
1759
1760 * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING
1761 when checking for _POSIX_THREAD_PRIORITY_SCHEDULING.
1762 Remove comment about not checking for
1763 _POSIX_PRIORITY_SCHEDULING.
1764 * gthr-posix.c: Likewise.
1765
1766 2004-05-28 Paolo Bonzini <bonzini@gnu.org>
1767 Roger Sayle <roger@eyesopen.com>
1768
1769 PR rtl-optimization/15649
1770 Add LTGT_EXPR and improve pretty-printing of unordered
1771 comparisons.
1772 * c-common.c (c_common_truthvalue_conversion):
1773 Handle LTGT_EXPR.
1774 * c-typeck.c (build_binary_op): Likewise.
1775 * dojump.c (do_jump): Likewise.
1776 * expr.c (expand_expr_real_1, do_store_flag): Likewise.
1777 * predict.c (tree_predict_by_opcode): Likewise.
1778 * real.c (real_compare): Likewise.
1779 * tree-cfg.c (verify_expr): Likewise.
1780 * tree-inline.c (estimate_num_insns_1): Likewise.
1781 * tree-pretty-print.c (dump_generic_node): Likewise.
1782 Handle ORDERED_EXPR, UNORDERED_EXPR.
1783 (op_symbol): Print unordered comparisons differently
1784 than ordered ones.
1785 * tree.def (LTGT_EXPR): New '<' tree code.
1786 * doc/c-tree.texi (Expressions): Document floating-point
1787 comparison nodes.
1788
1789 Fold comparisons between floating point values.
1790 * fold-const.c (enum comparison_code): New, from
1791 #define'd constants. Define compcodes for unordered
1792 comparisons and for invalid transformations.
1793 (invert_tree_comparison): Add "honor_nans" parameter.
1794 (fold_truthop): Revamp to work on floating-point types too.
1795 (comparison_to_compcode): Support unordered comparisons.
1796 Use new enum comparison_code.
1797 (compcode_to_comparison): Likewise.
1798 (combine_compcodes): New function.
1799 (invert_truthvalue): Let invert_tree_comparison decide
1800 whether it is valid to fold the comparison. Fold ORDERED
1801 and UNORDERED even if flag_unsafe_math_optimizations is off,
1802 and the remaining even if flag_unsafe_math_optimizations
1803 is off but we are under -fno-trapping-math.
1804 (fold_relational_const): Integer modes do not honor NaNs.
1805
1806 2004-05-28 Paul Brook <paul@codesourcery.com>
1807
1808 * config/arm/arm.c (arm_output_epilogue): Remove redundant code.
1809
1810 2004-05-28 Paul Brook <paul@codesourcery.com>
1811
1812 * config/arm/arm.c (thumb_force_lr_save): New function.
1813 (arm_get_frame_offsets, thumb_unexpanded_epilogue,
1814 thumb_output_function_prologue): Use it.
1815 (thumb_expand_prologue): Set lr_save_eliminated.
1816
1817 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
1818
1819 * config/mips/mips.md (extendsidi2): Tie the source and destination
1820 of the register alternative. Split it into nothing.
1821
1822 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
1823
1824 * rtl.h (skip_consecutive_labels): Declare.
1825 * emit-rtl.c (skip_consecutive_labels): New function.
1826 * reorg.c (relax_delay_slots, dbr_schedule): Use it.
1827 * jump.c (follow_jumps): Say what null return values mean.
1828
1829 2004-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
1830
1831 PR target/13250
1832 * config/sh/sh.md (rotlsi3): Use emit_move_insn.
1833
1834 2004-05-27 Kaz Kojima <kkojima@gcc.gnu.org>
1835
1836 * config/sh/t-linux (SHLIB_MAPFILES): Use sh specific
1837 libgcc-std.ver.
1838 * config/sh/libgcc-std.ver: New file.
1839
1840 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
1841
1842 * except.c: Revert change of 2004-05-26.
1843 * config/i386/i386.md: Revert change of 2004-05-27.
1844
1845 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
1846
1847 * configure.ac: Remove --enable-tree-browser option.
1848 Define TREEBROWSER when ac_tree_checking is defined.
1849 * configure: Rebuilt.
1850
1851 2004-05-27 Olivier Hainque <hainque@act-europe.fr>
1852
1853 * expr.c (store_constructor): Restore sanity check on
1854 the size of the type before clearing.
1855
1856 2004-05-27 Jan Hubicka <jh@suse.cz>
1857
1858 * cfgbuild.c (control_flow_insn_p): Notice noreturn call
1859
1860 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
1861
1862 * combine.c (gen_binary): Remove.
1863 (known_cond, simplify_shift_const
1864 find_split_point, combine_simplify_rtx,
1865 simplify_if_then_else, simplify_set,
1866 simplify_logical, expand_field_assignment,
1867 extract_left_shift, force_to_mode,
1868 if_then_else_cond, apply_distributive_law,
1869 simplify_and_const_int, simplify_shift_const,
1870 gen_lowpart_for_combine, simplify_comparison,
1871 reversed_comparison): Replace with
1872 simplify_gen_binary, simplify_gen_relational or
1873 distribute_and_simplify_rtx.
1874 (distribute_and_simplify_rtx): New function.
1875 * simplify-rtx.c (simplify_binary_operation):
1876 Use nonzero_bits to simplify ANDs where we are
1877 turning off bits already known to be off in OP0.
1878
1879 2004-05-27 Alan Modra <amodra@bigpond.net.au>
1880
1881 PR target/14478
1882 * config/rs6000/rs6000.c (reg_or_neg_short_operand): Don't allow zero.
1883
1884 2004-05-27 Josef Zlomek <zlomekj@suse.cz>
1885
1886 PR middle-end/14084
1887 * emit-rtl.c (gen_rtx_REG_offset): Adjust the offset according
1888 to size of decl.
1889
1890 2004-05-26 Aldy Hernandez <aldyh@redhat.com>
1891
1892 PR/14924
1893 * config/rs6000/rs6000.c (spe_expand_stv_builtin): New.
1894
1895 2004-05-26 Roger Sayle <roger@eyesopen.com>
1896
1897 * tree.h: Fix comment typo.
1898
1899 2004-05-27 Steven Bosscher <stevenb@suse.de>
1900
1901 * gimplify.c (compare_case_labels): New function.
1902 (gimplify_switch_expr): Sort case labels, and make sure the
1903 last label in the label vector is the default case.
1904 * tree-cfg.c (group_case_labels): New function.
1905 (build_tree_cfg): Cleanup redundant labels and group case labels
1906 before creating edges.
1907 (cleanup_dead_labels): Handle GOTO_EXPRs.
1908 (find_case_label_for_value): Use a binary search to find the
1909 case label for the given value.
1910 * tree-gimple.c: Mention that labels are sorted, and that the
1911 last label must be the default.
1912
1913 2004-05-27 Jan Hubicka <jh@suse.cz>
1914
1915 * cfgcleanup.c (try_optimize_cfg): Do not merge across jumptables.
1916
1917 2004-05-27 Jan Hubicka <jh@suse.cz>
1918
1919 * i386.md (UNSPECV_EH_RETURN): Kill.
1920 (eh_return): Use jump_insn.
1921 (eh_return_si, eh_return_di): Change pattern to jump instruction.
1922
1923 2004-05-26 Jan Hubicka <jh@suse.cz>
1924
1925 * cfgcleanup.c (try_forward_edges): Do not check loop structure when
1926 not loop optimizing.
1927
1928 2004-05-26 Jan Hubicka <jh@suse.cz>
1929
1930 * except.c (can_throw_internal): Notice RESX instructions.
1931
1932 2004-05-26 Eric Botcazou <ebotcazou@act-europe.fr>
1933
1934 * varasm.c (output_constant) <INTEGER_TYPE>: Pass the minimum
1935 of the two sizes to assemble_integer.
1936
1937 2004-05-25 Paul Brook <paul@codesourcery.com>
1938
1939 * config/arm/arm.c (thumb_exit, thumb_unexpanded_epilogue): Remove
1940 pointless #ifdef.
1941
1942 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
1943
1944 * Makefile.in (top_builddir): Define to .
1945
1946 2004-05-25 Alexandre Oliva <aoliva@redhat.com>
1947
1948 * configure.ac (gcc_cv_ld): Prefer in-tree ld over whatever the
1949 top-level detects, except when in-tree ld is being cross-built.
1950 (gcc_cv_as): Likewise for as. Use AS_FOR_TARGET otherwise, and
1951 then AS only if target is host.
1952 * configure: Rebuilt.
1953
1954 2004-05-25 Vladimir Makarov <vmakarov@redhat.com>
1955
1956 * global.c (global_alloc): Call make_accurate_live_analysis.
1957 (record_one_conflict): Remove dead code.
1958 (mark_reg_clobber): Remove ATTRIBUTE_UNUSED for parameter data.
1959 (bb_info): New structure.
1960 (BB_INFO, BB_INFO_BY_INDEX): New macros.
1961 (allocate_bb_info, free_bb_info, mark_reg_change,
1962 calculate_local_reg_bb_info, set_up_bb_rts_numbers, rpost_cmp,
1963 modify_bb_reg_pav, calculate_reg_pav,
1964 make_accurate_live_analysis): New functions.
1965
1966 2004-05-25 Devang Patel <dpatel@apple.com>
1967
1968 * alias.c (init_alias_analysis): Use ggc_calloc instead of
1969 xrealloc.
1970 (end_alias_analysis): Use ggc_free instead fo free.
1971
1972 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
1973
1974 PR target/15546
1975 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Mark the DECL
1976 as needed to be outputted.
1977
1978 2004-05-25 Jan Hubicka <jh@suse.cz>
1979
1980 * builtins.def (__builtin_expect): Mark the function as const&nothrow.
1981
1982 2004-05-25 Ayal Zaks <zaks@il.ibm.com>
1983 Mostafa Hagog <mustafa@il.ibm.com>
1984
1985 * Makefile.in (modulo-sched.o, ddg.o): New.
1986 * ddg.h, ddg.c, modulo-sched.c: New files.
1987 * cfglayout.c (duplicate_insn_chain): Remove "static" and push
1988 internals to "dupicate_insn".
1989 (duplicate_insn): New function.
1990 * cfglayout.h (duplicate_insn_chain, duplicate_insn): New
1991 declarations.
1992 * common.opt (fmodulo-sched): New flag.
1993 * df.c (df_bb_regno_last_use_find, df_bb_regno_first_def_find):
1994 Remove static and forward declaration.
1995 (df_find_def, df_reg_used, df_bb_regno_last_def_find): New
1996 functions.
1997 * df.h (df_bb_regno_last_use_find, df_bb_regno_first_def_find,
1998 df_bb_regno_last_def_find, df_find_def, df_reg_used): New
1999 declarations.
2000 * flags.h (flag_modulo_sched): New flag.
2001 * opts.c (common_handle_option): Handle modulo-sched flag.
2002 * params.def (max-sms-loop-number, sms-max-ii-factor,
2003 sms-dfa-history, sms-loop-average-count-threshold): New
2004 parameters.
2005 * params.h (MAX_SMS_LOOP_NUMBER, SMS_MAX_II_FACTOR,
2006 SMS_DFA_HISTORY, SMS_LOOP_AVERAGE_COUNT_THRESHOLD): New
2007 parameters.
2008 * passes.c ("sms", "sms-vcg"): New dumps.
2009 (rest_of_handle_sched): Call sms_schedule.
2010 * rtl.h (sms_schedule): New declaration.
2011 * timevar.def (TV_SMS): New.
2012 * toplev.c (flag_modulo_sched): Initialize.
2013 (f_options): Handle -fmodulo-sched option.
2014 * docs/invoke.texi: Document -fmodulo-sched & -dm options.
2015 * docs/passes.texi: Document new SMS pass.
2016
2017 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
2018
2019 * Makefile.in (OBJS): Add rtlhooks.o.
2020 (rtlanal.o): Depend on function.h.
2021 (cse.o): Depend on rtlhooks-def.h.
2022 (combine.o): Depend on rtlhooks-def.h.
2023 (rtlhooks.o): New rule.
2024 * combine.c: Include rtlhooks-def.h.
2025 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
2026 num_sign_bit_copies, cached_num_sign_bit_copies,
2027 num_sign_bit_copies1): Move most of the code to rtlanal.c.
2028 (reg_nonzero_bits_for_combine,
2029 reg_num_sign_bit_copies_for_combine): New functions holding
2030 the remnants of the above.
2031 (combine_rtl_hooks): New.
2032 (combine_instructions): Set rtl_hooks instead of gen_lowpart.
2033 * cse.c: Include rtlhooks-def.h.
2034 (cse_rtl_hooks): New.
2035 (cse_main): Set rtl_hooks instead of gen_lowpart.
2036 * emit-rtl.c (gen_lowpart): Remove.
2037 (gen_lowpart_general): Move to rtlhooks.c.
2038 * rtl.h (nonzero_bits, num_sign_bit_copies,
2039 struct rtl_hooks, rtl_hooks, general_rtl_hooks): New.
2040 (gen_lowpart_general): Remove.
2041 (gen_lowpart): Temporarily redefine as a macro.
2042 * rtlanal.c: Include function.h.
2043 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
2044 num_sign_bit_copies, cached_num_sign_bit_copies,
2045 num_sign_bit_copies1): New, from combine.c.
2046 * rtlhooks.c: New file.
2047 * rtlhooks-def.h: New file.
2048
2049 2004-05-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2050
2051 * config/avr/avr.h (LONG_LONG_TYPE_SIZE): Changed long long type
2052 to support 32-bit -mint8 mode.
2053
2054 * doc/invoke.texi (-mint8): Added documentation for the -mint8
2055 option in the AVR architecture.
2056
2057 2004-05-24 Mike Stump <mrs@apple.com>
2058
2059 * doc/install.texi: Document that dejagnu 1.4.4 is required.
2060
2061 2004-05-24 Joseph S. Myers <jsm@polyomino.org.uk>
2062
2063 * intl.h (open_quote, close_quote): New.
2064 * intl.c (open_quote, close_quote): New.
2065 (gcc_init_libintl): Set them.
2066 * pretty-print.c: Include "intl.h".
2067 (pp_base_format_text): Support 'q' format flag and %` and %'
2068 formats. Use ' instead of ` in comments.
2069 * c-format.c (gcc_diag_flag_specs, gcc_cxxdiag_flag_specs,
2070 gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table,
2071 foramt_types_orig): Describe these new formats.
2072 (decode_format_attr, check_function_format,
2073 check_format_info_main): Use these new formats.
2074 (status_warning): Use ATTRIBUTE_GCC_DIAG.
2075 * toplev.c (ATTRIBUTE_GCC_DIAG): Increase required GCC version to
2076 check these formats to 3.5.
2077
2078 2004-05-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2079
2080 * Makefile.in (CPPLIBS): Renamed to CPPLIB.
2081 (BACKEND): Reflect this.
2082 (LIBDEPS): Move CPPLIB before LIBIBERTY.
2083 (LIBS): Likewise.
2084
2085 2004-05-24 Ulrich Weigand <uweigand@de.ibm.com>
2086
2087 PR tree-optimization/14197
2088 * builtins.c: Include "tree-gimple.h"
2089 (readonly_data_expr): Use get_base_address. Make sure to call
2090 decl_readonly_section only on trees it can handle.
2091 * tree-gimple.c (get_base_address): Accept STRING_CST and
2092 CONSTRUCTOR expressions.
2093 * Makefile.in: Update dependencies.
2094
2095 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
2096
2097 Move libcpp to the toplevel.
2098 * Makefile.in: Remove references to libcpp files,
2099 use CPPLIBS instead of libcpp.a. Define SYMTAB_H
2100 and change hashtable.h to that.
2101 * aclocal.m4 (gcc_AC_HEADER_STDBOOL,
2102 gcc_AC_HEADER_STRING, gcc_AC_C__BOOL): Remove.
2103 * configure.ac (gcc_AC_C__BOOL, HAVE_UCHAR): Remove tests.
2104 * configure: Regenerate.
2105 * config.in: Regenerate.
2106 * c-ppoutput.c: Include ../libcpp/internal.h instead of cpphash.h.
2107 * cppcharset.c: Removed.
2108 * cpperror.c: Removed.
2109 * cppexp.c: Removed.
2110 * cppfiles.c: Removed.
2111 * cpphash.c: Removed.
2112 * cpphash.h: Removed.
2113 * cppinit.c: Removed.
2114 * cpplex.c: Removed.
2115 * cpplib.c: Removed.
2116 * cpplib.h: Removed.
2117 * cppmacro.c: Removed.
2118 * cpppch.c: Removed.
2119 * cpptrad.c: Removed.
2120 * cppucnid.h: Removed.
2121 * cppucnid.pl: Removed.
2122 * cppucnid.tab: Removed.
2123 * hashtable.c: Removed.
2124 * hashtable.h: Removed.
2125 * line-map.c: Removed.
2126 * line-map.h: Removed.
2127 * mkdeps.c: Removed.
2128 * mkdeps.h: Removed.
2129 * stringpool.h: Include symtab.h instead of hashtable.h.
2130 * tree.h: Include symtab.h instead of hashtable.h.
2131 * system.h (O_NONBLOCK, O_NOCTTY): Do not define.
2132
2133 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
2134
2135 * gcc.c (struct prefix_list): Add forward declaration.
2136 (do_spec_path): New function, extracted from...
2137 (do_spec_1) <'D'>: ... here. Drop support for
2138 SPACE_AFTER_L_OPTION.
2139 (do_spec_1) <'I'>: Use do_spec_path.
2140 (process_command): Do not store the 'include' suffix
2141 in include_prefixes.
2142 * system.h: Poison SPACE_AFTER_L_OPTION.
2143
2144 2002-05-23 Roger Sayle <roger@eyesopen.com>
2145
2146 * fold-const.c (non_lvalue): Explicitly list the tree codes that
2147 need to be wrapped by NON_LVALUE_EXPR, instead of those that don't.
2148
2149 2004-05-23 Joseph S. Myers <jsm@polyomino.org.uk>
2150
2151 * doc/gcc.texi, doc/gccint.texi, doc/include/gcc-common.texi:
2152 Update based on printed manual. Enable setting of offsets for
2153 FSFPRINT and move it to gcc-common.texi.
2154 * doc/gcc.texi: Update FSF printing details.
2155 * doc/gccint.texi: Remove FSF printing details.
2156
2157 2004-05-23 Andrew Pinski <pinskia@physics.uc.edu>
2158
2159 * config/rs6000/t-rs6000: Remove the disabling -Werror.
2160
2161 2004-05-22 Roger Sayle <roger@eyesopen.com>
2162
2163 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
2164 expand_builtin_strrchr, expand_builtin_strpbrk,
2165 expand_builtin_mempcpy, expand_builtin_memcmp,
2166 expand_builtin_strcmp, expand_builtin_strncmp,
2167 expand_builtin_strcat, std_expand_builtin_va_start,
2168 std_expand_builtin_va_arg, expand_builtin_va_copy,
2169 expand_builtin_signbit, fold_builtin_cabs,
2170 fold_builtin_logarithm, fold_builtin_mempcpy,
2171 fold_builtin_signbit, fold_builtin_isascii,
2172 fold_builtin_toascii, fold_builtin_isdigit,
2173 fold_builtin_1, build_function_call_expr,
2174 simplify_builtin_strchr, simplify_builtin_strrchr,
2175 simplify_builtin_strpbrk, simplify_builtin_strncpy,
2176 simplify_builtin_memcmp, simplify_builtin_strcmp,
2177 simplify_builtin_strncmp, simplify_builtin_strncat,
2178 simplify_builtin_strspn, simplify_builtin_strcspn,
2179 simplify_builtin_fputs, simplify_builtin_sprintf): Replace calls
2180 to build with calls to build2, build3 or omit_one_operand.
2181
2182 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
2183
2184 * config/mips/mips.c (mips_file_start): Emit a .gcc_compiled_longXX
2185 section when generating EABI code.
2186
2187 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
2188
2189 PR 15546
2190 * config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
2191 Call mark_decl_referenced on the SYMBOL_REF_DECL.
2192
2193 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
2194
2195 * c-common.c (c_common_truthvalue_conversion): Handle
2196 UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
2197 ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
2198 i.e. set the type to truthvalue_type_node and return.
2199
2200 2004-05-22 Zack Weinberg <zack@codesourcery.com>
2201
2202 * tree.h (struct tree_decl): Add possibly_inlined bit.
2203 (DECL_POSSIBLY_INLINED): New accessor macro.
2204 * cgraph.h: Remove declaration of cgraph_inline_hash.
2205 * cgraph.c: Remove definition of cgraph_inline_hash.
2206 (hash_node): Revert to hashing DECL_UID.
2207 (eq_node): Take two pointers to cgraph_node structures.
2208 Compare DECL_UIDs.
2209 (cgraph_remove_node): Pass the node directly to htab_find_slot.
2210 (cgraph_varpool_hash_node): Rename hash_varpool_node;
2211 hash on DECL_UID.
2212 (eq_cgraph_varpool_node): Rename eq_varpool_node; take two
2213 pointers to cgraph_varpool_node structures; compare DECL_UIDs.
2214 (cgraph_node): Allocate a temporary node on the stack, fill in
2215 its DECL field, and pass that to htab_find_slot.
2216 (cgraph_varpool_node): Likewise.
2217 (cgraph_function_possibly_inlined_p): If global info is ready,
2218 return the DECL_POSSIBLY_INLINED bit.
2219 * cgraphunit.c (cgraph_mark_inline_edge): Set DECL_POSSIBLY_INLINED
2220 instead of mucking with cgraph_inline_hash.
2221
2222 2004-05-22 Joseph S. Myers <jsm@polyomino.org.uk>
2223
2224 * doc/contrib.texi: Add g77 contributors.
2225
2226 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
2227
2228 * calls.c (initialize_argument_information): Forbid sibcalls if a
2229 callee-copied argument is stored in the current function's frame.
2230
2231 2004-05-22 Eric Christopher <echristo@redhat.com>
2232
2233 * fix-header.c (read_scan_file): Update for add_path change.
2234
2235 2004-05-22 Ben Elliston <bje@au.ibm.com>
2236
2237 * c.opt (Wmissing-include-dirs): New.
2238 * c-opts.c (c_common_handle_option): Pass true for user_supplied_p
2239 to add_path () for -I, but false for OPT_idirafter, OPT_iquote and
2240 OPT_isystem. Handle case OPT_Wmissing_include_dirs.
2241 * c-incpath.h (add_path): Add fourth (bool) argument.
2242 * c-incpath.c (add_env_var_paths): Pass false to add_path ().
2243 (add_standard_paths): Likewise.
2244 (remove_duplicates) [REASON_NOENT]: Warn if -Wmissing-include-dirs
2245 is used and the directory was user-supplied via -I.
2246 (add_path): Set p->user_supplied_p. Remove duplicated code by
2247 using add_cpp_dir_path ().
2248 * cpplib.h (struct cpp_options): Add warn_missing_include_dirs.
2249 (struct cpp_dir): Add user_supplied_p.
2250 * doc/invoke.texi (Warning Options): Document new option.
2251
2252 2004-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2253
2254 * fold-const.c (fold_read_from_constant_string): Convert result to
2255 requested type.
2256
2257 2004-05-21 Richard Henderson <rth@redhat.com>
2258
2259 * gimplify.c (mostly_copy_tree_r): Don't attempt to copy decls.
2260 (copy_if_shared_r): Don't copy decls, types, constants, BINDs.
2261 Don't mark VA_ARG_EXPRs volatile here.
2262 (gimplify_modify_expr): Unshare TYPE_SIZE_UNIT.
2263
2264 2004-05-21 Richard Henderson <rth@redhat.com>
2265
2266 * Makefile.in (tree-dump.o): Depend on tree-iterator.h.
2267 * tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
2268
2269 2004-05-21 Roger Sayle <roger@eyesopen.com>
2270
2271 * fold-const.c (fold, fold_relational_hi_lo,
2272 nondestructive_fold_binary_to_constant,
2273 fold_read_from_constant_string): Use fold_convert instead of convert.
2274 * builtins.c (simplify_builtin, simplify_builtin_strstr,
2275 simplify_builtin_strchr, simplify_builtin_strrchr,
2276 simplify_builtin_strpbrk): Use fold_convert instead of convert.
2277
2278 2004-05-21 Diego Novillo <dnovillo@redhat.com>
2279
2280 * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
2281 is NULL.
2282
2283 2004-05-21 Jakub Jelinek <jakub@redhat.com>
2284
2285 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
2286 override sparc.h definition.
2287
2288 2004-05-20 Roger Sayle <roger@eyesopen.com>
2289
2290 * tree.c (array_type_nelts, save_expr, substitute_in_expr,
2291 get_unwidened, get_narrower): Replace build with build2.
2292 * fold-const.c (negate_expr, associate_trees, size_binop,
2293 fold_convert, eval_subst, omit_one_operand, invert_truthvalue,
2294 pedantic_omit_one_operand, distribute_bit_expr,
2295 make_bit_field_ref, optimize_bit_field_compare,
2296 decode_field_reference, range_binop, make_range,
2297 build_range_check, fold_range_test, fold_truthop,
2298 optimize_minmax_comparison, extract_muldiv_1,
2299 fold_binary_op_with_conditional_arg, fold_mathfn_compare,
2300 fold_inf_compare, fold_single_bit_test, fold,
2301 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
2302 Likewise replace build with either build2 or build3.
2303
2304 2004-05-20 Ian Lance Taylor <ian@wasabisystems.com>
2305
2306 * system.h: Poison NO_RECURSIVE_FUNCTION_CSE.
2307 * calls.c (prepare_call_address): Don't test
2308 NO_RECURSIVE_FUNCTION_CSE.
2309 * config/arc/arc.h (NO_RECURSIVE_FUNCTION_CSE): Don't define.
2310 * config/arm/arm.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
2311 * config/avr/avr.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
2312 * config/frv/frv.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
2313 * config/i386/i386.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
2314 * config/ip2k/ip2k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
2315 * config/iq2000/iq2000.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
2316 * config/m32r/m32r.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
2317 * config/m68k/m68k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
2318 * config/mcore/mcore.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
2319 * config/mips/mips.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
2320 * config/stormy16/stormy16.h (NO_RECURSIVE_FUNCTION_CSE):
2321 Likewise.
2322 * config/xtensa/xtensa.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
2323 * config/sh/sh.h: Remove NO_RECURSIVE_FUNCTION_CSE comment.
2324 * doc/tm.texi (Costs): Remove documentation for
2325 NO_RECURSIVE_FUNCTION_CSE.
2326
2327 2004-05-20 Paul Brook <paul@codesourcery.com>
2328
2329 * unwind-dw2-fde.c (get_cie_encoding): Handle dwarf3 CIE format.
2330 * unwind-dw2.c (extract_cie_info): Ditto.
2331 (_Unwind_FrameState): Change retaddr_column to word type.
2332
2333 2004-05-20 Roger Sayle <roger@eyesopen.com>
2334
2335 PR middle-end/3074
2336 * fold-const.c (strip_compound_expr): Delete function.
2337 (count_cond): Delete function.
2338 (fold_binary_op_with_conditional_arg): Only perform transformations
2339 "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
2340 when a is constant. This greatly simplifies this routine.
2341
2342 * tree.c (saved_expr_p): Delete function.
2343 * tree.h (saved_expr_p): Delete function prototype.
2344
2345 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
2346
2347 * common.opt (ftree-loop-optimize): Remove.
2348
2349 2004-05-20 Daniel Jacobowitz <dan@debian.org>
2350
2351 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
2352 (NM_FOR_TARGET): Use := and $(shell).
2353 (mainversion): Remove unused variable.
2354
2355 2004-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2356
2357 * reorg.c (delete_from_delay_slot): If we have a barrier after the
2358 sequence containing the insn to be deleted, always reemit it.
2359
2360 2004-05-20 Richard Henderson <rth@redhat.com>
2361
2362 PR 15454
2363 * tree-nested.c (get_chain_decl): Create a PARM_DECL by hand.
2364 * function.c (expand_function_start): Expand static_chain_decl by hand.
2365 * gimplify.c (create_tmp_var_name): Export.
2366 * tree-gimple.h (create_tmp_var_name): Declare.
2367
2368 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
2369
2370 * rs6000.c (print_operand) <case 'z'>: Call
2371 mark_decl_referenced before assemble_name.
2372
2373 2004-05-20 Zack Weinberg <zack@codesourcery.com>
2374
2375 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
2376 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
2377 (cgraph_varpool_node): Hash on the pointer to the decl, not
2378 the DECL_UID. Fixes 64-bit bootstrap failure.
2379
2380 2004-05-20 Richard Earnshaw <rearnsha@arm.com>
2381
2382 * arm.md (ite_ne_zeroextractsi, ite_ne_zeroextractsi_shifted): Ensure
2383 we don't earlyclobber operands used in the second insn.
2384
2385 2004-05-20 Steven Bosscher <stevenb@suse.de>
2386
2387 * tree-mudflap.c: Formatting fixes.
2388
2389 2004-05-20 J"orn Rennecke <joern.rennecke@superh.com>
2390
2391 * Makefile.in (GTFILES): Add $(srcdir)/reload.h.
2392 * gengtype.c (open_base_files): Include reload.h in ifiles.
2393 * reload.h (reg_equiv_memory_loc_varray): Declare.
2394 * reload1.c (reg_equiv_memory_loc_varray): New variable.
2395 (init_reload): Initialize it.
2396 (reload): Instead of freeing reg_equiv_memory_loc, 'grow'
2397 reg_equiv_memory_loc_varray to size 0.
2398 * ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
2399 growing reg_equiv_memory_loc_varray to the desired size.
2400 * passes.c (rest_of_handle_old_regalloc): Likewise.
2401 * reload.c: Amend comment on calling init_reload.
2402
2403 2004-05-20 Nick Clifton <nickc@redhat.com>
2404
2405 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp'
2406 with 'TRAMP' in the body of the macro definition.
2407
2408 2004-05-19 H.J. Lu <hongjiu.lu@intel.com>
2409
2410 PR target/15383
2411 * config/ia64/ia64.c (ia64_expand_compare): Don't check
2412 TARGET_HPUX for TFmode compare. Abort if op0 is in TFmode and
2413 cmptf_libfunc isn't set.
2414 (ia64_init_libfuncs): Rename TFmode libfuncs using the HPUX
2415 conventions.
2416 (ia64_sysv4_init_libfuncs): New.
2417
2418 * config/ia64/sysv4.h (TARGET_INIT_LIBFUNCS): New. Defined as
2419 ia64_sysv4_init_libfuncs.
2420
2421 2004-05-20 Falk Hueffner <falk@debian.org>
2422
2423 PR other/15526
2424 * libgcc2.c (__mulvsi3): Fix overflow test.
2425
2426 2004-05-19 Andrew Pinski <pinskia@physics.uc.edu>
2427
2428 PR c/14171
2429 * reg-stack.c (nan): Rename to ...
2430 (not_a_num): Here.
2431 (reg_to_stack): Rename nan to not_a_num.
2432 (subst_stack_regs_pat): Likewise.
2433 (convert_regs_entry): Likewise.
2434 (convert_regs_1): Likewise.
2435
2436 * tree-cfg.c (find_case_label_for_value): Replace call to
2437 simple_cst_equal with tree_int_cst_equal.
2438
2439 2004-05-19 Jeff Law <law@redhat.com>
2440
2441 * tree-into-ssa.c (prepare_operand_for_rename): New argument is_use.
2442 If the operand is for a use, then strip away the SSA_NAME, do not
2443 strip away the SSA_NAME for a set. Never call release_ssa_name.
2444 (mark_def_sites): Appropriately pass additional argument to
2445 prepare_operand_for_rename. If a VDEF_RESULT is not an SSA_NAME,
2446 then set the VDEF_RESULT to the VDEF_OP.
2447 (set_def_block): Strip away any SSA_NAME to get to the real
2448 underlying variable.
2449
2450 * tree-ssa-phiopt.c (value_replacement): Handle the case where
2451 the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than
2452 BB directly.
2453
2454 2004-05-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2455
2456 PR c++/15463
2457 * loop-iv.c (iv_number_of_iterations): Use trunc_int_for_mode on
2458 result of inverse.
2459
2460 PR rtl-optimization/15274
2461 * loop-iv.c (determine_max_iter, shorten_into_mode,
2462 iv_number_of_iterations): Handle constants correctly.
2463 * rtl.h (get_mode_bounds): Declaration changed.
2464 * stor-layout.c (get_mode_bounds): Return a constant suitable for
2465 the target mode.
2466
2467 PR rtl-optimization/14692
2468 * loop-unswitch.c (may_unswitch_on): Try folding the result.
2469 (unswitch_single_loop): Work correctly when may_unswitch_on
2470 returns a folded constant.
2471
2472 * loop-iv.c (implies_p): Handle A < B ==> A + 1 <= B.
2473 * simplify-rtx.c (simplify_const_relational_operation): Optimize
2474 comparisons with mode bounds.
2475
2476 * function.c (struct temp_slot): Add new field prev.
2477 (free_after_compilation, init_temp_slots): Free new fields.
2478 (cut_slot_from_list, insert_slot_to_list,
2479 temp_slots_at_level, max_slot_level, move_slot_to_level,
2480 make_slot_available): New functions.
2481 (assign_stack_temp_for_type, combine_temp_slots,
2482 find_temp_slot_from_address, preserve_temp_slots,
2483 preserve_rtl_expr_result, free_temp_slots,
2484 free_temps_for_rtl_expr, pop_temp_slots): Work with
2485 the new structure of lists.
2486 (mark_all_temps_used): Removed.
2487 * function.h (struct function): Field x_temp_slots
2488 replaced by x_used_temp_slots and x_avail_temp_slots.
2489 (temp_slots): Replaced by ...
2490 (used_temp_slots, avail_temp_slots): New.
2491 * tree.h (mark_all_temps_used): Declaration removed.
2492
2493 * loop-iv.c (mark_single_set, get_biv_step_1, iv_analyze,
2494 simplify_using_assignment): Take the expression out of
2495 the expr_list wrapper.
2496
2497 * loop-iv.c (iv_number_of_iterations): Improve clasification of
2498 infinite loops.
2499
2500 2004-05-19 Roger Sayle <roger@eyesopen.com>
2501
2502 * doc/tm.texi (TARGET_RTX_COSTS): Document that instruction
2503 costs should be based on code size when optimizing for size.
2504
2505 2004-05-19 Paolo Bonzini <bonzini@gnu.org>
2506
2507 * fold-const.c: Remove non-printable character 160.
2508
2509 2004-05-19 Nick Clifton <nickc@redhat.com>
2510
2511 * doc/invoke.texi (ARM Options): Fix typo.
2512 Remove descrption of -mshort-load-bytes and
2513 -mno-short-load-bytes.
2514
2515 * config/ip2k/ip2k.c (ip2k_composite_xexp_not_uses_reg_p): Add
2516 missing parenthesis.
2517 * config/ip2k/ip2k.c (ip2k_unary_operator): Likewise.
2518 * config/ip2k/ip2k.c (ip2k_binary_operator): Likewise.
2519
2520 2004-05-19 Steven Bosscher <stevenb@suse.de>
2521
2522 * expr.c (store_constructor): Build loop start and end by hand
2523 instead of via loop functions from stmt.c.
2524 (expand_expr_real_1): Abort if we see an EXIT_EXPR or a LOOP_EXPR.
2525 Remove the code to expand them.
2526
2527 * stmt.c (loop_stack): Remove this and everything related.
2528 (struct nesting, enum nesting_desc): Update.
2529 (expand_fixup): Likewise.
2530 (expand_loop_start, expand_start_loop_continue_elsewhere,
2531 expand_start_null_loop, expand_loop_continue_here, expand_end_loop,
2532 expand_end_null_loop, expand_continue_loop, expand_exit_loop,
2533 expand_exit_loop_if_false, expand_exit_loop_top_cond,
2534 expand_exit_something): Remove.
2535 * tree.h: Remove prototypes.
2536
2537 2004-05-18 Mike Stump <mrs@apple.com>
2538 Devang Patel <dpatel@apple.com>
2539
2540 * doc/tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate
2541 if this label is for eh.
2542 * config/darwin-protos.h (darwin_emit_unwind_label): Likewise.
2543 * config/darwin.c (darwin_emit_unwind_label): Likewise.
2544 * dwarf2out.c (output_call_frame_info): Likewise.
2545 * output.h (default_emit_unwind_label): Likewise.
2546 * target.h (unwind_label): Likewise.
2547 * varasm.c (default_emit_unwind_label): Likewise.
2548
2549 * config/darwin.h (DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
2550 DEBUG_FRAME_SECTION, DEBUG_INFO_SECTION, DEBUG_ABBREV_SECTION,
2551 DEBUG_ARANGES_SECTION, DEBUG_MACINFO_SECTION, DEBUG_LINE_SECTION,
2552 DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_STR_SECTION,
2553 DEBUG_RANGES_SECTION): Define.
2554
2555 2004-05-18 Zack Weinberg <zack@codesourcery.com>
2556
2557 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
2558 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
2559 (cgraph_varpool_node):
2560 Use DECL_UID for the key, not DECL_ASSEMBLER_NAME.
2561 (cgraph_function_possibly_inlined_p): Use the decl itself for
2562 the key, not DECL_ASSEMBLER_NAME.
2563 (change_decl_assembler_name): No need to muck with the hash tables.
2564 (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier):
2565 Delete.
2566 * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself
2567 for the key, not DECL_ASSEMBLER_NAME.
2568 * cgraph.h: Remove prototypes of deleted functions.
2569 * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED.
2570 (mark_decl_referenced): New function.
2571 * tree.h: Prototype mark_decl_referenced.
2572 * final.c (output_addr_const) <case SYMBOL_REF>: Call
2573 mark_decl_referenced before assemble_name.
2574 * c-decl.c (finish_decl): Use mark_decl_referenced.
2575
2576 2004-05-18 Andrew Pinski <pinskia@physics.uc.edu>
2577 Jeff Law <law@redhat.com>
2578
2579 * tree-ssa-phiopt.c (abs_replacement): New function.
2580 (empty_block_p): New function extracted from...
2581 (candidate_bb_for_phi_optimization): Break out empty block test.
2582 (conditional_replacement): Use empty_block_p.
2583 (value_replacement): Similarly.
2584
2585 * Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.
2586 * tree-ssa-phiopt.c: Include flags.h.
2587 (conditional_replacement): Remove argument names from prototype.
2588 Minor formatting and comment fixes.
2589 (tree_ssa_phiopt): If conditional_replacement returns false, then
2590 call value_replacement.
2591 (value_replacement): New function.
2592
2593 2004-05-18 Jeff Law <law@redhat.com>
2594
2595 * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted
2596 from conditional_replacement.
2597 (candidate_bb_for_phi_optimization): Similarly.
2598 (conditional_replacement): Use replace_phi_with_stmt and
2599 candidate_bb_for_phi_optimization.
2600
2601 * tree-ssa-phiopt.c: Fix various formatting issues.
2602
2603 2004-05-18 Steven Bosscher <stevenb@suse.de>
2604
2605 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
2606 s390_expand_cmpmem): Do not use expand_start_loop and
2607 expand_end_loop, instead build the loop manually.
2608
2609 2004-05-18 Alan Modra <amodra@bigpond.net.au>
2610
2611 * config/rs6000/rs6000.md (ctrsi_internal3): Delete.
2612 (ctrsi_internal4, ctrdi_internal3, ctrdi_internal4): Delete.
2613
2614 2004-05-17 Jeff Law <law@redhat.com>
2615
2616 * toplev.h (flag_delete_null_pointer_checks): Move from here to...
2617 * flags.h (flag_delete_null_pointer_checks): Here.
2618 * tree-flow.h (cprop_into_successor_phis): Add argument to prototype.
2619 * tree-phinodes.c (resize_phi_node): Initialize PHI_ARG_NONZERO.
2620 (add_phi_arg, remove_phi_arg_num): Similarly.
2621 * tree-ssa-copy.c (cprop_into_successor_phis): Propagate nonzero
2622 property into PHI nodes.
2623 * tree-ssa-dom.c: Remove redundant inclusion of flags.h.
2624 (record_equivalences_from_phis): If all PHI arguments are known to be
2625 nonzero, then the result must be nonzero as well.
2626 (cprop_into_phis): Pass nonzero_vars bitmap to cprop_into_successor_phis.
2627 (record_equivalences_from_stmt): Check flag_delete_null_pointer_checks
2628 appropriately. Walk the USE-DEF chains and propagate nonzero property
2629 as appropriate.
2630 * tree.h (PHI_ARG_NONZERO): Define.
2631 (phi_arg_d): Add nonzero flag.
2632
2633 2004-05-17 Zack Weinberg <zack@codesourcery.com>
2634
2635 * f: Entire directory removed
2636
2637 * c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE)
2638 (CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE)
2639 (g77_integer_type_node, g77_uinteger_type_node)
2640 (g77_longint_type_node, or g77_ulongint_type_node): Delete.
2641 * c-common.c (c_common_nodes_and_builtins): Do not initialize
2642 the above set of variables.
2643
2644 * config/i386/uwin.h: No need to define WIN32_UWIN_TARGET.
2645 * doc/invoke.texi, doc/standards.texi: Remove cross-references
2646 to g77 manual.
2647
2648 2004-05-17 Steven Bosscher <stevenb@suse.de>
2649
2650 PR tree-optimization/15438
2651 * tree-ssa-operands.c (get_expr_operands): Do not treat malloc
2652 attributed functions as pure or const.
2653
2654 2004-05-17 Frank Ch. Eigler <fche@redhat.com>
2655
2656 * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
2657 from source code with errors.
2658
2659 2004-05-17 Ranjit Mathew <rmathew@hotmail.com>
2660
2661 Enable tree browser for all front ends.
2662 * Makefile.in (cc1): Moved @TREEBROWSER@ from here...
2663 (BACKEND): ...to here.
2664
2665 2004-05-17 Jan Hubicka <jh@suse.cz>
2666
2667 * i386.c (construct_container): Do not produce BLKmode registers.
2668 (classify_argument): Properly compute alignment of complex types.
2669
2670 2004-05-17 H.J. Lu <hongjiu.lu@intel.com>
2671
2672 PR target/15084
2673 * config/i386/i386.md (*movsi_insv_1_rex64): Changed to DImode
2674 and renamed to movdi_insv_1_rex64.
2675 (insv): Support SImode for 32bit and DImode for 64bit.
2676
2677 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
2678
2679 * config/mips/mips.h (MASK_DEBUG_G, TARGET_DEBUG_G_MODE): Delete.
2680 (TARGET_SWITCHES): Remove debugg.
2681 * config/mips/mips.md (adddi3, ashldi3, ashrdi3, lshrdi3): Only handle
2682 TARGET_64BIT.
2683 (subdi3): Replace the define_expand with a define_insn, the latter
2684 renamed from subdi3_internal_3.
2685 (negdi2): Likewise negdi2_internal_2.
2686 (adddi3_internal_[12], subdi3_internal, ashldi3_internal{,2,3})
2687 (ashrdi3_internal{,2,3}, lshrdi3_internal{,2,3}): Remove patterns
2688 and associated define_splits.
2689 (adddi3_internal): Renamed from adddi3_internal_3.
2690 (ashldi3_internal): Likewise ashldi3_internal4.
2691 (ashrdi3_internal): Likewise ashrdi3_internal4.
2692 (lshrdi3_internal): Likewise lshrdi3_internal4.
2693
2694 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
2695
2696 * optabs.c (expand_unop): Try implementing negation using subtraction
2697 from zero.
2698
2699 2004-05-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2700
2701 * pa.md: Fix typo from last change. Remove DFmode move to and from
2702 SAR register.
2703
2704 2004-05-16 Richard Earnshaw <rearnsha@arm.com>
2705
2706 PR target/10982
2707 * arm.md (ne_zeroextractsi): Convert to insn-and-split.
2708 (ne_zeroextractsi_shifted): New pattern.
2709 (ite_ne_zeroextractsi): New pattern.
2710 (ite_ne_zeroextractsi_shifted): New pattern.
2711
2712 2004-05-15 Steven Bosscher <stevenb@suse.de>
2713
2714 * c-gimplify.c (c_genericize):
2715 Replace calls via (*lang_hooks.foo) with lang_hooks.foo.
2716 * c-parse.in <expr_no_commas>: Likewise.
2717 <if_prefix>: Likewise.
2718 <select_or_iter_stmt>: Likewise.
2719 * expr.c (expand_var, expand_expr_real_1): Likewise.
2720 * expr.h (expand_expr): Make it a static inline function.
2721 Move prototype for expand_expr_real up before this.
2722 * fold-const.c (fold_relational_hi_lo, fold_relational_const):
2723 Likewise.
2724 * gimplify.c (gimple_boolify, gimplify_addr_expr,
2725 gimplify_asm_expr, gimplify_expr): Likewise.
2726 * tree-cfg.c (dump_tree_cfg, dump_cfg_stats, tree_cfg2vcg,
2727 dump_function_to_file): Likewise.
2728 * tree-dfa.c (dump_immediate_uses, dump_dfa_stats): Likewise.
2729 * tree-inline.c (remap_block, save_body, walk_tree): Likewise.
2730 * tree-into-ssa.c (dump_tree_ssa): Likewise.
2731 * tree-mudflap.c (mf_varname_tree, mf_file_function_line_tree):
2732 Likewise.
2733 * tree-optimize.c (execute_one_pass): Likewise.
2734 * tree-pretty-print.c (dump_generic_bb_buff): Likewise.
2735 * tree-ssa-alias.c (dump_alias_stats, dump_alias_info): Likewise.
2736
2737 * objc/objc-act.c (objc_build_try_enter_fragment,
2738 objc_build_try_epilogue, objc_build_catch_stmt,
2739 objc_build_finally_prologue): Replace calls via (*lang_hooks.foo)
2740 with lang_hooks.foo ().
2741
2742 2004-05-15 Roger Sayle <roger@eyesopen.com>
2743
2744 * builtins.c (simplify_builtin_strcpy): Avoid use of chainon, so
2745 that simplify_builtin doesn't destructively modify its argument.
2746
2747 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
2748
2749 * arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASM
2750 implementations for ARM and Thumb.
2751 * arm/t-arm-elf (LIB1ASMFUNCS): Use them.
2752
2753 2004-05-15 Thomas Quinot <quinot@act-europe.fr>
2754
2755 * prefix.c (update_path): Replace PREFIX with KEY only
2756 when it matches a full directory name in PATH.
2757
2758 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
2759
2760 * arm.h (TARGET_APCS_32): Delete.
2761 (TARGET_MMU_TRAPS): Delete.
2762 (TARGET_CPU_CPP_BUILTINS): Unconditionally define __APCS_32__. Never
2763 define __APCS_26__.
2764 (CPP_SPEC): Remove checking of -mapcs-{26,32}.
2765 (ARM_FLAG_APCS_32, ARM_FLAG_MMU_TRAPS): Delete.
2766 (TARGET_SWITCHES): Remove alignment_traps and apcs-{26,32} switches.
2767 (prog_mode_type): Delete.
2768 (PROMOTE_MODE): Always promote unsigned for HImode.
2769 (SECONDARY_INPUT_RELOAD_CLASS): Simplify.
2770 (MASK_RETURN_ADDR): Simplify.
2771 * arm.c (arm_prgmode): Delete.
2772 (arm_override_options, arm_gen_rotated_half_load): Simplify.
2773 (print_multi_reg, output_return_instruction): Simplify.
2774 (arm_output_epilogue, arm_final_prescan_insn): Simplify.
2775 (arm_return_addr): Simplify.
2776 * arm.md (prog_mode): Delete.
2777 (conds): Simplify.
2778 (zero_extendhisi2, extendhisi2, movhi, movhi_bytes): Simplify.
2779 (rotated_loadsi, movhi_insn_littleend, movhi_insn_bigend): Delete.
2780 (loadhi_si_bigend, loadhi_preinc, loadhi_shiftpreinc): Delete.
2781 (loadhi_shiftpredec): Delete.
2782 (peephole for post-increment on HImode load): Delete.
2783 * arm/crtn.asm: (FUNC_END): Simplify.
2784 * arm/lib1funcs.asm: Remove APCS-26 return macros.
2785 * arm/aof.h, arm/coff.h arm/elf.h arm/linux-elf.h arm/netbsd-elf.h
2786 * arm/netbsd.h arm/pe.h arm/semi.h arm/semiaof.h arm/unknown-elf.h
2787 * arm/vxworks.h arm/wince-pe.h: Tidy TARGET_DEFAULTS and
2788 MULTILIB_DEFAULTS as required.
2789 * arm/t-arm-elf arm/t-linux arm/t-pe arm/t-semi arm/t-wince-pe
2790 * arm/t-xscale-coff arm/t-xscale-elf arm/uclinux-elf: Tidy MULTILIB
2791 variables as required.
2792 * doc/invoke.texi (ARM Options): Remove obsolete flags.
2793
2794 2004-05-15 Alan Modra <amodra@bigpond.net.au>
2795
2796 * config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't use
2797 UNITS_PER_WORD to calculate gpr size. Re-instate code to set reg
2798 count to 8 to handle n_reg > 2.
2799
2800 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
2801
2802 * doc/extend.texi: Update WG14 URL.
2803
2804 2004-05-15 Steven Bosscher <stevenb@suse.de>
2805
2806 * basic-block.h (life_analysis, delete_noop_moves):
2807 Update prototypes.
2808 * bt-load.c (branch_target_load_optimize): Don't take the
2809 insns stream as an argument. Update the life_analysis calls.
2810 * combine.c (combine_instructions): Update delete_noop_moves
2811 calls.
2812 * flow.c (notice_stack_pointer_modification): Don't take the
2813 insns stream as an argument. Work on the flow graph.
2814 (life_analysis): Likewise.
2815 (delete_noop_moves): Likewise.
2816 * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call.
2817 (rest_of_handle_life): Update life_analysis call.
2818 (rest_of_compilation): Likewise, and also update
2819 branch_target_load_optimize call.
2820 * ra.c (reg_alloc): Update life_analysis call.
2821 * reg-stack.c (reg_to_stack): Likewise. Also, don't take
2822 the insns stream as an argument.
2823 * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves
2824 call.
2825 * rtl.c (branch_target_load_optimize, reg_to_stack): Update
2826 prototypes.
2827 * value-profile.c (branch_prob): Update life_analysis call.
2828 * web.c (web_main): Work on the CFG, not on the insns stream.
2829
2830 * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls.
2831 * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise.
2832 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2833
2834 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
2835
2836 PR c/15444
2837 * c-format.c (avoid_dollar_number): New function.
2838 (check_format_info_main): Call avoid_dollar_number when operand
2839 numbers might occur but has_operand_number == 0.
2840
2841 2004-05-14 Richard Earnshaw <rearnsha@arm.com>
2842
2843 * arm.md (all peephole2 patterns): Use predicates that validate
2844 register classes as appropriate.
2845
2846 2004-05-14 Steven Bosscher <stevenb@suse.de>
2847
2848 PR opt/14472
2849 * tree-tailcall.c (process_assignment): Use STRIP_NOPS to
2850 ignore type conversions that do not inhibit tail calling.
2851 (find_tail_calls): Likewise.
2852
2853 2004-05-14 Jeff Law <law@redhat.com>
2854
2855 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even
2856 bother marking bypassed virtuals for out-of-ssa. Instead merge
2857 bypassed virtuals into vars_to_rename just before into-ssa pass.
2858
2859 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize
2860 so that it picks up more opportunities to eliminate ABS expressions
2861 or turn them into negations.
2862
2863 2004-05-14 Steven Bosscher <stevenb@suse.de>
2864
2865 * passes.c (rest_of_handle_null_pointer): Remove.
2866 (rest_of_handle_cse): Don't call rest_of_handle_null_pointer.
2867 (rest_of_compilation): Likewise.
2868 * rtl.h (delete_null_pointer_checks): Remove prototype.
2869 * gcse.c (rd_kill, rd_gen, reaching_defs, rd_out, ae_in, ae_out):
2870 Remove declarations.
2871 (get_bitmap_width, alloc_rd_mem, free_rd_mem, handle_rd_kill_set,
2872 compute_kill_rd, compute_rd, alloc_avail_expr_mem,
2873 free_avail_expr_mem, compute_ae_gen, expr_killed_p, compute_ae_kill,
2874 expr_reaches_here_p, computing_insn, def_reaches_here_p,
2875 can_disregard_other_sets, handle_avail_expr, classic_gcse,
2876 one_classic_gcse_pass, invalidate_nonnull_info,
2877 delete_null_pointer_checks_1, delete_null_pointer_checks,
2878 expr_reached_here_p_work): Remove.
2879 (gcse_main): Do not perform classic GCSE when optimizing for size.
2880 (alloc_pre_mem, free_pre_mem): Don't touch ae_in and ae_out, they
2881 are never used.
2882
2883 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu>
2884
2885 PR optimization/14466
2886 * tree-complex.c (make_temp): Remove.
2887 (gimplify_val): Replace make_temp with make_rename_temp
2888 and add NULL as the second argument.
2889 (expand_complex_div_wide): Likewise.
2890 * tree-dfa.c (make_rename_temp): New function.
2891 * tree-flow.h (make_rename_temp): Declare.
2892 * tree-sra.c (make_temp): Remove.
2893 (lookup_scalar): Replace make_temp with make_rename_temp.
2894 (create_scalar_copies): Likewise.
2895 * tree-ssa-phiopt.c (conditional_replacement): When we
2896 get non gimple create a temporary variable to hold the
2897 casted expression.
2898
2899 2004-05-14 Paul Brook <paul@codesourcery.com>
2900
2901 * stor-layout.c (update_alignment_for_field): Use
2902 targetm.align_anon_bitfield.
2903 * target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define.
2904 (TARGET_INITIALIZER): Use it.
2905 * target.h (struct gcc_target): Add align_anon_bitfield.
2906 * config/arm/arm.c (arm_align_anon_bitfield): New function.
2907 (TARGET_ALIGN_ANON_BITFIELD): Define.
2908 * doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD.
2909
2910 2004-05-13 Zack Weinberg <zack@codesourcery.com>
2911
2912 * tree.def (documentation): Remove mention of class 'b'.
2913 (BLOCK): Now in class 'x'.
2914 * c-common.c (verify_tree): Remove case 'b'.
2915 * c-typeck.c (same_translation_unit_p): Change 'b' to 'x'.
2916 * calls.c (calls_function_1): Control cannot get past the switch
2917 when exp is a BLOCK.
2918 * print-tree.c (print_node): Move code for class 'b' to the class
2919 'c'/'x' switch, as case BLOCK.
2920 * tree.c (tree_size, make_node_stat, tree_node_structure): Likewise.
2921 (unsafe_for_reeval, substitute_placeholder_in_expr)
2922 (stabilize_reference_1): Remove case 'b'.
2923 * tree-browser.c (browse_tree): Change all tests for TREE_CODE_CLASS
2924 of something being 'b' to tests for TREE_CODE of something being
2925 BLOCK.
2926 * tree-ssa-operands.c (get_expr_operands): Likewise.
2927
2928 2004-05-13 Diego Novillo <dnovillo@redhat.com>
2929
2930 * tree-gimple.c: Rename from tree-simple.c.
2931 * tree-gimple.h: Rename from tree-simple.h.
2932 * c-gimplify.c: Rename from c-simplify.c
2933 * Makefile.in, c-decl.c, gimple-low.c, gimplify.c,
2934 langhooks.c, tree-alias-ander.c, tree-alias-common.c,
2935 tree-complex.c, tree-dfa.c, tree-flow.h, tree-inline.c,
2936 tree-into-ssa.c, tree-iterator.c, tree-mudflap.c,
2937 tree-nested.c, tree-nomudflap.c, tree-outof-ssa.c, tree-sra.c,
2938 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-copyrename.c,
2939 tree-ssa-dce.c, tree-ssa-live.c, tree-ssa-pre.c, tree-ssa.c:
2940 Update.
2941
2942 2004-05-14 Ranjit Mathew <rmathew@hotmail.com>
2943
2944 * doc/sourcebuild.texi: Mention libbanshee and libmudflap.
2945
2946 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2947
2948 * tree-ssa.c (delete_tree_ssa): XFREE
2949 bitmaps allocated with BITMAP_XMALLOC.
2950
2951 * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and
2952 idfs_cache at the end of the function.
2953
2954 * tree-ssa-live.c (calculate_live_on_entry): Free saw_def
2955 at the end of the function.
2956
2957 * tree-ssa-dce.c (perform_tree_ssa_dce): Free
2958 el at the end of the function.
2959
2960 * tree-into-ssa.c (insert_phi_nodes_for): XFREE
2961 bitmaps allocated with BITMAP_XMALLOC.
2962
2963 * loop-unswitch.c (unswitch_single_loop): Free bbs at
2964 the end.
2965
2966 * final.c (shorten_branches): Free uid_shuid before
2967 reallocating it.
2968
2969 * bb-reoder.c (connect_traces): Free cold_traces at the end.
2970
2971 2004-05-13 Jeff Law <law@redhat.com>
2972
2973 * tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
2974 variables. Simplify slightly by using USE_OP/DEF_OP instead
2975 of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.
2976
2977 * tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP
2978 rather than iterating through the blocks testing each bit in
2979 livein to initialize the worklist.
2980 (mark_def_sites): Remove useless checks of KILLS for virtual
2981 operands.
2982
2983 * tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept
2984 new parameters for the statement and variable worklist as well
2985 as a bitmap of interesting SSA_NAMEs. Walk over the statement
2986 worklist recording interesting variables in the variable worklist
2987 and bitmap. Handle casts between integral and boolean types.
2988 (substitute_single_use_vars): Accept new parameters for the statement
2989 and variable worklist. When a substitution is made add a new
2990 entry to the statement worklist. Handle casts between integral
2991 and boolean types.
2992 (tree_ssa_forward_propagate_single_use_vars): Rework to pass
2993 worklists to children. Iterate until the statement worklist
2994 is empty.
2995
2996 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
2997
2998 * tree-outof-ssa.c (rewrite_vars_out_of_ssa): Free map at
2999 the end of the block.
3000
3001 * tree-into-ssa.c (def_blocks_free): XFREE bitmaps allocated
3002 with BITMAP_XMALLOC.
3003
3004 * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
3005 with BITMAP_XMALLOC.
3006
3007 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
3008 Free nonzero_vars at the end of the function.
3009
3010 * convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
3011 need to generate code instead of a NOP_EXPR.
3012
3013 2004-05-13 Ian Lance Taylor <ian@wasabisystems.com>
3014
3015 * gcc.c (default_compilers): Fill out initializers for new Fortran
3016 entries.
3017
3018 2004-05-13 Paul Brook <paul@codesourcery.com>
3019
3020 * config/arm/arm.h (PCC_BITFIELD_TYPE_MATTERS): Define.
3021
3022 2004-05-13 Paul Brook <paul@codesourcery.com>
3023
3024 * config/arm/arm.c (arm_default_short_enums): New function.
3025 (TARGET_DEFAULT_SHORT_ENUMS): Define.
3026
3027 2004-05-13 Diego Novillo <dnovillo@redhat.com>
3028
3029 Merge from tree-ssa-20020619-branch.
3030
3031 * Makefile.in (reload1.o-warn): Add.
3032 (tree-alias-ander.o-warn): Add.
3033 (GMPLIBS): Define.
3034 (GMPINC): Define.
3035 (BANSHEELIB): Define.
3036 (BANSHEEINC): Define.
3037 (TREE_DUMP_H): Define.
3038 (TREE_SIMPLE_H): Define.
3039 (TREE_FLOW_H): Define.
3040 (LIBDEPS): Add BANSHEELIB.
3041 (INCLUDES): Add BANSHEEINC and GMPINC.
3042 (C_AND_OBJC_OBJS): Add c-simplify.o, tree-mudflap.o,
3043 c-mudflap.o and c-pretty-print.o.
3044 (C_OBJS): Remove c-pretty-print.o.
3045 (OBJS-common): Remove sibcall.o.
3046 Add tree-cfg.o, tree-dfa.o, tree-eh.o,
3047 tree-ssa.o, tree-optimize.o, tree-simple.o,
3048 tree-alias-type.o, gimplify.o, tree-pretty-print.o,
3049 tree-into-ssa.o, tree-outof-ssa.o, tree-alias-common.o,
3050 tree-ssa-ccp.o, @ANDER@, tree-ssa-dce.o, tree-ssa-copy.o,
3051 tree-nrv.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
3052 tree-ssa-live.o, tree-ssa-operands.o, tree-ssa-alias.o,
3053 tree-ssa-phiopt.o, tree-ssa-forwprop.o, tree-nested.o,
3054 tree-ssa-dse.o, tree-ssa-dom.o, domwalk.o,
3055 tree-tailcall.o, gimple-low.o, tree-iterator.o,
3056 tree-phinodes.o, tree-ssanames.o, tree-sra.o,
3057 tree-complex.o, tree-ssa-loop.o, rtl-profile.o and
3058 tree-profile.o.
3059 (OBJC-archive): Add tree-nomudflap.o.
3060 (cc1): Add dependency on @TREEBROWSER@.
3061 (c-decl.o): Add dependency on TREE_DUMP_H.
3062 (c-dump.o): Likewise.
3063 (c-common.o): Add dependency on tree-iterator.h
3064 (c-pretty-print.o): Add dependency on DIAGNOSTIC_H.
3065 (gtype-desc.o): Add dependency on TREE_FLOW_H.
3066 (tree.o): Add dependency on tree-iterator.h,
3067 BASIC_BLOCK_H and TREE_FLOW_H.
3068 (tree-dump.o): Depend on TREE_DUMP_H instead of tree-dump.h.
3069 (langhooks.o): Add dependency on TREE_SIMPLE_H.
3070 (tree-alias-type.o, tree-alias-ander.o,
3071 tree-alias-common.o, tree-ssa.o, tree-into-ssa.o,
3072 tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o,
3073 tree-ssa-phiopt.o, tree-nrv.o, tree-ssa-copy.o,
3074 tree-ssa-dom.o, tree-ssanames.o, tree-phinodes.o,
3075 domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o,
3076 tree-ssa-pre.o, tree-cfg.o, tree-tailcall.o,
3077 tree-nested.o, tree-iterator.o, tree-dfa.o,
3078 tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o,
3079 tree-ssa-alias.o, tree-optimize.o, c-simplify.o,
3080 gimplify.o, gimple-low.o, tree-browser.o, tree-simple.o,
3081 tree-mudflap.o, c-mudflap.o, tree-nomudflap.o,
3082 tree-pretty-print.o, tree-ssa-dce.o, tree-ssa-ccp.o,
3083 tree-sra.o, tree-complex.o, tree-profile.o,
3084 rtl-profile.o): New rules.
3085 (function.o): Add dependency on basic-block.h
3086 (expr.o): Add dependency on tree-iterator.h.
3087 (sibcall.o): Remove.
3088 (profile.o): Depend on TREE_FLOW_H instead of TREE_H.
3089 (cfg.o): Add dependency on TIMEVAR_H.
3090 (cfghooks.o): Add dependency on TREE_FLOW_H.
3091 (reg-stack.o): Add dependency on basic-block.h.
3092 (GTFILES): Add hwint.h, tree-mudflaph.c, tree-flow.h,
3093 c-objc-common.c, c-common.c, c-parse.in, tree-ssanames.c,
3094 tree-eh.c, tree-phinodes.c, tree-cfg.c, tree-dfa.c,
3095 tree-ssa-ccp.c, tree-iterator.c, gimplify.c,
3096 tree-alias-type.h, tree-alias-common.h,
3097 tree-alias-type.c, tree-alias-common.c,
3098 tree-ssa-operands.h, tree-ssa-operands.c, tree-profile.c,
3099 rtl-profile.c and tree-nested.c.
3100 (gt-tree-alias-common.h, gt-tree-mudflap.h,
3101 gt-tree-ssa-ccp.h, gt-tree-eh.h, gt-tree-ssanames.h,
3102 gt-tree-iterator.h, gt-gimplify.h, gt-tree-phinodes.h,
3103 gt-tree-cfg.h, gt-tree-nested.h): New rules.
3104 (TEXI_GCCINT_FILES): Add cfg.texi and tree-ssa.texi.
3105 * basic-block.h: Include predict.h
3106 (struct edge_def): Add GTY marker.
3107 Change field 'insns' to be a union of tree and rtx.
3108 (EDGE_TRUE_VALUE): Define.
3109 (EDGE_FALSE_VALUE): Define.
3110 (EDGE_EXECUTABLE): Define.
3111 (struct bb_ann_d): Forward declare.
3112 (struct basic_block_def): Add GTY marker.
3113 Remove fields head_tree and end_tree.
3114 Add fields stmt_list, rbi and tree_annotations.
3115 (struct reorder_block_def): Define.
3116 (basic_block_info): Add GTY marker.
3117 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Change to global
3118 variables instead of macros.
3119 (flow_call_edges_add): Remove declaration.
3120 (make_eh_edge): Remove declaration.
3121 (brief_dump_cfg, find_edge, tree_predicted_by_p,
3122 rtl_predicted_by_p, tree_predict_edge, rtl_predict_edge,
3123 predict_edge_def, rtl_make_eh_edge, find_basic_blocks,
3124 cleanup_cfg, delete_unreachable_blocks, merge_seq_blocks,
3125 alloc_rbi_pool, initialize_bb_rbi, free_rbi_pool): Declare.
3126 (try_redirect_by_replacing_jump): Modfiy return type to
3127 edge instead of bool.
3128 * bb-reorder.c (copy_bb): Call duplicate_block
3129 instead of cfg_layout_duplicate_bb.
3130 (copy_bb_p): Call can_duplicate_block_p instead of
3131 cfg_layout_can_duplicate_bb_p.
3132 * bitmap.c (bitmap_first_set_bit): Abort if word
3133 wasn't found.
3134 (bitmap_last_set_bit): Likewise.
3135 * builtin-types.def (DEF_FUNCTION_TYPE_2): Add
3136 (DEF_FUNCTION_TYPE_3): Add.
3137 * builtins.c (c_strlen): Make extern.
3138 (builtin_save_expr): New.
3139 (expand_builtin_nonlocal_goto): New.
3140 (expand_builtin_constant_p): Remove.
3141 (expand_builtin_mathfn): Call builtin_save_expr instead
3142 of save_expr.
3143 (expand_builtin_mathfn_2): Likewise.
3144 (expand_builtin_strcmp): Likewise.
3145 (expand_builtin_strncmp): Likewise.
3146 (expand_builtin_strcat): Likewise.
3147 (fold_builtin_cabs): Likewise.
3148 (expand_builtin_alloca): Don't trigger if -fmudflap is
3149 given.
3150 (build_string_literal): Set TREE_INVARIANT on new node.
3151 (expand_builtin_profile_fun): New.
3152 (round_trampoline_addr): New.
3153 (expand_builtin_init_trampoline): New.
3154 (expand_builtin_adjust_trampoline): New.
3155 (expand_builtin) <BUILT_IN_NEXT_ARG>: Call simplify_builtin_next_arg.
3156 <BUILT_IN_CONSTANT_P>: Return const0_rtx;
3157 <BUILT_IN_STACK_ALLOC, BUILT_IN_STACK_SAVE,
3158 BUILT_IN_STACK_RESTORE, BUILT_IN_NONLOCAL_GOTO,
3159 BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT,
3160 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE>:
3161 Handle.
3162 (fold_builtin_expect): New.
3163 (fold_builtin_isascii): Don't return non-constant results
3164 in GIMPLE form.
3165 (fold_builtin_isdigit): Likewise.
3166 (fold_builtin_1): New.
3167 (fold_builtin): Call it.
3168 (build_function_call_expr): Update call to build a new
3169 CALL_EXPR.
3170 (purge_builtin_constant_p): Remove.
3171 (simplify_builtin, simplify_builtin_memcmp,
3172 simplify_builtin_strcmp, simplify_builtin_strncmp,
3173 simplify_builtin_strpbrk, simplify_builtin_strstr,
3174 simplify_builtin_strchr, simplify_builtin_strrchr,
3175 simplify_builtin_strcat, simplify_builtin_strncat,
3176 simplify_builtin_strspn, simplify_builtin_strcspn,
3177 simplify_builtin_next_arg, simplify_builtin_va_start,
3178 simplify_builtin_sprintf): New.
3179 * builtins.def (BUILT_IN_STACK_ALLOC,
3180 BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE,
3181 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE,
3182 BUILT_IN_NONLOCAL_GOTO, BUILT_IN_PROFILE_FUNC_ENTER,
3183 BUILT_IN_PROFILE_FUNC_EXIT): Define.
3184 * c-common.c: Include tree-iterator.h and hashtab.h.
3185 (lang_statement_code_p): Declare.
3186 (lang_gimplify_stmt): Declare.
3187 (fix_string_type): Set TREE_INVARIANT for value.
3188 (pointer_int_sum): Rely on build to set TREE_CONSTANT.
3189 (c_type_hash): New.
3190 (c_common_get_alias_set): Handle multiple type nodes
3191 referring to "the same" type, currently for C90 only.
3192 (c_add_case_label): Use create_artificial_label.
3193 (finish_label_address_expr): Don't set TREE_CONSTANT on
3194 result.
3195 (c_expand_expr): Don't handle STMT_EXPR.
3196 (handle_alias_attribute): Marke aliased variables to be
3197 TREE_STATIC.
3198 (handle_nonnull_attribute): Initialize arg_num.
3199 (check_function_nonnull): Likewise.
3200 (c_walk_subtrees): New.
3201 (c_estimate_num_insns_1): Don't handle
3202 EXPR_WITH_FILE_LOCATION nor FILE_STMT.
3203 (c_decl_uninit_1): Remove.
3204 (c_decl_uninit): Remove.
3205 (c_warn_unused_result): New.
3206 * c-common.def (ASM_STMT): Change number of operands
3207 to 4.
3208 (FILE_STMT): Remove.
3209 * c-common.h (lang_expand_stmt, lang_expand_decl_stmt):
3210 Remove.
3211 (lang_gimplify_stmt): Add.
3212 (expand_stmt): Remove.
3213 (ASM_CV_QUAL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
3214 ASM_CLOBBERS, STMT_EXPR_WARN_UNUSED_RESULT,
3215 ASM_VOLATILE_P, FILE_STMT_FILENAME_NODE,
3216 FILE_STMT_FILENAME, STMT_LINENO, STMT_LINENO_FOR_FN_P,
3217 ASM_INPUT_P, DECL_C_HARD_REGISTER): Remove.
3218 (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
3219 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
3220 genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt,
3221 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
3222 genrtl_scope_stmt, genrtl_switch_stmt, genrtl_case_label,
3223 genrtl_compound_stmt, genrtl_asm_stmt,
3224 genrtl_cleanup_stmt, c_decl_uninit): Remove.
3225 (c_do_switch_warnings, c_gimplify_expr, c_walk_subtrees,
3226 c_tree_chain_matters_p, c_warn_unused_result,
3227 c_genericize, c_gimplify_stmt, stmt_expr_last_stmt):
3228 Declare.
3229 * c-convert.c (convert): Make convert work when
3230 converting to compatible types across translation unit.
3231 * c-decl.c: Include langhooks.h, tree-mudflap.h,
3232 tree-simple.h, diagnostic.h and tree-dump.h
3233 (merge_decls): Initialize oldtype to NULL.
3234 (finish_decl): Use DECL_HARD_REGISTER instead of
3235 DECL_C_HARD_REGISTER.
3236 (check_bitfield_type_and_width): Check for null
3237 lang_type_specific when check the precision of an enum.
3238 (grokdeclarator): Immediately layout an ARRAY_TYPE used
3239 in a pointer-to-array declarator.
3240 (finish_struct): Clear allocated struct lang_type.
3241 (finish_enum): Set enum_min and enum_max. Set
3242 TYPE_MIN/MAX_VALUE to the limits of the compatible type,
3243 not to the enumerators.
3244 (set_decl_nonlocal): New.
3245 (store_parm_decls): Use it via walk_tree.
3246 (c_finalize): New.
3247 (finish_function): When !targetm.have_ctors_dtors,
3248 record static constructors and destructors here...
3249 (c_expand_body_1): ... not here.
3250 (c_expand_decl): Rename from c_expand_decl_stmt.
3251 Handle all C-specific expansion semantics.
3252 * c-dump.c (dump_stmt): Use EXPR_LOCUS instead of
3253 STMT_LINENO.
3254 * c-format.c (handle_format_arg_attribute): Initialize
3255 format_num.
3256 * c-lang.c: Include tree-inline.h
3257 (LANG_HOOKS_EXPAND_DECL,
3258 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
3259 LANG_HOOKS_TREE_INLINING_WALK_SUBTREES,
3260 LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P,
3261 LANG_HOOKS_GIMPLIFY_EXPR, LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
3262 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
3263 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Remove.
3264 (c_types_compatible_p): New.
3265 * c-mudflap.c: New file.
3266 * c-objc-common.c: Include tree-mudflap.h
3267 (start_cdtor, finish_cdtor): Collapse
3268 together into
3269 (build_cdtor): ...here. Update to construct a complete tree
3270 for the function. No need to call push_scope, pop_scope, or
3271 clear_last_expr, or set current_function_cannot_inline.
3272 (c_missing_noreturn_ok_p): Change prototype to return
3273 bool.
3274 (c_objc_common_init): Don't set lang_missing_noreturn_ok_p.
3275 * c-opts.c (c_common_handle_option): Move handling of -fdump- to
3276 opts.c.
3277 (c_common_post_options): Don't ever use rtl inlining.
3278 * c-parse.in: Use EXPR_LOCUS instead of STMT_LINENO.
3279 * c-pragma.c (handle_pragma_redefine_extname): Define
3280 always.
3281 (init_pragma): Activate #pragma redefine_extname for mudflap.
3282 * c-pretty-print.c (pp_c_statement): Remove FILE_STMT.
3283 (pp_c_initializer): Accept any type CONSTRUCTOR.
3284 (pp_c_initializer_list): Fix code expectations for VECTOR_TYPE and
3285 COMPLEX_TYPE.
3286 (decl_name_str): New local function.
3287 (pp_c_direct_declarator): Call it.
3288 (pp_c_primary_expression): Call it.
3289 (pp_c_id_expression): Call it.
3290 (pp_c_statement): Call it.
3291 (print_c_tree): Create new pp object.
3292 * c-pretty-print.h (pp_c_tree_decl_identifier,
3293 print_c_tree): Declare.
3294 * c-semantics.c: Include langhooks.h
3295 (lang_expand_stmt, lang_expand_decl_stmt,
3296 find_reachable_label_1, find_reachable_label,
3297 expand_unreachable_if_stmt, expand_unreachable_stmt,
3298 genrtl_do_stmt_1): Remove.
3299 (begin_stmt_tree): Don't check for changed filename.
3300 Call annotate_with_locus.
3301 (finish_stmt_tree): Don't set line for end of function.
3302 (build_stmt): Don't check type nodes for
3303 side effects.
3304 (build_stmt): Set TREE_SIDE_EFFECTS.
3305 Set EXPR_LOCUS instead of STMT_LINENO.
3306 (lang_expand_stmt, lang_expand_decl_stmt,
3307 expand_cond, genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
3308 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
3309 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_do_stmt,
3310 genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt,
3311 genrtl_continue_stmt, genrtl_scope_stmt, genrtl_switch_stmt,
3312 genrtl_case_label, genrtl_compound_stmt, genrtl_asm_stmt,
3313 genrtl_cleanup_stmt, expand_stmt, find_reachable_label,
3314 find_reachable_label_1, expand_unreachable_if_stmt,
3315 expand_unreachable_stmt): Remove.
3316 (prep_stmt): Use EXPR_LOCUS instead of STMT_LINENO.
3317 * c-simplify.c: New file.
3318 * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Define.
3319 (struct lang_type): Add fields enum_min and enum_max.
3320 (c_expand_decl_stmt, c_missing_noreturn_ok_p): Remove.
3321 (c_expand_decl, c_missing_noreturn_ok_p,
3322 c_types_compatible_p): Declare.
3323 * c-typeck.c (tagged_types_tu_compatible_p): Allow for
3324 compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
3325 (default_function_array_conversion): Rely on build to
3326 set TREE_CONSTANT.
3327 (parser_build_binary_op, pointer_diff): Likewise.
3328 (build_unary_op, build_binary_op): Likewise.
3329 (build_array_ref):
3330 (build_external_ref): Set TREE_INVARIANT.
3331 (build_c_cast, pop_init_level): Likewise.
3332 (process_init_element): Use ASM_VOLATILE_P.
3333 (build_asm_expr): Adapt to GENERIC/GIMPLE syntax.
3334 (c_finish_case): Call c_do_switch_warnings.
3335 * c.opt (fdump-): Remove.
3336 * calls.c (try_to_integrate): Remove.
3337 (prepare_call_address): Replace fndecl arg with a
3338 precomputed static chain value.
3339 (emit_call_1): New argument for full call expr.
3340 (flags_from_decl_or_type): Call special_function_p.
3341 (initialize_argument_information): Add argument
3342 may_tailcall.
3343 (purge_reg_equiv_notes): New.
3344 (expand_call): Do not try to expand calls inline.
3345 (fixup_tail_calls): New.
3346 * cfg.c: Include timevar.h and ggc.h.
3347 (bb_pool, edge_pool): Remove.
3348 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Declare.
3349 (entry_exit_blocks): Remove.
3350 (rbi_pool): Declare.
3351 (init_flow): Do not create pools.
3352 Allocate entry/exit block.
3353 (free_edge, alloc_block, expunge_block, unchecked_make_edge): Use GGC.
3354 (alloc_rbi_pool, free_rbi_pool, initialize_bb_rbi): New.
3355 (unlink_block): Clear b->prev_bb and b->next_bb.
3356 (compact_blocks): Clear all slots of BASIC_BLOCK array.
3357 (dump_flow_info): Work on trees too.
3358 (dump_cfg_bb_info): New.
3359 (brief_dump_cfg): New.
3360 * cfganal.c (need_fake_edge_p, flow_call_edges_add): Remove.
3361 (find_edge): New.
3362 * cfgbuild.c (rtl_make_eh_edge): Rename from
3363 make_eh_edge. Update all users.
3364 (find_basic_blocks): Don't call VARRAY_FREE on
3365 basic_block_info.
3366 * cfgcleanup.c (outgoing_edges_match): Initialize newpos1
3367 and newpos2.
3368 (delete_unreachable_blocks): Return changed status.
3369 (merge_seq_blocks): New.
3370 * cfghooks.c: Include tree-flow.h
3371 (tree_register_cfg_hooks, ir_type): New.
3372 (redirect_edge_and_branch): Change return type to edge.
3373 (predict_edge, predicted_by_p, can_duplicate_block_p,
3374 duplicate_block, block_ends_with_call_p,
3375 block_ends_with_condjump_p, flow_call_edges_add): New.
3376 * cfghooks.h (redirect_edge_and_branch): Change return
3377 type to edge.
3378 (predict_edge, predicted_by_p, can_duplicate_block_p,
3379 duplicate_block, block_ends_with_call_p,
3380 block_ends_with_condjump_p, flow_call_edges_add): Declare.
3381 (redirect_edge_and_branch): Change return type to edge.
3382 (struct cfg_hooks): Add fields block_ends_with_call_p,
3383 block_ends_with_condjump_p, flow_call_edges_add,
3384 predict_edge, predicted_by_p, can_duplicate_block_p and
3385 duplicate_block.
3386 (tree_cfg_hooks, ir_type, tree_register_cfg_hooks): Declare.
3387 * cfglayout.c (cfg_layout_pool, cfg_layout_initialize_rbi): Removed.
3388 (fixup_reorder_chain): Use initialize_bb_rbi.
3389 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Hookized.
3390 (cfg_layout_initialize): Use cfg.c rbi pool manipulation functions.
3391 (can_copy_bbs_p, copy_bbs): Use cfghooks for bb duplication.
3392 (insn_locators_initialize): Use new info about blocks.
3393 * cfglayout.h (typedef struct reorder_block_def): Moved to
3394 basic_block.h.
3395 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Declaration
3396 removed.
3397 * cfgloop.c: Include tree.h and tree-flow.h.
3398 * cfgloop.h (create_loop_notes): Declare.
3399 * cfgloopmanip.c (create_loop_notes): New.
3400 * cfgrtl.c (cfg_layout_create_basic_block): Use initialize_bb_rbi.
3401 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Fill in can_duplicate_block_p
3402 and duplicate_block fields.
3403 (create_basic_block_structure): Don't look at
3404 RTX_INTEGRATED_P.
3405 (rtl_block_ends_with_call_p): New.
3406 (rtl_block_ends_with_condjump_p): New.
3407 (need_fake_edge_p): Moved from cfganal.c.
3408 (rtl_flow_call_edges_add): Moved from cfganal.c (flow_call_edges_add).
3409 (rtl_cfg_hooks): Add rtl_block_ends_with_call_p,
3410 rtl_block_ends_with_condjump_p, rtl_flow_call_edges_add.
3411 (cfg_layout_rtl_cfg_hooks): Ditto.
3412 * cgraph.c (cgraph_mark_reachable_node): Don't force nested
3413 functions to be reachable.
3414 * cgraphunit.c (decide_is_function_needed):
3415 * cgraphunit.c (decide_is_function_needed): Nested functions of extern
3416 inline functions don't need to be output.
3417 (cgraph_assemble_pending_functions): Don't do anything
3418 special for nested functions.
3419 (cgraph_mark_functions_to_output): Likewise.
3420 (cgraph_finalize_function): Don't zap DECL_STRUCT_FUNCTION.
3421 (cgraph_analyze_function): Use estimate_num_insns.
3422 (cgraph_mark_functions_to_output): Likewise.
3423 (cgraph_estimate_growth, cgraph_clone_inlined_nodes): Likewise.
3424 (cgraph_expand_function): Allow functions to not be
3425 emitted.
3426 (cgraph_remove_unreachable_nodes):
3427 (cgraph_recursive_inlining_p): Simplify.
3428 (lookup_recursive_calls,
3429 cgraph_decide_recursive_inlining): New.
3430 (cgraph_decide_inlining_*): Update calls of
3431 cgraph_mark_inline.
3432 * combine.c (get_pos_from_mask): Always set *plen.
3433 * common.opt (fdump-, fmudflap, fmudflapth, fmudflapir,
3434 ftree-based-profiling, ftree-ccp, ftree-ch,
3435 ftree-combine-temps, ftree-copyrename, ftree-dce,
3436 ftree-dominator-opts, ftree-dse, ftree-loop-optimize,
3437 ftree-points-to, ftree-pre, ftree-sra, ftree-ter,
3438 ftree-lrs): Add.
3439 * config.in (HAVE_LD_PIE, HAVE_BANSHEE, PREFIX_INCLUDE_DIR):
3440 Undefine.
3441 * configure.ac: Add --enable-tree-browser option.
3442 Add --with-libbanshee option.
3443 Add GMPLIBS and GMPINC.
3444 * configure: Regenerate.
3445 * coverage.c (tree_ctr_tables): New.
3446 (coverage_counter_alloc): Use it.
3447 (build_ctr_info_value): Ditto.
3448 (coverage_counter_ref): Ditto. Rename to rtl_coverage_counter_ref.
3449 (tree_coverage_counter_ref): New.
3450 * coverage.h (coverage_counter_ref): Remove declaration.
3451 (rtl_coverage_counter_ref): Declare.
3452 (tree_coverage_counter_ref): Declare.
3453 * cppexp.c (append_digit): Rearrange unsignedp/overflow setting.
3454 (eval_token, num_binary_op, num_part_mul, num_div_op): Likewise.
3455 * cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
3456 (struct cse_basic_block_data): Rename enum values to not
3457 conflict with profile.h; update all uses.
3458 * dbxout.c (dbxout_symbol_location): Don't mention integrate.c
3459 in comments.
3460 * defaults.h (TRAMPOLINE_ALIGNMENT): Move from function.c.
3461 * diagnostic.h (debug_output_buffer, dump_generic_node,
3462 print_generic_stmt, print_generic_stmt_indented,
3463 print_generic_expr, print_generic_decl,
3464 debug_generic_expr, debug_generic_stmt, debug_c_tree):
3465 Declare.
3466 * dominance.c: Cache immediate dominators.
3467 * domwalk.c: New file.
3468 * domwalk.h: New file.
3469 * dwarf2out.c (is_fortran): Support DW_LANG_Fortran95.
3470 (gen_subprogram_die): Generate a DIE for a named
3471 return value.
3472 (loc_descriptor_from_tree): Treat RESULT_DECL like VAR_DECL.
3473 (add_location_or_const_value_attribute): Likewise.
3474 (add_bound_info): Likewise.
3475 (gen_decl_die): Likewise.
3476 * emit-rtl.c (maybe_set_first_label_num): New.
3477 (copy_most_rtx): Don't copy the integrated flag.
3478 Copy the new return_val flag.
3479 * et-forest.c (MAX_NODES): Define.
3480 (record_path_before_1): Abort if len is greater than
3481 MAX_NODES.
3482 * except.c (gen_eh_region, gen_eh_region_cleanup, gen_eh_region_try,
3483 gen_eh_region_catch, gen_eh_region_allowed,
3484 gen_eh_region_must_not_throw, get_eh_region_number,
3485 get_eh_region_may_contain_throw, get_eh_region_tree_label,
3486 set_eh_region_tree_label, expand_resx_expr): New.
3487 (expand_eh_region_start, expand_start_catch): Use them.
3488 (expand_end_catch): Tidy.
3489 (note_eh_region_may_contain_throw): Take region argument.
3490 (note_current_region_may_contain_throw): New.
3491 (get_exception_filter): Export.
3492 (collect_eh_region_array): Export.
3493 (remove_unreachable_regions): Check ERT_TRY based on reachability
3494 of catches, not reachability of continue_label. Never remove
3495 ERT_MUST_NOT_THROW regions.
3496 (collect_rtl_labels_from_trees): New.
3497 (convert_from_eh_region_ranges): Use it.
3498 (connect_post_landing_pads): Handle dying cleanups.
3499 (struct reachable_info): Add callback data.
3500 (add_reachable_handler): Invoke the callback.
3501 (foreach_reachable_handler): New.
3502 (reachable_handlers): Use it.
3503 (arh_to_landing_pad, arh_to_label): New.
3504 (can_throw_internal_1): Split out from can_throw_internal.
3505 (can_throw_external_1): Similarly.
3506 * except.h: Update.
3507 * explow.c (emit_stack_save): Remove savearea mode check.
3508 (update_nonlocal_goto_save_area): New.
3509 (allocate_dynamic_stack_space): Use it.
3510 (probe_stack_range): Never emit loop notes.
3511 * expmed.c (extract_fixed_bit_field): Always propagate the
3512 target for the shift if it is a REG.
3513 * expr.c: Include tree-iterator.h
3514 (is_zeros_p): Remove.
3515 (categorize_ctor_elements_1, categorize_ctor_elements): New.
3516 (count_type_elements): New.
3517 (mostly_zeros_p): Use them.
3518 (expr_wfl_stack): Remove.
3519 (convert_move): Do nothing if to and from are the same.
3520 (emit_block_move_via_loop): Don't emit LOOP notes.
3521 (emit_move_insn): Don't handle CONSTANT_P_RTX.
3522 (emit_move_insn_1): Don't generate inline warnings.
3523 (expand_vars, expand_var): Split from ...
3524 (expand_expr_1): ... here.
3525 (expand_expr_real, expand_expr_real_1): Use new macros
3526 EXPR_LOCATION and EXPR_HAS_LOCATION.
3527 * expr.h (simplify_builtin_fputs,
3528 simplify_builtin_strcpy, simplify_builtin_strncpy,
3529 expand_var, fixup_tail_calls,
3530 update_nonlocal_goto_save_area): Declare.
3531 (lookup_static_chain, expand_inline_function,
3532 mark_seen_cases): Remove.
3533 (prepare_call_address): Change type of 2nd argument to
3534 rtx.
3535 * final.c (profile_function): Update static chain test.
3536 (final): Don't look at RTX_INTEGRATED_P.
3537 * flags.h (flag_mudflap, flag_mudflap_threads,
3538 flag_mudflap_ignore_reads, flag_tree_pre, flag_tree_ccp,
3539 flag_tree_dce, flag_tree_combine_temps,
3540 flag_tree_live_range_split, flag_tree_dom, flag_tree_ch,
3541 flag_tree_dse, flag_tree_sra, flag_tree_copyrename,
3542 flag_tree_points_to): Declare.
3543 (enum pta_type): Declare.
3544 * flow.c (lang_missing_noreturn_ok_p): Remove.
3545 (check_function_return_warnings): Remove.
3546 (update_life_info): Update comments.
3547 (free_basic_block_vars): Don't call VARRAY_FREE for
3548 basic_block_info.
3549 (regno_uninitialized): Remove.
3550 * fold-const.c (int_const_binop): Make extern.
3551 (non_lvalue): Rely on build to set TREE_CONSTANT.
3552 (operand_equal_p): Replace only_const argument with
3553 flags. Allow pure functions if OEP_PURE_SAME.
3554 (fold): Use OEP_ONLY_CONST.
3555 (invert_truthvalue) <NOP_EXPR> Break if argument is of
3556 boolean type.
3557 (fold_relational_hi_lo,
3558 nondestructive_fold_binary_to_constant,
3559 nondestructive_fold_unary_to_constant,
3560 fold_read_from_constant_string): New.
3561 * function.c (struct function): Remove calls_constant_p.
3562 (current_function_calls_constant_p): Remove.
3563 (inline_function_decl): Remove.
3564 (put_var_into_stack): Don't use it.
3565 (fix_lexical_addr): Likewise.
3566 (inline_function_decl): Remove extern declaration.
3567 (TRAMPOLINE_ALIGNMENT): Move to defaults.h.
3568 (trampolines_created): Move to varasm.c.
3569 (free_after_compilation): Update for removed fields.
3570 (allocate_struct_function): Likewise.
3571 (delete_handlers, lookup_static_chain): Remove.
3572 (fix_lexical_addr): Don't consider non-local variable refs.
3573 (trampoline_address): Remove.
3574 (round_trampoline_addr): Move to builtins.c.
3575 (adjust_trampoline_addr): Remove.
3576 (expand_function_start): Update for changes to static chain
3577 and nonlocal goto handling.
3578 (initial_trampoline): Move to varasm.c.
3579 (expand_function_end): Don't build trampolines or kill
3580 unreferenced nonlocal goto labels.
3581 (free_after_compilation): Don't set it.
3582 (expand_function_end): Likewise.
3583 (setjmp_vars_warning): Rename from
3584 uninitialized_vars_warning, remove uninitialized vars warning.
3585 (uninitialized_vars_warning): Remove old comment
3586 and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
3587 and do not call the langhook.
3588 (expand_function_start, expand_function_end): Don't do
3589 function instrumentation here.
3590 (clear_block_marks): Rename from reorder_blocks_0, export.
3591 (blocks_nreverse): Export.
3592 (uninitialized_vars_warning): Use DECL_RTL_SET_P to test for presence
3593 of rtl.
3594 (reset_block_changes, record_block_change, finalize_block_changes,
3595 check_block_change, free_block_changes): New functions.
3596 (assign_parms): Setting of current_function_stdarg
3597 moved ...
3598 (allocate_struct_function): ... here.
3599 * function.h (struct function): Remove x_nonlocal_labels,
3600 x_nonlocal_goto_handler_slots, x_nonlocal_goto_stack_level,
3601 x_context_display, x_trampoline_list, needs_context.
3602 Add static_chain_decl, nonlocal_goto_save_area.
3603 (struct function): Remove x_clobber_return_insn.
3604 Add tail_call_emit field, last_label_uid,
3605 unexpanded_var_list, dont_emit_block_notes,
3606 ib_boundaries_block, function_end_locus and saved_tree/saved_args.
3607 (clear_block_marks): Declare.
3608 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Add -fmudflapth support.
3609 (mfwrap_spec, mflib_spec): Declare.
3610 (cpp_unique_options, cc1_options): Ditto.
3611 (default_compilers): Add .F and .f90.
3612 (static_specs): Add mfwrap and mflib.
3613 * gcse.c (want_to_gcse_p, gcse_constant_p): Don't handle
3614 CONSTANT_RTX_P.
3615 (reg_used_on_edge, reg_killed_on_edge, bypass_block):
3616 Update to match insns field in struct edge_def.
3617 * gdbinit.in (pgs, pge): Define.
3618 * genattrtab.c (ATTR_PERMANENT_P): Use the return_val flag
3619 instead of the integrated flag.
3620 * gengtype-lex.l (IWOrD): Add HOST_WIDEST_INT
3621 * gengtype-yacc.y (bitfieldlen): Add empty action.
3622 (struct_fields): Accept unnamed bitfields.
3623 (bitfieldlen): Split from ...
3624 (bitfieldopt): ... here.
3625 * gengtype.c (ifiles): Add tree-alias-type.h and
3626 tree-flow.h.
3627 * genrecog.c (validate_pattern): Do not handle
3628 CONSTANT_P_RTX.
3629 * gimple-low.c: New file.
3630 * gimplify.c: New file.
3631 * haifa-sched.c (priority): Do not handle CONSTANT_P_RTX.
3632 (restore_line_notes): Do not set RTX_INTEGRATED_P.
3633 * ifcvt.c (dead_or_predicable): Initialize local variable
3634 'earliest'.
3635 * input.h (expr_wfl_stack): Remove.
3636 * integrate.c (INTEGRATE_THRESHOLD): Remove.
3637 (setup_initial_hard_reg_value_integration): Likewise.
3638 (initialize_for_inline): Likewise.
3639 (note_modified_parmregs): Likewise.
3640 (integrate_parm_decls): Likewise.
3641 (process_reg_param): Likewise.
3642 (save_parm_insns): Likewise.
3643 (copy_insn_list): Likewise.
3644 (copy_insn_notes): Likewise.
3645 (compare_blocks): Likewise.
3646 (find_block): Likewise.
3647 (inlining): Likewise.
3648 (function_cannot_inline_p): Likewise.
3649 (parmdecl_map): Likewise.
3650 (in_nonparam_insns): Likewise.
3651 (save_for_inline): Likewise.
3652 (FIXED_BASE_PLUS): Likewise.
3653 (expand_inline_function): Likewise.
3654 (copy_rtx_and_substitute): Don't look at map->integrating,
3655 map->inline_target, and inlining, since we are never copying
3656 for integrating.
3657 Don't abort on RTX_INTEGRATED_P.
3658 (old_fun): Remove.
3659 (output_inline_function): Remove.
3660 * integrate.h (struct inline_map): Remove fields integrating,
3661 block_map, leaf_reg_map, inline_target, and local_return_label.
3662 * jump.c (next_nonnote_insn_in_loop, duplicate_loop_exit_test,
3663 copy_loop_headers, never_reached_warning): Removed.
3664 (any_uncondjump_p): Reject nonlocal goto.
3665 * langhooks-def.h (lhd_types_compatible_p,
3666 lhd_expand_decl, lhd_gimplify_expr): Declare.
3667 (LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
3668 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
3669 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
3670 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
3671 LANG_HOOKS_GIMPLIFY_EXPR,
3672 LANG_HOOKS_GIMPLE_BEFORE_INLINING,
3673 LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
3674 LANG_HOOKS_GIMPLIFY_EXPR,
3675 LANG_HOOKS_GIMPLE_BEFORE_INLINING): Define.
3676 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_START,
3677 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END,
3678 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
3679 LANG_HOOKS_RTL_EXPAND_INITIALIZER,
3680 LANG_HOOKS_DECL_UNINIT,
3681 LANG_HOOKS_RTL_EXPAND_INITIALIZER): Remove.
3682 * langhooks.c: Include tree-simple.h.
3683 (lhd_expand_decl): New.
3684 (lhd_types_compatible_p): New.
3685 (lhd_decl_uninit): Remove.
3686 (lhd_gimplify_expr): New.
3687 * langhooks.h (struct lang_hooks_for_rtl_expansion):
3688 Remove.
3689 (struct lang_hooks_for_functions): Add field
3690 missing_noreturn_ok_p.
3691 (struct lang_hooks): Add field expand_decl,
3692 types_compatible_p, gimplify_expr and
3693 gimple_before_inlining.
3694 Remove fields decl_uninit and rtl_expand
3695 * opts.c (decode_options): Set flag_tree_ccp,
3696 flag_tree_dce, flag_tree_dom, flag_tree_dse,
3697 flag_tree_pre, flag_tree_ter,
3698 flag_tree_live_range_split, flag_tree_sra,
3699 flag_tree_copyrename and flag_tree_ch at -O1 and higher.
3700 (common_handle_option): Handle OPT_fdump_, OPT_fmudflap,
3701 OPT_fmudflapth, OPT_fmudflapir,
3702 OPT_ftree_based_profiling, OPT_ftree_ccp, OPT_ftree_dce,
3703 OPT_ftree_combine_temps, OPT_ftree_ter, OPT_ftree_lrs,
3704 OPT_ftree_dominator_opts, OPT_ftree_copyrename,
3705 OPT_ftree_ch, OPT_ftree_dse, OPT_ftree_sra,
3706 OPT_ftree_points_to_ and OPT_ftree_pre.
3707 * output.h (regno_uninitialized, find_basic_blocks,
3708 cleanup_cfg, delete_unreachable_blocks,
3709 check_function_return_warnings): Remove.
3710 * params.def (PARAM_MAX_INLINE_INSNS_RECURSIVE,
3711 PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
3712 PARAM_MAX_INLINE_RECURSIVE_DEPTH,
3713 PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
3714 PARAM_GLOBAL_VAR_THRESHOLD, PARAM_MAX_ALIASED_VOPS):
3715 * params.h (GLOBAL_VAR_THRESHOLD, MAX_ALIASED_VOPS):
3716 Define.
3717 * passes.c (rest_of_decl_compilation):
3718 (rest_of_handle_sibling_calls): Remove.
3719 (rest_of_handle_inlining): Remove.
3720 (rest_of_handle_gcse): Do not run
3721 purge_builtin_constant_p.
3722 (rest_of_compilation): Update.
3723 Do not call copy_loop_headers.
3724 Do rtl-based profiling only when
3725 !flag_tree_based_profiling. Register rtl-based profiling
3726 hooks.
3727 * predict.c: Include tree-flow.h, ggc.h, tree-dump.h
3728 (predicted_by_p): Rename to ...
3729 (rtl_predicted_by_p): .. this one; make global
3730 (tree_predicted_by_p): New.
3731 (dump_prediction): Add FILE argument.
3732 (predict_edge): Rename to ...
3733 (rtl_predict_edge): .. this one.
3734 (tree_predict_edge): New.
3735 (combine_predictions_for_insn): Update calls of predict_edge.
3736 (predict_loops): Break out from ...
3737 (estimate_probability): ... here; update comments; move updating
3738 of unknown probabilities from ...
3739 (estimate_bb_frequencies): ... here.
3740 (combine_predictions_for_bb): New.
3741 (tree_predict_by_opcode): New.
3742 (tree_estimate_probability): New.
3743 * predict.def (PRED_TREE_POINTER, PRED_TREE_OPCODE_POSITIVE,
3744 PRED_TREE_OPCODE_NONEQUAL, PRED_TREE_FPOPCODE): New predictors.
3745 * predict.h: Add include guard.
3746 (predict_edge, predict_edge_def): Move prototypes to basic_block.h
3747 * pretty-print.c (pp_write_text_to_stream): Make extern.
3748 * pretty-print.h (pp_write_text_to_stream): Declare.
3749 * print-rtl.c (print_rtx): Don't print the integrated flag.
3750 Print the return_val flag.
3751 * print-tree.c: Use TREE_FILENAME and TREE_LINENO instead
3752 of DECL_SOURCE_FILE and DECL_SOURCE_LINE respectively.
3753 Remove support for EXPR_WITH_FILE_LOCATION nodes.
3754 (print_node): Print TREE_INVARIANT and TREE_VISITED.
3755 * profile.c: Include cfghooks.h, tree-flow.h.
3756 (profile_hooks): New.
3757 (profile_dump_file): New.
3758 (instrument_edges): Use hooks instead of RTL-specific code.
3759 (instrument_values): Ditto.
3760 (get_exec_counts): Ditto.
3761 (compute_branch_probabilities): Ditto.
3762 (compute_value_histograms): Ditto.
3763 (branch_prob): Ditto.
3764 (find_spanning_tree): Ditto.
3765 (end_branch_prob): Ditto.
3766 (gen_edge_profiler): Move to rtl-profile.c (rtl_gen_edge_profiler).
3767 (gen_interval_profiler): Ditto (rtl_gen_interval_profiler).
3768 (gen_pow2_profiler): Ditto (rtl_gen_pow2_profiler).
3769 (gen_one_value_profiler): Ditto (rtl_gen_one_value_profiler).
3770 (tree_register_profile_hooks): New.
3771 (rtl_register_profile_hooks): New.
3772 * ra-rewrite.c (rewrite_program): Clear variable info.
3773 * recog.c (immediate_operand): Do not handle CONSTANT_P_RTX.
3774 * regs.h: Add include guards.
3775 * reload.c (decompose): Clear val using memset.
3776 * rtl.def (CONSTANT_P_RTX): Remove.
3777 * rtl.h (CONSTANT_P): Do not handle CONSTANT_P_RTX.
3778 (copy_loop_headers): Remove.
3779 (struct rtx_def): Replace the integrated flag with the
3780 return_val flag.
3781 (maybe_set_first_label_num): Declare.
3782 (init_branch_prob): Move declaration to value-prof.h.
3783 (end_branch_prob): Ditto.
3784 (branch_prob): Ditto.
3785 (never_reached_warning): Don't declare it.
3786 * rtlanal.c (get_related_value): Initialize get_jump_table_offset
3787 (hoist_insn_to_edge): Update to match field insns in
3788 struct edge_def.
3789 * sbitmap.c (sbitmap_realloc): New.
3790 * sbitmap.h (sbitmap_realloc): Declare.
3791 * sibcall.c: Remove file.
3792 * simplify-rtx.c (simplify_rtx): Do not handle
3793 CONSTANT_P_RTX.
3794 * stmt.c (parse_output_constraint): Don't warn for read-write
3795 memory operand.
3796 (tail_recursion_args): Use types_compatible_p langhook.
3797 (force_label_rtx): Don't look at inline_function_decl.
3798 (label_rtx): Set LABEL_PRESERVE_P appropriately.
3799 (expand_label): Handle DECL_NONLOCAL and FORCED_LABEL.
3800 (declare_nonlocal_label): Remove.
3801 (expand_goto): Don't handle nonlocal gotos.
3802 (expand_nl_handler_label): Remove.
3803 (expand_nl_goto_receivers): Remove.
3804 (expand_end_bindings): Don't expand_nl_goto_receivers. Use
3805 update_nonlocal_goto_save_area.
3806 (expand_expr_stmt_value): Check TREE_NO_WARNING.
3807 (warn_if_unused_value): Likewise.
3808 (expand_start_loop, expand_loop_continue_here,
3809 expand_end_loop): Don't create loop notes.
3810 (all_cases_count, BITARRAY_TEST, BITARRAY_SET,
3811 mark_seen_cases, check_for_full_enumeration_handling): Remove.
3812 (expand_end_case_type): Don't do warn_switch handling.
3813 (pushcase, pushcase_range) Update add_case_node calls.
3814 (add_case_node): Add dont_expand_label argument.
3815 (same_case_target_p): Don't search rtl.
3816 (expand_start_bindings_and_block, expand_end_bindings):
3817 Don't emit block notes when dont_emit_block_notes.
3818 (using_eh_for_cleanups_p): Export.
3819 (expand_return): Allow any typed rhs.
3820 (expand_stack_alloc): New.
3821 (expand_stack_save, expand_stack_restore): New.
3822 (containing_blocks_have_cleanups_or_stack_level): New
3823 function.
3824 (asm_op_is_mem_input): New fn.
3825 (expand_asm_expr): New fn.
3826 (warn_if_unused_value): Check operand 0 of SAVE_EXPR
3827 nodes.
3828 * stor-layout.c (layout_type): Just return if type is
3829 error_mark_node.
3830 (update_alignment_for_field): Export.
3831 (variable_size): We don't care about global_bindings_p if
3832 the frontend doesn't want a list of the expressions.
3833 * system.h: Poison INTEGRATE_THRESHOLD.
3834 * timevar.def (TV_TREE_GIMPLIFY, TV_TREE_EH, TV_TREE_CFG,
3835 TV_TREE_CLEANUP_CFG, TV_TREE_PTA, TV_TREE_MAY_ALIAS,
3836 TV_TREE_INSERT_PHI_NODES, TV_TREE_SSA_REWRITE_BLOCKS,
3837 TV_TREE_SSA_OTHER, TV_TREE_OPS,
3838 TV_TREE_SSA_DOMINATOR_OPTS, TV_TREE_SRA, TV_TREE_CCP,
3839 TV_TREE_SPLIT_EDGES, TV_TREE_PRE, TV_TREE_PHIOPT,
3840 TV_TREE_FORWPROP, TV_TREE_DCE, TV_TREE_CD_DCE,
3841 TV_TREE_DSE, TV_TREE_LOOP, TV_TREE_CH,
3842 TV_TREE_SSA_TO_NORMAL, TV_TREE_SSA_TO_NORMAL,
3843 TV_TREE_NRV, TV_TREE_COPY_RENAME, TV_TREE_SSA_VERIFY,
3844 TV_TREE_STMT_VERIFY, TV_DOM_FRONTIERS,
3845 TV_CONTROL_DEPENDENCES): Define.
3846 * toplev.c: Include tree-alias-common.h
3847 (current_file_decl, flag_mudflap, flag_mudflap_threads,
3848 flag_mudflap_ignore_reads, flag_tree_based_profiling,
3849 flag_tree_gvn, flag_tree_points_to, flag_tree_ccp,
3850 flag_tree_dce, flag_tree_ch, flag_tree_sra,
3851 flag_tree_combine_temps, flag_tree_ter,
3852 flag_tree_live_range_split, flag_tree_dom,
3853 flag_tree_copyrename, flag_tree_dse): Declare.
3854 (f_options): Add tree-based-profiling, tree-gvn,
3855 tree-pre, tree-ccp, tree-dce,
3856 tree-dominator-opts, tree-copyrename, tree-dse,
3857 tree-combine-temps, tree-ter, tree-lrs and tree-ch.
3858 (wrapup_global_declarations): Don't output nested inlined functions.
3859 (general_init): Call init_tree_optimization_passes.
3860 (process_options): Sorry for -ftree-based-profiling plus
3861 -ftest-coverage or -fprofile-values.
3862 * toplev.h (init_tree_optimization_passes,
3863 flag_tree_based_profiling): Declare.
3864 * tracer.c (tail_duplicate): Use cfghooks for bb duplication.
3865 * tree-alias-ander.c: New file.
3866 * tree-alias-ander.h: New file.
3867 * tree-alias-common.c: New file.
3868 * tree-alias-common.h: New file.
3869 * tree-alias-type.c: New file.
3870 * tree-alias-type.h: New file.
3871 * tree-browser.c: New file.
3872 * tree-browser.def: New file.
3873 * tree-cfg.c: New file.
3874 * tree-complex.c: New file.
3875 * tree-dfa.c: New file.
3876 * tree-dump.c (dump_enable_all): New.
3877 (dequeue_and_dump): Do not handle EXPR_WITH_FILE_LOCATION.
3878 (dump_node): Remove const from field suffix and swtch.
3879 (dump_files): Add null entry, .generic, .nested, .vcg,
3880 .xml and a match-all entry.
3881 (extra_dump_files, extra_dump_files_in_use,
3882 extra_dump_files_alloced): Declare
3883 (dump_option_value_info): Add raw, details, stats,
3884 blocks, vops, lineno, uid and all.
3885 (dump_register): New.
3886 (get_dump_file_info): New.
3887 (dump_begin): Call it.
3888 Do nothing for TDI_none.
3889 (dump_begin): Include phase number in dump filename.
3890 (dump_enable_all): New.
3891 (dump_switch_p_1): Split out from dump_switch_p.
3892 (dump_switch_p): Handle extra_dump_files.
3893 Start our scan at TDI_none + 1.
3894 If -fdump-tree-all was given, call dump_enable_all.
3895 * tree-dump.h: Include splay-tree.h.
3896 (dump_function, dump_function_to_file, dump_register):
3897 Declare.
3898 * tree-eh.c: New file.
3899 * tree-flow-inline.h: New file.
3900 * tree-flow.h: New file.
3901 * tree-inline.c: Re-write to handle inlining on GIMPLE.
3902 * tree-inline.h (walk_tree,
3903 walk_tree_without_duplicates): Move to tree.h.
3904 (estimate_num_insns): Declare.
3905 * tree-into-ssa.c: New file.
3906 * tree-iterator.c: New file.
3907 * tree-iterator.h: New file.
3908 * tree-mudflap.c: New file.
3909 * tree-mudflap.h: New file.
3910 * tree-nested.c: New file.
3911 * tree-nomudflap.c: New file.
3912 * tree-nrv.c: New file.
3913 * tree-optimize.c (dump_flags, vars_to_rename,
3914 in_gimple_form, all_passes, pass_gimple,
3915 pass_rebuild_bind, pass_all_optimizations, pass_del_cfg): Declare.
3916 (execute_gimple, execute_rebuild_bind,
3917 gate_all_optimizations, execute_del_cfg,
3918 register_one_dump_file, register_dump_files, dup_pass_1,
3919 init_tree_optimization_passes, execute_todo,
3920 execute_one_pass, execute_pass_list): New.
3921 (clear_decl_rtl): Remove.
3922 (tree_rest_of_compilation): Update to use tree
3923 optimizers.
3924 * tree-outof-ssa.c: New file.
3925 * tree-pass.h: New file.
3926 * tree-phinodes.c: New file.
3927 * tree-pretty-print.c: New file.
3928 * tree-profile.c: New file.
3929 * tree-simple.c: New file.
3930 * tree-simple.h: New file.
3931 * tree-sra.c: New file.
3932 * tree-ssa-alias.c: New file.
3933 * tree-ssa-ccp.c: New file.
3934 * tree-ssa-copy.c: New file.
3935 * tree-ssa-copyrename.c: New file.
3936 * tree-ssa-dce.c: New file.
3937 * tree-ssa-dom.c: New file.
3938 * tree-ssa-dse.c: New file.
3939 * tree-ssa-forwprop.c: New file.
3940 * tree-ssa-live.c: New file.
3941 * tree-ssa-live.h: New file.
3942 * tree-ssa-loop.c: New file.
3943 * tree-ssa-operands.c: New file.
3944 * tree-ssa-operands.h: New file.
3945 * tree-ssa-phiopt.c: New file.
3946 * tree-ssa-pre.c: New file.
3947 * tree-ssa.c: New file.
3948 * tree-ssanames.c: New file.
3949 * tree-tailcall.c: New file.
3950 * tree.c: Include tree-iterator.h, basic-block.h and
3951 tree-flow.h.
3952 (tree_node_kind): Add phi_nodes and ssa names.
3953 (tree_size): Handle PHI_NODE, EPHI_NODE, SSA_NAME,
3954 EUSE_NODE, EKILL_NODE, EEXIT_NODE and STATEMENT_LIST.
3955 (make_node_stat): Handle PHI_NODE and SSA_NAME.
3956 <'c'> Set TREE_INVARIANT.
3957 (copy_node_stat): Abort if trying to copy a
3958 STATEMENT_LIST.
3959 Clear TREE_VISITED.
3960 Clear annotation field.
3961 (build_constructor): Copy TREE_INVARIANT from vals.
3962 Don't clear TREE_CONSTANT.
3963 (expr_first, expr_last, expr_length): Remove.
3964 (staticp): Pass unknown component references to the language.
3965 (save_expr): Check TREE_INVARIANT instead of TREE_CONSTANT.
3966 (skip_simple_arithmetic): Likewise.
3967 (stabilize_reference_1): Likewise.
3968 (tree_node_structure): Handle PHI_NODE, EPHI_NODE,
3969 EUSE_NODE, EKILL_NODE, EEXIT_NODE, SSA_NAME and
3970 STATEMENT_LIST.
3971 (lhd_unsave_expr_now): Remove.
3972 (unsafe_for_reeval): Handle LABEL_EXPR and BIND_EXPR.
3973 (recompute_tree_invarant_for_addr_expr): New.
3974 (build1_stat): Clear EXPR_LOCUS and TREE_BLOCK.
3975 Call recompute_tree_invarant_for_addr_expr.
3976 Set TREE_INVARIANT accordingly.
3977 (build2_stat): Don't handle CALL_EXPR.
3978 (build3_stat): Don't call build2_stat for CALL_EXPRs.
3979 (build_expr_wfl): Remove.
3980 (annotate_with_file_line, annotate_with_locus): New.
3981 (simple_cst_equal): Call simple_cst_list_equal to compare
3982 CONSTRUCTOR_ELTS pointers.
3983 (iterative_hash_expr): Don't hash types associated
3984 with conversions. Instead hash on the signedness of the
3985 toplevel object and the operand of the conversion.
3986 (dump_tree_statistics): Call ssanames_print_statistics
3987 and phinodes_print_statistics.
3988 (ephi_node_elt_check_failed, phi_node_elt_check_failed,
3989 add_var_to_bind_expr, build_empty_stmt, is_essa_node,
3990 needs_to_live_in_memory): New.
3991 (initializer_zerop): Handle VECTOR_CST. Don't check
3992 AGGREGATE_TYPE_P for CONSTRUCTOR.
3993 * tree.def (FILTER_EXPR, CASE_LABEL_EXPR, RESX_EXPR,
3994 SSA_NAME, EUSE_NODE, EKILL_NODE, EPHI_NODE, EEXIT_NODE,
3995 PHI_NODE, CATCH_EXPR, EH_FILTER_EXPR, STATEMENT_LIST): Define.
3996 (GOTO_SUBROUTINE_EXPR): Change type to 's'.
3997 (CALL_EXPR): Add another operand.
3998 (EXPR_WITH_FILE_LOCATION): Remove.
3999 (SWITCH_EXPR): Add another operand.
4000 * tree.h: Update various comments.
4001 (union tree_ann_d): Forward declare.
4002 (struct tree_common): Add fields nowarning_flag,
4003 invariant_flag and visited.
4004 (EREF_NODE_CHECK, EPHI_NODE_ELT_CHECK,
4005 PHI_NODE_ELT_CHECK, EREF_NODE_CHECK, PHI_NODE_ELT_CHECK,
4006 EPHI_NODE_ELT_CHECK, TREE_BLOCK,
4007 STRIP_USELESS_TYPE_CONVERSION, CALL_EXPR_TAILCALL,
4008 TREE_NO_WARNING, FORCED_LABEL, TREE_INVARIANT,
4009 IS_EMPTY_STMT, EXPR_LOCUS, SET_EXPR_LOCUS, EXPR_FILENAME,
4010 EXPR_LINENO, EXPR_LOCATION, EXPR_HAS_LOCATION,
4011 EXIT_EXPR_COND, SWITCH_COND, SWITCH_BODY, SWITCH_LABELS,
4012 CASE_LOW, CASE_HIGH, CASE_LABEL, BIND_EXPR_VARS,
4013 BIND_EXPR_BODY, BIND_EXPR_BLOCK, GOTO_DESTINATION,
4014 ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS,
4015 ASM_INPUT_P, ASM_VOLATILE_P, COND_EXPR_COND,
4016 COND_EXPR_THEN, COND_EXPR_ELSE, LABEL_EXPR_LABEL,
4017 CATCH_TYPES, CATCH_BODY, EH_FILTER_TYPES,
4018 EH_FILTER_FAILURE, EH_FILTER_MUST_NOT_THROW,
4019 SSA_NAME_VAR, SSA_NAME_DEF_STMT, SSA_NAME_VERSION,
4020 SSA_NAME_OCCURS_IN_ABNORMAL_PHI, SSA_NAME_IN_FREE_LIST,
4021 PHI_RESULT, PHI_REWRITTEN, PHI_NUM_ARGS,
4022 PHI_ARG_CAPACITY, PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF,
4023 EREF_PROCESSED, EREF_ID, EREF_NAME, EREF_STMT,
4024 EREF_RELOAD, EREF_SAVE, EREF_CLASS, EREF_INJURED,
4025 EREF_TEMP, EUSE_DEF, EUSE_PHIOP, EUSE_INSERTED,
4026 EUSE_LVAL, EPHI_NUM_ARGS, EPHI_ARG_CAPACITY,
4027 EPHI_ARG_ELT, EPHI_ARG_EDGE, EPHI_ARG_PRED, EPHI_ARG_DEF,
4028 EPHI_ARG_INJURED, EPHI_ARG_DELAYED_RENAME,
4029 EPHI_ARG_HAS_REAL_USE, EPHI_ARG_STOPS,
4030 EPHI_ARG_PROCESSED2, EPHI_IDENTITY, EPHI_IDENT_INJURED,
4031 EPHI_REP_OCCUR_KNOWN, EPHI_IDENTICAL_TO, EPHI_DOWNSAFE,
4032 EPHI_CANT_BE_AVAIL, EPHI_DEAD, EPHI_USES, EPHI_STOPS,
4033 TREE_VISITED, SSA_VAR_P, DECL_NUM_STMTS,
4034 DECL_HARD_REGISTER, DECL_PTA_ALIASVAR, LABEL_DECL_UID,
4035 DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL,
4036 STATEMENT_LIST_HEAD, STATEMENT_LIST_TAIL, TDF_RAW,
4037 TDF_DETAILS, TDF_STATS, TDF_BLOCKS, TDF_VOPS, TDF_LINENO,
4038 TDF_UID,): Define.
4039 (TREE_NO_UNUSED_WARNING, EXPR_WFL_EMIT_LINE_NOTE,
4040 EXPR_WFL_NODE, EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME,
4041 EXPR_WFL_LINECOL, EXPR_WFL_LINENO, EXPR_WFL_COLNO,
4042 EXPR_WFL_SET_LINECOL): Remove.
4043 (phi_node_elt_check_failed, ephi_node_elt_check_failed,
4044 make_phi_node, init_phinodes, fini_phinodes,
4045 release_phi_node, phinodes_print_statistics,
4046 init_ssanames, fini_ssanames, make_ssa_name,
4047 release_ssa_name, ssanames_print_statistics,
4048 annotate_with_file_line, build_empty_stmt,
4049 annotate_with_locus, expr_only, categorize_ctor_elements,
4050 count_type_elements, add_var_to_bind_expr, is_essa_node,
4051 expand_stack_alloc, expand_stack_save,
4052 expand_stack_restore, add_case_node, operand_equal_p,
4053 nondestructive_fold_unary_to_constant,
4054 nondestructive_fold_binary_to_constant,
4055 fold_read_from_constant_string, int_const_binop,
4056 strip_float_extensions, simplify_builtin, c_strlen,
4057 recompute_tree_invarant_for_addr_expr,
4058 needs_to_live_in_memory, make_vector,
4059 setjmp_vars_warning, update_alignment_for_field,
4060 expand_asm_expr, asm_op_is_mem_input,
4061 containing_blocks_have_cleanups_or_stack_level,
4062 create_artificial_label, gimplify_function_tree,
4063 get_name, unshare_expr, walk_tree,
4064 walk_tree_without_duplicates, in_gimple_form): Declare.
4065 (struct tree_exp): Add fields locus and block.
4066 (struct tree_ssa_name, struct edge_def, struct
4067 tree_phi_node, struct tree_eref_common, struct
4068 tree_euse_node, struct ephi_arg_d, struct tree_ephi_node,
4069 union alias_var_def, struct tree_statement_list_node,
4070 struct tree_statement_list, enum operand_equal_flag): Declare.
4071 (enum tree_node_structure_enum): Add TS_SSA_NAME,
4072 TS_PHI_NODE, TS_EPHI_NODE, TS_EUSE_NODE, TS_EREF_NODE,
4073 TS_STATEMENT_LIST.
4074 (union tree_node): Add fields ssa_name, phi, eref, ephi,
4075 euse and stmt_list.
4076 (function_cannot_inline_p, uninitialized_vars_warning,
4077 save_for_inline, output_inline_function, all_cases_count,
4078 check_for_full_enumeration_handling,
4079 declare_nonlocal_label): Remove.
4080 (enum tree_dump_index): Add TDI_none, TDI_tu,
4081 TDI_generic, TDI_nested, TDI_vcg, TDI_xml.
4082 * unroll.c (unroll_loop): Don't clear map->inline_target.
4083 * unwind-sjlj.c (uw_install_context): Make a proper static inline
4084 function.
4085 * value-prof.c (value_prof_hooks): New.
4086 (find_values_to_profile): Rename to rtl_find_values_to_profile.
4087 Move rtl-specific bits in from branch_prob.
4088 (value_profile_transformations): Rename to
4089 rtl_value_profile_transformations.
4090 (struct value_prof_hooks): New.
4091 (rtl_value_prof_hooks): New.
4092 (rtl_register_value_prof_hooks): New.
4093 (tree_find_values_to_profile): New stub.
4094 (tree_value_profile_transformations): New stub.
4095 (tree_value_prof_hooks): New stub.
4096 (tree_register_value_prof_hooks): New stub.
4097 (find_values_to_profile): New.
4098 (value_profile_transformations): New.
4099 * value-prof.h: Add multiple inclusion guard.
4100 (struct histogram_value): Change rtx fields to void *.
4101 (rtl_register_value_prof_hooks): New declaration.
4102 (tree_register_value_prof_hooks): New declaration.
4103 (find_values_to_profile): New declaration.
4104 (free_profiled_values): New declaration.
4105 (value_profile_transformations): New declaration.
4106 (struct profile_hooks): New declaration.
4107 (init_branch_prob): Declaration moved from rtl.h.
4108 (branch_prob): Declaration moved from rtl.h.
4109 (end_branch_prob): Declaration mooved from rtl.h.
4110 (tree_register_profile_hooks): New declaration.
4111 (rtl_register_profile_hooks): New declaration.
4112 (tree_profile_hooks): New declaration.
4113 (rtl_profile_hooks): New declaration.
4114 * varasm.c: Include tree-mudflap.h.
4115 (TRAMPOLINE_ALIGNMENT): Remove.
4116 (make_decl_rtl): Call mudflap_enqueue_decl.
4117 (assemble_static_space):
4118 (assemble_trampoline_template): Set and return
4119 TRAMPOLINE_ALIGNMENT.
4120 * varray.c (element): Add GENERIC_PTR_NOGC entry.
4121 Add entry for 'tree *'.
4122 Add entry for struct edge_def *.
4123 (varray_copy): New.
4124 * varray.h (enum varray_data_enum): Add
4125 VARRAY_DATA_GENERIC_NOGC, VARRAY_DATA_EDGE and
4126 VARRAY_DATA_TREE_PTR.
4127 (union varray_data_tag): Corresponding changes.
4128 (VARRAY_GENERIC_PTR_NOGC_INIT, VARRAY_EDGE_INIT,
4129 VARRAY_TREE_PTR_INIT, VARRAY_GENERIC_PTR_NOGC,
4130 VARRAY_EDGE, VARRAY_TREE_PTR,
4131 VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_EDGE,
4132 VARRAY_PUSH_TREE_PTR, VARRAY_TOP_GENERIC_PTR_NOGC,
4133 VARRAY_TOP_EDGE, VARRAY_TOP_TREE_PTR): Define.
4134
4135 * config/*/*: Various updates for changed macros, tree
4136 codes, etc. Check ChangeLog.tree-ssa.
4137
4138 * doc/cfg.texi: New file.
4139 * doc/tree-ssa.texi: New file.
4140 * doc/c-tree.texi: Document new codes.
4141 * doc/gccint.texi: Include new files.
4142 * doc/install.texi: Document new features.
4143 * doc/invoke.texi: Document new switches.
4144 * doc/passes.texi: Document new passes.
4145 * doc/rtl.texi: Update changed RTL codes.
4146 * doc/sourcebuild.texi: Update build instructions.
4147 * doc/standards.texi: Document Fortran changes.
4148 * doc/tm.texi: Update.
4149
4150 2004-05-12 Paolo Bonzini <bonzini@gnu.org>
4151
4152 Replace several arrays with a struct of arrays.
4153 * combine.c (struct reg_stat): New.
4154 (init_reg_last_arrays): Renamed to...
4155 (init_reg_last): ...this. Callers adjusted.
4156 (reg_stat): New.
4157 (combine_instructions): Allocate it and use it.
4158 (reg_last_death, reg_last_set, reg_last_set_value,
4159 reg_last_set_label, reg_last_set_table_tick,
4160 reg_last_set_invalid, reg_nonzero_bits, reg_sign_bit_copies,
4161 reg_last_set_mode, reg_last_set_nonzero_bits,
4162 reg_last_set_sign_bit_copies): Replace throughout
4163 with items of reg_stat.
4164
4165 2004-05-11 Kaz Kojima <kkojima@gcc.gnu.org>
4166
4167 PR optimization/15100
4168 * combine.c (distribute_notes): Don't create a dangling
4169 REG_LIBCALL/REG_RETVAL note.
4170
4171 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
4172
4173 * config/rs6000/spe.md (spe_evneg): Rename to negv2si2.
4174
4175 * config/rs6000/rs6000.c (bdesc_1arg): Change spe_evneg to
4176 negv2si2.
4177
4178 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
4179
4180 * doc/md.texi (Standard Names): Fix typo in vec_init description.
4181
4182 2004-05-11 Geoffrey Keating <geoffk@apple.com>
4183
4184 * doc/gty.texi (GTY Options): Clarify example.
4185
4186 2004-05-11 Fariborz Jahanian <fjahanian@apple.com>
4187
4188 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
4189 Add const qualifier to altivec vector type if one is needed.
4190
4191 2004-05-11 Paul Brook <paul@codesourcery.com>
4192
4193 * flags.h (flag_short_enums): Update comment.
4194 * opts.c (decode_options): Set flag_short_enums to 2.
4195 * toplev.c (flag_short_enums): Update comment.
4196 (process_options): Call default_short_enums target hook.
4197
4198 2004-05-11 Andrew Pinski <pinskia@gcc.gnu.org>
4199
4200 PR target/14063
4201 * config/rs6000/altivec.md (altivec_dssall):
4202 Change to unspec_volatile.
4203 (altivec_dss): Likewise.
4204
4205 2004-05-10 Aldy Hernandez <aldyh@redhat.com>
4206
4207 * config/rs6000/altivec.md ("one_cmplv16qi2"): Change vnot to
4208 vnor.
4209 ("one_cmplv8hi2"): Same.
4210 ("one_cmplv4si2"): Same.
4211
4212 2004-05-10 Kaz Kojima <kkojima@gcc.gnu.org>
4213
4214 PR target/15130
4215 * config/sh/sh-protos.h (sh_expand_epilogue): Change prototype.
4216 * config/sh/sh.c (output_stack_adjust): Take the sibcall epilogue
4217 into account. Compute the correct number of general registers
4218 for the return value. Generate a special push/pop sequence when
4219 failing to get a temporary register for non SHmedia epilogue.
4220 (sh_expand_epilogue): Add an argument to show whether it's for
4221 sibcall or not. Set the 3rd argument of output_stack_adjust to
4222 -1 if needed.
4223 (sh_need_epilogue): Call sh_expand_epilogue with 0.
4224 * config/sh/sh.md (sibcall_epilogue): Call sh_expand_epilogue
4225 with 1.
4226 (epilogue): Call sh_expand_epilogue with 0.
4227
4228 2004-05-10 Andrew Pinski <pinskia@physics.uc.edu>
4229
4230 * gcse.c (eliminate_partially_redundant_loads): Instead of returning early,
4231 goto a cleanup label. After the cleanup, free the allocated memory.
4232
4233 2004-05-10 Ziemowit Laski <zlaski@apple.com>
4234
4235 * config/rs6000/altivec.h (vec_sld): Add overloads for
4236 argument/return types of 'vector bool int', 'vector bool short'
4237 and 'vector bool char'.
4238
4239 2004-05-10 Zack Weinberg <zack@codesourcery.com>
4240
4241 * c-decl.c (store_parm_decls_newstyle): Correct test for a
4242 nested function.
4243
4244 2004-05-10 Richard Sandiford <rsandifo@redhat.com>
4245
4246 * read-rtl.c (read_rtx): Allow 's' and 'T' strings to be omitted,
4247 treating missing ones as "".
4248 * config/mips/mips.md: Remove constraints from match_operands and
4249 match_scratches if they appear in define_expands (except reload*),
4250 define_peephole2s, define_splits or attribute specifications.
4251 * config/mips/7000.md, config/mips/sb1.md: Remove match_operand
4252 constraint strings.
4253
4254 2004-05-10 Alan Modra <amodra@bigpond.net.au>
4255
4256 * config/rs6000/rs6000.c (function_arg_boundary): Always align
4257 AltiVec vectors.
4258 (function_arg_advance): Pass TARGET_32BIT -mabi=no-altivec AltiVec
4259 vectors by refererence. Align the same for TARGET_64BIT to a 16
4260 byte boundary. Remove useless code. Add function comment.
4261 (function_arg): Similarly. Move gpr rs6000_mixed_function_arg
4262 call to where it belongs.
4263 (function_arg_partial_nregs): Return true for all TARGET_32BIT
4264 -mabi=no-altivec AltiVec vectors. Fix debug output.
4265 (rs6000_va_arg): Adjust for AltiVec change.
4266
4267 2004-05-10 Paul Brook <paul@codesourcery.com>
4268
4269 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
4270 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
4271 (TARGET_DOUBLEWORD_ALIGN): Use it.
4272 (WCHAR_TYPE): Define.
4273 (WCHAR_SIZE_TYPE): Define.
4274 (SIZE_TYPE): Define.
4275
4276 2004-05-10 Alan Modra <amodra@bigpond.net.au>
4277
4278 * config/rs6000/rs6000.c (function_arg_boundary): Align for ABI_V4
4279 when size is 8 bytes.
4280 (function_arg_advance): Account for stack space used by AltiVec
4281 args when -mabi=altivec. Simplify alignment calculations. For
4282 ABI_V4, pass AltiVec vectors by reference when -mabi=no-altivec.
4283 (function_arg): Similarly.
4284 (function_arg_pass_by_reference): True for ABI_V4 AltiVec when
4285 not AltiVec ABI.
4286 (rs6000_va_arg): Correct fp arg test. Adjust for AltiVec change.
4287 Correct alignment, and align before testing reg count. Remove
4288 TREE_THIS_VOLATILE from reg. Don't emit unused labels.
4289 (rs6000_complex_function_value): Check TARGET_HARD_FLOAT and
4290 TARGET_FPRS here..
4291 (rs6000_function_value): .. not here before call.
4292
4293 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
4294
4295 * config/rs6000/spe.md ("tstsflt_gpr"): Fix typo in unspec.
4296
4297 2004-05-09 Zack Weinberg <zack@codesourcery.com>
4298
4299 PR 15007
4300 * c-decl.c (current_file_decl): Rename to all_translation_units,
4301 adjust comment.
4302 (pop_scope): If popping file_scope, construct a
4303 TRANSLATION_UNIT_DECL and make it the context of all the
4304 symbols in the scope.
4305 (push_file_scope): Don't construct a TRANSLATION_UNIT_DECL here.
4306 (pushdecl): Clarify comment. Do not set DECL_CONTEXT of
4307 anything to current_file_decl.
4308 (pushdecl_top_level): Likewise.
4309 (store_parm_decls_newstyle): Adjust check for nested function.
4310 (c_write_global_declarations): Update for renamed variable.
4311
4312 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
4313
4314 * config/rs6000/rs6000-protos.h
4315 (rs6000_conditional_register_usage): Protoize.
4316
4317 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): New.
4318
4319 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Call
4320 function.
4321
4322 2004-05-08 Roger Sayle <roger@eyesopen.com>
4323
4324 * fold-const.c (fold_div_compare): New function to optimize X/C1 op C2
4325 where op is a comparison operator and C1 and C2 are integer constants
4326 into a range check.
4327 (fold): Call fold_div_compare.
4328
4329 2004-05-08 Eric Botcazou <ebotcazou@libertysurf.fr>
4330
4331 * doc/install.texi (sparc-sun-solaris2*): Document bootstrap
4332 problems with earlier versions of the GNU compiler.
4333
4334 2004-05-07 Aldy Hernandez <aldyh@redhat.com>
4335
4336 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
4337 Declare.
4338
4339 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): New.
4340 (rs6000_hard_regno_mode_ok): New.
4341 (rs6000_init_hard_regno_mode_ok): New.
4342 (rs6000_override_options): Call rs6000_init_hard_regno_mode_ok.
4343
4344 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Use precomputed
4345 result.
4346
4347 2004-05-07 Ziemowit Laski <zlaski@apple.com>
4348
4349 * config/rs6000/altivec.h (vector, pixel, bool): Do not
4350 define as macros #ifdef __APPLE_ALTIVEC__.
4351
4352 2004-05-07 Fariborz Jahanian <fjahanian@apple.com>
4353
4354 * config/rs6000/rs6000.c (rs6000_mixed_function_arg):
4355 Generate appropriate parallels for vector arguments
4356 passed to vararg functions. (function_arg): make the call
4357 to rs6000_mixed_function_arg for vector args as needed.
4358
4359 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
4360
4361 * config/mips/mips.c (mips_va_arg): Fix calculation of osize for
4362 EABI_FLOAT_VARARGS_P.
4363
4364 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
4365
4366 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY): Remove TARGET_MIPS5500.
4367 * config/mips/mips.c (override_options): Disable branch likely
4368 instructions if TUNE_MIPS5500.
4369
4370 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
4371
4372 * config/mips/mips.c (override_options): Allow the hi and lo registers
4373 to store any integral mode, not just MODE_INTs.
4374
4375 2004-05-07 Paul Brook <paul@codesourcery.com>
4376
4377 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
4378 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
4379 (TARGET_DOUBLEWORD_ALIGN): Use it.
4380 (WCHAR_TYPE): Define.
4381 (WCHAR_SIZE_TYPE): Define.
4382 (SIZE_TYPE): Define.
4383
4384 2004-05-07 Uros Bizjak <uros@kss-loka.si>
4385
4386 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Use
4387 testb $4, %ah insn instead of sahf insn if !TARGET_USE_SAHF.
4388
4389 2004-05-07 Andrew Pinski <pinskia@physics.uc.edu>
4390
4391 * loop-doloop.c (doloop_valid_p): Make sure that body
4392 gets freed.
4393
4394 2004-05-07 Eric Botcazou <ebotcazou@act-europe.fr>
4395
4396 * config/sparc/sparc-protos.h (sparc_skip_caller_unimp): New
4397 declaration.
4398 * config/sparc/sparc.c (SKIP_CALLERS_UNIMP_P): Delete.
4399 (sparc_skip_caller_unimp): New global variable.
4400 (sparc_function_epilogue): Set 'sparc_skip_caller_unimp'.
4401 Use it instead of SKIP_CALLERS_UNIMP_P.
4402 * config/sparc/sparc.md (call expander): Add sanity check.
4403 (call_address_struct_value_sp32): Re-sync with expander.
4404 (call_symbolic_struct_value_sp32): Likewise.
4405 (return peepholes): Use 'sparc_skip_caller_unimp' instead
4406 of custom predicate.
4407
4408 2004-05-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4409
4410 PR c++/14962
4411 * c-pragma.c (handle_pragma_redefine_extname): Only change
4412 the assembler name of FUNCTION_DECLs and VAR_DECLs.
4413
4414 2004-05-07 Uros Bizjak <uros@kss-loka.si>
4415
4416 * optabs.h (enum optab_index): Add new OTI_log1p.
4417 (log1p_optab): Define corresponding macro.
4418 * optabs.c (init_optabs): Initialize log1p_optab.
4419 * genopinit.c (optabs): Implement log1p_optab using log1p?f2
4420 patterns.
4421 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG1P{,F,L}
4422 using log1p_optab.
4423 (expand_builtin): Expand BUILT_IN_LOG1P{,F,L} using
4424 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
4425
4426 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2XP1.
4427
4428 * config/i386/i386.c (ix86_emit_i387_log1p): New function.
4429 * config/i386/i386-protos.h (ix86_emit_i387_log1p):
4430 Prototype here.
4431 * config/i386/i386.md (UNSPEC_FYL2XP1): New unspec to represent
4432 x87's fyl2xp1 instruction.
4433 (*fyl2x_xf3): Rename insn definition to fyl2x_xf3.
4434 (fyl2xp1_xf3): New pattern to implement fyl2xp1 x87 instruction.
4435 (log1psf2, log1pdf2, log1pxf2): New expanders to implement log1pf,
4436 log1p and log1pl built-ins as inline x87 intrinsics.
4437
4438 2004-05-07 Loren James Rittle <ljrittle@acm.org>
4439
4440 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Proper redefinition.
4441 * config/arm/freebsd.h: Likewise.
4442 * config/ia64/freebsd.h: Likewise.
4443 * config/sparc/freebsd.h: Likewise.
4444
4445 2004-05-07 Hans-Peter Nilsson <hp@axis.com>
4446
4447 PR optimization/15296
4448 * reorg.c (fill_simple_delay_slots): Use next_real_insn when
4449 getting last consecutive label at a branch.
4450 (relax_delay_slots): Similar, near top of loop.
4451
4452 2004-05-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4453
4454 PR target/15202
4455 * pa.md (movdi, movsi, movhi, movqi): Support move from shift amount
4456 register to general register.
4457
4458 2004-05-07 Alan Modra <amodra@bigpond.net.au>
4459
4460 * config/rs6000/rs6000.h (STACK_BOUNDARY): Use 128 bit for either
4461 TARGET_ALTIVEC or TARGET_ALTIVEC_ABI.
4462 * config/rs6000/sysv4.h (ABI_STACK_BOUNDARY): Likewise.
4463 (STACK_BOUNDARY): Delete.
4464
4465 2004-05-06 Stuart Hastings <stuart@apple.com>
4466
4467 * gcc/doc/invoke.texi: Restore -fgcse-after-reload doc from 1.421,
4468 mistakenly clobbered by 1.423.
4469
4470 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
4471
4472 * doc/invoke.texi: Document -mvr4130-align.
4473 * config/mips/mips.h (MASK_VR4130_ALIGN, TARGET_VR4130_ALIGN)
4474 (TUNE_MIPS4120, TUNE_MIPS4130): New macros.
4475 (TUNE_MACC_CHAINS): Include TUNE_MIPS4120 and TUNE_MIPS4130.
4476 (TARGET_SWITCHES): Add -mvr4130-align and -mno-vr4130-align.
4477 * config/mips/mips.md: Include sched-int.h.
4478 (USEFUL_INSN_P, SEQ_BEGIN, SEQ_END, FOR_EACH_SUBINSN): New macros.
4479 (mips_rtx_costs): Set integer multiplication costs for TUNE_MIPS4130.
4480 (override_options): Enable -mvr4130-align at -O3 and above.
4481 (mips_sim_insn): New variable.
4482 (mips_sim): New structure.
4483 (mips_sim_reset, mips_sim_init, mips_sim_next_cycle, mips_sim_wait_reg)
4484 (mips_sim_wait_regs_2, mips_sim_wait_regs_1, mips_sim_wait_regs)
4485 (mips_sim_wait_units, mips_sim_wait_insn, mips_sim_record_set)
4486 (mips_sim_issue_insn, mips_sim_issue_nop, mips_sim_finish_insn)
4487 (vr4130_avoid_branch_rt_conflict, vr4130_align_insns): New functions.
4488 (mips_reorg): Call vr4130_align_insns.
4489 (vr4130_last_insn): New variable.
4490 (vr4130_true_reg_dependence_p_1, vr4130_true_reg_dependence_p)
4491 (vr4130_swap_insns_p, vr4130_reorder): New functions.
4492 (mips_sched_reorder, mips_variable_issue): Hook in vr4130 code.
4493 (mips_issue_rate): Return 2 for PROCESSOR_R4130.
4494 (mips_use_dfa_pipeline_interface): Return true for the same.
4495 * config/mips/4130.md: New file.
4496 * config/mips/mips.md: Include it. Add a peephole2 to convert
4497 "mult;mflo" into "mtlo;macc".
4498 (*macc, *umul_acc_di, *smul_acc_di): Use $1 rather than $0 as the
4499 target of maccs.
4500 (*msac_using_macc): New pattern.
4501
4502 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
4503
4504 * config/mips/5500.md (ir_vr55_store): Set latency to 0.
4505 (ir_vr55_hilo): Split into...
4506 (ir_vr55_mfhilo, ir_vr55_mthilo): ...these new reservations.
4507 (ir_vr55_imul_si, ir_vr55_imadd): Change latency to 5.
4508 (ir_vr55_imul_di): Change latency to 9. Reserve vr55_mac for 4 cycles.
4509 Add various multiplication bypasses.
4510 * config/mips/mips.c (mips_rtx_costs): Adjust VR5500 costs for integer
4511 multiplication.
4512
4513 2004-05-06 Uros Bizjak <uros@kss-loka.si>
4514
4515 * config/i386/i386.md (*fscalexf4): Correct insn "mode"
4516 attribute to "XF".
4517
4518 2004-05-05 Uros Bizjak <uros@kss-loka.si>
4519
4520 * optabs.h (enum optab_index): Add new OTI_fmod and OTI_drem.
4521 (fmod_optab, drem_optab): Define corresponding macros.
4522 * optabs.c (init_optabs): Initialize fmod_optab and drem_optab.
4523 * genopinit.c (optabs): Implement fmod_optab and drem_optab
4524 using fmod?f3 and drem?f3 patterns.
4525 * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_FMOD{,F,L}
4526 using fmod_optab and BUILT_IN_DREM{,F,L} using drem_optab.
4527 (expand_builtin): Expand BUILT_IN_FMOD{,F,L} and
4528 BUILT_IN_DREM{,F,L} using expand_builtin_mathfn_2 if
4529 flag_unsafe_math_optimizations is set.
4530
4531 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FPREM_F,
4532 UNSPEC_FPREM_U, UNSPEC_FPREM1_F and UNSPEC_FPREM1_U.
4533
4534 * config/i386/i386.c (ix86_emit_fp_unordered_jump): New function.
4535 * config/i386/i386-protos.h (ix86_emit_fp_unordered_jump):
4536 Prototype here.
4537 * config/i386/i386.md (UNSPEC_FPREM_F, UNSPEC_FPREM_U,
4538 UNSPEC_FPREM1_F, UNSPEC_FPREM1_U): New unspecs to represent x87's
4539 fprem and fprem1 instructions.
4540 (*x86_fnstsw_1): Change input parameter to (reg:CCFP 18).
4541 Rename insn definition to x86_fnstsw_1.
4542 (fpremxf4, fprem1xf4): New patterns to implement fprem and fprem1
4543 x87 instructions.
4544 (fmodsf3, fmoddf3, fmodxf3): New expanders to implement fmodf, fmod
4545 and fmodl built-ins as inline x87 intrinsics.
4546 (dremsf3, dremdf3, dremxf3): New expanders to implement dremf, drem
4547 and dreml built-ins as inline x87 intrinsics.
4548
4549 2004-05-05 Roger Sayle <roger@eyesopen.com>
4550
4551 * reload1.c (inherit_piecemeal_p): Mark parameters potentially unused.
4552
4553 2004-05-05 Ian Lance Taylor <ian@wasabisystems.com>
4554
4555 PR driver/9822
4556 * doc/invoke.texi (Spec Files): Remove documentation of %c.
4557
4558 2004-05-05 Chris Demetriou <cgd@broadcom.com>
4559
4560 * config/mips/mips.md: Update the msub define_split for new mflo/mfhi
4561 representation.
4562
4563 2004-05-06 Paul Brook <paul@codesourcery.com>
4564
4565 * config/arm/arm-protots.h (vfp_mem_operand): Rename ...
4566 (arm_coproc_mem_operand): ... To this.
4567 * config/arm/arm.c (arm_legitimate_address_p): Allow ldrd modes.
4568 (arm_legitimate_index_p): Ditto.
4569 (vfp_mem_operand): Rename ...
4570 (arm_coproc_mem_operand): ... To this. Handle writeback modes.
4571 (vfp_secondary_reload_class): Use it.
4572 (output_move_double): Use doubleword load/store instructions.
4573 (arm_hard_regno_mode_ok): Only allow even reg pairs for ldrd.
4574 * config/arm/arm.h (TARGET_LDRD): Define.
4575 (EXTRA_CONSTRAINT_STR_ARM): Add 'Uy'.
4576 * config/gcc/arm/arm.md (arm_movdi): Allow all valid memory operands.
4577 New splitter for invalid doubleword loads.
4578 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Use Uy constraint.
4579 * config/arm/vfp.md (arm_movdi_vfp): Allow all valid memory operands.
4580 * doc/md.texi: Document Uy constraint.
4581
4582 2004-05-05 Jan Hubicka <jh@suse.cz>
4583
4584 PR opt/14980
4585 * cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
4586 inline clones.
4587
4588 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
4589
4590 PR target/15290
4591 * config/i386/i386.c (ix86_split_to_parts): Use real_to_target
4592 instead of REAL_VALUE_TO_TARGET_LONG_DOUBLE.
4593
4594 2004-05-05 Mike Stump <mrs@apple.com>
4595
4596 * config/darwin-c.c (add_framework): Copy the directory name as it
4597 can be freed later. Also, ensure we always allocate enough room
4598 for the cached framework information.
4599 (find_subframework_header): Keep track of the directory where the
4600 subframework header was found.
4601 (framework_construct_pathname): Speed up by not trying to re-add a
4602 framework.
4603 * cppfiles.c (search_path_exhausted): Arrange for the missing
4604 header callback to be able to set the directory where the header
4605 was found.
4606 (cpp_get_dir): Add.
4607 * cpplib.h (missing_header_cb): Add a parameter.
4608 (cpp_get_dir): Add.
4609
4610 2004-05-03 Mike Stump <mrs@apple.com>
4611
4612 * doc/invoke.texi (Directory Options): Document -iquote.
4613 * doc/cpp.texi: Likewise.
4614 * doc/cppopts.texi: Likewise.
4615 * c-opts.c (c_common_missing_argument): Add -iquote processing.
4616 (c_common_handle_option): Likewise.
4617 * c.opt (iquote): Add.
4618 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -iquote.
4619 * c-incpath.c (merge_include_chains): Update comment to use -iquote.
4620
4621 * c-opts.c (case OPT_I): Deprecate -I- support.
4622 * doc/invoke.texi: Likewise.
4623 * doc/cpp.texi: Likewise.
4624 * doc/cppopts.texi: Likewise.
4625
4626 2004-05-05 Steven Bosscher <stevenb@suse.de>
4627
4628 * basic-block.h (free_basic_block_vars): Update prototype.
4629 * flow.c (free_basic_block_vars): Remove the keep_head_end_p
4630 argument.
4631 (life_analysis): Update call.
4632 * ifcvt.c (if_convert): Likewise.
4633 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
4634 * passes.c (rest_of_handle_final): Likewise.
4635 (rest_of_compilation): Likewise.
4636 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4637
4638 * emit-rtl.c (next_real_insn): Use INSN_P.
4639 (prev_real_insn): Likewise.
4640
4641 2004-05-05 Eric Christopher <echristo@redhat.com>
4642
4643 * config/mips/mips.md: Update the madd define_split for new mflo/mfhi
4644 representation.
4645
4646 2004-05-05 Paolo Bonzini <bonzini@gnu.org>
4647
4648 * config/rs6000/rs6000.c (build_opaque_vector_type):
4649 New function.
4650 (rs6000_init_builtins): Use it.
4651
4652 2004-05-04 Bernard Giroud <bgiroud2@free.fr>
4653
4654 * gcc/gcc/vmsdbgout.c (vms_func_node, vms_func_ref): New.
4655 (func_table): Change type from char ** to vms_func_ref.
4656 (write_rtnbeg): Update to reflect func_table change. Use
4657 fde->funcdef_number instead of rtnnum in output.
4658 (write_rtnend, vmxdbgout_begin_function, vmsdbgout_init): Likewise.
4659
4660 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
4661 Richard Henderson <rth@redhat.com>
4662
4663 PR target/14899
4664
4665 * c-common.c (vector_types_convertible_p): New function.
4666 * c-typeck.c (comptypes): Recurse on vector types.
4667 (convert_for_assignment): Use vector_types_convertible_p.
4668 (digest_init): Use vector_types_convertible_p to check
4669 validness of constant vector initializers; otherwise treat
4670 them as scalars.
4671 * tree.c (make_or_reuse_type): New.
4672 (build_common_tree_nodes): Use it.
4673 * cp/call.c (standard_conversion): Likewise.
4674 * cp/typeck.c (comptypes): Recurse on vector types.
4675 (convert_for_assignment): Use vector_types_convertible_p.
4676
4677 2004-05-04 Chris Demetriou <cgd@broadcom.com>
4678
4679 * config/mips/mips.c (override_options): Default to no
4680 generation of branch-likely operations when tuning for
4681 CPUs where they tend to have a negative performance impact
4682 (e.g., SB-1).
4683
4684 2004-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4685
4686 * expr.c (store_constructor_field): Don't call store_constructor
4687 if bitsize is not a multiple of a byte.
4688
4689 2004-05-04 Richard Sandiford <rsandifo@redhat.com>
4690
4691 * reload1.c (inherit_piecemeal_p): New function.
4692 (emit_reload_insns): When reloading a group of hard registers, use
4693 inherit_piecemeal_p to decide whether the values of individual hard
4694 registers can be inherited.
4695
4696 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
4697
4698 * config/ia64/t-ia64 (LIB2ADDEH): Remove gthr-gnat.c.
4699 * config/s390/t-tpf (LIB2ADDEHDEP): Likewise.
4700 * config/t-linux (LIB2ADDEHDEP): Likewise.
4701
4702 2004-05-04 Paul Brook <paul@codesourcery.com>
4703
4704 * config/arm/crti.asm: Push an even number of registers.
4705 * config/arm/crtn.asm: And restore them. Load via sp.
4706
4707 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
4708
4709 * ggc-zone.c (ggc_alloc_zone_1): Add MEM_STAT_DECL parameter.
4710 Collect overhead information.
4711 (ggc_alloc_stat): New name of ggc_alloc. Add MEM_STAT_DECL
4712 parameter and pass it through.
4713 (ggc_alloc_typed_stat): New name of ggc_alloc_typed. Add
4714 MEM_STAT_DECL parameter and pass it through.
4715 (ggc_alloc_zone_stat): New name of ggc_alloc_zone. Add
4716 MEM_STAT_DECL parameter and pass it through.
4717
4718 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
4719
4720 * config/rs6000/rs6000-protos.h: Protoize rs6000_hard_regno_nregs.
4721
4722 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): New.
4723
4724 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Call
4725 rs6000_hard_regno_nregs.
4726
4727 2004-05-03 Eric Christopher <echristo@redhat.com>
4728
4729 * config/s390/s390.c (s390_emit_prologue): Call unspec tpf
4730 prologue insn instead of setting up call.
4731 (s390_emit_epilogue): Ditto.
4732 * config/s390/s390.md (prologue_tpf, epilogue_tpf): New patterns.
4733 (define_constants): Add numbers for above patterns.
4734
4735 2004-05-03 Eric Christopher <echristo@redhat.com>
4736
4737 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Move body...
4738 * config/s390/s390.c (s390_conditional_register_usage): ...here.
4739 * config/s390/s390-protos.h: Prototype.
4740
4741 2004-05-03 Joe Buck <jbuck@welsh-buck.org>
4742
4743 * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
4744 assignment.
4745
4746 2004-05-03 Eric Christopher <echristo@redhat.com>
4747
4748 * config/mips/mips.md: Fix branch length attribute definition.
4749
4750 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
4751
4752 * config.gcc: Remove --enable-altivec support.
4753
4754 * config/rs6000/altivec-defs.h: Remove.
4755
4756 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4757
4758 * fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6.
4759 * fixinc/fixincl.x: Regenerate.
4760
4761 2004-05-03 Uros Bizjak <uros@kss-loka.si>
4762
4763 * config/i386/i386.md (*fyl2x_sfxf3, *fyl2x_dfxf3): Remove insn
4764 definition.
4765 (log?f2, log10?f2, log2?f2): Reimplement expanders with
4766 float_truncate insn.
4767 (*fxtractsf3, *fxtractdf3): Remove insn definition.
4768 (logb?f2): Reimplement expanders with float_truncate insn.
4769
4770 2004-05-03 Graham Stott <graham.stott@btinternet.com>
4771
4772 PR 14718
4773 * dwarf2out.c (dwarf2out_imported_module_or_decl): Use
4774 force_type_die for CONST_DECL.
4775
4776 2004-05-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4777 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4778
4779 * config.gcc (sparc64-*-solaris2*, sparcv9-*-solaris2*): Add
4780 tm-dwarf2.h to tm_file.
4781 (sparc-*-solaris2*): Add tm-dwarf2.h to tm_file for Solaris 7+.
4782 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Delete.
4783 (ASM_DEBUG_SPEC): Delete.
4784
4785 2004-05-03 Uros Bizjak <uros@kss-loka.si>
4786
4787 * optabs.h (enum optab_index): Add new OTI_expm1.
4788 (expm1_optab): Define corresponding macro.
4789 * optabs.c (init_optabs): Initialize expm1_optab.
4790 * genopinit.c (optabs): Implement expm1_optab using expm1?f2
4791 patterns.
4792 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
4793 using expm1_optab.
4794 (expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
4795 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
4796
4797 * config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
4798 to implement expm1, expm1f and expm1l built-ins as inline x87
4799 intrinsics.
4800
4801 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
4802
4803 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
4804 * config/frv/frv.md (*return_true, *return_false): New patterns.
4805
4806 2004-05-02 Kazu Hirata <kazu@cs.umass.edu>
4807
4808 * rtl.h (PHI_NODE_P): Remove.
4809
4810 2004-05-02 Eric Botcazou <ebotcazou@act-europe.fr>
4811
4812 PR middle-end/14988
4813 * function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
4814 when passed -2 as 'align'.
4815 (put_var_into_stack): Use 'bool' as the type for the three local
4816 predicates. Adjust calls to put_reg_into_stack.
4817 When passed a CONCAT, instruct put_reg_into_stack to use
4818 a consecutive stack slot for the second part.
4819 (put_reg_into_stack): Remove 'promoted_mode' parameter, add
4820 'consecutive_p' parameter. Turn the three predicates into 'bool'
4821 parameters. Retrieve the register mode from 'reg'.
4822 When consecutive_p is true, instruct assign_stack_local_1 to use
4823 BITS_PER_UNIT alignment.
4824 (put_addressof_into_stack): Use 'bool' as the type for the two
4825 local predicates. Adjust call to put_reg_into_stack.
4826
4827 2004-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4828
4829 * fold-const.c (fold_convert_const, fold): Add missing
4830 FIX_ROUND_EXPR case.
4831
4832 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
4833
4834 * configure.ac (FLEX, BISON): Only use tools from the build tree
4835 if build equals host.
4836 * configure: Rebuilt.
4837
4838 * config/frv/frv-protos.h (frv_expand_epilogue,
4839 frv_expand_fdpic_call): Add bool argument.
4840 * config/frv/frv.c (frv_function_ok_for_sibcall): New.
4841 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to it.
4842 (frv_expand_epilogue): Use new argument to decide whether to emit
4843 return instruction or copy the return address to LR.
4844 (frv_expand_fdpic_call): Inline PLT entry when emitting direct
4845 sibcalls.
4846 (sibcall_operand): New.
4847 * config/frv/frv.h (PREDICATE_CODES): call_operand doesn't match
4848 PLUS nor LABEL_REF. Add sibcall_operand.
4849 * config/frv/frv.md (call, call_value): Pass false to
4850 frv_expand_fdpic_call.
4851 (call_fdpicdi, call_value_fdpicdi): Insert %i0 in calll.
4852 (sibcall, sibcall_internal, sibcall_fdpicdi, sibcall_value,
4853 sibcall_value_internal, sibcall_value_fdpicdi): New.
4854 (return_unsigned_true, return_unsigned_false): New.
4855 (epilogue): Adjust call to frv_expand_epilogue.
4856 (sibcall_epilogue): New.
4857
4858 * config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
4859 (CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
4860 before redefining them.
4861
4862 2004-05-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4863
4864 * builtins.c (fold_fixed_mathfn): New function.
4865 (fold_builtin_lround, fold_builtin): Use it.
4866
4867 2004-05-01 Jakub Jelinek <jakub@redhat.com>
4868
4869 * config/sparc/linux64.h (TARGET_DEFAULT): Make 64-bit by default
4870 also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.
4871
4872 2004-05-01 Kazu Hirata <kazu@cs.umass.edu>
4873
4874 * config/cris/cris.h: Revert my "fix comment typos" patch.
4875
4876 2004-05-01 Richard Sandiford <rsandifo@redhat.com>
4877
4878 * config/mips/mips.h (TUNE_MACC_CHAINS): Fix comment.
4879
4880 2004-05-01 Falk Hueffner <falk@debian.org>
4881
4882 * config/alpha/alpha.md (builtin_insbl, builtin_inswl,
4883 builtin_insll): Disallow 0 as first input operand.
4884
4885 2004-05-01 Falk Hueffner <falk@debian.org>
4886
4887 * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
4888
4889 2004-05-01 Ulrich Weigand <uweigand@de.ibm.com>
4890
4891 PR middle-end/15054
4892 * expr.c (expand_expr_real): Do not call preserve_temp_slots
4893 on a TARGET_EXPR temp.
4894 * function.c (assign_stack_temp_for_type): Set 'keep' flag for
4895 TARGET_EXPR temp slots.
4896
4897 2004-05-01 Paolo Bonzini <bonzini@gnu.org>
4898
4899 * simplify-rtx.c (simplify_ternary_operation): When
4900 converting an IF_THEN_ELSE to a relational op, return
4901 correct mode.
4902
4903 2004-04-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4904
4905 * builtins.c (fold_builtin_round): Fix comment typo.
4906 (fold_builtin_lround): New function.
4907 (fold_builtin): Use it.
4908
4909 2004-04-20 Andrew Pinski <pinskia@physics.uc.edu>
4910
4911 PR target/11608
4912 * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it
4913 more like the one in config/dbxelf.h.
4914
4915 2004-04-30 Zack Weinberg <zack@codesourcery.com>
4916
4917 * tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
4918 and adjust definition accordingly.
4919 (TYPE_DOMAIN): Allow only SET_TYPE and ARRAY_TYPE.
4920 (TYPE_DEBUG_REPRESENTATION_TYPE): Allow only VECTOR_TYPE.
4921 * expr.c (store_constructor): Do not access TYPE_DOMAIN of a
4922 VECTOR_TYPE.
4923
4924 2004-04-30 Jason Merrill <jason@redhat.com>
4925
4926 PR c++/14587
4927 * config/i386/winnt.c (associated_type): Look for attributes on
4928 the TYPE_MAIN_VARIANT of *this.
4929 * attribs.c (decl_attributes): If ATTR_FLAG_TYPE_IN_PLACE, also
4930 apply the attributes to the variants.
4931
4932 2004-04-30 Paul Brook <paul@codesourcery.com>
4933
4934 * config.gcc: Simplify arm --with-{cpu,tune} test.
4935 * config/arm/arm-cores.def: Document whitespace restrictions.
4936
4937 2004-04-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4938
4939 PR other/1963
4940 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Define.
4941
4942 2004-04-30 Brian Ford <ford@vss.fsi.com>
4943 DJ Delorie <dj@redhat.com>
4944
4945 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
4946 (DWARF2_DEBUGGING_INFO): Define to enable.
4947 (DBX_REGISTER_NUMBER): Define to use the svr4 register map for
4948 DWARF2.
4949 * configure.ac (Target-specific assembler checks)
4950 <i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
4951 relocs.
4952 * configure: Regenerate.
4953 * config.in: Likewise.
4954
4955 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
4956 (ASM_OUPUT_DWARF_OFFSET): Define.
4957
4958 2004-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
4959
4960 * config/s390/s390-protos.h (s390_emit_epilogue): Parameter added.
4961 (s390_emit_call): New function prototype added.
4962 (s390_tls_get_offset): Function removed.
4963 * config/s390/s390.c (s390_function_ok_for_sibcall,
4964 s390_call_saved_register_used_p): New functions.
4965 (TARGET_FUNCTION_OK_FOR_SIBCALL): Definition of target macro added.
4966 (s390_tls_get_offset): Function merged into s390_emit_tls_call_insn.
4967 (s390_emit_tls_call_insn): New function.
4968 (legitimize_tls_address): Call s390_emit_tls_call_insn instead of
4969 emit_call_insn.
4970 (s390_emit_prologue): Use s390_emit_call instead of emit_call_insn.
4971 (s390_emit_epilogue): Like s390_emit_prologue. Parameter for sibcalls
4972 added.
4973 * config/s390/s390.h (SIBCALL_REGNUM): New macro representing the
4974 register number used to hold the target address for sibcalls.
4975 * config/s390/s390.md ("sibcall", "sibcall_value", "sibcall_epilogue"):
4976 New expanders.
4977 ("*sibcall_br", "*sibcall_brc", "*sibcall_brcl", "*sibcall_value_br",
4978 "*sibcall_value_brc", "*sibcall_value_brcl"): New insns.
4979 ("call_exp", "call_value_exp", "call_value_tls", "call_value_tls_exp"):
4980 Expanders removed.
4981 ("call", "call_value"): Call s390_emit_call to emit the call patterns.
4982 ("*bras", "*brasl", "*bras_r", "*brasl_r", "*bras_tls", "*brasl_tls",
4983 "*basr", "*basr_r", "*basr_tls"): Added constraint: !SIBLING_CALL_P.
4984 ("epilogue"): Changed the call to s390_emit_epilogue to use the
4985 new parameter.
4986
4987 2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
4988
4989 * bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,
4990 cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c,
4991 reg-stack.c, varasm.c, config/alpha/ev4.md,
4992 config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c,
4993 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c,
4994 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
4995 config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c,
4996 config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c,
4997 config/ia64/itanium2.md, config/ip2k/ip2k.c,
4998 config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md,
4999 config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix
5000 comment typos.
5001
5002 2004-04-30 Paul Brook <paul@codesourcery.com>
5003
5004 * config.gcc: Default ep9312 to hard-float.
5005 * config/arm/arm-cores.def: Add ARCH field.
5006 * config/arm/arm.c (FL_FOR_ARCH*): Define.
5007 (arm_arch_cirrus): New variable.
5008 (all_cores): Set and use arch.
5009 (all_architectures): Ditto.
5010 (arm_arch_name): New variable.
5011 (arm_override_options): Set it. Use [SUB]TARGET_CPU_DEFAULT.
5012 Set and use arm_arch_cirrus.
5013 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set arch defines.
5014 (enum processor_type): Update ARM_CORE define.
5015 (enum target_cpus): Add. Replaces TARGET_CPU_* defines.
5016 (CPP_SPEC): Remove %(cpp_cpu_arch).
5017 (CPP_ARCH_DEFAULT_SPEC): Remove.
5018 (CPP_CPU_ARCH_SPEC): Remove.
5019 (EXTRA_SPECS): Don't use CPP_*ARCH*_SPEC.
5020 (FPUTYPE_DEFAULT): Don't define here.
5021
5022 2004-04-30 J"orn Rennecke <joern.rennecke@superh.com>
5023
5024 * flow.c (propagate_one_insn): Call mark_set_regs for stack pointer
5025 updates too.
5026
5027 2004-04-30 Paul Brook <paul@codesourcery.com>
5028
5029 * arm.c (arm_needs_doubleword_align): Use mode alignment.
5030
5031 2004-04-30 Paolo Bonzini <bonzini@gnu.org>
5032
5033 * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
5034 vec_sububs.
5035 [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
5036 duplicates.
5037
5038 2004-04-30 Uros Bizjak <uros@kss-loka.si>
5039
5040 * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
5041 atan2?f3 expanders.
5042
5043 2004-04-29 Nick Clifton <nickc@redhat.com>
5044
5045 Bug 14093
5046 * config/sh/sh-protos.h (sh_promote_prototypes): Declare.
5047 * config/sh/sh.c (sh_promote_prototypes): Remove declaration.
5048 Delete static from definition.
5049 * config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.
5050
5051 2004-04-30 Uros Bizjak <uros@kss-loka.si>
5052
5053 * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
5054 UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
5055 <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
5056 <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
5057
5058 2004-04-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
5059
5060 * commom.opt (Wfatal-errors): Add it.
5061 * diagnostic.c (flag_fatal_errors): Define it.
5062 (diagnostic_action_after_output): Check for flag_fatal_errors.
5063 * flags.h (flag_fatal_errors): Declare it.
5064 * opts.c (common_handle_option): Add OPT_Wfatal_errors.
5065 * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
5066
5067 2004-04-30 Josef Zlomek <zlomekj@suse.cz>
5068
5069 * gcse.c (remove_reachable_equiv_notes): Delete notes also in
5070 blocks which have kill flag set.
5071
5072 2004-04-29 Ben Elliston <bje@au.ibm.com>
5073
5074 * configure.ac (--with-as): Abort if user-supplied assembler
5075 cannot be executed.
5076 (--with-ld): Likewise for the linker.
5077 * configure: Regenerate.
5078
5079 2004-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5080
5081 * convert.c (convert_to_integer): Ensure `long_integer_type_node'
5082 isn't NULL before using it.
5083
5084 2004-04-29 Richard Sandiford <rsandifo@redhat.com>
5085
5086 PR target/15189
5087 * config/mips/mips.md (load_df_low): Use default length.
5088 (load_df_high, store_df_high): Likewise.
5089
5090 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
5091
5092 * config/mips/mips.md, config/mips/sb1.md,
5093 config/rs6000/rs6000.c: Fix comment typos.
5094
5095 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
5096
5097 * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
5098 Fix comment typos.
5099
5100 2004-04-29 Douglas B Rupp <rupp@gnat.com>
5101
5102 * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
5103 (delete_if_ordinary): Use above macro.
5104 * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
5105 Update copyright.
5106 * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
5107
5108 2004-04-29 Richard Earnshaw <rearnsha@arm.com>
5109
5110 * c-decl.c (get_parm_info): Use the correct tag keywords when
5111 warning about type declarations in prototypes.
5112
5113 2004-04-29 Paul Brook <paul@codesourcery.com>
5114
5115 * config.gcc: Pull list of cores from arm-cores.def.
5116
5117 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
5118
5119 * combine.c (combine_simplify_rtx): Adjust call to use
5120 simplify_relational_operation. Do not use SELECT_CC_MODE
5121 when a comparison already has a MODE_CC mode.
5122
5123 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
5124
5125 (simplify_set): simplify_relational_operation may now
5126 return another relational expression.
5127 * cse.c (fold_rtx): simplify_relational_operation now
5128 takes of computing the comparison mode.
5129 * dojump.c (compare_from_rtx): Use simplify_relational_operation,
5130 remove dead code.
5131 (do_compare_rtx_and_jump): Likewise.
5132 * integrate.c (subst_constants): simplify_relational_operation
5133 may now return another relational expression.
5134 * simplify-rtx.c (simplify_gen_relational): Move most code to
5135 the new simplify_relational_operation and
5136 simplify_relational_operation_1 functions.
5137 (simplify_relational_operation): Rewritten.
5138 (simplify_relational_operation_1): New function.
5139 (simplify_ternary_operation): simplify_relational_operation
5140 may now return another relational expression.
5141 (simplify_rtx): Remove unnecessary temp variable.
5142
5143 2004-04-29 Uros Bizjak <uros@kss-loka.si>
5144
5145 * reg-stack.c (swap_to_top): New function.
5146 (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
5147 swap_to_top().
5148 (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
5149 (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
5150 UNSPEC_FSCALE_EXP.
5151
5152 * config/i386/i386.md (UNSPEC_FSCALE): Remove.
5153 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
5154 (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
5155 x87's fscale insn.
5156 (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
5157 (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
5158 patterns.
5159
5160 2004-04-28 Serge Belyshev <1319@bot.ru>
5161
5162 PR 14944
5163 * coverage.c (read_counts_file): Fix usage of warning () call.
5164 * pretty-print.c (pp_base_format_text): Fix typo in the comment.
5165
5166 2004-04-28 Ben Elliston <bje@au.ibm.com>
5167
5168 * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
5169 options with "-" in the option index.
5170 (SPARC Options): Likewise.
5171 (M32R/D Options): Likewise.
5172
5173 2004-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5174
5175 * convert.c (convert_to_integer): Convert (long)round -> lround,
5176 etc.
5177
5178 2004-04-28 Andrew Pinski <pinskia@physics.uc.edu>
5179
5180 * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
5181 Return false if we do not have fp register.
5182 (addrs_ok_for_quad_peep): Rename to ...
5183 (mems_ok_for_quad_peep): this.
5184 Add check for volatile memory.
5185 * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
5186 Rename to ...
5187 (mems_ok_for_quad_peep): this.
5188 * config/rs6000/rs6000.md: Change peephole's for lfq/stq
5189 to peephole2's.
5190 (lfq_power2): New instruction.
5191 (stfq_power2): Likewise.
5192
5193 2004-04-28 Jan Hubicka <jh@suse.cz>
5194
5195 PR c/15004
5196 * function.c (do_warn_unused_parameter): Break out form ...
5197 (expand_function_end): ... here; warn only when not using cgraphunit.
5198 * function.h (do_warn_unused_parameter): Declare.
5199 * cgraphunit.c: Include function.h.
5200 (cgraph_finalize_function): Do unused parameter warning.
5201 * Makefile.in (cgraphunit.o): Depend on function.h
5202
5203 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
5204
5205 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
5206 calling install-info on $(DESTDIR)$(infodir)/dir already being
5207 present.
5208
5209 2004-04-28 Paul Brook <paul@codesourcery.com>
5210
5211 * dwarf2out.c (mem_loc_descriptor): Handle shifts.
5212
5213 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5214
5215 * gcse.c (find_moveable_store): Do not accept store insns with
5216 REG_EH_REGION note.
5217
5218 2004-04-28 Paul Brook <paul@codesourcery.com>
5219
5220 * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
5221 * function.c (assign_temp): Ditto.
5222 * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
5223
5224 2004-04-28 Paul Brook <paul@codesourcery.com>
5225
5226 * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
5227
5228 2004-04-28 Josef Zlomek <zlomekj@suse.cz>
5229
5230 * var-tracking.c (variable_different_p): Add a parameter
5231 compare_current_location, compare current location of variable parts
5232 if it is true.
5233 (dataflow_set_different_1): Pass compare_current_location == false.
5234 (dataflow_set_different_2): Pass compare_current_location == false.
5235 (emit_notes_for_differences_1): Pass compare_current_location == true.
5236
5237 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5238
5239 * config/s390/s390.md ("casesi"): Mark jump table access as
5240 non-trapping and unchanging.
5241
5242 2004-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5243
5244 PR debug/14829
5245 * dwarf2out.c (reg_number): Rename to dbx_reg_number. Adjust all
5246 callers.
5247 (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
5248 number for indexing hard_regno_nregs array.
5249
5250 2004-04-27 Geoffrey Keating <geoffk@apple.com>
5251
5252 * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
5253 * config/darwin-crt2.c: Only have contents on __ppc__.
5254
5255 2004-04-27 Bob Wilson <bob.wilson@acm.org>
5256
5257 * config/xtensa/xtensa.c (call_insn_operand): Check
5258 SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
5259 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
5260 * config/xtensa/xtensa.md (call, call_value): Likewise.
5261
5262 2004-04-27 Wu Yongwei <adah@sh163.net>
5263
5264 * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
5265 (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
5266 (__gthread_mutex_init_function): Replace CreateMutex with
5267 initialization of custom mutex using CreateSemaphore.
5268 (__gthread_mutex_lock): Use InterlockedIncrement.
5269 (__gthread_mutex_trylock): Use InterlockedCompareExchange.
5270 (__gthread_mutex_unlock): Use InterlockedDecrement and
5271 ReleaseSemaphore to unlock
5272 * config/i386/gthr-win32.c (__gthread_mutex_init_function,
5273 __gthread_mutex_lock, __gthread_mutex_trylock,
5274 __gthread_mutex_unlock): Adjust to match inline versions in
5275 gthr-win32.h.
5276
5277 2004-04-27 Paul Brook <paul@codesourcery.com>
5278
5279 * config/arm/arm.c (arm_promote_prototypes): New function.
5280 (TARGET_PROMOTE_PROTOTYPES): Use it.
5281
5282 2004-04-27 Paul Brook <paul@codesourcery.com>
5283
5284 * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
5285
5286 2004-04-26 Bernard Giroud <bgiroud@free.fr>
5287
5288 * config/alpha.c (alpha_end_function): For OpenVMS gas,
5289 correctly output .pdesc directive before .end.
5290
5291 2004-04-26 James E Wilson <wilson@specifixinc.com>
5292
5293 Bug 14927
5294 * config/ia64/ia64.md (movxf): New local op0. Handle case where
5295 operands[0] is a SUBREG. Handle case where operands[1] is a GR reg.
5296
5297 2004-04-26 Zack Weinberg <zack@codesourcery.com>
5298
5299 * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
5300 * config/pa/pa-hpux10.h: Likewise.
5301 * config/pa/pa-hpux11.h: Likewise.
5302
5303 2004-04-26 Geoffrey Keating <geoffk@apple.com>
5304
5305 * doc/invoke.texi (Overall Options): Document default for -o
5306 for PCH files.
5307
5308 2004-04-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5309
5310 * builtins.c (expand_builtin_update_setjmp_buf): New function.
5311 (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
5312 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
5313
5314 2004-04-26 Paul Brook <paul@codesourcery.com>
5315
5316 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
5317
5318 2004-04-26 Paul Brook <paul@codesourcery.com>
5319
5320 * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
5321
5322 2004-04-25 Roger Sayle <roger@eyesopen.com>
5323
5324 * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
5325 fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and
5326 X % -1 as 0.
5327
5328 2004-04-26 Hans-Peter Nilsson <hp@bitrange.com>
5329
5330 PR bootstrap/15141
5331 * except.c (connect_post_landing_pads): Delete insns after the
5332 barrier when generating a unwind_resume_libfunc call.
5333
5334 2004-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5335
5336 PR/c++ 15119
5337 * tree.c (substitute_placeholder_in_expr, case 4): New case,
5338 for TARGET_EXPR.
5339
5340 2004-04-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5341
5342 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
5343 __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
5344 inhibit_libc is defined.
5345
5346 2004-04-25 Richard Sandiford <rsandifo@redhat.com>
5347
5348 * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
5349 * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
5350 * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
5351 (TARGET_SCHED_VARIABLE_ISSUE): Define.
5352 (mips_adjust_cost): Move later in file, next to other sched hooks.
5353 (mips_macc_chains_last_hilo): New variable.
5354 (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
5355 (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
5356 * config/mips/mips.md (may_clobber_hilo): New attribute.
5357
5358 2004-04-24 Roger Sayle <roger@eyesopen.com>
5359 Bruce Korb <bkorb@gnu.org>
5360
5361 * fixinc/inclhack.def (aix_syswait_2): New fix.
5362 * fixinc/fixincl.x: Regenerate.
5363 * fixinc/tests/base/sys/wait.h: Update for new test.
5364
5365 2004-04-24 Alan Modra <amodra@bigpond.net.au>
5366
5367 PR target/14960
5368 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
5369 to non_fixed_size, and leave out fixed_size from the sum.
5370 (generate_set_vrsave): Correct clobbers.
5371 (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
5372 (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
5373 (rs6000_libcall_value): Likewise.
5374 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
5375 (FUNCTION_ARG_REGNO_P): Likewise.
5376
5377 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
5378
5379 * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
5380 is a CONST_INT.
5381 (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
5382 with NARROW_OP1 instead of OP1.
5383
5384 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
5385
5386 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
5387 and __s390x__ hosts.
5388
5389 2004-03-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5390
5391 * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
5392 _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
5393 * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
5394 BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
5395 BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
5396 * builtins.c (expand_builtin_fork_or_exec): New.
5397 (expand_builtin): Call it.
5398 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
5399 BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
5400 * c-common.c (PID_TYPE): New macro.
5401 (c_common_nodes_and_builtins): Initialize pid_type_node.
5402 * calls.c (special_function_p): Do not handle fork and exec.
5403 (expand_call): Do not handle ECF_FORK_OR_EXEC.
5404 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
5405 __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
5406 * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
5407 __gcov_execv, __gcov_execvp, __gcov_execve): New.
5408 * tree.h (enum tree_index): Add TI_PID_TYPE.
5409 (pid_type_node): New macro.
5410 (ECF_FORK_OR_EXEC): Removed.
5411
5412 2004-04-23 Eric Botcazou <ebotcazou@libertysurf.fr>
5413
5414 PR optimization/13985
5415 * cfgloopmanip.c (fix_loop_placements): New prototype.
5416 Call fix_bb_placements on the preheader of loops that have
5417 been reparented.
5418 (remove_path): Adjust call to fix_loop_placements.
5419
5420 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
5421
5422 * config/darwin7.h: New file.
5423 * config.gcc (*-*-darwin*): Add darwin7.h if the
5424 version is greater than 6.
5425 * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
5426 (MATH_LIBRARY): Wrap in ifdefs.
5427
5428 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
5429
5430 * config/arm/arm.c (arm_output_epilogue): Reverse the order of
5431 loading iWMMXt registers with a frame pointer. Use post-increment
5432 without a frame pointer.
5433 (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
5434
5435 2004-04-23 Paolo Bonzini <bonzini@gnu.org>
5436
5437 * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
5438 mode" rather than "-funit-at-a-time" since -O2 enables it
5439 without requiring -f* options. Refer to -fprofile-generate and
5440 -fprofile-use correctly. Move -funit-at-a-time among options
5441 enabled by -O. Add information about unit-at-a-time caveats.
5442
5443 2004-04-22 Per Bothner <per@bothner.com>
5444
5445 * line-map.h (struct line_maps): New field highest_line.
5446 (linemap_position_for_column): Make non-inline function.
5447 (LINEMAP_POSITION_FOR_COLUMN): New macro.
5448 * line-map.c (linemap_init): Clear highest_line field.
5449 (linemap_add): Set highest_line field.
5450 (linemap_line_start): Minor optimization - use highest_line field.
5451 Reduce maximum column hint to 10000. Update highest_line field.
5452 (linemap_position_for_column): Moved from line-map.h. Optimize a bit.
5453 * cpphash.h (struct cpp_reader): Remove line field - instead use
5454 line_table->highest_line.
5455 (saved_line): Remove unused field.
5456 (CPP_INCREMENT_FILE): Don't do linemap_lookup - just use newest map.
5457 Use line_table's highest_line field instead of cpp_reader's line.
5458 * cpplib.c (start_directive): Likewise use highest_line field.
5459 (do_line, do_linemarker): Likewise just use newest map.
5460 (_cpp_do_file_change): Don't need to set cpp_reader's line field.
5461 * cpperror.c (cpp_error): Likewise use highest_line field.
5462 * cppfiles.c (open_file_failed: Likewise.
5463 (cpp_make_system_header): Likewise use newest map and highest_line.
5464 * cppinit.c (cpp_create_reader): Don't initialize removed field.
5465 * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
5466 skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
5467 _cpp_lex_direct): Likewise use highest_line.
5468 (_cpp_lex_direct): Use new LINEMAP_POSITION_FOR_COLUMN macro.
5469 * cppmacro.c (_cpp_builtin_macro_text): Likewise use highest_line,
5470 and use newest map.
5471 * cpppch.c (cpp_read_state): Don't save+restore cpp_reader's line.
5472 * cpptrad.c (_cpp_overlay_buffer): Don't save cpp_reader's line.
5473 (copy_comment, _cpp_scan_out_logical_line): Likewise use highest_line.
5474
5475 2004-04-23 Alan Modra <amodra@bigpond.net.au>
5476
5477 PR bootstrap/14992
5478 * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
5479 * config/linux.h (USE_LD_AS_NEEDED): Define.
5480 * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
5481 * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
5482 * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
5483 * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
5484 * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
5485 * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
5486 * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
5487
5488 2004-04-22 Per Bothner <per@bothner.com>
5489
5490 * cppinit.c (cpp_read_main_file): Return NULL rather than false.
5491 Fixes PR preprocessor/15067.
5492
5493 2004-04-23 Andreas Schwab <schwab@suse.de>
5494
5495 * config/ia64/ia64intrin.h: Add intermediate cast to void * to
5496 avoid aliasing warning.
5497
5498 2004-04-22 Jan Hubicka <jh@suse.cz>
5499 Mostafa Hagog <mustafa@il.ibm.com>
5500
5501 * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
5502 * cfgloopanal.c (expected_loop_iterations): Change the return value
5503
5504 2004-04-22 Jakub Jelinek <jakub@redhat.com>
5505
5506 * cselib.h (struct elt_loc_list): Remove canon_loc field.
5507 * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
5508 (cselib_invalidate_mem): Remove all canon_loc and canon_x
5509 traces.
5510
5511 2004-04-22 Josef Zlomek <zlomekj@suse.cz>
5512
5513 Revert
5514 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
5515
5516 * var-tracking.c (variable_part_different_p): Variable parts
5517 differ when the most recent locations differ.
5518
5519 2004-04-22 Richard Sandiford <rsandifo@redhat.com>
5520
5521 * doc/invoke.texi: Remove the MIPS -membedded-pic option.
5522 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
5523 (embedded_pic_offset): Delete.
5524 * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete. Shuffle other
5525 MASK_* constants.
5526 (TARGET_EMBEDDED_PIC): Delete.
5527 (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
5528 (ASM_SPEC): Remove -membedded-pic.
5529 (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
5530 (ASM_OUTPUT_CASE_LABEL): Likewise.
5531 * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
5532 * config/mips/windiss.h (ASM_SPEC): Likewise.
5533 * config/mips/mips.c (struct machine_function): Remove
5534 embedded_pic_fnaddr_rtx.
5535 (TARGET_ENCODE_SECTION_INFO): Remove override.
5536 (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
5537 (override_options): Remove -membedded-pic handling.
5538 (print_operand): Remove handling of '%S'.
5539 (mips_select_section: Remove -membedded-pic handling.
5540 (mips_encode_section_info): Delete.
5541 (mips_output_conditional_branch): Remove mention of -membedded-pic.
5542 * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
5543 -membedded-pic handling.
5544 (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
5545
5546 2004-04-22 Alan Modra <amodra@bigpond.net.au>
5547
5548 * var-tracking.c (frame_base_decl): Remove useless GTY.
5549
5550 2004-04-21 Aldy Hernandez <aldyh@redhat.com>
5551
5552 * config/rs6000/rs6000.c (rs6000_override_options): Error when
5553 user wants altivec and e500 instructions.
5554
5555 2004-04-21 H.J. Lu <hongjiu.lu@intel.com>
5556
5557 PR target/14813
5558 * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
5559 in .init_array section to ...
5560 * config/ia64/crtbegin.asm: Here.
5561
5562 * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
5563 and hidden if HAVE_INITFINI_ARRAY is defined.
5564
5565 2004-04-21 James E Wilson <wilson@specifixinc.com>
5566
5567 * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
5568 * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
5569 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
5570 (fp_register_operand, lo_operand): New.
5571 (mips_rtx_costs): Add TUNE_SB1 support.
5572 (mips_issue_rate): Add comment. Add PROCESSOR_SB1 support.
5573 (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
5574 (mips_multipass_dfa_lookahead): New.
5575 * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
5576 TUNE_SB1): New.
5577 (TARGET_SWITCHES): Add -mfp-exceptions support.
5578 (TARGET_FP_EXCEPTIONS_DEFAULT): New.
5579 (BRANCH_COST): Fix whitespace.
5580 * config/mips/mips.md: Include sb1.md.
5581 * config/mips/sb1.md: New file.
5582 * doc/invoke.texi: Document -mfp-exceptions.
5583
5584 * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix
5585 comment.
5586 * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
5587 (fixincl.o-warn): Delete.
5588
5589 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
5590
5591 * config/rs6000/rs6000 (print_operand) ['z']:
5592 Change ifdef of TARGET_MACHO to if TARGET_MACHO.
5593
5594 2004-04-21 Daniel Jacobowitz <drow@mvista.com>
5595
5596 * config.gcc: Support --with-arch=iwmmxt for ARM.
5597
5598 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5599
5600 * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
5601 in two more places; remove unneeded force_reg
5602
5603 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
5604
5605 * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
5606 for TARGET_MACHO.
5607 (print_operand): For TARGET_MACHO check to see if we need a stub
5608 and output one if we need it.
5609
5610 PR debug/15033
5611 * dwarf2out.c (rtl_for_decl_location): Check for NULL
5612 rtl.
5613
5614 2004-04-20 James E Wilson <wilson@specifixinc.com>
5615
5616 * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
5617 (vall_value_gp): Likewise.
5618
5619 2004-04-20 DJ Delorie <dj@redhat.com>
5620
5621 * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
5622 variables stored in word registers, then in memory.
5623
5624 2004-04-20 Eric Christopher <echristo@redhat.com>
5625
5626 * cp/parser.c (cp_parser_declaration): Move translate
5627 up before tokens are lexed.
5628
5629 2004-04-20 Uros Bizjak <uros@kss-loka.si>
5630
5631 * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
5632 (asin_optab, acos_optab): Define corresponding macros.
5633 * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
5634 * genopinit.c (optabs): Implement asin_optab and acos_optab
5635 using asin?f2 and acos?f2 patterns.
5636 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
5637 using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
5638 (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
5639 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5640
5641 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
5642 acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
5643 acos, acosf and acosl built-ins as inline x87 intrinsics.
5644
5645 2004-04-20 Paul Brook <paul@codesourcery.com>
5646
5647 * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
5648
5649 2004-04-20 Paul Brook <paul@codesourcery.com>
5650
5651 * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
5652
5653 2004-04-20 Paolo Bonzini <bonzini@gnu.org>
5654
5655 Revert part of 2004-04-17 change that moved -frename-registers
5656 to -O1. -frename-registers is buggy.
5657
5658 * toplev.c (flag_rename_registers): Initialize to 0.
5659 * doc/invoke.texi (Optimize options): Move -frename-registers
5660 to "Not triggered by any -O level" section. Adjust commentary
5661 accordingly.
5662
5663 2004-04-20 Anil Paranjpe <anilp1@kpitcummins.com>
5664
5665 * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
5666
5667 2004-04-20 Richard Sandiford <rsandifo@redhat.com>
5668
5669 * config/mips/mips.c (mips_legitimize_move): Generate special patterns
5670 for mflo and mfhi instructions.
5671 (mips_output_move): Remove mflo and mfhi handling.
5672 * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
5673 (*mulsidi3_64bit): Update for new mfhi/mflo representation.
5674 Likewise various define_peephole2s.
5675 (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
5676 alternatives.
5677 (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
5678 (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
5679 (mfhilo_di, mfhilo_si): New patterns.
5680
5681 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
5682
5683 * function.c (assign_parms): Force
5684 MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
5685
5686 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
5687
5688 * var-tracking.c (variable_part_different_p): Variable parts differ
5689 when the most recent locations differ.
5690
5691 2004-04-19 James E Wilson <wilson@specifixinc.com>
5692
5693 * rtl.h (reg_set_last): Delete declaration.
5694 * rtlanal.c (reg_set_last): Delete.
5695
5696 2004-04-19 Roger Sayle <roger@eyesopen.com>
5697
5698 * fold-const.c (fold_convert): Make function extern/public.
5699 * tree.h (fold_convert): Prototype here.
5700 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
5701 expand_builtin_strrchr, expand_builtin_strpbrk,
5702 expand_builtin_mempcpy, expand_builtin_bcopy,
5703 expand_builtin_bzero, expand_builtin_memcmp,
5704 expand_builtin_strcmp, expand_builtin_strncmp,
5705 stabilize_va_list, expand_builtin_sprintf,
5706 fold_trunc_transparent_mathfn, fold_builtin_logarithm,
5707 fold_builtin_exponent, fold_builtin_mempcpy,
5708 fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
5709 fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
5710 fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
5711
5712 2004-04-19 Aldy Hernandez <aldyh@redhat.com>
5713
5714 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
5715 (move_from_CR_gt_bit): New.
5716 (cceq_ior_compare): Name previously unnamed pattern. Disable for
5717 E500.
5718 (cceq_rev_compare): Name previously unnamed pattern. Allow for
5719 E500.
5720
5721 * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
5722 (tstsfeq_gpr): Same.
5723 (cmpsfgt_gpr): Same.
5724 (tstsfgt_gpr): Same.
5725 (cmpsflt_gpr): Same.
5726 (tstsflt_gpr): Same.
5727 (e500_cceq_ior_compare): New.
5728 (e500_flip_gt_bit): New.
5729
5730 * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
5731 (print_operand): Add 'c' and 'D'.
5732 (rs6000_generate_compare): Rewrite to generate correct rtl.
5733 (rs6000_emit_sCOND): Handle E500.
5734 (output_cbranch): Adjust for changes in rs6000_generate_compare.
5735 (output_e500_flip_gt_bit): New.
5736
5737 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
5738 Protoize.
5739
5740 2004-04-19 Eric Christopher <echristo@redhat.com>
5741
5742 * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
5743
5744 2004-04-19 David Edelsohn <edelsohn@gnu.org>
5745
5746 * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
5747 fix information.
5748
5749 2004-04-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5750
5751 * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
5752 download URL.
5753
5754 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5755
5756 * stor-layout.c (layout_decl): Check DECL_PACKED before calling
5757 ADJUST_FIELD_ALIGN. Check maximum_field_alignment after.
5758
5759 2004-04-19 Andrew PInski <pinskia@physics.uc.edu>
5760
5761 * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
5762 (fold_builtin): Update caller to match.
5763
5764 PR bootstrap/15009
5765 * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
5766
5767 PR bootstrap/14999
5768 * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
5769
5770 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5771
5772 * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
5773
5774 * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
5775 (expand_mult_highpart_optab): Likewise.
5776 (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
5777
5778 2004-04-19 Paul Brook <paul@codesourcery.com>
5779
5780 * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
5781 floatunssisf2, floatunssidf2): New patterns.
5782
5783 2004-04-18 Mark Mitchell <mark@codesourcery.com>
5784
5785 PR other/14918
5786 * doc/invoke.texi (-fprofile-generate): Document requirement to
5787 use -fprofile-generate when linking.
5788
5789 * doc/extend.texi (Strong Using): Warn users against using this
5790 feature.
5791
5792 2004-04-18 Richard Sandiford <rsandifo@redhat.com>
5793
5794 * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
5795 * config/mips/mips.h (mips_entry, mips_string_length): Delete.
5796 (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
5797 * config/mips/mips.c (struct mips16_constant): Renamed from struct
5798 constant. Propogate change throughout file.
5799 (struct machine_function): Remove insns_len.
5800 (mips_string_length, mips16_strings, string_constants): Delete.
5801 (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
5802 when generating mips16 code. Remove special mips16 treatment of
5803 string constants.
5804 (mips_symbolic_constant_p): Allow mips16 constant pool accesses
5805 to have the form LABEL+CONSTANT.
5806 (mips_symbolic_address_p): Fix comment.
5807 (m16_usym8_4, m16_usym5_4): Delete.
5808 (mips_output_function_epilogue): Remove mips16 string handling.
5809 (mips_output_mi_thunk): Call mips16_lay_out_constants.
5810 (mips_select_section, mips_encode_section_info): Remove mips16
5811 string handling.
5812 (struct mips16_constant_pool): New.
5813 (add_constant): Take a mips16_constant_pool structure. Keep pool
5814 sorted into order of ascending mode size. Keep track of the highest
5815 possible start address, taking padding and the masking of the base PC
5816 value into account.
5817 (dump_constants_1): New function, split out from dump_constants.
5818 Handle vector constants. Use gen_consttable_{int,float} rather than
5819 separate functions for each mode.
5820 (dump_constants): Simplify. Use GET_MODE_ALIGNMENT. Use gen_align
5821 rather than separate functions for each alignment.
5822 (mips_find_symbol): Delete.
5823 (mips16_insn_length): New function, split out from
5824 mips16_lay_out_constants.
5825 (mips16_rewrite_pool_refs): New function.
5826 (mips16_lay_out_constants): Rework. Remove string handling.
5827 Always create an inline constant pool.
5828 * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
5829 (UNSPEC_ALIGN): New constants.
5830 (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
5831 (UNSPEC_ALIGN_[248]): Delete.
5832 (consttable_int, consttable_float, align): New patterns.
5833 (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
5834
5835 2004-04-17 Aldy Hernandez <aldyh@redhat.com>
5836
5837 * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
5838 __unn_args_eq.
5839
5840 2004-04-17 Alan Modra <amodra@bigpond.net.au>
5841
5842 PR target/14715
5843 * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
5844 with STARTING_FRAME_OFFSET.
5845
5846 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
5847
5848 * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
5849 * config/mips/mips.c (macc_msac_operand): New function.
5850 * config/mips/mips.md (*msac): Move after *macc.
5851 (*msac2): New. Generalize macc-related peepholes so that they apply
5852 to msac too.
5853
5854 2004-04-17 Paolo Bonzini <bonzini@gnu.org>
5855
5856 * opts.c (decode_options): Do not enable flag_rename_registers
5857 and flag_web at -O3.
5858 * toplev.c (flag_rename_registers): Initialize
5859 flag_rename_registers and flag_web to
5860 AUTODETECT_FLAG_VAR_TRACKING.
5861 (default_debug_hooks): New global.
5862 (process_options): Initialize default_debug_hooks. Warn if
5863 -fvar-tracking specified but not supported by the current
5864 debug format. Do not run var tracking at -O0 or if not
5865 supported by the current debug format, even if
5866 -fvar-tracking was given. If -fno-rename-registers
5867 is not specified, always run register renaming if var
5868 tracking is supported by the default debugging information
5869 format for the target, and we are at -O1 or higher; similarly
5870 for -fweb, but only at -O2 or higher.
5871 * doc/invoke.texi (Optimize Options): Document this.
5872
5873 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
5874
5875 * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
5876 * configure: Regenerate.
5877
5878 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
5879
5880 * gcc.c (used_arg): Check whether an option has been removed.
5881
5882 2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5883
5884 * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
5885 debugging on Solaris 7 and up.
5886
5887 2004-04-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5888
5889 * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
5890 IRIX 5 port.
5891 Remove -save-temps workaround, handled automatically.
5892 Require GNU binutils 2.15 for debugging.
5893 Remove SGI make warnings since GNU make is now required.
5894 (Specific, mips-sgi-irix6): Some markup fixes.
5895 Describe MIPSpro C problems and workarounds.
5896 Mention working O32 ABI support.
5897 Recommend GNU as 2.15 for O32 with debugging.
5898 Remove description of fixed structure pass/return bug.
5899
5900 2004-04-16 DJ Delorie <dj@redhat.com>
5901
5902 * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
5903 TYPE_FIELDS.
5904 (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
5905
5906 2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5907
5908 * pa.md: Remove unnecessary declarations for asm_out_file.
5909
5910 * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
5911 SAR register. Fix comment.
5912 (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
5913 (%cr11).
5914
5915 * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
5916
5917 2004-04-16 Nick Clifton <nickc@redhat.com>
5918
5919 * config/arm/arm.c (arm_override_options): Revert previous patch.
5920 * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
5921 be safely built.
5922
5923 2004-04-16 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5924
5925 * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
5926 bug.
5927 (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
5928 TARGET_DEFAULT): Changed. Ditto.
5929 (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
5930 TARGET_ENDIAN_DEFAULT): Added. Ditto.
5931 * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
5932 (TARGET_ENDIAN_DEFAULT): Added.
5933
5934 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5935
5936 * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
5937 ATTR_CONST_NOTHROW_LIST.
5938
5939 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5940
5941 PR/middle-end 14915
5942 * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
5943 BITS_BIG_ENDIAN.
5944
5945 2004-04-15 Pat Haugen <pthaugen@us.ibm.com>
5946
5947 * ra-debug.c (ra_print_rtx): Add break's to case legs.
5948
5949 2004-04-14 James E Wilson <wilson@specifixinc.com>
5950
5951 * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
5952
5953 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
5954
5955 * libada-mk.in: New file.
5956 * configure.ac: Create libada-mk from libada-mk.in.
5957 * configure: Regenerate.
5958
5959 2004-04-14 Uros Bizjak <uros@kss-loka.si>
5960
5961 * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
5962 (logb_optab, ilogb_optab): Define corresponding macros.
5963 * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
5964 * genopinit.c (optabs): Implement logb_optab and ilogb_optab
5965 using logb?f2 and ilogb?i2 patterns.
5966 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
5967 using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
5968 (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
5969 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5970
5971 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
5972 and UNSPEC_XTRACT_EXP.
5973
5974 * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
5975 patterns to implement fxtract x87 instruction.
5976 (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
5977 logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
5978 intrinsics.
5979 (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
5980 x87's fxtract insn.
5981
5982 2004-04-14 Eric Christopher <echristo@redhat.com>
5983
5984 * config/mips/t-elf: Enable multilibs by default.
5985
5986 2004-04-14 Andreas Tobler <a.tobler@schweiz.ch>
5987
5988 * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
5989 previous fix to check HAVE_return at runtime too.
5990
5991 2004-04-14 Nick Clifton <nickc@redhat.com>
5992
5993 * config/arm/arm.c (arm_override_options): If the user has not
5994 specified an ABI, then default to AAPCS for the iWMMXt processor.
5995 * config/arm/t-xscale-elf: Remove redundant multilib specifications.
5996 * config/arm/t-xscale-coff: Likewise.
5997
5998 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5999
6000 * builtins.c (fold_builtin_isdigit): New.
6001 (fold_builtin): Handle BUILT_IN_ISDIGIT.
6002 * defaults.h: Add TARGET_DIGIT0 and sort.
6003 * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
6004
6005 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6006
6007 * builtins.c (fold_builtin_cabs, fold_builtin): Use
6008 `mathfn_built_in' to determine the new builtin.
6009 * fold-const.c (fold): Likewise.
6010
6011 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
6012
6013 * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
6014 * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
6015 (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
6016 (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
6017 (ASM_SPEC): Update accordingly.
6018 * config/mips/mips.c: Update after above renaming.
6019 * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
6020 * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
6021
6022 2004-04-13 James E Wilson <wilson@specifixinc.com>
6023
6024 * c-opt.c (c_common_post_options): If this_input_filename is NULL,
6025 increment errorcount and return false instead of true.
6026
6027 2004-04-13 Uros Bizjak <uros@kss-loka.si>:
6028
6029 * optabs.c (expand_twoval_unop): Reorder function arguments.
6030 * builtins.c (expand_builtin_mathfn_3): Update calls to
6031 expand_twoval_unop.
6032
6033 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
6034 and UNSPEC_TAN_TAN. Add missing comment.
6035
6036 * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
6037 patterns to implement fptan x87 instruction.
6038 (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
6039 and tanl built-ins as inline x87 intrinsics. Define corresponding
6040 peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
6041 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
6042 x87's fptan insn.
6043
6044 2004-03-13 Richard Henderson <rth@redhat.com>
6045
6046 * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
6047 for LABEL_REFs.
6048
6049 * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
6050 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
6051 * doc/invoke.texi: Update to match.
6052
6053 * varasm.c (unlikely_text_section): Use assemble_align instead of
6054 ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
6055 correct alignment argument.
6056
6057 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
6058
6059 * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
6060 after setting reg_last_reload_reg for optional output reloads.
6061
6062 2004-04-12 Fariborz Jahanian <fjahanian@apple.com>
6063
6064 * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
6065 Definition of these two macros are corrected by adding
6066 matchine right paren.
6067
6068 2004-04-12 Jonathan Larmour <jifl@eCosCentric.com>
6069
6070 * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
6071
6072 2004-04-12 Roger Sayle <roger@eyesopen.com>
6073
6074 * config/i386/i386.c (output_387_reg_move): New function.
6075 * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
6076 * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
6077 *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
6078 *extendsfdf2_1, *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
6079 truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
6080
6081 2004-04-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6082
6083 * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
6084 TYPE_DECL.
6085 * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
6086 * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
6087 * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
6088 Use skip_simple_arithmetic to find SAVE_EXPR.
6089 (force_type_save_exprs, force_type_save_exprs_1): New functions.
6090 * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
6091 Properly chain multiple pointers.
6092 (copy_tree_r): Copy a TYPE_DECL.
6093 * tree.c (variably_modified_type_p): Add some missing tests and
6094 make some other minor changes.
6095 * tree.h (force_type_save_exprs): New declaration.
6096
6097 2004-04-12 Roger Sayle <roger@eyesopen.com>
6098
6099 * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
6100 Remove fall throughs. Convert 0/x and 0%x into x&0 when x has
6101 side-effects. Don't convert x/1.0 into x if we honor signaling NaNs.
6102 Convert x/-1.0 into -x if we don't honor signaling NaNs. Convert
6103 x/-1 into -x. Optimize x%1 into x&0 if x has side-effects. Optimize
6104 x%-1 into 0 (or x&0 if x has side-effects).
6105
6106 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
6107
6108 * config/rs6000/rs6000.md: Document why a pattern is not
6109 available.
6110
6111 * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
6112 of floats on the E500.
6113 (branch_positive_comparison_operator): Do not allow NE even on the
6114 E500.
6115
6116 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
6117
6118 * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
6119 in_text_unlikely_section to in_unlikely_text_section.
6120
6121 2004-04-11 Roger Sayle <roger@eyesopen.com>
6122
6123 * fold-const.c (fold_binary_op_with_conditional_arg): Tweak
6124 calling convention to allow a NULL_TREE to be returned. Factor
6125 sanity checks from callers, return NULL_TREE when appropriate.
6126 (fold): Handle COMPOUND_EXPR operands of binary expressions
6127 before COND_EXPR operands. Use reorder_operands_p(a,b) to check
6128 whether a op (b,c) can be rewritten as (b, a op c). Simplify
6129 calls to fold_binary_op_with_conditional_arg.
6130
6131 2004-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6132
6133 * config/mips/iris5.h (current_section_flags): Add
6134 in_unlikely_executed_text and default case.
6135
6136 2004-04-11 Andreas Tobler <a.tobler@schweiz.ch>
6137
6138 * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
6139 failure on solaris. Place ifdef HAVE_return around gen_ret call.
6140 * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
6141 HAVE_return and place it around the place where it is needed.
6142
6143 2004-04-11 Andrew Pinski <pinskia@physics.uc.edu>
6144
6145 * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
6146 ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
6147 and NORMAL_TEXT_SECTION_NAME.
6148 (unlikely_text_section): Check targetm.have_named_sections
6149 instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
6150 instead of SECTION_FORMAT_STRING.
6151 * config/mips/iris5.h (current_section_name): Add
6152 in_unlikely_executed_text case and move the abort into the switch.
6153 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
6154 (NORMAL_TEXT_SECTION_NAME): Remove.
6155 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
6156 (SECTION_FORMAT_STRING): Remove.
6157 * defaults.h (SECTION_FORMAT_STRING): Remove.
6158 * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
6159 (SECTION_FORMAT_STRING): Remove.
6160
6161 2004-04-10 Joseph S. Myers <jsm@polyomino.org.uk>
6162
6163 * c-typeck.c (common_type): Prefer long long to long when same
6164 precision.
6165
6166 2004-04-09 Zack Weinberg <zack@codesourcery.com>
6167
6168 PR 14887
6169 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
6170 mode argument.
6171 * config/ia64/ia64.c (ia64_hpux_file_end): Check
6172 TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
6173
6174 2004-04-09 Roger Sayle <roger@eyesopen.com>
6175
6176 * simplify-rtx.c (mode_signbit_p): New function to check whether
6177 an RTX is an immediate constant that represents the most significant
6178 bit of a given machine mode.
6179 (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
6180 C is the sign bit.
6181 (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
6182 when C2 is the sign bit.
6183 (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
6184 is the sign bit. Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
6185 sign bit.
6186
6187 2004-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6188
6189 * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
6190 TYPE_MODE.
6191
6192 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
6193
6194 * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
6195 of TREE_READONLY for types.
6196
6197 2004-04-09 Caroline Tice <ctice@apple.com>
6198
6199 * basic-block.h (struct edge_def): Add new field, crossing_edge.
6200 (struct basic_block_def): Add new field, partition.
6201 (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
6202 definitions.
6203 (partition_hot_cold_basic_blocks): Add extern function
6204 declaration.
6205 * bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
6206 include statements.
6207 (N_ROUNDS): Increase the maximum number of rounds by 1.
6208 (branch_threshold): Add array value for new round.
6209 (exec_threshold): Add array value for new round.
6210 (push_to_next_round_p): New function.
6211 (add_unlikely_executed_notes): New function.
6212 (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
6213 (mark_bb_for_unlikely_executed_section): New function.
6214 (add_labels_and_missing_jumps): New function.
6215 (add_reg_crossing_jump_notes): New function.
6216 (fix_up_fall_thru_edges): New function.
6217 (find_jump_block): New function.
6218 (fix_crossing_conditional_branches): New function.
6219 (fix_crossing_unconditional_branches): New function.
6220 (fix_edges_for_rarely_executed_code): New function.
6221 (partition_hot_cold_basic_blocks): New function.
6222 (find_traces): Add an extra round for partitioning hot/cold
6223 basic blocks.
6224 (find_traces_1_round): Add a parameter. Modify to push all cold blocks,
6225 and only cold blocks, into the last (extra) round of collecting traces.
6226 (better_edge_p): Add a parameter. Modify to favor non-crossing edges
6227 over crossing edges.
6228 (bb_to_key): Add code to correctly identify cold blocks when
6229 doing partitioning.
6230 (connect_traces): Modify to connect all the non-cold traces first, then
6231 go back and connect up all the cold traces.
6232 (reorder_basic_blocks): Add call to add_unlikely_executed_notes.
6233 * cfg.c (entry_exit_blocks): Add initialization for partition field in
6234 entry and exit blocks.
6235 * cfgbuild.c (make_edges): Update current_function_has_computed_jump
6236 if we are doing hot/cold partitioning.
6237 * cfgcleanup.c (cfglayout.h): Add new include statement.
6238 (try_simplify_condjump): Modify to not attempt on blocks with jumps
6239 that cross section boundaries.
6240 (try_forward_edges): Likewise.
6241 (merge_blocks_move_predecessor_nojumps): Likewise.
6242 (merge_blocks_move_successor_nojumps): Likewise.
6243 (merge_blocks_move): Likewise.
6244 (try_crossjump_to_edge): Modify to not attempt after we have done
6245 the block partitioning.
6246 (try_crossjump_bb): Modify to not attempt on blocks with jumps that
6247 cross section boundaries.
6248 (try_optimize_cfg): Likewise.
6249 * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
6250 jumps that cross section boundaries.
6251 * cfglayout.c (flags.h): Add new include statement.
6252 (update_unlikely_executed_notes): New function.
6253 (fixup_reorder_chain): Add code so when a new jumping basic block is
6254 added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
6255 updated appropriately.
6256 (duplicate_insn_chain): Add code to duplicate the new NOTE insn
6257 introduced by this optimization.
6258 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
6259 extern function declaration.
6260 * cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
6261 list of notes that can be deleted.
6262 (create_basic_block_structure): Add initialization for partition field.
6263 (rtl_can_merge_blocks): Modify to test blocks for jumps that cross
6264 section boundaries.
6265 (try_redirect_by_replacing_jump): Modify to not attempt on jumps that
6266 cross section boundaries.
6267 (commit_one_edge_insertion): Add code so newly created basic block
6268 ends up in correct (hot or cold) section. Modify to disallow
6269 insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
6270 (rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
6271 crosses section boundaries.
6272 (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
6273 cross section boundaries.
6274 (force_nonfallthru_and_redirect): Modify to make sure new basic block
6275 ends up in correct section, with correct notes attached.
6276 * common.opt (freorder-blocks-and-partition): Add new flag for this
6277 optimization.
6278 * dbxout.c (dbx_function_end): Add code to make sure scope labels at
6279 the end of functions are written into the correct (hot or cold)
6280 section.
6281 (dbx_source_file): Add code so writing debug file information
6282 doesn't incorrectly change sections.
6283 * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
6284 in partitioning hot/cold basic blocks into separate sections.
6285 (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
6286 section partitioning.
6287 (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
6288 conditional branches can span all of memory.
6289 (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
6290 unconditional branches can span all of memory.
6291 * final.c (scan_ahead_for_unlikely_executed_note): New function.
6292 (final_scan_insn): Add code to check for NOTE instruction indicating
6293 whether basic block belongs in hot or cold section, and to make sure
6294 the current basic block is being written to the appropriate section.
6295 Also added code to ensure that jump table basic blocks end up in the
6296 correct section.
6297 * flags.h (flag_reorder_blocks_and_partition): New flag.
6298 * ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
6299 one of the branches has a jump that crosses between sections.
6300 (find_if_case_2): Likewise.
6301 (ifcvt): Modify to not attempt to mark loop exit edges after
6302 hot/cold partitioning has occurred.
6303 * opts.c (decode_options): Code to handle new flag,
6304 flag_reorder_blocks_and_partition; also to turn it off if
6305 flag_exceptions is on.
6306 (common_handle_option): Code to handle new flag,
6307 flag_reorder_blocks_and_partition.
6308 * output.h (unlikely_text_section): New extern function declaration.
6309 (in_unlikely_text_section): New extern function declaration.
6310 * passes.c (rest_of_handle_stack_regs): Add
6311 flag_reorder_blocks_and_partition as an 'or' condition for calling
6312 reorder_basic_blocks.
6313 (rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
6314 as an 'or' condition for calling reorder_basic_blocks.
6315 (rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
6316 * print-rtl.c (print_rtx): Add code for handling new note,
6317 NOTE_INSN_UNLIKELY_EXECUTED_CODE
6318 * rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
6319 (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
6320 cross between section boundaries.
6321 * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
6322 indicating the basic block containing it belongs in the cold section.
6323 (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
6324 between hot and cold sections.
6325 * toplev.c (flag_reorder_blocks_and_partition): Add code to
6326 initialize this flag, and to tie it to the command-line option
6327 freorder-blocks-and-partition.
6328 * varasm.c (cfglayout.h): Add new include statement.
6329 (unlikely_section_label_printed): New global variable, used for
6330 determining when to output section name labels for cold sections.
6331 (in_section): Add in_unlikely_executed_text to enum data structure.
6332 (text_section): Modify code to use SECTION_FORMAT_STRING and
6333 NORMAL_TEXT_SECTION_NAME macros.
6334 (unlikely_text_section): New function.
6335 (in_unlikely_text_section): New function.
6336 (function_section): Add code to make sure beginning of function is
6337 written into correct section (hot or cold).
6338 (assemble_start_function): Add code to make sure stuff is written to
6339 the correct section.
6340 (assemble_zeros): Add in_unlikely_text_section as an 'or' condition
6341 to an if statement that was checking 'in_text_section'.
6342 (assemble_variable): Add 'in_unlikely_text_section' as an 'or'
6343 condition to an if statement that was checking 'in_text_section'.
6344 (default_section_type_flags_1): Add check: if in cold section
6345 flags = SECTION_CODE.
6346 * config/darwin.c (darwin_asm_named_section): Modify to use
6347 SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
6348 * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
6349 specifically for the i386.
6350 (HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
6351 * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
6352 text string to something more informative.
6353 (NORMAL_TEXT_SECTION_NAME): Add new definition.
6354 (SECTION_FORMAT_STRING): Add new definition.
6355 * config/rs6000/rs6000.c (rs6000_assemble_integer): Add
6356 '!in_unlikely_text_section' as an 'and' condition to an if statement
6357 that was already checking '!in_text_section'.
6358 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
6359 UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
6360 sure these are properly defined for linux on ppc.
6361 * doc/invoke.texi (freorder-blocks-and-partition): Add documentation
6362 for this new flag.
6363 * doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
6364 reg_note.
6365 * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
6366 HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
6367 these new macros.
6368
6369 2004-04-08 Roger Sayle <roger@eyesopen.com>
6370
6371 * function.c (gen_mem_addressof): When changing the RTX from a REG
6372 to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
6373
6374 2004-04-08 Roger Sayle <roger@eyesopen.com>
6375
6376 PR target/14888
6377 * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
6378 truncxfdf2_noop): Provide dummy "fmov" implementations.
6379
6380 2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
6381
6382 * gcc.c (default_compilers): Add missing initializers.
6383
6384 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
6385 Return 1 if file was successfully mapped.
6386
6387 2004-04-08 Geoffrey Keating <geoffk@apple.com>
6388
6389 PR pch/13419
6390 PR pch/14137
6391 Radar #: 3315288
6392 * doc/invoke.texi (Precompiled Headers): Suggest -o
6393 to put an output file in a particular place. Be more detailed
6394 about which options affect PCH validity and which options
6395 might not work.
6396 * c-pch.c (pch_matching): New.
6397 (MATCH_SIZE): New.
6398 (struct c_pch_validity): New field 'match'.
6399 (pch_init): Handle pch_matching.
6400 (c_common_valid_pch): Check pch_matching.
6401
6402 * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
6403
6404 2004-04-08 Mark Mitchell <mark@codesourcery.com>
6405
6406 * doc/invoke.texi (Precompiled Headers): Warn about known
6407 problems.
6408
6409 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
6410
6411 PR c++/14808
6412 * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
6413 to 1 if ASM_OUTPUT_DEF is defined.
6414 * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
6415 * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
6416 Set to non-zero iff not a one_only decl.
6417
6418 2004-04-08 Paul Brook <paul@codesourcery.com>
6419
6420 * arm.h (CLASS_LIKELY_SPILLED_P): Define.
6421
6422 2004-04-08 Paul Brook <paul@codesourcery.com>
6423
6424 * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
6425 PROMOTE_FOR_CALL_ONLY.
6426 * config/arm/arm-protos.h (arm_function_value): Declare.
6427 * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
6428 (TARGET_PROMOTE_PROTOTYPES): Return false.
6429 (arm_function_value): New function.
6430 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
6431 (FUNCTION_VALUE): Call arm_function_value.
6432 * config/cris/cris.h (PROMOTE_MODE): Rename ...
6433 (PROMOTE_FUNCTION_MODE): ... to this.
6434 (PROMOTE_FOR_CALL_ONLY): Remove.
6435 * config/mmix/mmix.h: Likewise.
6436 * config/s390/s390.h: Likewise.
6437 * config/sparc/sparc.h: Likewise.
6438 * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
6439 * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
6440 (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
6441 (PROMOTE_FOR_CALL_ONLY): Remove.
6442
6443 2004-04-08 Joel Sherrill <joel@oarcorp.com>
6444
6445 PR ada/14538
6446 * ada/5rosinte.adb: Remove fake mprotect() body.
6447 * ada/5rosinte.ads: Add SA_SIGINFO.
6448 * ada/5rtpopsp.adb: Rewrite to use new interface.
6449 * ada/init.c: Reorder so the simple single OS conditional __rtems__
6450 is tested before more complex ones which mix UNIX and embedded
6451 systems in the conditional.
6452
6453 2004-04-08 Joel Sherrill <joel@oarcorp.com>
6454
6455 PR ada/14665
6456 * ada/osint.adb (Find_Program_Name): Rework to properly handle
6457 filenames which end in .exe or have versioning suffixes like VMS.
6458
6459 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
6460
6461 PR target/10129
6462 * config/darwin.c (darwin_encode_section_info): When the decl has
6463 a DECL_INITIAL, it is only defined also when it is not a common.
6464
6465 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6466
6467 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
6468 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
6469
6470 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
6471
6472 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
6473 global register variables.
6474
6475 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
6476
6477 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
6478 rpc_xdr_lvalue_cast_b): New fixes.
6479 * fixinc/fixincl.x: Regenerate.
6480 * fixinc/tests/base/rpc/xdr.h: Add new tests.
6481
6482 2004-04-07 David Edelsohn <edelsohn@gnu.org>
6483
6484 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
6485 to power4 and power5 entries.
6486
6487 2004-04-06 Geoffrey Keating <geoffk@apple.com>
6488
6489 * c-common.h (pending_lang_change): Mark for PCH.
6490
6491 2004-04-07 Caroline Tice <ctice@apple.com>
6492
6493 * gcc.c (main): Move 'break' in main loops (on an error)
6494 to wait until error processing has occurred.
6495
6496 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
6497
6498 * config.gcc: Stop changing enable_threads midstream.
6499 Replace uses of enable_threads_flag with enable_threads.
6500 * configure.ac: Replace uses of enable_threads_flag with
6501 enable_threads. Improve autoconf quotation in one place.
6502 * configure: Regenerate.
6503
6504 2004-04-06 Uros Bizjak <uros@kss-loka.si>
6505
6506 * builtins.c: Implement support for sincos function.
6507 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
6508 BUILT_IN_COS{,F,L}.
6509 (expand_builtin_mathfn_3): New function.
6510 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
6511 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
6512 flag_unsafe_math_optimization is set.
6513
6514 * optabs.h (enum optab_index): Add new OTI_sincos.
6515 (sincos_optab): Define corresponding macro.
6516
6517 * optabs.c (init_optabs): Initialize sincos_optab.
6518 (expand_twoval_unop): New function.
6519
6520 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
6521 patterns.
6522
6523 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
6524 and UNSPEC_SINCOS_SIN.
6525
6526 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
6527 sincosxf3): New patterns to implement sincos, sincosf and sincosl
6528 built-ins as inline x87 intrinsics. Define splits for
6529 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
6530 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
6531 sincos patterns.
6532 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
6533 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
6534
6535 (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
6536 x87's fsincos insn.
6537
6538 2004-04-06 Devang Patel <dpatel@apple.com>
6539
6540 PR 14467
6541 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
6542
6543 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6544
6545 * doc/install.texi: Update HP-UX 11 installation procedure.
6546
6547 2004-04-06 Paul Brook <paul@codesourcery.com>
6548
6549 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
6550
6551 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
6552
6553 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
6554 when the TLS address is generated by a function call.
6555 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
6556 (tls_local_dynamic): Likewise.
6557
6558 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
6559
6560 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
6561 and TYPE_VOLATILE.
6562
6563 2004-04-05 Caroline Tice <ctice@apple.com>
6564
6565 * gcc.c (combine_flag): New global variable, for new driver option.
6566 (struct compiler): Add two new fields, to be used when
6567 combining multiple input files in a single pass (IMA).
6568 (default_compilers): Add values for the new fields to all
6569 compiler entries. Modify the "@c" compiler entry for doing IMA
6570 properly with "-save-temps" and the "combine" flag.
6571 (option_map): Add new driver option, "--combine", to tell driver
6572 to pass multiple input files to compiler at one time.
6573 (have_o_argbuf_index): New global variable.
6574 (store_arg): Modify to assign value to have_o_argbuf_index.
6575 (struct infile): Add three new fields, to help with IMA.
6576 (display_help): Add help for new "combine" option.
6577 (process_command): Remove local variable have_o; add code to check
6578 for new "combine" option; remove assignment to combine_inputs.
6579 (do_spec_1): Modify to deal with IMA better.
6580 (main): Make variable 'lang_n_infiles' local to entire function
6581 rather than to a single block. Use flag combine_flag to
6582 determine whether to do IMA or not; Modify loop initializing
6583 infiles to deal properly with linker files.
6584 Add code for doing preprocessing in presence of
6585 IMA with "-save-temps" flag. Modify "main" loop to handle
6586 multiple input files, in multiple languages, with or without
6587 preprocessing, gracefully.
6588 * toplev.c (set_src_pwd): Modify to not complain if attempting to
6589 re-set it to same directory it's previously been set to (avoid
6590 irritating, meaningless warning messages when doing IMA with
6591 save-temps).
6592 * doc/invoke.texi: Add "-combine" to list of Overall Options;
6593 remove documentation about IMA that is no longer accurate; Add
6594 documentation explaining what "-combine" does.
6595 * ada/lang-specs.h: Add initialization values for new fields in
6596 "struct compiler".
6597 * cp/lang-specs.h: Likewise.
6598 * f/lang-specs.h: Likewise.
6599 * java/lang-specs.h: Likewise.
6600 * objc/lang-specs.h: Likewise.
6601 * treelang/lang-specs.h: Likewise.
6602
6603 2004-04-05 David Edelsohn
6604
6605 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
6606 symbol handling.
6607
6608 2004-04-05 Jakub Jelinek <jakub@redhat.com>
6609 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6610
6611 PR optimization/13424 (hppa), bootstrap/14462, c/14828
6612 * pa.md: Use replace_equiv_address to retain the attributes of the
6613 memory operands used in the split and peephole2 patterns for optimizing
6614 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
6615
6616 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6617
6618 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
6619 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6620 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
6621 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
6622 PARM_DECL.
6623 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
6624 for a type.
6625 * print-tree.c (print_node): Properly handle side-effects, readonly,
6626 and constant flags.
6627 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
6628 and TREE_CONSTANT if not a type.
6629 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
6630 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
6631 (NON_TYPE_CHECK): New macro.
6632 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
6633
6634 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
6635
6636 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
6637 to DWARF2_DEBUG unconditionally.
6638 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
6639
6640 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
6641 Nathanael Nerode <neroden@gcc.gnu.org>
6642
6643 PR target/14548
6644 * config.host: Set the shell variable host_can_use_collect2.
6645 Set it to yes by default, and to no for alpha*-dec-*vms*,
6646 i[34567]86-*-mingw32*, and powerpc-*-beos*.
6647 * configure.ac: Set and substitute the shell variable collect2.
6648 Give an error if use_collect2 is yes and host_can_use_collect2 is
6649 no.
6650 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
6651 uses. Initialize to @collect2@.
6652 (STAGESTUFF): Remove $(USE_COLLECT2).
6653 * config/alpha/x-vms (USE_COLLECT2): Don't set.
6654 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
6655 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
6656 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
6657 * configure: Regenerate.
6658
6659 2004-04-04 Roger Sayle <roger@eyesopen.com>
6660
6661 * simplify-rtx.c (simplify_binary_operation): Constant fold
6662 DIV, MOD, UDIV and UMOD using div_and_round_double.
6663
6664 2004-04-04 Mark Mitchell <mark@codesourcery.com>
6665
6666 PR c++/14804
6667 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
6668 RECORD_TYPEs.
6669
6670 2004-04-04 Mark Mitchell <mark@codesourcery.com>
6671
6672 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
6673 documentation.
6674
6675 2004-04-04 Roger Sayle <roger@eyesopen.com>
6676
6677 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
6678 updating the REG_EQUAL note on an insn's libcall_insn.
6679
6680 2004-04-04 Roger Sayle <roger@eyesopen.com>
6681
6682 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
6683
6684 2004-04-03 Roger Sayle <roger@eyesopen.com>
6685
6686 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
6687 with reorder_operands_p.
6688
6689 2004-04-03 Jan Hubicka <jh@suse.cz>
6690
6691 * md.texi (vec_set, vec_extract, vec_init): Document.
6692
6693 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
6694
6695 * opts.c (decode_options): Do function inlining with very small
6696 max-inline-insns-* parameters when optimizing for size.
6697
6698 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
6699
6700 * config/i386/i386.h (TARGET_NOCONA): New macro.
6701 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
6702 (processor_type): Add PROCESSOR_NOCONA.
6703
6704 * config/i386/i386.md (cpu): Add nocona to the attribute values.
6705
6706 * config/i386/i386.c (nocona_cost): New variable.
6707 (m_NOCONA): New macro.
6708 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
6709 x86_branch_hints, x86_use_sahf, x86_single_stringop,
6710 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
6711 x86_integer_DFmode_moves, x86_partial_reg_dependency,
6712 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
6713 x86_decompose_lea, x86_arch_always_fancy_math_387,
6714 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
6715 x86_ext_80387_constants, x86_four_jump_limit):
6716 (override_options): Add nocona_cost to processor_target_table.
6717 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
6718 (incdec_operand): Prevent inc/dec generation for Nocona too.
6719 (ix86_issue_rate): Add PROCESSOR_NOCONA.
6720
6721 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
6722
6723 * rtlanal.c (find_reg_note): Manually
6724 unswitch the loop.
6725
6726 2004-04-01 Mark Mitchell <mark@codesourcery.com>
6727
6728 * genemit.c (gen_split): Change prototype of generated code.
6729 * genrecog.c (write_action): Adjust prototype for and calls to
6730 gen_split_*.
6731 * gensupport.c (struct queue_elem): Add split field.
6732 (queue_pattern): Return a value. Clear the split field.
6733 (process_rtx): Maintain an association between an insn and the
6734 split generated from it for a define_insn_and_split.
6735 (process_one_cond_exec): Generate a new split for a
6736 define_insn_and_split.
6737 * config/arm/arm-protos.h (arm_split_constant): Add insn
6738 parameter.
6739 (emit_constant_insn): New function.
6740 (arm_gen_constant): Use it.
6741 * config/arm/arm.md: Adjust calls to arm_split_constant.
6742
6743 2004-04-02 Jan Hubicka <jh@suse.cz>
6744
6745 * cgraph.c: Add overall comment.
6746 (cgraph_inline_hash): New global variable.
6747 (cgraph_create_node): Break out from ...
6748 (cgraph_node): ... here.
6749 (cgraph_edge): New function.
6750 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
6751 (cgraph_remove_edge): Accept edge, intead of source and destination.
6752 (cgraph_redirect_edge_callee): New.
6753 (cgraph_remove_node): Update all new datastructures.
6754 (cgraph_record_call, cgraph_remove_call): Kill.
6755 (dump_cgraph_node): Break out from ... ; dump new datastructures.
6756 (dump_cgraph): ... here.
6757 (cgraph_function_possibly_inlined_p): Use new hashtable.
6758 (cgraph_clone_edge, cgraph_clone_node): New.
6759 * cgraph.h: Include hashtab.h
6760 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
6761 fields, add inlined_to pointer.
6762 (cgraph_node): Add pointer to next_clone.
6763 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
6764 (cgraph_remove_call, cgraph_record_call): Kill.
6765 (cgraph_inline_hash): Declare.
6766 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
6767 cgraph_redirect_edge_callee): Declare.
6768 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
6769 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
6770 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
6771 * cgraphunit.c: Add overall comment.
6772 (cgraph_optimize_function): Kill.
6773 (cgraph_assemble_pending_functions): Do not assemble inline clones.
6774 (cgraph_finalize_function): Update call of cgraph_remove_node
6775 (record_call_1): Record call sites.
6776 (cgraph_create_edges): Accept node instead of decl argument.
6777 (error_found): New static variable.
6778 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
6779 (cgraph_analyze_function): Update for new datastructures.
6780 (cgraph_finalize_compilation_unit): Plug memory leak.
6781 (cgraph_optimize_function): Kill.
6782 (cgraph_expand_function): Do not use cgraph_optimize_function.
6783 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
6784 cgraph_inlined_callees): Kill.
6785 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
6786 clones.
6787 (estimate_growth): Simplify.
6788 (cgraph_clone_inlined_nodes): New function.
6789 (cgraph_mark_inline_edge): Re-implement.
6790 (cgraph_mark_inline): Likewise.
6791 (cgraph_check_inline_limits): Simplify.
6792 (cgraph_recursive_inlining_p): New.
6793 (update_callee_keys): Break out from ...
6794 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
6795 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
6796 Likewise.
6797 (cgraph_expand_all_functions): Remove inline clones from the ordered
6798 list.
6799 (cgraph_preserve_function_body_p): New predicate.
6800 (cgraph_optimize): Verify cgraph.
6801 * function.h (struct function): Add fields saved_tree/saved_args.
6802 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
6803 * toplev.c (rest_of_compilation): Do not free cfun.
6804 * tree-inline.c: Include function.h
6805 (struct inline_data): Add saving_p field; replace decl/current_decl by
6806 node/current_node.
6807 (insert_decl_map): New function.
6808 (copy_body_r): Handle saving; update cgraph datastructure.
6809 (copy_body): Handle recursive inlining.
6810 (initialize_inlined_parameters): Likewise.
6811 (expand_call_inline): Propagate node attributes; update cgraph.
6812 (optimize_inline_calls): Verify that datastructure still match.
6813 (save_body): New function.
6814 * tree-inline.h (save_body): New.
6815 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
6816 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
6817 * langhooks.c (lang_hooks): Add update_decl_after_saving.
6818
6819 2004-04-01 Serge Belyshev <1319@bot.ru>
6820
6821 PR target/14702
6822 * config/i386/i386.md: fix source operand constraints in
6823 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
6824
6825 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
6826
6827 * fold-const.c (folda): Preserve types of comparisons.
6828
6829 2004-04-01 Richard Henderson <rth@redhat.com>
6830
6831 * toplev.c (backend_init): Move init_optimization_passes call ...
6832 (lang_dependent_init): ... here.
6833
6834 2004-04-01 Alan Modra <amodra@bigpond.net.au>
6835 Jakub Jelinek <jakub@redhat.com>
6836
6837 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
6838 -lgcc --as-needed -lgcc_s --no-as-needed by default.
6839 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
6840 * configure: Rebuilt.
6841 * config.in: Rebuilt.
6842 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
6843 (stage2-start, stage3-start, stage4-start): Likewise.
6844 (stageprofile-start, stagefeedback-start): Likewise.
6845
6846 2004-04-01 Jakub Jelinek <jakub@redhat.com>
6847
6848 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
6849 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
6850 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
6851 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
6852 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
6853 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
6854 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
6855 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
6856 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
6857 * config/sparc/t-linux: Removed.
6858
6859 2004-04-01 Jakub Jelinek <jakub@redhat.com>
6860
6861 PR c++/14755
6862 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
6863 "bitfld++ == const" to "++bitfld == const + incr" transformations.
6864
6865 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6866
6867 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
6868 * stor-layout.c (layout_decl): Likewise.
6869 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
6870 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
6871 * print-tree.c (print_node): Handle various used of unsigned_flag.
6872 * tree.def (BIT_FIELD_REF): Update comment.
6873 * tree.h (TREE_UNSIGNED): Deleted.
6874 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
6875
6876 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6877
6878 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
6879 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
6880 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
6881 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
6882 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
6883 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
6884 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
6885 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
6886 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
6887 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
6888 REAL_TYPE, not INTEGER_TYPE.
6889 (layout_type, case VECTOR_TYPE): Simplify code.
6890 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
6891 * tree.h: Update comments.
6892 (STRIP_NOPS): Use TYPE_UNSIGNED.
6893 (TYPE_UNSIGNED): New macro.
6894 (TYPE_TRAP_SIGNED): Remove now redundant check.
6895 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
6896
6897 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6898
6899 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
6900
6901 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
6902
6903 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
6904 Add darwin-fpsave.asm, darwin-vecsave.asm,
6905 and darwin-world.asm.
6906 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
6907 as the asm files contain altivec instructions.
6908 * config/rs6000/darwin-fpsave.asm: New file.
6909 * config/rs6000/darwin-vecsave.asm: New file.
6910 * config/rs6000/darwin-world.asm: New file.
6911
6912 2004-03-31 Zack Weinberg <zack@codesourcery.com>
6913
6914 * gengtype-yacc.y (option, stringseq): Add missing
6915 terminating semicolon.
6916
6917 2004-03-30 David Edelsohn <edelsohn@gnu.org>
6918
6919 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
6920 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
6921 tls_dtprel_ha_32, tls_dtprel_ha_64,
6922 tls_dtprel_lo_32, tls_dtprel_lo_64,
6923 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
6924 tls_tprel_ha_32, tls_tprel_ha_64,
6925 tls_tprel_lo_32, tls_tprel_lo_64,
6926 tls_got_tprel_32, tls_got_tprel_64,
6927 tls_tls_32, tls_tls_64): Replace register_operand with
6928 gpc_reg_operand.
6929
6930 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
6931
6932 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
6933 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
6934 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
6935 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
6936 *ctrdi_internal6): Replace register_operand with
6937 nonimmediate_operand.
6938
6939 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
6940
6941 * fold-const.c (fold): Reassociate multiply expression
6942 with an adjacent non-multiply expression to use
6943 architecture's multiply-add instruction.
6944
6945 2004-03-30 Zack Weinberg <zack@codesourcery.com>
6946
6947 * gengtype.c (create_option): New function.
6948 * gengtype.h: Prototype it.
6949 * gengtype-yacc.y (stringseq): New rule.
6950 (option): Use create_option. Add new bare ID production. Use
6951 stringseq, not STRING directly.
6952
6953 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
6954 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
6955 * varray.h, config/alpha/alpha.c:
6956 Use new shorter form of GTY markers.
6957
6958 * doc/gty.texi: Rewrite.
6959
6960 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
6961
6962 * config/darwin.c (machopic_function_base_name):
6963 Remove current_name and getting the name of the
6964 current function.
6965
6966 2004-03-30 Nick Clifton <nickc@redhat.com>
6967
6968 * config/arm/arm.md (thumb_jump): Reduce the backward branch
6969 range, and increase the forward branch range, to allow for
6970 the fact that the PC will be off by 4.
6971
6972 2004-03-30 Alan Modra <amodra@bigpond.net.au>
6973
6974 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
6975
6976 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
6977
6978 * config/rs6000/rs6000.c (output_vec_const_move):
6979 Find all cases of EASY_VECTOR_15_ADD_SELF.
6980 (easy_vector_constant_add_self): Accept
6981 all vector constant loadable by vsplt* and vadd*.
6982 (easy_vector_same): Use easy_vector_splat_const.
6983 (easy_vector_const): Use easy_vector_splat_const.
6984 (easy_vector_splat_const): New function.
6985 (gen_easy_vector_constant_add_self): New function.
6986
6987 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
6988 New prototype.
6989
6990 * config/rs6000/altivec.md (movv4si splitter): Change to
6991 emit move insn with halfed vector constant.
6992 (*movv8hi splitter): Likewise.
6993 (*movv16qi splitter): Likewise.
6994
6995 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
6996
6997 PR 11591
6998 * config/rs6000/rs6000.c (rs6000_legitimate_address):
6999 Allow any offset to argument pointer in no-strict case.
7000
7001 2004-03-30 Jan Hubicka <jh@suse.cz>
7002
7003 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
7004 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
7005 dump file in non-unit-at-a-time mode.
7006
7007 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
7008
7009 * config/cris/cris.h: Correct #ifdef to test for
7010 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
7011 HAVE_AS_MUL_BUG_ABORT_OPTION.
7012
7013 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7014
7015 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
7016 the address inside the old RTL.
7017
7018 2004-03-28 Zack Weinberg <zack@codesourcery.com>
7019
7020 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
7021 (struct c_binding, struct c_scope): Add chain_next
7022 attributes to GTY markers.
7023 (struct lang_identifier, struct lang_tree_node): Define
7024 here...
7025 * c-tree.h: ... not here. No longer need to declare struct
7026 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
7027 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
7028 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
7029
7030 PR 14734, 11944
7031 * c-decl.c (get_parm_info): If error_mark_node is encountered
7032 in the bindings chain, unbind and discard it; don't abort.
7033
7034 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
7035 Dorit Naishlos <dorit@il.ibm.com>
7036
7037 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
7038 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
7039
7040 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
7041
7042 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
7043
7044 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
7045 (m68hc11_attribute_table): New attribute "page0" to mark a global
7046 variable as being allocated from within page0 section.
7047 (m68hc11_encode_label): New function.
7048 (m68hc11_strip_name_encoding): New function.
7049 (m68hc11_page0_symbol_p): New function.
7050 (m68hc11_indirect_p): Accept global variables marked in page0.
7051 (m68hc11_encode_section_info): Lookup "page0" attribute.
7052
7053 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
7054 represents access to page0 variables.
7055
7056 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
7057 ("*logicalsi3_silshl16_zext"): Likewise.
7058 ("*ashldi3_const32"): Likewise.
7059 (peephole2 ashift): Likewise.
7060
7061 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
7062
7063 * c-tree.h (C_DECL_REGISTER): New.
7064 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
7065 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
7066 (build_array_ref, c_mark_addressable): Set and use it.
7067 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
7068 Allow structures with volatile fields to be declared register.
7069 Don't check TREE_ADDRESSABLE before warning about taking address
7070 of register.
7071 * c-decl.c (finish_decl): Don't allow structures with volatile
7072 fields to be placed in named register.
7073 * doc/trouble.texi: Remove reference to structures with volatile
7074 fields in registers.
7075
7076 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
7077
7078 * function.c (thread_prologue_and_epilogue): Move
7079 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
7080 before the epilogue.
7081
7082 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
7083
7084 * expr.c (store_constructor): Use gen_int_mode to correctly
7085 sign-extend CONST_INT value.
7086
7087 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7088
7089 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
7090 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
7091 * doc/extend.texi: Likewise.
7092
7093 2004-03-26 Diego Novillo <dnovillo@redhat.com>
7094
7095 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
7096 with TYPE_ORIG_SIZE_TYPE.
7097
7098 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
7099
7100 PR 14219
7101 * c-typeck.c (build_binary_op): Do not allow comparisons of
7102 vectors.
7103
7104 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
7105
7106 * config.gcc: Remove sparc-tti-*.
7107 * config/sparc/pbd.h: Delete.
7108
7109 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
7110 * config/sparc/aout.h: Likewise.
7111
7112 * config/sparc/sparc.h: Remove if 0'd code.
7113 * config/sparc/sparc.md (call): Remove if 0'd code.
7114 (call_value): Likewise.
7115 (nonlocal_goto): Likewise.
7116 (unimp_insn): Delete.
7117
7118 2004-03-25 Roger Sayle <roger@eyesopen.com>
7119
7120 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
7121 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
7122
7123 2004-03-25 Richard Henderson <rth@redhat.com>
7124
7125 PR 11527
7126 * c-typeck.c (pop_init_level): Emit pending init elements earlier
7127 rather than later.
7128
7129 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7130
7131 * builtins.c (fold_builtin): Fix error in last change.
7132
7133 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
7134
7135 * config/mips/mips.h: Formatting fix.
7136
7137 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7138
7139 * builtins.def: Add ctype builtins.
7140 * doc/extend.texi: Likewise.
7141
7142 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7143
7144 * builtins.c (fold_builtin): Add new builtin optimizations for
7145 sqrt and/or cbrt.
7146 * fold-const.c (fold): Likewise.
7147
7148 2004-03-25 David Edelsohn <edelsohn@gnu.org>
7149
7150 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
7151 (rs6000_sched_groups): New variable.
7152 (processor_target_table): Add power5.
7153 (rs6000_override_options): Set rs6000_sched_insert_nops,
7154 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
7155 from rs6000_sched_groups.
7156 (output_cbranch): Use rs6000_always_hint.
7157 (rs6000_variable_issue): Use rs6000_sched_groups.
7158 (rs6000_adjust_cost): Add CPU_POWER5.
7159 (is_microcoded_insn): Use rs6000_sched_groups.
7160 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
7161 Return 2 for POWER5 cracked instructions.
7162 (is_cracked_insn): Use rs6000_sched_groups.
7163 (is_branch_slot_insn): Use rs6000_sched_groups.
7164 (rs6000_issue_rate): Add CPU_POWER5.
7165 (rs6000_sched_finish): Use rs6000_sched_groups.
7166 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
7167 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
7168 (DEFAULT_SCHED_COSTLY_DEP): Delete.
7169 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
7170 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
7171 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
7172 * config/rs6000/power5.md: New file.
7173 * doc/invoke.texi: Add power5 option.
7174
7175 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
7176
7177 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
7178 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
7179 * doc/invoke.texi: Fix a typo.
7180
7181 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
7182
7183 PR optimization/9707.
7184 * stmt.c (emit_case_nodes): Emit equality comparisons instead
7185 of recursing if both children are single-valued cases with no
7186 children.
7187
7188 2004-03-25 Paul Brook <paul@codesourcery.com>
7189
7190 * config/arm/arm.c (vfp_print_multi): Remove.
7191 (arm_output_fldmx): New function.
7192 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
7193 (arm_expand_prologue): Update to match.
7194 (arm_get_vfp_saved_size): New Function.
7195 (arm_get_frame_offsets): Use it.
7196 (arm_output_epilogue): Use new functions.
7197
7198 2004-03-24 Richard Henderson <rth@redhat.com>
7199
7200 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
7201 (reg_known_value, reg_known_value_size): Likewise; make static.
7202 (reg_known_equiv_p): Make static.
7203 (clear_reg_alias_info): Update for new indexing.
7204 (get_reg_known_value, set_reg_known_value): New.
7205 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
7206 (canon_rtx): Use them.
7207 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
7208 Don't play queer offsetting games with reg_known_value and
7209 reg_known_equiv_p.
7210 (end_alias_analysis): Free reg_known_value with gc.
7211 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
7212 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
7213 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
7214 functions instead.
7215
7216 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
7217
7218 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
7219 config/i386/mmintrin.h: Update copyright.
7220
7221 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
7222
7223 * configure.ac: Add --enable-werror-always (for top level bootstrap
7224 support).
7225 * configure: Regenerate.
7226
7227 2004-03-24 Ziemowit Laski <zlaski@apple.com>
7228
7229 * objc/objc-act.c (objc_comptypes): Treat comparisons
7230 between 'Class' and '<class> *' as explicitly invalid.
7231
7232 2004-03-24 David Edelsohn <edelsohn@gnu.org>
7233
7234 * doc/invoke.texi (-frename-registers): Add enabled at -O3.
7235 (-fprofile-values): Add enabled with profile-{generate,use}.
7236 (-fvpt): Same.
7237 (-ftracer): Add enabled with profile-use.
7238 (-funit-at-a-time): Add enabled at -O2,-O3.
7239 (-funroll-loops): Add enabled with profile-use.
7240 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
7241 (max-gcse-passes): Mention default.
7242 (max-cse-path-length): Mention default.
7243
7244 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
7245
7246 * Makefile.in (STRICT2_WARN): Reorder.
7247 * configure.ac: Check for -Wold-style-definition, and use it
7248 in strict1_warn if it's available.
7249 * configure: Regnerate.
7250
7251 2004-03-24 Paul Brook <paul@nowt.org>
7252
7253 * config.gcc <arm>: Add --with-abi=
7254 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
7255 thumb_far_jump_used): Remove prototypes.
7256 (arm_needs_doubleword_align): Add prototype.
7257 (thumb_compute_initial_elimination_offset): Ditto.
7258 * config/arm/arm.c (arm_get_frame_offsets): New function.
7259 (use_return_insn, output_return_instruction, arm_output_epilogue,
7260 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
7261 arm_expand_prologue, thumb_expand_epilogue): Use it.
7262 (arm_abi, target_abi_name, all_arm_abis): New variables.
7263 (arm_override_options): Set them. Set structure padding for AAPCS.
7264 (arm_return_in_memory): Update ABI check.
7265 (arm_init_cumulative_args): Initialize can_split.
7266 (arm_needs_doubleword_align): New function.
7267 (arm_function_arg): Don't split args after pushing to stack. Handle
7268 doubleword/even reg alignment.
7269 (arm_va_arg): Handle all doubleword aligned args.
7270 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
7271 on ABI, not CPU.
7272 (arm_compute_save_reg0_reg12_mask): Fix comment.
7273 (thumb_get_frame_size, thumb_get_frame_size): Remove.
7274 (thumb_jump_far_used_p): Remove superfluous argument. Return save
7275 value for alignment.
7276 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
7277 to match.
7278 (thumb_compute_initial_elimination_offset): New function.
7279 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
7280 unneccessary rounding.
7281 * config/arm/arm.h (target_abi_name): Declare.
7282 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
7283 arm_abi_type, ARM_DEFAULT_ABI): Define.
7284 (ARM_FLAG_ATPCS): Remove.
7285 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
7286 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
7287 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
7288 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
7289 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
7290 Contitionalize on ABI, not CPU.
7291 (struct arm_stack_offsets): Define.
7292 (struct machine_function): Add stack_offsets. Remove frame_size.
7293 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
7294 pushed.
7295 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
7296 doubleword alignment.
7297 (THUMB_INITIAL_ELIMINATION_OFFSET,
7298 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
7299 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
7300 * config/arm/arm.md (align_8): Enable for all targets.
7301 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
7302 (ARM_DEFAULT_ABI): Define.
7303 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
7304 -mstructure-size-boundary.
7305
7306 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
7307
7308 * configure.ac: Check for -Wno-variadic-macros; don't use
7309 -pedantic (in stage 1 or a simple 'make all') unless it's available,
7310 and if it's available, use it. Also, clean up check for
7311 -Wno-long-long.
7312 * configure: Regenerate.
7313
7314 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
7315
7316 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
7317 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
7318 (MULTILIB_DEFAULTS): Use it.
7319 (MIPS_CPU_STRING_DEFAULT): Remove.
7320 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
7321 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
7322 EABI64 -mlong32 the default ABI. Enforce the default architecture.
7323 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
7324 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
7325 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
7326 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
7327 accordingly.
7328
7329 2004-03-24 DJ Delorie <dj@redhat.com>
7330 Richard Sandiford <rsandifo@redhat.com>
7331
7332 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
7333 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
7334 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
7335 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
7336 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
7337 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
7338 if TARGET_FIX_VR4122.
7339 * config/mips/mips.md (define_attr length): Account for nops inserted
7340 after macc and dmult when using -mfix-vr4122-bugs.
7341 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
7342 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
7343 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
7344 * config/mips/vr4122-div.S: New file.
7345 * doc/invoke.texi: Document -mfix-vr4122-bugs.
7346
7347 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
7348
7349 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
7350 (TARGET_MIPS4130): New macro.
7351 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
7352 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
7353 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
7354 with PROCESSOR_R4130.
7355 * config/mips/mips.md (define_attr cpu): Add r4130.
7356 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
7357
7358 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7359 Richard Sandiford <rsandifo@redhat.com>
7360
7361 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
7362
7363 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
7364
7365 PR preprocessor/14438
7366 * cpplib.c (do_pragma): Remove line_change call after pragma
7367 handler.
7368
7369 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
7370
7371 * doc/extend.texi (ARM Built-in Functions): Replace with correct
7372 declarations.
7373
7374 2004-03-23 Roger Sayle <roger@eyesopen.com>
7375
7376 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
7377 if flag_unsafe_math_optimizations.
7378 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
7379 and TARGET_80387 expand using truncdfsf2_noop pattern.
7380 (truncxfsf2): Likewise using truncxfsf2_noop.
7381 (truncxfdf2): Likewise using truncxfdf2_noop.
7382 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
7383
7384 2004-03-23 Ziemowit Laski <zlaski@apple.com>
7385
7386 * hooks.c (hook_constcharptr_tree_null): New hook.
7387 * hooks.h (hook_constcharptr_tree_null): New prototype.
7388 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
7389 * target.h (mangle_fundamental_type): New target hook.
7390 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
7391 target hook at rs6000_mangle_fundamental_type.
7392 (rs6000_mangle_fundamental_type): New function.
7393 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
7394
7395 2004-03-23 Zack Weinberg <zack@codesourcery.com>
7396
7397 PR 12267, 12391, 12560, 13129, 14114, 14133
7398 * c-tree.h: Forward declare struct c_binding. Declare
7399 c_override_bindings_to_false. Update prototypes.
7400 (struct lang_identifier): Update comments. Change fields to be
7401 struct c_binding *.
7402 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
7403 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
7404 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
7405 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
7406 * c-common.h: Update prototypes.
7407 * c-decl.c (struct c_scope): Update commentary. Remove names,
7408 names_last, parms, parms_last, tags, and shadowed fields. Add
7409 bindings and depth fields.
7410 (scope_freelist): Move to more appropriate location.
7411 (c_print_identifier): Update for changes to struct lang_identifier.
7412 (objc_mark_locals_volatile): Update for new bindings structures.
7413 (global_bindings_p): Honor c_override_global_bindings_to_false.
7414 (pushlevel): Rename to push_scope; take no arguments; use the
7415 scope_freelist; initialize scope->depth and check for overflow.
7416 (poplevel): Rename to pop_scope; totally rewritten for new bindings
7417 structures.
7418 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
7419 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
7420 Improve some commentary. Adjust handling of forward parm decls.
7421 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
7422 Preserve C_DECL_IN_EXTERNAL_SCOPE.
7423 (warn_if_shadowing): Correct indentation. Improve diagnostics.
7424 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
7425 decls. Rewrite for new bindings structures. Improve commentary.
7426 Eliminate the copy_node call.
7427 (implicit_decl_warning): Use the "diag" idiom (as seen in
7428 locate_old_decl) to reduce code duplication; call locate_old_decl
7429 if appropriate. Relocate to remove need for forward declaration.
7430 (implicitly_declare): Adjust for new bindings structures. Kludge
7431 around Objective-C not-really-builtin functions.
7432 (undeclared_variable): Improve diagnostics. If current_function_decl
7433 is nonnull but current_function_scope is null, use current_scope.
7434 Use bind.
7435 (lookup_tag): Adjust for new bindings structures. Kludge around
7436 Objective-C's tag declarations that wind up in the external scope.
7437 (lookup_name): Adjust for new bindings structures. Kludge around
7438 c-common.c's pseudo-typedefs that wind up in the external scope.
7439 (lookup_name_current_level): Rename lookup_name_in_scope; take a
7440 second argument indicating the scope to examine; rewrite for
7441 new bindings structures.
7442 (c_init_decl_processing): Adjust for renamed functions. Do not
7443 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
7444 First scope pushed is the external scope, not the global scope.
7445 (builtin_function): Use bind, not pushdecl. Adjust other bits
7446 for new data structures. Keep track of builtins that should be
7447 made visible automatically.
7448 (start_decl): Adjust diagnostics. Remove unnecessary call to
7449 expand_decl.
7450 (grokparms): Return 0 if arg_types is error_mark_node.
7451 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
7452 reversed sense. Rewrite for new bindings structures. Do not
7453 leave any decls in the scope, to prevent pop_scope from doing
7454 contradictory things with them.
7455 (finish_struct, finish_enum): Remove redundant diagnostics.
7456 (build_enumerator): Don't cascade diagnostics for error_mark_node.
7457 Mark location where -pedantic changes the meaning of the program.
7458 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
7459 parameter decls into the function's scope structure using bind.
7460 Warn here about function definitions in the wrong style.
7461 Adjust diagnostics.
7462 (store_parm_decls): Correct the determination of whether a
7463 function was defined with a prototype.
7464 (c_write_global_declarations): Operate on all file decls and on
7465 the external scope. Split body of the loop to...
7466 (c_write_global_declarations_1): ... this new function, to avoid
7467 code duplication.
7468 (truly_local_externals, first_builtin_decl, last_builtin_decl)
7469 (make_scope, pop_scope, in_parm_level_p, set_block)
7470 (any_external_decl, record_external_decl, bind_label, getdecls)
7471 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
7472 (c_reset_state): Delete.
7473 (visible_builtins, c_override_global_bindings_to_false)
7474 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
7475 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
7476 (external_scope, binding_freelist, bind, free_binding_and_advance)
7477 (push_file_scope, pop_file_scope): New.
7478 (pushtag, pushdecl_top_level, lookup_label, declare_label)
7479 (define_label, c_make_fname_decl, finish_decl)
7480 (mark_forward_parm_decls, build_compound_literal)
7481 (grokdeclarator, start_function, check_for_loop_decls)
7482 (identifier_global_value, record_builtin_type): Minor adjustments
7483 for new bindings structures. Improve diagnostics and commentary.
7484 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
7485 pushlevel/poplevel respectively.
7486 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
7487 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
7488 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
7489 correct loop over multiple translation units; call fatal_error if
7490 requested to compile more than one file at once. (This disables
7491 IMA temporarily - an up-front error being preferable to a crash.)
7492 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
7493 (all actions): Adjust calls to pushlevel/poplevel.
7494 (parsing_iso_function_signature): Delete.
7495 (extdef_1): Fold into extdef.
7496 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
7497 warn here about function definitions in the wrong style.
7498 (after_tyle_declarator, parm_declarator_starttypename)
7499 (parm_declarator_nostarttypename, notype_declarator): Remove
7500 commented-out productions.
7501 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
7502 an empty TREE_LIST node. Adjust calls to get_parm_info.
7503 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
7504 to suppress -Wold-style-definition after this error.
7505 (c_parse_file): Don't clear the binding stack or call
7506 finish_fname_decls here. Correct comment.
7507 * c-typeck.c (same_translation_unit_p): Export.
7508 (common_type): Use c_override_global_bindings_to_false, not
7509 pushlevel/poplevel/declare_parm_level.
7510 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
7511 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
7512 and LANG_HOOKS_GETDECLS with do-nothing stubs.
7513 * objc/objc-lang.c: Likewise.
7514 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
7515 get_parm_info.
7516 (OBJC_VOID_AT_END): Delete; replace all uses
7517 with void_list_node.
7518 (generate_forward_declaration_to_string_table): Delete.
7519 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
7520
7521 * coverage.c (create_coverage): Don't pushdecl anything.
7522 * langhooks.c (lhd_clear_binding_stack): Call
7523 lang_hooks.decls.poplevel, not poplevel.
7524 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
7525 circular list rather than going into an infinite loop.
7526
7527 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
7528
7529 * optabs.c (expand_binop): When synthesizing double word rotates
7530 from single word shifts, use a new register target if the provided
7531 target is not a REG already.
7532
7533 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7534
7535 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
7536 * c-common.c (handle_mode_attribute): Add extra arg to
7537 build_pointer_type_for_mode and build_reference_type_for_mode.
7538 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
7539 for INTEGER_CST.
7540 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
7541 Chain pointers via TYPE_NEXT_PTR_TO.
7542 (build_reference_type_for_mode): Similarly.
7543 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
7544 and build_reference_type_for_mode.
7545 (tree_check4_failed): New function.
7546 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
7547 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
7548 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
7549 Add check.
7550
7551 2004-03-23 Roger Sayle <roger@eyesopen.com>
7552
7553 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
7554 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
7555 when both A and B are nonnegative.
7556 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
7557 nonzero.
7558
7559 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
7560
7561 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
7562 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
7563
7564 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
7565
7566 PR optimization/14669
7567 * fold-const.c (fold): Only unwiden integer comparisons for equality
7568 and inequality operators, or when the signedness doesn't change.
7569
7570 2004-03-23 Jakub Jelinek <jakub@redhat.com>
7571
7572 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
7573 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
7574 * config/sparc/t-linux: New file.
7575
7576 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
7577
7578 * gcse.c (can_assign_to_reg_p): New function, split out from...
7579 (want_to_gcse_p): ...here.
7580 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
7581 the rhs of a store.
7582
7583 2004-03-22 Diego Novillo <dnovillo@redhat.com>
7584
7585 * c-typeck.c (same_translation_unit_p): Fix pasto.
7586
7587 2004-03-22 David Edelsohn <edelsohn@gnu.org>
7588
7589 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
7590 (PARAM_MAX_SCHED_REGION_INSNS): New.
7591 * sched-rgn.c: Include params.h
7592 (MAX_RGN_BLOCKS): Delete.
7593 (MAX_RGN_INSNS): Delete.
7594 (too_large): Return bool. Convert to PARAM_VALUE.
7595 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
7596 * doc/invoke.texi (param): Document max-sched-region-blocks and
7597 max-sched-region-insns.
7598
7599 2004-03-22 Joel Brobecker <brobecker@gnat.com>
7600
7601 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
7602 for base types.
7603
7604 2004-03-22 Joel Brobecker <brobecker@gnat.com>
7605
7606 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
7607 change.
7608
7609 2004-03-22 Jakub Jelinek <jakub@redhat.com>
7610
7611 PR c/14069
7612 * c-decl.c (finish_struct): Change type of incorrect flexible array
7613 field into error_mark_node.
7614
7615 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
7616
7617 PR target/14580
7618 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
7619 who are not local for Darwin PIC.
7620
7621 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7622
7623 * regrename.c (regrename_optimize): Set regs_ever_live for all
7624 registers introduced as replacement.
7625
7626 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
7627
7628 PR middle-end/14470
7629 * expr.c (mark_queue): New function.
7630 (emit_insns_enqueued_after_mark): New function replacing
7631 emit_queue. Clear the body of emitted queued insns.
7632 (emit_queue): Call emit_insns_enqueued_after_mark.
7633 (store_expr): Mark the increment queue on entry. Emit
7634 only the incrementations queued when expanding the source.
7635
7636 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
7637
7638 * configure.ac: Allow --disable-coverage-flags (for the future benefit
7639 of top level bootstrap, and consistency). Reindent.
7640 * configure: Regenerate.
7641
7642 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
7643
7644 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
7645 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
7646 unnecessary casts.
7647
7648 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
7649
7650 PR target/14291
7651 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
7652 __MINGW32__.
7653
7654 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7655
7656 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
7657 to nonimmediate_operand.
7658 ("*doloop_di"): Likewise.
7659
7660 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
7661
7662 * real.h (struct real_value): Use the same type for all
7663 bitfields. Rename exp to uexp.
7664 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
7665 Adjust all uses of exp...
7666 * builtins.c: ... here, ...
7667 * emit-rtl.c: ... here, and ...
7668 * real.c: ... and here.
7669
7670 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
7671
7672 * pretty-print.c (pp_base_maybe_space): New function.
7673 * pretty-print.h (pp_base_maybe_space): Declare.
7674 (pp_maybe_space): New macro.
7675
7676 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7677
7678 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
7679
7680 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7681
7682 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
7683 of using register multiplication cost.
7684 (expand_mult): Adapt choose_mult_variant call.
7685 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
7686 of MODE; pass appropriate cost bound. Adjust result when
7687 performing signed multiplication by a negative constant.
7688 Don't use intermediate modes larger than word_mode.
7689
7690 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7691
7692 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
7693 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
7694 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
7695 * explow.c (expr_size): Likewise.
7696 * expr.h (placeholder_list, find_placeholder): Deleted.
7697 * expr.c (store_constructor): Likewise.
7698 (get_inner_reference): Likewise. Also don't call find_placeholder.
7699 (placeholder_list, find_placeholder): Deleted.
7700 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
7701 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
7702 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
7703 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
7704 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
7705 Likewise.
7706 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
7707 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
7708 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
7709 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
7710 Clean up by using first_rtl_op.
7711 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
7712 (substitute_placeholder_in_expr): New function.
7713 * tree.def (WITH_RECORD_EXPR): Deleted.
7714 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
7715 (substitute_placeholder_in_expr): New.
7716
7717 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
7718
7719 * dojump.c (prefer_and_bit_test): Fix which part of
7720 the and_test is replaced.
7721
7722 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
7723
7724 * frontends.texi: Add missing line.
7725
7726 2004-03-21 Zack Weinberg <zack@codesourcery.com>
7727 Chris Devers <cdevers@pobox.com>
7728 Joseph S. Myers <jsm@polyomino.org.uk>
7729
7730 * doc/frontends.texi: Rewrite.
7731 * doc/gcc.texi: Update last modification date.
7732
7733 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
7734
7735 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
7736 message before redirecting the edge.
7737
7738 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7739
7740 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
7741 flag.
7742 * explow.c (force_not_mem): Set REG_POINTER flag according to
7743 MEM_POINTER one.
7744 * rtl.h (MEM_POINTER): New macro.
7745 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
7746 for MEM_POINTER.
7747
7748 2004-03-20 Roger Sayle <roger@eyesopen.com>
7749
7750 PR target/13889
7751 * cse.c (fold_rtx): Avoid substituting constants into unary
7752 conversion operations.
7753
7754 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7755
7756 * fold-const.c (fold): Replace "expr" with "t".
7757
7758 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
7759
7760 PR c/12373
7761 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
7762 DECL_ORIGINAL_TYPE if there isn't one.
7763
7764 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7765
7766 * fold-const.c (fold): Replace "final_type" with "type".
7767 Remove variable "final_type".
7768
7769 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7770
7771 * fold-const.c (fold): Constify "type".
7772 Replace "TREE_TYPE (t)" with "type".
7773
7774 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7775
7776 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
7777 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
7778 via (*targetm.foo) () with targetm.foo ().
7779
7780 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
7781
7782 PR other/14630
7783 * doc/install.texi: Add info directory category and entry.
7784
7785 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7786
7787 * fold-const.c (fold): Replace "t" with "tem" where it is used
7788 as a temporary variable. Remove "orig_t" and all of its uses.
7789
7790 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7791
7792 * fold-const.c (fold): Remove variable "invert".
7793 Move the handling of relational expressions that can be folded
7794 to a constant ...
7795 (fold_relational_const): ... here.
7796 (tree_expr_nonzero_p): New.
7797
7798 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
7799
7800 PR c/14635
7801 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
7802 DEF_GCC_BUILTIN.
7803
7804 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
7805
7806 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
7807 (GTFILES): Add $(srcdir)/dojump.h.
7808 (gt-dojump.h): New dependency.
7809 * dojump.c (and_reg, and_test, shift_test): New static variables.
7810 (prefer_and_bit_test): New function.
7811 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
7812
7813 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
7814
7815 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
7816 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
7817 reorg.c, tree.h: Fix comment typos.
7818
7819 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
7820
7821 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
7822 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
7823 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
7824 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
7825 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
7826 vmsdbgout.c: Replace calls via (*targetm.foo) () with
7827 targetm.foo ().
7828
7829 2004-03-19 Ziemowit Laski <zlaski@apple.com>
7830
7831 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
7832 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
7833 always_inline attribute.
7834 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
7835 Treat expansion as completed even if literal argument is
7836 invalid (so that other expansions are not tried in vain).
7837
7838 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
7839
7840 * loop-doloop.c (add_test): Replace GEN_INT (0) with
7841 const0_rtx.
7842
7843 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
7844
7845 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
7846 ...
7847 (fold_abs_const): ... here.
7848
7849 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7850
7851 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
7852
7853 2004-03-19 Denis Chertykov <denisc@overta.ru>
7854
7855 PR target/11520
7856 * config/avr/avr.md ("call_insn"): Handle explicit integer
7857 specially.
7858 (call_value_insn): Likewise.
7859
7860 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7861
7862 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
7863
7864 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
7865
7866 * fold-const.c (negate_expr): Move the handling of constants
7867 ...
7868 (fold_negate_const): ... here.
7869
7870 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7871
7872 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
7873 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
7874 * tree.c (debug_no_type_hash): Deleted.
7875 (type_hash_canon): Abort if passed a variant.
7876 Check lang_hooks.types.hash_types.
7877 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
7878 (build_array_type): Remove unnecessary allocation of pointer type.
7879 (build_complex_type): Properly qualify resulting type.
7880
7881 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
7882
7883 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
7884
7885 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
7886
7887 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
7888 (expand_mult): ...here.
7889 (extract_high_half): New, split out from expand_mult_highpart.
7890 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
7891 (expand_highpart): Evaluate the cost of a shift/add sequence,
7892 then see if any of the specialized optabs are cheaper.
7893
7894 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
7895
7896 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
7897
7898 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7899
7900 * convert.c (convert_to_real): Add more math builtins.
7901
7902 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7903
7904 * convert.c (convert_to_real): Reformat using switch stmt.
7905
7906 2004-03-18 Mark Mitchell <mark@codesourcery.com>
7907
7908 * c-common.c (pointer_int_sum): Do not complain about using
7909 pointers to pointers-to-members.
7910
7911 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
7912
7913 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
7914 have moved to the target hooks structure".
7915
7916 2004-03-18 James E Wilson <wilson@specifixinc.com>
7917
7918 * config/mips/mips.md (type): Split move into arith and fmove. Split
7919 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
7920 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
7921 Likewise.
7922 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
7923 Likewise.
7924 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
7925 rm7_fp_quick): Likewise.
7926 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
7927 rm9k_fquick): Likewise.
7928 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
7929 Likewise.
7930 (ir_sr70_icmp): Delete.
7931
7932 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7933
7934 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
7935 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
7936 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
7937 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
7938 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
7939 Protect with proper check.
7940 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
7941 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
7942 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
7943 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
7944 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
7945 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
7946 not TYPE_FIELDS.
7947 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
7948
7949 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
7950
7951 * gcse.c (eliminate_partially_redundant_loads): Reject change if
7952 dest is set between beginning and current insn.
7953
7954 2004-03-18 Mark Mitchell <mark@codesourcery.com>
7955
7956 * c-decl.c (grokdeclarator): Do not complain about redeclaring
7957 visible "static" identifiers "extern" in a local scope.
7958 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
7959 post-increments/decrements.
7960
7961 2004-03-18 Bob Wilson <bob.wilson@acm.org>
7962
7963 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
7964 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
7965 (xtensa_va_start): Remove assignment to current_function_arg_words.
7966
7967 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
7968
7969 * alias.c (record_set): Detect the case where a register is assigned
7970 a new value that has the same base term as the old one.
7971
7972 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7973
7974 * doloop.c: Removed.
7975 * loop-doloop.c: New file.
7976 * Makefile.in (doloop.o): Remove.
7977 (loop-doloop.o): New.
7978 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
7979 * cfgloopanal.c (get_loop_level): New function.
7980 * loop-iv.c (iv_number_of_iterations): Handle case when loop
7981 is leaved immediatelly.
7982 * loop.c (strength_reduce): Do not call doloop optimization.
7983 * loop.h (LOOP_BCT): Removed.
7984 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
7985 (rest_of_handle_loop2): Call doloop_optimize_loops.
7986 (rest_of_compilation): Test for optimizations moved to
7987 rest_of_handle_loop2.
7988
7989 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
7990
7991 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
7992 for mixed mode.
7993 (rs6000_emit_prologue): Ditto.
7994 (rs6000_emit_epilogue): Ditto.
7995 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
7996 macro for mixed mode.
7997
7998 2004-03-18 Jan Hubicka <jh@suse.cz>
7999
8000 * predict.c (propagate_freq): Compute correctly frequency of
8001 EXIT_BLOCK.
8002
8003 2004-03-17 Eric Christopher <echristo@redhat.com>
8004
8005 * builtins.c (apply_args_size): Use reg_raw_mode.
8006 (apply_result_size): Ditto.
8007
8008 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8009
8010 PR target/14620
8011 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
8012
8013 2004-03-17 Jakub Jelinek <jakub@redhat.com>
8014
8015 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
8016 32-bit builds when defaulting to 32-bit.
8017
8018 2004-03-17 Jan Hubicka <jh@suse.cz>
8019
8020 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
8021 array.
8022
8023 2004-03-17 James E Wilson <wilson@specifixinc.com>
8024
8025 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
8026 (hazard_nop): Change type to nop.
8027 (type): Split arith into arith, shift, slt, clz. Delete darith.
8028 Fix all uses. Change arith to multi if more than one insn emitted.
8029 * config/mips/5400.md (ir_vr54_arith): Likewise.
8030 * config/mips/5500.md (ir_vr55_arith): Likewise.
8031 * config/mips/7000.md (rm7_int_other): Likewise.
8032 * config/mips/9000.md (rm9k_int): Likewise.
8033 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
8034
8035 2004-03-17 Joel Brobecker <brobecker@gnat.com>
8036
8037 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
8038 to hold the subtype tree instead of recomputing it several times.
8039
8040 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
8041
8042 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
8043 CC_INVERT.
8044 * config/mn10300/mn10300.md (cc): Remove "invert".
8045
8046 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8047
8048 * builtins.c (integer_valued_real_p): Add builtin rint.
8049 (fold_builtin): Likewise.
8050 * convert.c (convert_to_real): Likewise.
8051
8052 * convert.c (convert_to_real): Fix typos in `long double'
8053 builtins.
8054
8055 2004-03-16 Mark Mitchell <mark@codesourcery.com>
8056
8057 PR c++/14481
8058 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
8059 generated COMPOUND_EXPRs.
8060
8061 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8062
8063 * config/h8300/t-rtems (h8300-*-rtems*): New.
8064
8065 2004-03-16 Eric Christopher <echristo@redhat.com>
8066
8067 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
8068
8069 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
8070
8071 * config/i386/i386-protos.h: Add a prototype for
8072 ix86_reverse_condition.
8073 * config/i386/i386.c (ix86_reverse_condition): New.
8074 * config/i386/i386.h (REVERSE_CONDITION): Use
8075 ix86_reverse_condition.
8076 * config/i386/i386.md: Use ix86_reverse_condition instead of
8077 REVERSE_CONDITION.
8078
8079 2004-03-16 J. Brobecker <brobecker@gnat.com>
8080
8081 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
8082
8083 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
8084
8085 PR bootstrap/12974
8086 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
8087
8088 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
8089
8090 * c-common.c (c_common_type_for_mode): Build vector types on
8091 demand.
8092 (handle_mode_attribute): Deprecate using the mode attribute
8093 to create vector types. Fix indentation.
8094 (vector_type_node_list): Remove.
8095 (handle_vector_size_attribute): Create vector types on demand.
8096 Strip a NON_LVALUE_EXPR from the attribute if there is one.
8097 * c-typeck.c (comptypes): Make vector types compatible if they
8098 have the same underlying mode.
8099 (convert_for_assignment): Use comptypes to convert between
8100 vector types.
8101 * tree.c (build_common_tree_nodes_2): Do not create vector types.
8102 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
8103 vector types.
8104 * tree.h: Remove vector types.
8105 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
8106 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
8107 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
8108 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
8109 * doc/extend.texi (Vector Types): Document how to use the
8110 vector_size attribute to create vectors, rather than mode.
8111
8112 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
8113 * config/i386/emmintrin.h: Likewise.
8114 * config/i386/mmintrin.h: Likewise.
8115 * config/i386/xmmintrin.h: Likewise.
8116 * config/sh/ushmedia.h: Likewise.
8117
8118 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
8119
8120 * config/freebsd-spec.h, config/arc/arc-protos.h,
8121 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
8122 config/arm/linux-gas.h, config/arm/semi.h,
8123 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
8124 config/ia64/freebsd.h, config/mips/7000.md,
8125 config/mips/9000.md, config/ns32k/ns32k-protos.h,
8126 config/sparc/pbd.h: Update copyright.
8127
8128 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8129
8130 PR target/14577
8131 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
8132
8133 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
8134
8135 * combine.c (combine_simplify_rtx): Remove the "last"
8136 parameter and its documentation. Adjust recursive calls.
8137 (simplify_logical): Always perform the only simplification
8138 controlled by "last", if the simplified expression is
8139 actually different.
8140 (try_combine): Do not pass the "last" parameter to
8141 combine_simplify_rtx.
8142
8143 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
8144
8145 PR target/14599
8146 * config/mips/mips.md (UNSPEC_GP): New constant.
8147 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
8148 an UNSPEC instead of (reg $gp).
8149 (mips16_gp_pseudo_reg): Change accordingly.
8150 (print_operand): Print $gp directly when handling CONST_GP_P.
8151
8152 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
8153
8154 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
8155 * longlong.h: Make code 68060 clean when compiling for m68060.
8156
8157 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
8158
8159 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
8160 * doc/md.texi: Clarify description of "i" constraint.
8161
8162 2004-03-15 James E Wilson <wilson@specifixinc.com>
8163
8164 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
8165 Split store into store, fpstore, fpidxstore. Fix all uses.
8166 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
8167 Likewise.
8168 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
8169 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
8170 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
8171 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
8172 ir_sr70_fstore): Likewise.
8173
8174 2004-03-15 Richard Henderson <rth@redhat.com>
8175
8176 PR middle-end/14535
8177 * except.c (collect_one_action_chain): Record action for cleanup
8178 outer of exception spec.
8179
8180 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
8181
8182 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
8183 Fix the check for abort and only do the mmap if we can.
8184
8185 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
8186
8187 * config/sparc/sparc.h: Rework comments about the code model
8188 in 64-bit environment and the mode 'Pmode'.
8189 * doc/invoke.texi (SPARC options): Rework description of the
8190 different code models supported in 64-bit environment.
8191
8192 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
8193
8194 * defaults.h (REVERSIBLE_CC_MODE): Define.
8195 * jump.c (reversed_comparison_code_parts): Don't check if
8196 REVERSIBLE_CC_MODE is defined.
8197
8198 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
8199
8200 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
8201 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
8202 hosthooks.h, params.h, ra-colorize.c, web.c,
8203 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
8204 config/avr/avr-protos.h, config/avr/avr.md,
8205 config/fr30/fr30-protos.h, config/fr30/fr30.md,
8206 config/h8300/fixunssfsi.c, config/i386/darwin.h,
8207 config/i386/freebsd.h, config/i386/freebsd64.h,
8208 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
8209 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
8210 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
8211 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
8212 config/pa/pa64-regs.h, config/rs6000/aix41.h,
8213 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
8214 config/sparc/aout.h, config/sparc/freebsd.h,
8215 config/sparc/litecoff.h, config/vax/vax-protos.h,
8216 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
8217 copyright.
8218
8219 2004-03-15 Paul Brook <paul@codesourcery.com>
8220
8221 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
8222
8223 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
8224
8225 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
8226 (pp_c_cv_qualifier): Document.
8227 (pp_c_space_for_pointer_operator): Likewise.
8228 (pp_c_integer_constant): Likewise.
8229 (pp_c_identifier): Likewise.
8230 (pp_c_init_declarator): Don't print function body.
8231
8232 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
8233
8234 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
8235 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
8236 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
8237 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
8238 wording and grammar.
8239
8240 2004-03-14 Roger Sayle <roger@eyesopen.com>
8241
8242 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
8243 with lang_hooks.foo ().
8244 * builtins.c (expand_builtin_va_arg): Likewise.
8245 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
8246 c_common_type_for_mode, c_common_nodes_and_builtins,
8247 handle_mode_attribute, handle_vector_size_attribute): Likewise.
8248 * c-convert.c (convert): Likewise.
8249 * c-format.c (check_format_types): Likewise.
8250 * c-objc-common.c (c_tree_printer): Likewise.
8251 * c-typeck.c (build_unary_op, build_conditional_expr,
8252 build_binary_op): Likewise.
8253 * calls.c (try_to_integrate, expand_call,
8254 emit_library_call_value_1): Likewise.
8255 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
8256 Likewise.
8257 * cgraphunit.c (record_call_1, cgraph_analyze_function,
8258 cgraph_expand_function): Likewise.
8259 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
8260 * coverage.c (build_fn_info_type, build_ctr_info_type,
8261 build_gcov_info, create_coverage): Likewise.
8262 * dbxout.c (dbxout_init): Likewise.
8263 * diagnostic.c (diagnostic_report_current_function): Likewise.
8264 * dojump.c (do_jump): Likewise.
8265 * dwarf2out.c (dwarf2_name): Likewise.
8266 * except.c (init_eh): Likewise.
8267 * explow.c (expr_size, int_expr_size): Likewise.
8268 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
8269 Likewise.
8270 * expr.c (store_expr, store_constructor, safe_from_p,
8271 expand_expr_real, do_store_flag, try_casesi): Likewise.
8272 * function.c (push_function_context_to, pop_function_context_from,
8273 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
8274 put_var_into_stack, allocate_struct_function, current_function_name):
8275 Likewise.
8276 * integrate.c (copy_decl_for_inlining, expand_inline_function):
8277 Likewise.
8278 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
8279 lhd_print_error_function): Likewise.
8280 * opts.c (handle_option, decode_options): Likewise.
8281 * passes.c (open_dump_file): Likewise.
8282 * print-tree.c (print_node): Likewise.
8283 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
8284 expand_decl_cleanup, emit_case_nodes): Likewise.
8285 * stor-layout.c (variable_size): Likewise.
8286 * toplev.c (announce_function, wrapup_global_declarations,
8287 check_global_declarations, compile_file, default_tree_printer,
8288 process_options, lang_dependent_init, finalize): Likewise.
8289 * tree-dump.c (dequeue_and_dump): Likewise.
8290 * tree-inline.c (remap_decl, remap_block, copy_body_r,
8291 initialize_inlined_parameters, declare_return_variable,
8292 inlinable_function_p, expand_call_inline, optimize_inline_calls,
8293 walk_tree, copy_tree_r): Likewise.
8294 * tree-optimize.c (tree_rest_of_compilation): Likewise.
8295 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
8296 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
8297 variably_modified_type_p, dump_tree_statistics): Likewise.
8298 * varasm.c (assemble_variable, compare_constant, copy_constant,
8299 force_const_mem, compute_reloc_for_constant, output_constant,
8300 output_addressed_constants, initializer_constant_valid_p): Likewise.
8301
8302 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
8303
8304 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
8305
8306 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
8307
8308 * doc/install.texi: Reflect autoconf and automake version for
8309 libffi. Update autoconf version to 2.59.
8310
8311 2004-03-13 Roger Sayle <roger@eyesopen.com>
8312
8313 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
8314 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
8315 make_range, build_range_check, fold_range_test, unextend,
8316 constant_boolean_node, fold_binary_op_with_conditional_arg,
8317 fold_truthop, fold_mathfn_compare, fold_inf_compare,
8318 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
8319 with lang_hooks.foo ().
8320
8321 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
8322
8323 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
8324
8325 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
8326
8327 * doc/install.texi: Note status of -fnew-ra.
8328
8329 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
8330
8331 PR middle-end/14470
8332 * expr.c (store_expr): Call emit_queue before generating the move
8333 from the temporary to the original target. Protect the temporary
8334 from emit_queue.
8335
8336 2004-03-13 Jakub Jelinek <jakub@redhat.com>
8337
8338 PR target/14533
8339 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
8340 other than UNSPEC_GOTOFF.
8341
8342 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
8343
8344 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
8345 to arm_legitimate_index_p. Update all callers with SET as default
8346 value.
8347 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
8348 range if OUTER is a sign-extend operation on QImode. Correctly
8349 reject shift operations on sign-extended QImode addresses.
8350 (bad_signed_byte_operand): Delete.
8351 (arm_extendqisi_mem_op): New function.
8352 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
8353 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
8354 constraints.
8355 (CONSTRAINT_LEN): New.
8356 (EXTRA_CONSTRAINT): Delete. Replace with...
8357 (EXTRA_CONSTRAINT_STR): ... this.
8358 (PREDICATE_CODES): Remove bad_signed_byte_operand.
8359 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
8360 is now always default.
8361 (define_splits for bad sign-extend loads): Delete.
8362 (arm_extendqisi, arm_extendqisi_v5): Likewise.
8363 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
8364 Rework 'U' constraint to 'Uv'.
8365 * arm-protos.h: Remove bad_signed_byte_operand. Add
8366 arm_extendqisi_mem_op.
8367 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
8368 Add Uq constraint.
8369
8370 2004-03-13 Alan Modra <amodra@bigpond.net.au>
8371
8372 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
8373 with targetm version.
8374
8375 PR target/14567
8376 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
8377 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
8378 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
8379 Update all users of RS6000_ARG_SIZE.
8380 (function_arg_advance): Count fregno using mode size.
8381 (function_arg): Handle long double split over regs and memory.
8382 (function_arg_partial_nregs): Likewise.
8383 (rs6000_va_arg): Repackage complex args.
8384
8385 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
8386
8387 PR target/14047
8388 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
8389 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
8390 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
8391
8392 2004-03-12 Jakub Jelinek <jakub@redhat.com>
8393
8394 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
8395 prototype.
8396 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
8397 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
8398
8399 2003-03-12 Andrew Pinski <apinski@apple.com>
8400
8401 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
8402 Use ret instead of result. Use addr instead of base.
8403
8404 2004-03-12 David Edelsohn <edelsohn@gnu.org>
8405
8406 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
8407 fixes required by libstdc++ and update installation instructions
8408 for libstdc++.a.
8409
8410 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
8411
8412 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
8413 leading '@' on fastcall symbols before stripping suffix.
8414
8415 2004-03-12 Roger Sayle <roger@eyesopen.com>
8416
8417 * combine.c (unmentioned_reg_p): New function to check whether an
8418 expression is a "specialization" of another, i.e. that there are
8419 no registers or memory references mentioned in the first that don't
8420 appear in the second.
8421 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
8422 (combine_instructions): Also try combining instructions using the
8423 REG_EQUAL note from a preceding log-linked instruction.
8424
8425 2004-03-12 Roger Sayle <roger@eyesopen.com>
8426
8427 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
8428
8429 2004-03-12 Matt Austern <austern@apple.com>
8430
8431 * target.h (struct gcc_target): New target hook, unwind_label.
8432 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
8433 * output.h (default_emit_unwind_label): New function.
8434 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
8435 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
8436 (TARGET_SUPPORTS_HIDDEN): New target macro.
8437 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
8438 that corresponds to this FDE.
8439 (FRAME_BEGIN_LABEL): Allow target to override default label.
8440 (output_call_frame_info): If FDEs are linknonce, then use extra
8441 indirection for FDE encoding, output a label for each FDE, and
8442 output an empty label for each function without an FDE.
8443 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
8444 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
8445 decls with DECL_ONE_ONLY set, if that macro is defined.
8446 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
8447 for a SUPPORTS_ONE_ONLY target.
8448 * config/darwin-protos.h (darwin_unique_section): Declare.
8449 (darwin_asm_named_section): Likewise.
8450 (darwin_section_type_flags): Likewise.
8451 (darwin_non_lazy_pcrel): Likewise.
8452 (darwin_emit_unwind_label): Likewise.
8453 (darwin_make_decl_one_only): Likewise.
8454 * config/darwin.c (machopic_finish): Get rid of tweak that
8455 eliminate stubs for symbols that are defined.
8456 (darwin_encode_section_info): Don't treat weak functions as defined.
8457 (darwin_make_decl_one_only): Define.
8458 (darwin_asm_named_section): Likewise.
8459 (darwin_section_type_flags): Likewise.
8460 (darwin_unique_section): Likewise.
8461 (darwin_emit_unwind_label): Likewise.
8462 (darwin_non_lazy_pcrel): Likewise.
8463 (darwin_asm_output_dwarf_delta): Difference between two labels is
8464 local only if both labels are local.
8465 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
8466 (ASM_MAKE_LABEL_LINKONCE): Likewise.
8467 (TARGET_SUPPORTS_HIDDEN): Likewise.
8468 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
8469 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
8470 (FRAME_BEGIN_LABEL): Likewise.
8471 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
8472 (ASM_DECLARE_FUNCTION_NAME): Likewise.
8473 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
8474 (TARGET_ASM_UNIQUE_SECTION): Define.
8475 (EH_FRAME_SECTION_NAME): Define.
8476 (EH_FRAME_SECTION_ATTR): Likewise.
8477 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
8478 (TARGET_ASM_NAMED_SECTION): Likewise.
8479 (TARGET_SECTION_TYPE_FLAGS): Likewise.
8480 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
8481 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
8482 TARGET_ASM_EMIT_UNWIND_LABEL.
8483
8484 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8485
8486 * builtins.c (expand_builtin_mathfn): Add pow10* to the
8487 existing exp10* case.
8488 (expand_builtin): Likewise.
8489
8490 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
8491
8492 * doc/tm.texi (registers) <Values in Registers>: Add
8493 entry for REGMODE_NATURAL_SIZE.
8494
8495 2004-03-12 Richard Henderson <rth@redhat.com>
8496
8497 PR target/14547
8498 * target.h (struct gcc_target): Move calls substructure before
8499 booleans. Add split_complex_arg.
8500 * function.c (assign_parms, split_complex_args): Use it.
8501 * calls.c (expand_call): Likewise.
8502 (split_complex_values): Likewise. Check for splittable types
8503 before allocating memory.
8504 (split_complex_types): Likewise.
8505 * system.h (SPLIT_COMPLEX_ARGS): Poison.
8506 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
8507 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
8508 * config/alpha/alpha.c (alpha_split_complex_arg): New.
8509 (TARGET_SPLIT_COMPLEX_ARG): New.
8510 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
8511 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
8512 (rs6000_override_options): Zap it for non-AIX.
8513 (rs6000_function_value): Use targetm.calls.split_complex_arg.
8514 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
8515 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
8516 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
8517 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
8518 SPLIT_COMPLEX_ARGS entry.
8519
8520 2004-03-11 Richard Henderson <rth@redhat.com>
8521
8522 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
8523 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
8524 (alpha_emit_xfloating_arith): Update to match.
8525 (alpha_emit_xfloating_compare): Likewise.
8526 (alpha_emit_xfloating_cvt): Likewise.
8527 (alpha_emit_xfloating_libcall): Take already built symbol,
8528 mark call const.
8529 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
8530 op1 in a register.
8531
8532 2004-03-11 Richard Henderson <rth@redhat.com>
8533
8534 PR target/14539
8535 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
8536
8537 * simplify-rtx.c (simplify_relational_operation): Fix typo.
8538
8539 2004-03-11 Richard Henderson <rth@redhat.com>
8540
8541 PR middle-end/14477
8542 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
8543
8544 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
8545
8546 PR target/14262
8547 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
8548 defined, pass small BLKmode values in registers in the low-order part.
8549
8550 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
8551
8552 * combine.c (if_then_else_cond): Check for NULL return value of
8553 simplify_gen_subreg.
8554
8555 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
8556
8557 PR target/14496
8558 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
8559 TARGET_SINGLE_FLOAT.
8560
8561 2004-03-11 Steve Ellcey <sje@cup.hp.com>
8562
8563 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
8564 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
8565 * config/ia64/ia64.c (ia64_init_libfuncs): New.
8566 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
8567
8568 2004-03-11 Roger Sayle <roger@eyesopen.com>
8569
8570 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
8571 -((int)X>>C) where C is an integer constant one bit less than the
8572 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
8573 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
8574
8575 * simplify-rtx.c (simplify_unary_operation): Also implement the
8576 above transformations at the RTL level.
8577
8578 2004-03-11 Alan Modra <amodra@bigpond.net.au>
8579
8580 * real.c (encode_ibm_extended): Do round low word.
8581
8582 2004-03-11 Ben Elliston <bje@wasabisystems.com>
8583
8584 * config/arm/arm.md (is_xscale): Comment this attribute and move
8585 it a bit further up in the file, closer to related attributes.
8586
8587 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
8588
8589 * config/host-solaris.c (sol_gt_pch_use_address): Add
8590 missing terminating marker to comment.
8591
8592 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
8593
8594 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
8595 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
8596 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
8597 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
8598 move_operand as source predicate in all cases.
8599 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
8600 Test reg_or_0_operand. Use move_operand as source predicate.
8601 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
8602 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
8603 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
8604 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
8605 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
8606 Use move_operand as source predicate. Remove 'K' constraint.
8607 (*movqi_internal): Likewise movqi_internal.
8608 (*movsf_hardfloat): Renamed from movsf_internal1. Test
8609 reg_or_0_operand. Use move_operand as source predicate.
8610 (*movsf_softfloat): Likewise movsf_internal2.
8611 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
8612 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
8613 (*movdf_softfloat): Likewise movdf_internal2.
8614 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
8615 for DImode if !TARGET_64BIT.
8616 (mips_legitimize_move): Simplify accordingly.
8617
8618 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
8619
8620 PR/14362
8621 * var-tracking.c (struct variable_def): Added field refcount.
8622 (variable_htab_free): Decrease the refcount and delete variable
8623 only if there are no more references.
8624 (unshare_variable): New function.
8625 (vars_copy_1): Increase refcount instead of copying the variable.
8626 (variable_union): Share the variables where possible, unshare
8627 the variables if needed.
8628 (variable_different_p): Return false if var1 and var2 are
8629 the same structure.
8630 (variable_was_changed): Init the refcount of new variable.
8631 (set_frame_base_location): Unshare variable if needed.
8632 (set_variable_part): Init the refcount of new variable.
8633 Unshare the variables if needed.
8634 (delete_variable_part): Unshare the variables if needed.
8635 (emit_notes_for_differences_1): Init the refcount of new variable.
8636 (vt_add_function_parameters): Do not add function parameters to
8637 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
8638 (vt_initialize): Do not add frame_base_decl to IN set of
8639 ENTRY_BLOCK_PTR because it is unused anyway.
8640
8641 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
8642
8643 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
8644 (vars_copy): Likewise.
8645 (variable_union): Likewise.
8646 (set_variable_part): Likewise.
8647 (delete_variable_part): Likewise.
8648
8649 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
8650
8651 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
8652 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
8653 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
8654 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
8655 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
8656 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
8657 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
8658 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
8659 config/stormy16/stormy16.c: Fix comment typos and formatting.
8660
8661 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
8662
8663 * configure: Regenerate, since I forgot to while committing Paolo's
8664 changes.
8665
8666 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
8667
8668 PR ada/14131
8669 Move language detection to the top level.
8670 * configure.ac: Remove code to detect languages,
8671 it now lives exclusively in the top level.
8672 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
8673 top level, renamed to ACX_PROG_GNAT.
8674
8675 2004-03-10 Richard Henderson <rth@redhat.com>
8676
8677 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
8678 extra arguments.
8679 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
8680 and host_xmake_file fragments.
8681 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
8682 (gt_pch_restore): Similarly for gt_pch_use_address.
8683 (default_gt_pch_get_address): New.
8684 (mmap_gt_pch_get_address): Split out of gt_pch_save.
8685 (default_gt_pch_use_address): Split out of gt_pch_restore.
8686 (mmap_gt_pch_use_address): Likewise.
8687 * hooks.c (hook_voidp_size_t_null): Remove.
8688 (hook_bool_voidp_size_t_false): Remove.
8689 * hooks.h: Likewise.
8690 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
8691 default_ or mmap_ definitions.
8692 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
8693 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
8694 and gt_pch_use_address.
8695 * config/host-linux.c, config/host-solaris.c: New files.
8696 * config/x-linux, config/x-solaris: New files.
8697 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
8698 Update for changed definition.
8699 (darwin_rs6000_gt_pch_use_address): Likewise.
8700 * doc/hostconfig.texi: Update docs.
8701
8702 2004-03-10 Richard Henderson <rth@redhat.com>
8703
8704 PR c/14517
8705 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
8706 except for pedantic c90 mode.
8707
8708 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
8709
8710 * configure.ac: Bump AC_PREREQ to 2.59.
8711 * configure: Regenerate.
8712
8713 2004-03-10 Uros Bizjak <uros@kss-loka.si>
8714
8715 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
8716 (exp10_optab, exp2_optab): Define corresponding macros.
8717 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
8718 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
8719 using exp10?f2 and exp2?f2 patterns.
8720 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
8721 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
8722 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
8723 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
8724
8725 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
8726 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
8727 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
8728
8729 2004-03-10 Anthony Green <green@redhat.com>
8730
8731 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
8732
8733 2004-03-10 David Edelsohn <edelsohn@gnu.org>
8734
8735 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
8736 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
8737 __LONGDOUBLE128.
8738 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
8739 TARGET_OS_AIX_CPP_BUILTINS.
8740 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
8741 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
8742 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
8743 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
8744 previous change.
8745
8746 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8747
8748 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
8749
8750 2004-03-10 David Edelsohn <edelsohn@gnu.org>
8751
8752 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8753 __LONGDOUBLE128 on AIX.
8754
8755 2004-03-10 Andrew Haley <aph@redhat.com>
8756
8757 PR optimization/14381
8758 * function.c (expand_function_end): Emit a blockage insn before
8759 the epilogue when -fnon-call-exceptions is used.
8760
8761 * except.c (expand_start_all_catch): Make comment more accurate.
8762
8763 2004-03-08 Joel Sherrill <joel@oarcorp.com>
8764
8765 PR target/14480
8766 * config/rs6000/t-rtems: Add missing file on branch.
8767
8768 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
8769
8770 * dbxout.c (dbxout_symbol_location): Do not output references
8771 to optimized-out constant pool symbols.
8772
8773 2004-03-10 Andreas Schwab <schwab@suse.de>
8774
8775 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
8776 twon34_r.
8777
8778 2004-03-09 James E Wilson <wilson@specifixinc.com>
8779
8780 * alias.c (alias_sets_might_conflict_p): New.
8781 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
8782 * common.opt (Wstrict-aliasing=): New.
8783 * flags.h (warn_strict_aliasing): Change type to int.
8784 * opts.c (warn_strict_aliasing): Change type to int.
8785 (common_handle_option): Handle OPT_Wstrict_aliasing_.
8786 * tree.h (alias_sets_might_conflict_p): Declare it.
8787 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
8788
8789 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
8790
8791 PR bootstrap/12371
8792 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
8793 (CALL_USED_REGISTERS): Likewise.
8794 (REG_CLASS_CONTENTS): Likewise.
8795 (REG_ALLOC_ORDER): New.
8796 (REGNO_REG_CLASS): Use regno_reg_class.
8797 * config/m68k/m68k.c: Add regno_reg_class array.
8798
8799 2004-03-09 Steve Ellcey <sje@cup.hp.com>
8800
8801 * config/ia64/ia64.md (divsi3): Fix algorithm.
8802 (udivsi3): Ditto.
8803 (setf_exp_xf): Remove '*' from name.
8804 * testsuite/gcc.dg/20040309-1.c: New test.
8805
8806 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
8807
8808 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
8809 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
8810 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
8811 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
8812 (sparc_aout_select_rtx_section): Don't check
8813 SUNOS4_SHARED_LIBRARIES.
8814 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
8815
8816 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
8817
8818 PR other/14474
8819 * doc/md.texi (Pattern Ordering, Dependent Patterns)
8820 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
8821 INTERNALS".
8822
8823 2004-03-09 Zack Weinberg <zack@codesourcery.com>
8824
8825 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
8826 (LIBGCC_SPEC): Update to match.
8827
8828 2004-03-09 Zack Weinberg <zack@codesourcery.com>
8829
8830 * c-decl.c (last_function_parms, last_function_parm_tags)
8831 (last_function_parm_others, current_function_parms)
8832 (current_function_parm_tags, current_function_parm_others):
8833 Delete.
8834 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
8835 New macros.
8836 (grokdeclarator): For function definitions, save the arg-info
8837 block from the declarator in DECL_ARGUMENTS.
8838 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
8839 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
8840 contains only PARM_DECLs. Improve diagnostics.
8841 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
8842 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
8843 (store_parm_decls_newstyle): Take the function to operate on,
8844 and an arg-info block, as arguments; don't get anything from
8845 current_function_* globals.
8846 (store_parm_decls_oldstyle): Likewise.
8847 (store_parm_decls): Pass fndecl and its arg-info block down to
8848 store_parm_decls_newstyle/oldstyle. Send functions with empty
8849 argument lists through store_parm_decls_newstyle to reduce
8850 overhead.
8851 (pushdecl): Comment on the problems with the call to copy_node.
8852 Clear DECL_ARGUMENTS of the old node after copying it, if it
8853 is an arg-info block instead of a chain of decls.
8854 (start_function): Do not manipulate current_function_parm* or
8855 last_function_parm*.
8856
8857 2004-03-09 Roger Sayle <roger@eyesopen.com>
8858 Andrew Pinski <pinskia@physics.uc.edu>
8859
8860 * ifcvt.c (noce_try_sign_mask): New function to transform
8861 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
8862 (noce_process_if_block): Call noce_try_sign_mask.
8863
8864 2004-03-09 Andrew Pinski <apinski@apple.com>
8865
8866 * c-typeck.c (tagged_types_tu_compatible_p):
8867 Fix typo.
8868
8869 2004-03-09 Roger Sayle <roger@eyesopen.com>
8870
8871 * simplify-rtx.c (simplify_const_relational_operation): New function
8872 renamed from simplify_relational_operation.
8873 (simplify_relational_operation): Change prototype to accept an
8874 additional mode argument. Call simplify_const_relational_operation.
8875 (simplify_gen_relational): Update simplify_relational_operation call.
8876 (simplify_ternary_operation): Update simplify_relational_operation
8877 subroutine call to use simplify_const_relational_operation instead.
8878
8879 * rtl.h (simplify_const_relational_operation): Prototype here.
8880 (simplify_relational_operation): Add addtional mode argument.
8881
8882 * combine.c (combine_simplify_rtx): Update calls to
8883 simplify_relational_operation.
8884 (simplify_set): Likewise.
8885 (gen_binary): Likewise.
8886 * cse.c (fold_rtx): Likewise.
8887 * dojump.c (compare_from_rtx): Likewise.
8888 (do_compare_rtx_and_jump): Likewise.
8889 * integrate.c (subst_constants): Likewise.
8890 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
8891
8892 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
8893
8894 * config/m32r/m32r.md: Remove all define_peephole's.
8895
8896 2004-03-09 Alan Modra <amodra@bigpond.net.au>
8897
8898 * config/rs6000/rs6000.md: Remove trailing whitespace.
8899
8900 2004-03-08 Eric Christopher <echristo@redhat.com>
8901
8902 * Makefile.in (site.exp): Add libiconv variable definition.
8903
8904 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
8905
8906 * configure: Regenerate for config/accross.m4 correction.
8907
8908 2004-03-08 Joel Sherrill <joel@oarcorp.com>
8909
8910 PR target/14480
8911 * config/rs6000/t-rtems: Add missing file on branch.
8912
8913 2004-03-08 Roger Sayle <roger@eyesopen.com>
8914
8915 PR middle-end/14289
8916 * c-typeck.c (c_mark_addressable): A register variable should
8917 be considered global if its not automatic, i.e. TREE_PUBLIC,
8918 TREE_STATIC or DECL_EXTERNAL.
8919 * function.c (put_var_into_stack): Call abort when placing a
8920 hard register into the stack, if x_parm_reg_stack_loc is NULL.
8921
8922 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8923
8924 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
8925 ("*extendqisi2_short_displ"): Likewise.
8926
8927 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
8928
8929 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
8930 (comp_operator): Likewise.
8931 * config/pdp11/pdp11-protos.h: Remove corresponding
8932 prototypes.
8933
8934 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
8935
8936 * expr.c (highest_pow2_factor_for_type): Rename into
8937 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
8938 TYPE_ALIGN when the target is a COMPONENT_REF.
8939 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
8940
8941 2004-03-08 Alan Modra <amodra@bigpond.net.au>
8942
8943 * config/rs6000/rs6000.c: Formatting fix.
8944 (legitimate_offset_address_p): Correct offset range check.
8945
8946 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
8947 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
8948 and MASK_STRING.
8949
8950 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
8951
8952 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
8953 for little endian.
8954 ("ashrdi3_no_power"): Disable for little endian.
8955 (ashrdi3): Same.
8956
8957 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8958
8959 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
8960 builtins.
8961
8962 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
8963
8964 PR target/14471
8965 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
8966 case, checking for -no-mul-bug-abort option.
8967 * configure, config.in: Regenerate.
8968 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
8969 and -mno-mul-bug-workaround.
8970 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
8971 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
8972 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
8973 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
8974 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
8975 sure mulu.d is not last on cache-line.
8976 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
8977 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
8978 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
8979 (TARGET_SWITCHES): New options -mmul-bug-workaround and
8980 -mno-mul-bug-workaround.
8981 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
8982 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
8983 * config/cris/cris.c (cris_operand_extend_operator): Clarify
8984 relation to MULT in head comment.
8985 (cris_op_str): Abort for MULT.
8986 (cris_print_operand) <case '!'>: New case.
8987
8988 2004-03-08 Alan Modra <amodra@bigpond.net.au>
8989
8990 PR debug/11983
8991 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
8992 dw_val_class_vec. Replace use throughout file.
8993 (dw_float_const): Delete.
8994 (dw_vec_const): New.
8995 (dw_val_struct_union): Rename val_float to val_vec. Replace use
8996 throughout file.
8997 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
8998 (same_dw_val_p): Adjust vec comparison. Use memcmp.
8999 (size_of_die): Adjust dw_val_class_vec sizing.
9000 (output_die): Output dw_val_class_vec.
9001 (insert_int, extract_int, insert_float): New functions.
9002 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
9003 Handle CONST_VECTOR.
9004 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
9005
9006 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
9007
9008 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
9009 AltiVec abi cannot co-exist.
9010
9011 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
9012
9013 2004-03-07 Jan Hubicka <jh@suse.cz>
9014
9015 * except.c (emit_to_new_bb_before): Break fallthru edges.
9016
9017 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
9018
9019 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
9020 ("*lshrsi3"): Also accept an immediate for 68HC12.
9021 ("*ashrsi3_const"): Likewise.
9022 ("*ashrsi3"): Likewise.
9023 ("*ashlsi3_const"): Likewise.
9024 ("*ashlsi3"): Likewise.
9025 ("cmphi_1_hc12"): Compare two hard register by pushing them and
9026 comparing with a pop; don't use a split for that.
9027 ("cmphi split"): Disable compare split for 68HC12.
9028
9029 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
9030 the status operands if they have side effects.
9031
9032 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
9033
9034 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
9035 definition.
9036 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
9037 config/h8300/h8300.h, config/ia64/ia64.h,
9038 config/mcore/mcore.h, config/mmix/mmix.h,
9039 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
9040 config/stormy16/stormy16.h, config/v850/v850.h,
9041 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
9042 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
9043 definition.
9044
9045 2004-03-07 Roger Sayle <roger@eyesopen.com>
9046
9047 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
9048 <XOR_EXPR>: Fold x ^ x as zero.
9049 <AND_EXPR>: Fold x & x as x.
9050
9051 2004-03-07 Roger Sayle <roger@eyesopen.com>
9052
9053 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
9054 "foo++ == const" into "++foo == const+incr".
9055
9056 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
9057
9058 * config/mips/mips.c (mips_in_small_data_p): Return false if
9059 TARGET_ABICALLS.
9060
9061 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
9062
9063 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
9064 the stack register.
9065 (expand_prologue): Don't make an interrupt or a trap handler a far
9066 symbol.
9067 (m68hc11_initial_elimination_offset): Likewise.
9068
9069 2004-03-06 Richard Henderson <rth@redhat.com>
9070
9071 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
9072
9073 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
9074
9075 * config/ns32k/ns32k-protos.h: Add a prototype for
9076 ns32k_notice_update_cc.
9077 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
9078 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
9079 ns32k_notice_update_cc.
9080
9081 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
9082
9083 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
9084 "*load_multiple_si"): Allow only if reload_completed.
9085 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
9086 Likewise.
9087
9088 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
9089
9090 * config/vax/vax-protos.h: Add a prototype for
9091 vax_notice_update_cc.
9092 * config/vax/vax.c (vax_notice_update_cc): New.
9093 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
9094 vax_notice_update_cc.
9095
9096 2004-03-06 David Edelsohn <edelsohn@gnu.org>
9097
9098 * collect2.c (main): Only export initfunc and finifunc if
9099 LD_INIT_SWITCH not defined.
9100 (scan_prog_file): Only export constructors and destructors if
9101 LD_INIT_SWITCH not defined. Only export symbols not found in
9102 shared objects.
9103
9104 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9105
9106 * pa.md (icacheflush): Reorder operands to make match_scratch operand
9107 last.
9108 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
9109 from calls to gen_icacheflush.
9110
9111 2004-03-06 Richard Henderson <rth@redhat.com>
9112
9113 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
9114 (TARGET_LONG_DOUBLE_128): New.
9115 (TARGET_SWITCHES): Add long-double-{128,64}.
9116 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
9117 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
9118 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
9119 (WIDEST_HARDWARE_FP_SIZE): New.
9120 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
9121 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
9122 if TARGET_VAX_FLOAT.
9123 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
9124 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
9125
9126 2004-03-06 Richard Henderson <rth@redhat.com>
9127
9128 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
9129 botched rtx class conversion.
9130
9131 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9132
9133 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
9134 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
9135
9136 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
9137 macros.
9138 * fold-const.c (fold_mathfn_compare, fold): Likewise.
9139
9140 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
9141
9142 PR target/14343
9143 * config/i386/i386.md (movv2di_internal): Conditionalize on
9144 TARGET_SSE, not TARGET_SSE2.
9145
9146 2004-03-05 Chris Demetriou <cgd@broadcom.com>
9147
9148 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
9149 duplicated line.
9150
9151 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9152
9153 * builtins.c: Consistently use logN not log* in comments.
9154
9155 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
9156
9157 * rtl.h (mem_expr_equal_p): Function prototype added.
9158 * cfgcleanup.c (merge_memattrs): New function.
9159 (flow_find_cross_jump): Call merge_memattrs for matching insns.
9160 * emit-rtl.c (mem_expr_equal_p): New function.
9161
9162 2004-03-05 Ziemowit Laski <zlaski@apple.com>
9163
9164 * objc/objc-act.c (synth_module_prologue): Const-qualify
9165 objc_selector type if using the GNU runtime; fix generated
9166 signatures for objc_msg_lookup and objc_msg_lookup_super
9167 to match what GNU ObjC headers provide; reformat and clean up.
9168 (synth_self_and_ucmd_args): Use previously constructed (and
9169 hence possibly const-qualified) objc_selector type.
9170
9171 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
9172
9173 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
9174
9175 2004-03-05 Jason Merrill <jason@redhat.com>
9176
9177 * tree.h (TYPE_HASH): Use TYPE_UID.
9178 (TREE_HASH): New macro with old definition of TYPE_HASH.
9179 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
9180 (build_array_type, build_function_type): Likewise.
9181 (build_method_type_directly): Likewise.
9182 (build_offset_type, build_complex_type): Likewise.
9183 (type_hash_list, attribute_hash_list): Likewise. Now static.
9184 * except.c: s/TYPE_HASH/TREE_HASH/.
9185
9186 2004-03-05 Bob Wilson <bob.wilson@acm.org>
9187
9188 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
9189 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
9190 __va_ndx by 2 words when referencing an argument on the stack.
9191 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
9192 words when an arg on the stack is first seen.
9193
9194 2004-03-05 Paul Brook <paul@codesourcery.com>
9195
9196 * arm.h (ARM_FLAG_VFP): Remove.
9197 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
9198 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
9199
9200 2004-03-05 Paul Brook <paul@codesourcery.com>
9201
9202 * function.c (assign_parms): Include pretend alignment offset.
9203
9204 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9205
9206 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
9207 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
9208
9209 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
9210
9211 * configure.ac: When passing --enable-languages to subdir
9212 configure when host != build, make sure we don't pass an empty
9213 value.
9214 * configure: Regenerate.
9215
9216 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
9217
9218 PR 13577
9219 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
9220 options.
9221
9222 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
9223
9224 * simplify-rtx.c (simplify_relational_operation): If
9225 flag_wrapv is set, do not move terms between the two
9226 side of a relational operator.
9227
9228 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
9229
9230 * rtlanal.c: Include target.h and output.h
9231 (rtx_cost, address_cost, default_address_cost): Move from...
9232 * cse.c (rtx_cost, address_cost, default_address_cost):
9233 ... this file.
9234 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
9235 * Makefile.in: Adjust dependencies.
9236
9237 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
9238
9239 * cse.c (cse_end_of_basic_block): Make static.
9240 * local-alloc.c (function_invariant_p): Move to
9241 reload1.c.
9242 * loop.c (libcall_other_reg, record_excess_regs):
9243 Make static.
9244 * reload1.c (function_invariant_p): Moved here
9245 from local-alloc.c, made static.
9246 * rtl.h (cse_end_of_basic_block, function_invariant_p,
9247 libcall_other_reg, record_excess_regs): Remove
9248 declarations.
9249
9250 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
9251
9252 * config/m32r/m32r.c (signed_comparison_operator): Add a
9253 missing parenthesis.
9254
9255 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
9256
9257 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
9258 going to call mmap again. Read the file into the right place.
9259 Give a fatal error if we have to relocate.
9260
9261 2004-03-04 Bob Wilson <bob.wilson@acm.org>
9262
9263 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
9264 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
9265
9266 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
9267
9268 PR other/14354
9269 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
9270 round the same. When rounding, clear bits that would cause a
9271 second rounding in pack_d.
9272 (_fpmul_parts): Ditto. Remove #if 0:d code.
9273
9274 2004-03-04 Ziemowit Laski <zlaski@apple.com>
9275
9276 PR c++/14425, c++/14426
9277 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
9278 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
9279 Change C++ definitions to accept a 'const int' argument;
9280 the prototypes already do.
9281 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
9282 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
9283 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
9284 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
9285 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
9286 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
9287 end in ..._int; change them to accept an int instead of a char
9288 as the last parameter.
9289
9290 2004-03-04 Phil Edwards <phil@codesourcery.com>
9291
9292 * genmultilib: Change '=' to '-' when translating option names
9293 to directory names.
9294
9295 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9296
9297 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
9298 stack slot for temp used for result of BLKmode but in integral mode.
9299
9300 2004-03-04 Jan Hubicka <jh@suse.cz>
9301
9302 * reload.c (find_reloads): Reorganize if seqeunce to switch.
9303
9304 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
9305 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
9306
9307 2004-03-04 Steve Ellcey <sje@cup.hp.com>
9308
9309 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
9310 * testsuite/gcc.dg/20040303-1.c: New test.
9311
9312 2004-03-04 Steven Bosscher <stevenb@suse.de>
9313
9314 * ppro.md: Rewrite as a DFA pipeline description.
9315 * i386.md: Remove all uses of the ppro_uops attribute.
9316 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
9317 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
9318 ix86_sched_reorder, ix86_variable_issue,
9319 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
9320 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
9321 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
9322 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
9323 * athlon.md (athlon_ssecmp_load): Fix comment
9324
9325 2004-03-04 Stuart Hastings <stuart@apple.com>
9326
9327 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
9328
9329 2004-03-04 Stuart Hastings <stuart@apple.com>
9330
9331 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
9332 686, tell Darwin assembler to allow prefetch insns, non-empty def
9333 of SUBTARGET_OPTION_TRANSLATE_TABLE.
9334
9335 2004-03-04 DJ Delorie <dj@redhat.com>
9336
9337 PR optimization/14282
9338 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
9339 between a call and the assignment of its return value.
9340
9341 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
9342
9343 * config/h8300/h8300.c: Put a comment for every function.
9344
9345 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
9346
9347 * config/h8300/h8300.md: Add comments about peephole2's.
9348
9349 2004-03-04 Steven Bosscher <stevenb@suse.de>
9350
9351 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
9352
9353 2004-03-04 Jan Hubicka <jh@suse.cz>
9354
9355 * cfgcleanup.c (thread_jump): Update call of cselib_init.
9356 * cselib.c (cselib_record_memory): New static variable.
9357 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
9358 Give up on memories when asked for.
9359 (cselib_init): Accept new argument.
9360 * cselib.h (cselib_init): Update prototype.
9361 * gcse.c (local_cprop_pass): Update call of cselib_init.
9362 * loop.c (load_mems): Update call of cselib_init.
9363 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
9364 * sched-deps.c (sched_analyze): Update call of cselib_init.
9365
9366 2004-03-04 David Edelsohn <edelsohn@gnu.org>
9367 GP <gp@qnx.com>
9368
9369 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
9370 when compiling PIC.
9371
9372 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
9373
9374 PR/14362
9375 * var-tracking.c (track_expr_p): Do not track variables which
9376 should be ignored for debugging purposes.
9377
9378 2004-03-04 Alan Modra <amodra@bigpond.net.au>
9379
9380 * real.c (encode_ibm_extended): Don't bother rounding low double.
9381 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
9382 when fmt->pnan < fmt->p.
9383
9384 2004-03-04 Eric Christopher <echristo@redhat.com>
9385
9386 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
9387 only range of valid arg registers and fixed_regs.
9388
9389 2004-03-04 Alan Modra <amodra@bigpond.net.au>
9390
9391 PR target/14406
9392 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
9393 (abstf2, abstf2_internal): New define_expand.
9394
9395 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
9396
9397 PR optimization/14235
9398 * expr.c (convert_move): Copy the source to a new pseudo
9399 when converting from a sub-word source to a larger-than-word
9400 register which conflicts with the source.
9401
9402 2004-03-03 Zack Weinberg <zack@codesourcery.com>
9403
9404 PR 13728
9405 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
9406 parameters with the same name, unless one is a forward decl.
9407 Do not issue a redundant-redeclaration warning for forward
9408 decls of parameters.
9409
9410 2004-03-04 David Edelsohn <edelsohn@gnu.org>
9411
9412 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
9413 configuration.
9414
9415 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
9416
9417 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
9418
9419 2004-03-04 Alan Modra <amodra@bigpond.net.au>
9420
9421 * target-def.h (TARGET_OPTF): Delete.
9422 * c-opts.c (TARGET_OPTF): Define.
9423
9424 2004-03-04 Jan Hubicka <jh@suse.cz>
9425
9426 * cselib.c (cselib_finish): Fix another miss-application of my previous
9427 patch.
9428
9429 2004-03-03 Mike Stump <mrs@apple.com>
9430
9431 Add framework support for darwin.
9432
9433 * c-incpath.c: Include target.h and machmode.h.
9434 (add_path): Use a consistent style for cpp_dir. Initialize
9435 p->construct to 0.
9436 (add_cpp_dir_path): New.
9437 (register_include_chains): Add use of extra_includes callback.
9438 (hook_void_int): Add.
9439 (target_c_incpath): Add.
9440 * c-incpath.h (add_cpp_dir_path): New.
9441 (target_c_incpath_s): Add.
9442 (target_c_incpath): Add.
9443 (C_INCPATH_INIT): Add.
9444 * c-opts.c (c_common_missing_argument,
9445 c_common_handle_option): Add -F argument processing.
9446 * c.opt: Add -F argument processing.
9447 * gcc.c (trad_capable_cpp): Add -F argument processing.
9448 * cppfiles.c (find_file_in_dir): Update to use construct
9449 callback.
9450 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
9451 cpp_get_prev): New.
9452 (_cpp_find_file): Use search_path_exhausted.
9453 (make_cpp_dir): Initialize construct to 0.
9454 * cpplib.h (missing_header_cb
9455 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
9456 (cpp_callbacks): Add missing_header
9457 (cpp_dir): Add construct.
9458 * target-def.h: (TARGET_OPTF): New.
9459 * hooks.c (hook_void_int, hook_void_charptr): Add.
9460 * hooks.h (hook_void_int, hook_void_charptr): Add.
9461 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
9462 $(MACHMODE_H) dependencies.
9463 * doc/invoke.texi (Darwin Options): Document -F.
9464 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
9465 (TARGET_OPTF): Add.
9466 * fix-header.c (target_c_incpath): Add.
9467
9468 * config/darwin-c.c: Add c-incpath.h include.
9469 (using_frameworks, find_subframework_file,
9470 find_subframework_header, add_system_framework_path,
9471 frameworks_in_use, num_frameworks, max_frameworks,
9472 add_framework, find_framework, struct framework_header,
9473 framework_header_dirs, framework_construct_pathname,
9474 find_subframework_file, add_system_framework_path,
9475 add_framework_path, framework_defaults,
9476 darwin_register_frameworks, find_subframework_header): Add.
9477 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
9478 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
9479 (CPP_SPEC): Add __APPLE_CC__ support.
9480 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
9481
9482 2004-03-04 Jan Hubicka <jh@suse.cz>
9483
9484 * cselib.c (cselib_finish): Fix miss-application of my previous
9485 patch.
9486
9487 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
9488
9489 * hooks.c (hook_tree_tree_identity): New.
9490 * hooks.h: Add a prototype for hook_tree_tree_identity.
9491 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
9492 instead of MD_ASM_CLOBBERS.
9493 * system.h (MD_ASM_CLOBBERS): Poison.
9494 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
9495 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
9496 * target.h (gcc_target): Add md_asm_clobbers.
9497 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
9498 (ix86_md_asm_clobbers): New.
9499 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
9500 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
9501 TARGET_MD_ASM_CLOBBERS.
9502
9503 2004-03-03 Stuart Hastings <stuart@apple.com>
9504
9505 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
9506
9507 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
9508
9509 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
9510
9511 * config/sparc/sparc.h (ASM_FLOAT): Delete.
9512 (ASM_DOUBLE): Likewise.
9513 (ASM_LONGDOUBLE): Likewise.
9514 * config/sparc/pbd.h (ASM_INT_OP): Delete.
9515
9516 2003-03-03 Richard Henderson <rth@redhat.com>
9517
9518 PR opt/13862
9519 * cselib.c (cselib_record_sets): Don't record multiple sets in
9520 asm insns.
9521
9522 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
9523
9524 * common.opt: Add description of the new -fgcse-after-reload flag.
9525
9526 * flags.h (flag_gcse_after_reload): Declaration of global variable.
9527
9528 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
9529 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
9530 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
9531 get_bb_avail_insn, hash_scan_set_after_reload,
9532 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
9533 gcse_after_reload, get_bb_avail_insn): New functions to implement
9534 gcse-after-reload.
9535 (gcse_after_reload_main): New function, the main entry point to
9536 gcse-after-reload.
9537
9538 * rtl.h (gcse_after_reload_main): Declaration of the new function.
9539
9540 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
9541
9542 * toplev.c (flag_gcse_after_reload): Initialization.
9543
9544 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
9545
9546 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
9547 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
9548 the gcse after reload optimization.
9549
9550 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
9551 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
9552 parameters.
9553
9554 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
9555
9556 2004-03-03 Nicolas Pitre <nico@cam.org>
9557
9558 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
9559 small negative values.
9560
9561 2004-03-03 Jan Hubicka <jh@suse.cz>
9562
9563 * cselib.c (hash_table): Remove GTY marker.
9564 (reg_values): Turn into array.
9565 (used_regs): Likewise.
9566 (n_used_regs): New static variable.
9567 (reg_values_old): Kill.
9568 (clear_table): Update uses of arrays.
9569 (cselib_lookup): Likewise.
9570 (cselib_record_set): Likewise.
9571 (cselib_init): Likewise.
9572 (cselib_finish): Likewise.
9573 (cselib_udpate_varray_sizes): Kill.
9574 * cselib.h (cselib_update_varray_sizes): Kill.
9575
9576 2004-03-03 Paul Brook <paul@codesourcery.com>
9577
9578 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
9579
9580 2004-03-03 Jan Hubicka <jh@suse.cz>
9581
9582 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
9583 Rename from ...; make statistics transparent.
9584 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
9585 (loc_descriptor): New structure.
9586 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
9587 add_statistics):
9588 New static function.
9589 (ggc_record_overhead, dump_statistics): New global function.
9590 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
9591 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
9592 from ...; accept locations
9593 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
9594 ggc_realloc, ggc_alloc_typed): ... this one.
9595 from ...; accept locations
9596 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
9597 ggc_alloc_stat): Rename from ... ; pass locations
9598 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
9599 ... this one.
9600 (ggc_alloc_stat): Record overehead.
9601 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
9602 ggc_realloc, ggc_alloc_typed): Turn to macros
9603 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
9604 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
9605 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
9606 * langhooks.h (lhd_make_node): Declare.
9607 (LANG_HOOKS_MAKE_TYPE): Default to new function,
9608 * langhooks.c (lhd_make_node): New.
9609 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
9610 locations.
9611 (rtx_alloc, swallow_copy_rtx): ... this one.
9612 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
9613 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
9614 * toplpev.c (finalize): Dump stats.
9615 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
9616 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
9617 Rename from ... ; pass locators.
9618 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
9619 build?, build_decl): Declare.
9620 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
9621 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
9622 Declare.
9623 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
9624 build?, build_decl): New macros.
9625 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
9626 * statistics.h: New file.
9627
9628 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9629 Richard Sandiford <rsandifo@redhat.com>
9630
9631 * config/mips/mips.h (MASK_FIX_SB1): Bump.
9632 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
9633 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
9634 * config/mips/mips.c (mips_output_division): Fill the branch delay
9635 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
9636 TARGET_FIX_R4400.
9637 (mips_output_division): Adjust accordingly.
9638 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
9639 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
9640
9641 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
9642
9643 * alias.c (rtx_equal_for_memref_p): Use predicates
9644 to test rtx classes and new rtx class codes, possibly
9645 splitting conditionals that tested against '<' and 'o'.
9646 * caller-save.c (save_call_clobbered_regs): Likewise.
9647 * combine.c (contains_muldiv, find_split_point, subst,
9648 combine_simplify_rtx, simplify_if_then_else,
9649 simplify_set, simplify_logical, expand_compound_operation,
9650 make_compound_operation, if_then_else_cond, known_cond,
9651 apply_distributive_law, cached_nonzero_bits,
9652 cached_num_sign_bit_copies, simplify_shift_const,
9653 gen_binary, simplify_comparison, update_table_tick,
9654 record_value_for_reg, get_lsat_value_validate): Likewise.
9655 * cse.c (mention_regs, find_best_addr, find_comparison_args,
9656 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
9657 Likewise.
9658 * emit-rtl.c (copy_insn_1): Likewise.
9659 * expr.c (force_operand): Likewise.
9660 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
9661 * flow.c (notice_stack_pointer_modification_1,
9662 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
9663 and_reg_cond, elim_reg_cond): Likewise.
9664 * function.c (update_epilogue_consts): Likewise.
9665 * genattrtab.c (attr_rtx_1): Likewise.
9666 * genopinit.c (gen_insn): Likewise.
9667 * integrate.c (subst_constants): Likewise.
9668 * jump.c (reversed_comparison_code_parts,
9669 reversed_comparison_code, delete_related_insns,
9670 rtx_renumbered_equal_p): Likewise.
9671 * local-alloc.c (block_alloc): Likewise.
9672 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
9673 canonicalize_condition): Likewise.
9674 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
9675 Likewise.
9676 * optabs.c (add_equal_node, expand_binop): Likewise.
9677 * predict.c (estimate_probability): Likewise.
9678 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
9679 * recog.c (validate_replace_rtx_1, comparison_operator,
9680 offsettable_address_p, constrain_operands): Likewise.
9681 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
9682 Likewise.
9683 * regclass.c (scan_one_insn): Likewise.
9684 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
9685 * regrename.c (kill_autoinc_value): Likewise.
9686 * reload.c (find_reusable_reload, find_reloads,
9687 reg_overlap_mentioned_for_reload_p): Likewise.
9688 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
9689 * rtl.c (copy_rtx): Likewise.
9690 * rtl.h (CONSTANT_P, INSN_P): Likewise.
9691 * rtlanal.c (commutative_operand_precedence): Likewise.
9692 * sched-deps.c (conditions_mutex_p): Likewise.
9693 * sched-rgn.c (is_cfg_nonregular): Likewise.
9694 * simplify-rtx.c (simplify_gen_binary,
9695 simplify_gen_relational, simplify_replace_rtx,
9696 simplify_unary_operation, simplify_binary_operation,
9697 simplify_ternary_operation, simplify_rtx): Likewise.
9698 * unroll.c (reg_dead_after_loop): Likewise.
9699 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
9700 print_operand): Likewise.
9701 * config/arc/arc.c (proper_comparison_operator): Likewise.
9702 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
9703 Likewise.
9704 * config/avr/avr.c (_reg_unused_after): Likewise.
9705 * config/frv/frv.c (frv_ifcvt_modify_tests,
9706 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
9707 * config/i386/i386.c (ix86_comparison_operator,
9708 ix86_carry_flag_operator, fcmov_comparison_operator,
9709 arith_or_logical_operator, print_operand,
9710 ix86_expand_binary_operator, ix86_binary_operator_ok):
9711 Likewise.
9712 * config/i386/i386.md: Likewise.
9713 * config/ia64/ia64.c (not_postinc_memory_operand,
9714 ia64_print_operand, update_set_flags, errata_emit_nops):
9715 Likewise.
9716 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
9717 CONSTRAINT_OK_FOR_S): Likewise.
9718 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
9719 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
9720 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
9721 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
9722 Likewise.
9723 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
9724 eqne_comparison_operator, signed_comparison_operator):
9725 Likewise.
9726 * config/mips/mips.c (cmp_op, symbolic_expression_p):
9727 Likewise.
9728 * config/mmix/mmix (mmix_foldable_comparison_operator,
9729 mmix_comparison_operator): Likewise.
9730 * config/pa/pa.c (hppa_legitimize_address): Likewise.
9731 * config/rs6000/rs6000.c (stmw_operation,
9732 branch_comparison_operator, trap_comparison_operator,
9733 ccr_bit): Likewise.
9734 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
9735 * config/s390/s390.c (s390_alc_comparison,
9736 s390_slb_comparison):L Likewise.
9737 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
9738 Likewise.
9739 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
9740 noov_compare_op, noov_compare64_op, v9_regcmp_op,
9741 emit_hard_tfmode_operation, reg_unused_after)
9742 * doc/md.texi, doc/rtl.texi: Likewise.
9743
9744 * ra-debug.c: Add 2004 to list of copyright years.
9745 * unroll.c: Likewise.
9746
9747 * combine.c (simplify_logical): Remove dummy test,
9748 (apply_distributive_law): Fix typo in comment.
9749 GET_CODE (x) == AND so x is a commutative binary op.
9750 * jump.c (delete_related_insns): simplify loop
9751 condition, move testing of RTX codes inside the loop.
9752 (rtx_renumbered_equal_p): do not use RTX_CODE.
9753 * rtl.c (rtx_class): Declare as enum rtx_class.
9754 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
9755 Move to RTX_COMM_COMPARE class.
9756 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
9757 Move to RTX_CONST_OBJ class.
9758 * rtl.h (enum rtx_class): New declaration,
9759 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
9760 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
9761 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
9762 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
9763 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
9764 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
9765 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
9766 OBJECT_P): New macros.
9767 * config/sparc/sparc.c (noov_compare_op): Remove register
9768 from parameter.
9769
9770 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
9771
9772 * target.h: Remove texi jargons in comments.
9773
9774 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9775
9776 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
9777 threshold to 0x4f.
9778
9779 Revert:
9780 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
9781 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
9782 as well.
9783 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
9784 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
9785
9786 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9787
9788 * doc/md.texi (cbranchmode4): New.
9789
9790 2004-03-02 Eric Christopher <echristo@redhat.com>
9791
9792 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
9793 fix_trunc.
9794 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
9795 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
9796 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
9797 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
9798
9799 2004-03-02 Richard Henderson <rth@redhat.com>
9800
9801 PR middle-end/11767
9802 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
9803 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
9804 before the compare, if flag_non_call_exceptions.
9805
9806 2004-03-02 Richard Henderson <rth@redhat.com>
9807
9808 PR middle-end/14327
9809 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
9810 emitting the label, not after.
9811
9812 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
9813
9814 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
9815 (m68hc11_mov_addr_mode): Likewise.
9816 (m68hc11_override_options): Initialize them based on target.
9817 (register_indirect_p): Allow a MEM for indirect addressing modes and
9818 use flags to control what is allowed.
9819 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
9820 supported addressing modes.
9821 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
9822 (go_if_legitimate_address_internal): Likewise.
9823 (m68hc11_indirect_p): Likewise and check the mode.
9824 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
9825
9826 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9827
9828 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
9829 (expand_builtin_setjmp_setup): Use
9830 targetm.builtin_setjmp_frame_value instead of
9831 BUILTIN_SETJMP_FRAME_VALUE.
9832 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
9833 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
9834 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
9835 * target.h (gcc_target): Add builtin_setjmp_frame_value.
9836 * targhooks.c (default_builtin_setjmp_frame_value): New.
9837 * targhooks.h: Add a prototype for
9838 default_builtin_setjmp_frame_value.
9839 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
9840 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
9841
9842 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
9843
9844 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
9845 sequences of moves.
9846 (add peepholes): New peepholes to optimize sequences adding small
9847 constants.
9848 (bset peepholes): New peepholes to transform an OR in a bset form
9849 (bclr peepholes): Likewise for bclr form.
9850 (cmp peepholes): New peepholes to avoid register copies when comparing.
9851
9852 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
9853
9854 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
9855 to separate push from moves.
9856 ("*pushdf_internal"): Likewise.
9857 ("*pushsf_internal"): Likewise.
9858 ("*pushsi_internal"): Likewise.
9859 ("movdi_internal"): Use define_insn_and_split; non push operand.
9860 ("movdf_internal"): Likewise.
9861 ("movsf_internal"): Likewise.
9862 ("movsi_internal"): Likewise.
9863 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
9864 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
9865 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
9866
9867 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
9868
9869 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
9870 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
9871 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
9872 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
9873 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
9874 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
9875 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
9876 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
9877 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
9878 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
9879 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
9880
9881 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
9882
9883 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
9884 (SOFT_XY_REGNUM): Define.
9885 (cmp split): Use the above instead of hard coded numbers.
9886 (8-bit op split): No need to check the mode; allow Q_REG.
9887 (ashift split): Adjust the first operand if it uses the SP and we
9888 are pushing the shifted value.
9889 (plus shift split): Fix when a source is in register D+X.
9890 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
9891
9892 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
9893
9894 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
9895 comparing with Z register.
9896
9897 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9898
9899 * cfgloop.h (struct loop_desc): Removed.
9900 (struct loop): Fields simple, desc and has_desc removed.
9901 (simple_loop_p, count_loop_iterations): Declaration removed.
9902 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
9903 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
9904 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
9905 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
9906 simple_loop_exit_p, variable_initial_value, variable_initial_values,
9907 simple_condition_p, simple_increment, count_strange_loop_iterations,
9908 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
9909 Removed.
9910 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
9911
9912 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9913
9914 * genattrtab.c: Don't handle MATCH_INSN.
9915 * genrecog.c: Likewise.
9916 * gensupport.c: Likewise.
9917 * rtl.def (match_insn): Remove.
9918 * doc/md.texi (match_insn, match_insn2): Remove.
9919
9920 2004-03-02 Mark Mitchell <mark@codesourcery.com>
9921
9922 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
9923 macro results in memory allocation.
9924
9925 2004-03-02 David O'Brien <obrien@FreeBSD.org>
9926
9927 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
9928 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
9929 %(fbsd_dynamic_linker),
9930 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
9931 config/i386/freebsd.h
9932 * config/arm/freebsd.h: Ditto.
9933 * config/i386/freebsd.h: Ditto.
9934 * config/i386/freebsd64.h: Ditto.
9935 * config/ia64/freebsd.h: Ditto.
9936 * config/rs6000/sysv4.h: Ditto.
9937 * config/sparc/freebsd.h: Ditto.
9938
9939 2004-03-02 Loren James Rittle <ljrittle@acm.org>
9940
9941 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
9942
9943 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9944
9945 * rtl.def (define_combine): Remove.
9946
9947 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9948
9949 * config/h8300/h8300.md: Tweak formatting.
9950
9951 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9952
9953 * config/h8300/h8300.md (*cmphi_h8300): Rename to
9954 *cmphi_h8300_znvc.
9955 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
9956
9957 2004-03-01 Mark Mitchell <mark@codesourcery.com>
9958
9959 PR bootstrap/14356
9960 * gcc.c (process_command): Remove const-qualification from argv.
9961 (main): Likewise.
9962
9963 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
9964
9965 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
9966 pushqi1_h8300hs_advanced. Adjust its caller.
9967 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
9968 Adjust its caller.
9969
9970 2004-03-02 Nicolas Roche <roche@act-europe.fr>
9971
9972 * Makefile.in (install-libgcc, install-multilib): Pass
9973 mkinstalldirs var to libgcc.mk.
9974
9975 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
9976
9977 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
9978 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
9979
9980 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
9981
9982 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
9983 * config/h8300/h8300.md: Split several peephole2's, each into
9984 two.
9985
9986 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9987
9988 * dominance.c (recount_dominator): Handle postdominators.
9989
9990 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
9991
9992 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
9993 (NUM_SYMBOL_TYPES): Likewise.
9994 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
9995 (mips_unspec_address): Declare.
9996 (mips_gotoff_page, mips_gotoff_global): Delete.
9997 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
9998 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
9999 (mips_symbolic_constant_p, mips_symbolic_address_p)
10000 (mips_symbol_insns): Handle new symbol types.
10001 (general_symbolic_operand): New predicate.
10002 (mips_unspec_address): Make extern.
10003 (mips_gotoff_page, mips_gotoff_global): Delete.
10004 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
10005 Handle new symbol types.
10006 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
10007 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
10008 mips_unspec_address directly.
10009 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
10010 the documentation of -mexplicit-relocs.
10011
10012 2004-03-01 Jeff Law <law@redhat.com>
10013
10014 * fold-const.c (fold): An equality comparison of a non-weak object
10015 against zero has a known result. Similarly an equality comparison
10016 of the address of two non-weak, unaliased symbols has a known result.
10017
10018 * ggc-page.c (struct page_entry): New field PREV.
10019 (ggc_alloc): Update PREV field appropriately.
10020 (sweep_pages): Likewise.
10021 (ggc_free): Likewise. Use PREV field rather than loop to
10022 improve ggc_free performance.
10023
10024 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
10025
10026 * config/mips/mips.c (mips_output_division): Use the division
10027 instruction to fill the delay slot of a zero check.
10028 (mips_idiv_insns): Adjust accordingly.
10029
10030 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
10031
10032 * config.gcc: Create a default tmake_file for linux, and use
10033 it in all but two linux clauses. Comment those two.
10034
10035 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
10036
10037 * combine.c (try_combine): Do not refer to is_replaced.
10038 (gen_lowpart_for_combine): Perverse subregs now have a
10039 more politically correct name.
10040 * cse.c (cse_insn): Likewise.
10041 * jump.c: Fix bogus reference to delete_insn.
10042
10043 2004-02-29 Mark Mitchell <mark@codesourcery.com>
10044
10045 PR debug/14328
10046 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
10047 constants as signed values.
10048
10049 PR middle-end/13448
10050 * c-tree.h (readonly_warning): Rename to ...
10051 (readonly_error): ... this.
10052 * c-typeck.c (build_unary_op): Adjust accordingly.
10053 (readonly_warning): Rename to ...
10054 (readonly_error): ... this and issue errors, not warnings.
10055 (build_modify_expr): Call readonly_error, not readonly_warning.
10056 (c_expand_asm_operands): Likewise.
10057 * tree-inline.c (optimize_inline_calls): Do not inline functions
10058 after errors have occurred.
10059
10060 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
10061
10062 * configure.ac: Rearrange some threading code for clarity;
10063 add section comment.
10064 * configure: Regenerate.
10065
10066 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
10067
10068 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
10069 typos.
10070 * doc/cppopts.texi: Fix a typo.
10071
10072 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
10073
10074 * config/i386/i386.md: Fix formatting.
10075
10076 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
10077
10078 * configure.ac: Add some comments delineating sections of code.
10079
10080 * doc/install.texi: Note that libada uses autoconf 2.57 also.
10081
10082 * doc/install.texi: Fix idiot typo in previous commit.
10083
10084 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
10085
10086 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
10087
10088 * config/h8300/h8300.md: Add comments about peephole2's.
10089
10090 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
10091
10092 * config/h8300/h8300.md: Tweak operand numbers of some
10093 peephole2's.
10094
10095 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
10096
10097 * config/h8300/h8300.md: Tweak comments about peephole2's.
10098
10099 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
10100
10101 PR middle-end/14203
10102 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
10103 instead of testing whether DECL_RTL is not NULL.
10104
10105 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
10106
10107 * config/sh/sh.c: Fix formatting.
10108
10109 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
10110
10111 * config/sh/sh.c: Convert to ISO-C.
10112
10113 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
10114
10115 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
10116 my previous patch.
10117
10118 * config/darwin.h (machopic_finish): Output stub even if the
10119 symbol is already defined.
10120
10121 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10122
10123 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
10124
10125 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
10126
10127 * genattr.c (main): Don't define
10128 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
10129 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
10130 (DFA_PIPELINE_INTERFACE): Likewise.
10131 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
10132 (DFA_PIPELINE_INTERFACE): Likewise.
10133
10134 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
10135
10136 * config/mips/mips.md (tstsi, tstdi): Delete.
10137
10138 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10139
10140 * config/mips/mips.c (override_options): Remove an obsolete
10141 duplicate definition of the "e" constraint.
10142 * config/mips/mips.h: Update a comment accordingly.
10143
10144 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10145
10146 * config/mips/mips.md: Complete the unfinished R4000
10147 multiply/shift errata workaround. Improve documentation.
10148 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
10149 has a hilo hazard.
10150 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
10151 (muldi3, muldi3_internal): Likewise.
10152 (muldi3_internal2): Remove, replacing with...
10153 (muldi3_mult3, muldi3_r4000): ...these new patterns.
10154 (mulsidi3): Take the errata into account.
10155 (mulsidi3_32bit): Remove, replacing with...
10156 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
10157 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
10158 (umulsidi3): Take the errata into account.
10159 (umulsidi3_32bit): Remove, replacing with..
10160 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
10161 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
10162 TARGET_FIX_R4000.
10163 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
10164 (smuldi3_highpart, umuldi3_highpart): Likewise.
10165 * doc/invoke.texi: Document the errata workaround.
10166
10167 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10168
10169 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
10170 * config/mips/mips.h (MASK_FIX_SB1): Bump.
10171 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
10172 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
10173 * config/mips/mips.c (mips_idiv_insns): New function.
10174 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
10175 (mips_output_division): Add a workaround for the R4000 divide/shift
10176 errata.
10177 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
10178 the length of an "idiv" instruction.
10179 * doc/invoke.texi: Document the new switches.
10180
10181 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
10182
10183 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
10184 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
10185
10186 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10187
10188 PR optimization/14229
10189 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
10190
10191 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
10192
10193 * fold-const.c (fold): Strip NOPs that change the signedness
10194 for RSHIFT too. Expand comment.
10195
10196 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
10197
10198 PR optimization/7871
10199 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
10200 from or to call insns.
10201
10202 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
10203
10204 PR optimization/7871
10205 * flow.c (propagate_one_insn): Interpret calls as setting global
10206 registers, not merely clobbering them.
10207
10208 2004-02-27 Dale Johannesen <dalej@apple.com>
10209
10210 * config/darwin.c (machopic_output_possible_stub_label): Remove.
10211 config/darwin-protos.h: Ditto.
10212 config/darwin.h: Remove call to it.
10213 * combine.c (distribute_notes): Do not place a REG_DEAD note
10214 when value is both set and used.
10215
10216 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
10217
10218 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
10219 as well.
10220 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
10221 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
10222
10223 2004-02-27 Andrew Pinski <apinski@apple.com>
10224
10225 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
10226 Speedup common case of the type values being in the same order.
10227
10228 2004-02-27 Steve Ellcey <sje@cup.hp.com>
10229
10230 * config/ia64/ia64.h (no-inline-float-divide): New option.
10231 * config/ia64/ia64.h (no-inline-int-divide): New option.
10232 * config/ia64/ia64.h (no-inline-sqrt): New option.
10233 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
10234 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
10235 * config/ia64/ia64.c (ia64_override_options): Modify error
10236 checking for inlined division/sqrt.
10237
10238 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
10239
10240 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
10241 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
10242 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
10243 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
10244 copyright.
10245
10246 2004-02-27 Paul Brook <paul@codesourcery.com>
10247
10248 * function.c (assign_parms): Don't count pretend args for alignment.
10249
10250 2004-02-27 Richard Henderson <rth@redhat.com>
10251
10252 * passes.c: New file.
10253 * Makefile.in (OBJS-common): Add it.
10254 * diagnostic.c (rtl_dump_and_exit): Move decl ...
10255 * flags.h (rtl_dump_and_exit): ... here.
10256 * output.h (size_directive_output, last_assemble_variable_decl):
10257 Move from toplev.c.
10258 * rtl.h (reg_alloc): Move from toplev.c.
10259 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
10260 struct dump_file_info, enum dump_file_index, dump_file_tbl,
10261 open_dump_file, close_dump_file, rest_of_decl_compilation,
10262 rest_of_type_compilation, rest_of_handle_final,
10263 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
10264 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
10265 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
10266 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
10267 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
10268 rest_of_handle_tracer, rest_of_handle_if_conversion,
10269 rest_of_handle_if_after_combine, rest_of_handle_web,
10270 rest_of_handle_branch_prob,
10271 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
10272 rest_of_handle_addressof, rest_of_handle_sibling_calls,
10273 rest_of_handle_jump_bypass, rest_of_handle_inlining,
10274 rest_of_handle_null_pointer, rest_of_handle_combine,
10275 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
10276 rest_of_handle_gcse, rest_of_handle_loop_optimize,
10277 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
10278 (decode_d_option): Use enable_rtl_dump_file.
10279 (compile_file, finalize, do_compile): Move profile+combine+graph
10280 cleanup to finish_optimization_passes.
10281 * toplev.h (init_optimization_passes, finish_optimization_passes,
10282 enable_rtl_dump_file): Declare.
10283
10284 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
10285 Roger Sayle <roger@eyesopen.com>
10286
10287 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
10288 operands to build a tree with swapped operands.
10289 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
10290 'unsignedp' predicate to specify the signedness.
10291
10292 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
10293
10294 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
10295 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
10296 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
10297 comment typos and formatting. Follow spelling conventions.
10298
10299 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
10300
10301 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
10302 fix_truncsfsi2.
10303
10304 * config/rs6000/spe.md: Delete spe_efsctuiz.
10305 Add spe_fixuns_truncsfsi2.
10306 Add spe_fix_truncsfsi2.
10307
10308 2004-02-26 Eric Christopher <echristo@redhat.com>
10309
10310 * c-lex.c (c_lex_string_translate): New variable.
10311 (lex_string): Use to determine string translation.
10312 * c-pragma.h: Prototype.
10313 * c-parse.in (start_string_translation): New. Set above.
10314 (stop_string_translation): Ditto.
10315 (attribute, attribute_list, asm_def, asm_stmt,
10316 asm_operand): Use above functions.
10317 * cp/parser.c (cp_parser_declaration): Translate strings
10318 unless token is RID_EXTERN. Set c_lex_string_translate
10319 for recursive use.
10320 (cp_parser_asm_definition): Only translate argument strings
10321 to asms.
10322 (cp_parser_asm_operand_list): Ditto.
10323 (cp_parser_attribute_list): Do not translate attribute strings.
10324
10325 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
10326
10327 * stmt.c (expand_start_case_dummy): Remove.
10328 * tree.h: Remove the corresponding prototype.
10329
10330 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
10331
10332 * builtins.c (apply_args_register_offset): Remove.
10333 * tree.h: Remove the corresponding prototype.
10334
10335 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
10336
10337 * stor-layout.c (is_pending_size): Remove.
10338 * tree.h: Remove the corresponding prototype.
10339
10340 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
10341
10342 * recog.c (validate_replace_src): Remove.
10343 * recog.h: Remove the corresponding prototype.
10344
10345 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
10346
10347 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
10348 MAYBE_REG_PARM_STACK_SPACE.
10349 * function.c: Likewise.
10350 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
10351 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
10352 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
10353 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
10354
10355 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
10356
10357 * c-decl.c (c_expand_deferred_function): Remove.
10358 * c-tree.h: Remove the corresponding prototype.
10359
10360 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
10361
10362 * postreload.c (reload_cse_move2add): Generate just a PLUS
10363 instead of an entire SET.
10364
10365 2004-02-26 Jan Hubicka <jh@suse.cz>
10366
10367 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
10368 /pentium4m.
10369 * i386.c (override_options): Add support for new CPUs.
10370 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
10371 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
10372 constants.
10373 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
10374
10375 2004-02-26 Bob Wilson <bob.wilson@acm.org>
10376
10377 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
10378
10379 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
10380
10381 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
10382 (sparc_emit_fixunsdi): New prototype.
10383 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
10384 (sparc_emit_fixunsdi): New function.
10385 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
10386 operand 1. Pass SFmode to sparc_emit_floatunsdi.
10387 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
10388 to sparc_emit_floatunsdi.
10389 (fixuns_truncsfdi2): New expander.
10390 (fixuns_truncdfdi2): Likewise.
10391
10392 2004-02-26 Alan Modra <amodra@bigpond.net.au>
10393
10394 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
10395 unless HAVE_cc0.
10396
10397 2004-02-25 Richard Henderson <rth@redhat.com>
10398
10399 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
10400 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
10401 use (op0-op1) == 0 if op0 is a pointer.
10402 * config/alpha/alpha.md (cmpdi): Use some_operand.
10403 (three comparison combine splits): Remove.
10404
10405 2004-02-25 Richard Henderson <rth@redhat.com>
10406
10407 PR c/12794
10408 * c-common.c (handle_alias_attribute): Reject the attribute if
10409 current_function_decl is set.
10410
10411 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
10412
10413 * config.gcc: Add comment describing extra_gcc_objs.
10414 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
10415 * configure.ac (extra_gcc_objs): New substitution variable.
10416 (host_extra_gcc_objs): Don't substitute.
10417 * configure: Regenerate.
10418 * Makefile.in: Use extra_gcc_objs.
10419
10420 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
10421
10422 * doc/contrib.texi: Add an entry for myself.
10423
10424 2004-02-25 Jan Hubicka <jh@suse.cz>
10425
10426 * basic-block.h (make_eh_edge, break_superblocks): Declare.
10427 * cfgbuild.c (make_eh_edge): Make global.
10428 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
10429 * except.c (build_post_landing_pads, connect_post_landing_pads,
10430 dw2_build_landing_pads, sjlj_emit_function_enter,
10431 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10432 sjlj_build_landing_pads): Update CFG.
10433 (emit_to_new_bb_before): New function.
10434 (finish_eh_generation): Do not rebuild the CFG.
10435
10436 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10437
10438 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
10439 target_cpu_default defines.
10440 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
10441 * pa.h (TARGET_DEFAULT): Likewise.
10442
10443 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
10444
10445 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
10446 comparisons with regard to signedness.
10447
10448 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
10449
10450 * arm.c (thumb_legitimize_address): New function.
10451 * arm-protos.h: Prototype it.
10452 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
10453 (LEGITIMIZE_ADDRESS): Use it.
10454
10455 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
10456
10457 * reload1.c (reload): Only spill eliminable register with multiple
10458 adjacent elimination alternatives if all alternatives fail.
10459
10460 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
10461
10462 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
10463 is -4095...+4095 inclusive.
10464
10465 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
10466
10467 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
10468 the bootstrap failure with Sun CC 5.4 and 5.5.
10469
10470 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
10471
10472 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
10473 which modifies NEWREG.
10474 (cse_condition_code_reg): Update the mode of CC_REG in
10475 CC_SRC_INSN on our own.
10476
10477 2004-02-24 Michael Matz <matz@suse.de>
10478
10479 * config/i386/i386.c (ix86_comp_type_attributes): Check for
10480 regparm attributes.
10481
10482 2004-02-24 Richard Henderson <rth@redhat.com>
10483
10484 * toplev.c (dump_file_tbl): Rename from dump_file.
10485 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
10486 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
10487 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
10488 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
10489 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
10490 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
10491 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
10492 s/rtl_dump_file/dump_file/g.
10493
10494 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
10495
10496 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
10497 (spe_fixuns_truncsfsi2): Delete.
10498
10499 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
10500 (fixuns_truncsfsi2): Delete.
10501
10502 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
10503
10504 PR/14240
10505 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
10506
10507 2004-02-24 Geoffrey Keating <geoffk@apple.com>
10508
10509 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
10510
10511 2004-02-24 Jason Merrill <jason@redhat.com>
10512
10513 * tree.c (check_qualified_type): New fn.
10514 (get_qualified_type): Use it. If type already has the desired
10515 quals, just return it.
10516 * tree.h: Declare it.
10517
10518 2003-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
10519
10520 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
10521 TARGET_SCHED_FINISH_GLOBAL): New macros.
10522
10523 * target.h (md_init_global, md_finish_global): Function
10524 declarations corresponding to new target macros.
10525
10526 * haifa-sched.c (sched_init, sched_finish): Allow target to
10527 call the new schedular hooks.
10528
10529 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
10530 call to update_life_info.
10531
10532 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
10533 flag_schedule_insns for SH4.
10534
10535 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
10536 find_set_regmode_weight, find_insn_regmode_weight,
10537 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
10538 sh_variable_issue, high_pressure, ready_reorder,
10539 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
10540 functions used to throttle the insn movement in first
10541 scheduling pass for SH.
10542
10543 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
10544 TARGET_SCHED_FINISH_GLOBAL.
10545
10546 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
10547
10548 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
10549 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
10550 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
10551 symbols in sections named by the user.
10552 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
10553 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
10554 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
10555 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
10556 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
10557 the above.
10558 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
10559 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
10560 one more pseudo to further improve code generation.
10561 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
10562 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
10563 inside UNSPEC.
10564 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
10565 * config/frv/frv.c (frv_legitimate_address_p): Added
10566 allow_double_reg_p argument. Adjust all callers. Use it to
10567 decide whether to enable double-register indirect addressing.
10568 (frv_funcdesc_alias_set): Remove.
10569 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
10570 register. Emit movdi_ldd.
10571 (ldd_address_operand): New.
10572 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
10573 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10574 (PREDICATE_CODES): Add ldd_address_operand.
10575 * config/frv/frv.md (movdi_ldd): New.
10576 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
10577 intermediate computations if possible.
10578 (symGOTOFF2reg_i): Fix harmless typo.
10579 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
10580 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
10581 relocated p_vaddr to vaddr type.
10582 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
10583 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
10584 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
10585 MEM, or use a funcdesc alias set. Use regular move instead of
10586 ldd.
10587 (dbl_memory_one_insn_operand): Recognize function descriptors by
10588 type or by alias set, and don't split them.
10589 * config/frv/frv.md (call, call_value): Never use call_internal
10590 for fdpic.
10591 (call_internal, call_value_internal): Never match for FDPIC.
10592 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
10593 call_value_fdpicsi): Require FDPIC.
10594 (ldd): Removed.
10595 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
10596 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
10597 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
10598 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
10599 FDPIC. Compute data base address.
10600 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
10601 before the other self-specs are processed.
10602 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
10603 Build with -fPIC.
10604 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
10605 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
10606 inhibit_libc is defined.
10607 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
10608 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
10609 __FRV_FDPIC__.
10610 (__RELOC_POINTER): Define.
10611 (_Unwind_IteratePhdrCallback): Use it.
10612 * config/frv/frv.h (Twrite): Define.
10613 (TRANSFER_FROM_TRAMPOLINE): Use it.
10614 * config/frv/linux.h (INVOKE__main): Undefine.
10615 (Twrite): Override.
10616 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
10617 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
10618 (-mlibrary-pic): Emphasize that this option generates EABI code.
10619 (-mcpu): Add fr550.
10620 (-mpack): Remove.
10621 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
10622 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
10623 and CONSTs in FDPIC mode.
10624 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
10625 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
10626 * config/frv/frv.c (move_source_operand): Don't accept symbolic
10627 constants.
10628 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
10629 rather than 'i' constraint for the 2-instruction alternative.
10630 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
10631 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
10632 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
10633 EXTRA_CONSTRAINT_FOR_Y.
10634 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
10635 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
10636 (addsi3): Change 'Y' constraint to 'Q'.
10637 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
10638 * reload.c (CONST_POOL_OK_P): New macro.
10639 (find_reloads): Use it to decide whether a constant can be forced
10640 into memory.
10641 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
10642 constant satisfies got12_operand.
10643 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
10644 (frv_legitimate_address_p): Check for valid unspec offsets using
10645 got12_operand rather than frv_legitimate_fdpic_operand_p.
10646 (frv_legitimate_fdpic_operand_p): Delete.
10647 (frv_emit_movsi): Abort if we try to use the FDPIC register during
10648 or after reload.
10649 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
10650 TARGET_FDPIC.
10651 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
10652 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
10653 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
10654 (frv_fdpic_fptr_operand): Don't declare here.
10655 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
10656 rather than fdpic_got12_operand.
10657 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
10658 got12_operand and const_unspec_operand.
10659 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
10660 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
10661 (symbolic_operand): Remove.
10662 (const_unspec_operand): New predicate.
10663 * config/frv/frv.md (*movsi_got): Use got12_operand.
10664 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
10665 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
10666 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
10667 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
10668 * config/frv/frv.c (frv_unspec): New structure.
10669 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
10670 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
10671 validate CONST indices. Use frv_output_const_unspec to print them.
10672 (frv_print_operand): Update call to unspec_got_name. Use
10673 frv_output_const_unspec to print constant unspecs.
10674 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
10675 Reject UNSPECs otherwise.
10676 (unspec_got_name): Take the relocation number as argument, not an
10677 rtx containing it.
10678 (frv_output_addr_const_extra): Remove, replacing with...
10679 (frv_output_const_unspec): ...this new function.
10680 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
10681 (gpr_or_int12_operand): Use fdpic_got12_operand.
10682 (dbl_memory_one_insn_operand): Likewise.
10683 (fdpic_got12_operand): Use frv_const_unspec_p.
10684 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
10685 are already legitimate. Use frv_small_data_reloc_p when deciding
10686 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
10687 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
10688 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
10689 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
10690 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
10691 label, for real this time.
10692 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
10693 representation of visibility.
10694 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
10695 such.
10696 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
10697 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
10698 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
10699 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
10700 it was explicitly disabled.
10701 (frv_stack_info): There is no need to save the link register in every
10702 frame unless TARGET_LINKED_FP is true.
10703 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
10704 frame pointer if the stack pointer might change value.
10705 (frv_return_addr_rtx): Check and process "count" argument.
10706 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
10707 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
10708 (frv_find_base_term): Declare.
10709 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
10710 (FIND_BASE_TERM): Define.
10711 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
10712 small_data_register_operand, small_data_symbolic_operand. Add
10713 symbolic_operand.
10714 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
10715 (frv_print_operand_memory_reference, output_move_single): Remove
10716 special handling for unlegitimized sdata addresses.
10717 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
10718 and symbolic addresses.
10719 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
10720 (frv_find_base_term): New function.
10721 (int_2word_operand): Check specifically for symbolic address constants.
10722 (pic_register_operand, pic_symbolic_operand): Delete.
10723 (small_data_register_operand, small_data_symbolic_operand): Delete.
10724 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
10725 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
10726 (move_source_operand): Only accept CONSTs if they're a two-insn
10727 symbolic constant.
10728 (fdpic_got12_operand): Don't require TARGET_FDPIC.
10729 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
10730 using gen_symGOTOFF2reg*.
10731 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
10732 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
10733 themselves a cost of 3 insns.
10734 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
10735 Change predicate to symbolic_operand.
10736 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
10737 (*movsi_lda_sdata): Delete.
10738 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
10739 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
10740 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
10741 frv-*-*linux*.
10742 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
10743 label.
10744 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
10745 -multilib-library-pic.
10746 (LINK_SPEC): Add -z text for -mfdpic.
10747 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
10748 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
10749 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
10750 Override.
10751 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
10752 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
10753 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
10754 crtstuff-generated files.
10755 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
10756 * config.gcc: Add frv-*-*linux*.
10757 * config/frv/linux.h, config/frv/t-linux: New.
10758 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
10759 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
10760 when -mfdpic even if a linker script is explicitly listed.
10761 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
10762 * config/frv/frv.c (frv_override_options): Clear asm_out
10763 unaligned_op for SImode on FDPIC.
10764 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
10765 argument passed to decl_readonly_section.
10766 (frv_assemble_integer): Revert 2003-09-30's change, but make the
10767 whole block run with FDPIC even with -fno-PIC.
10768 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
10769 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
10770 symbol or label plus offset to memory.
10771 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
10772 GOTOFF and GPREL for LABEL_REF.
10773 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
10774 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
10775 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
10776 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
10777 * doc/invoke.texi: Document them.
10778 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
10779 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
10780 (frv_splittable_got_operand): Removed.
10781 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
10782 LO_SUM. Add comments.
10783 (frv_override_options): Moved enabling of FDPIC to
10784 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
10785 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
10786 (frv_legitimize_fdpic_address): Don't duplicate logic in
10787 frv_emit_movsi.
10788 (frv_gen_GPsym2reg): New.
10789 (unspec_got_name): Added gprel.
10790 (frv_expand_fdpic_call): Add support for inlining PLTs.
10791 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
10792 (gpr_or_int12_operand): Added GPREL12.
10793 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
10794 (small_data_symbolic_operand): Fail if FDPIC.
10795 (fdpic_splittable_got_operand): Removed.
10796 (fdpic_got12_operand): Added GPREL12.
10797 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
10798 when appropriate. Fix sdata GOTOFF.
10799 (frv_legitimate_constant_p): Require legitimate PIC operand for
10800 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
10801 (frv_assemble_integer): Move FDPIC funcdesc handling out of
10802 flag_pic case.
10803 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
10804 frv_assemble_integer fails.
10805 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
10806 (SUBTARGET_DRIVER_SELF_SPECS): New.
10807 (ASM_SPEC): Don't pass -mno-fdpic.
10808 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
10809 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
10810 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
10811 -multilib-library-pic.
10812 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
10813 condexec_si_media_operator, condexec_sf_add_operator and
10814 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
10815 and condexec_sf_unary_operator.
10816 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
10817 New.
10818 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
10819 movsi_internal. Give them internal names. movsi_got has type
10820 int.
10821 (fdpic got splitters): Remove.
10822 (symGPREL2reg, symGPREL2reg_hilo): New.
10823 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
10824 to -mlibrary-pic. Map -multilib-library-pic to it.
10825 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
10826 Document.
10827 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
10828 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
10829 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
10830 (frv_cannot_force_const_mem): New function.
10831 (const_small_data_p, plus_small_data_p): Update comments on sdata
10832 on FDPIC.
10833 (frv_override_options): Set flag_pie for FDPIC too.
10834 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
10835 call-saved registers on FDPIC.
10836 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
10837 don't force LR to be preserved.
10838 (frv_expand_prologue): Likewise.
10839 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
10840 (frv_frame_pointer_required): Don't force it just because the
10841 FDPIC register is used.
10842 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
10843 operand only if !condexec_p.
10844 (frv_legitimize_address): Return the FDPIC-legitimized address.
10845 Don't match small data here on FDPIC.
10846 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
10847 symbols. Use TRUE/FALSE instead of 1/0.
10848 (frv_local_funcdesc_p): New.
10849 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
10850 immediates when possible.
10851 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
10852 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
10853 an UNSPEC_GOT.
10854 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
10855 12-bit immediates when possible.
10856 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
10857 are not legitimate pic operands.
10858 (frv_in_small_data_p): Re-enable for FDPIC.
10859 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
10860 (FRV_GLOBAL_P): Removed.
10861 * config/frv/frv.md: Add modes to CONSTs.
10862 (movsi_got): New.
10863 (movsi_lo_sum_got): Use separate matches instead of match_dup.
10864 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
10865 (fdpic splittable operations): Match on flag_pic != 1.
10866 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
10867 * config/frv/frv.c (frv_asm_out_constructor,
10868 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
10869 bytes, not bits.
10870 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
10871 * config/frv/frv.c (frv_assemble_integer): Reject complex
10872 expressions referencing function SYMBOL_REFs.
10873 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
10874 (move_source_operand): Reject CONSTs that reference function
10875 SYMBOL_REFs on FDPIC.
10876 (frv_emit_movsi): If we get such a CONST, break it up.
10877 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
10878 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
10879 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
10880 MEM.
10881 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
10882 (frv_trampoline_size): Increase for FDPIC.
10883 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
10884 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
10885 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
10886 Disable use of GOTOFF for now.
10887 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
10888 Disable use of small data in FDPIC for now.
10889 (frv_asm_output_mi_thunk): Implement for FDPIC.
10890 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
10891 * config/frv/frv.c (frv_asm_out_constructor): Use
10892 frv_assemble_integer for FDPIC pointers.
10893 (frv_asm_out_destructor): Likewise.
10894 * config/frv/frv.md (ldd): Fix order of operands. Use
10895 address_operand for input.
10896 2003-09-18 DJ Delorie <dj@redhat.com>
10897 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
10898 (unspec_got_name): Correct typo.
10899 (frv_emit_movsi): Pre-expand splittable GOTs.
10900 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
10901 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
10902 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
10903 * config/frv/t-frv: Add -mfdpic multilibs.
10904 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
10905 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
10906 * config/frv/frv.c (frv_override_options): -mfdpic assumes
10907 flag_pic, default to 32-bit pics, require DWORD ops.
10908 (frv_override_options): Add W and Z constraints.
10909 (frv_expand_prologue): No pic prologue for -mfdpic.
10910 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
10911 (frv_print_operand_memory_reference): Handle GOT constants.
10912 (frv_legitimate_address_p): Allow GOT constants.
10913 (frv_legitimize_address): Handle GOT addresses too.
10914 (frv_legitimate_fdpic_operand_p): New.
10915 (frv_legitimize_fdpic_address): New.
10916 (unspec_got_name): New.
10917 (frv_output_addr_const_extra): New.
10918 (frv_expand_fdpic_call): New.
10919 (frv_fdpic_fptr_operand): New.
10920 (gpr_or_int12_operand): Handle GOT operands.
10921 (int_2word_operand): Handle GOT operands.
10922 (fdpic_operand): New.
10923 (fdpic_splittable_got_operand): New.
10924 (fdpic_got12_operand): New.
10925 (frv_emit_movsi): Handle GOT operands.
10926 (frv_assemble_integer): -mfdpic doesn't use rofixups.
10927 (frv_print_operand): Support 'g' code for GOT operands.
10928 * config/frv/frv-protos.h: Add prototypes as needed.
10929 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
10930 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
10931 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
10932 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
10933 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
10934 R_FRV_GOTOFFLO): New.
10935 (movsi_high_got, movsi_lo_sum_got): New.
10936 (*movsi_pic): Don't use this splitter for -mfdpic.
10937 (addsi3): Allow GOT references also.
10938 (call, call_value): Handle -mfdpic separately.
10939 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
10940 call_value_fdpicsi): New.
10941 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
10942 symGOTOFF2reg_i): New.
10943 * config/frv/frv.h (MASK_FDPIC): New.
10944 (TARGET_FDPIC): New.
10945 (TARGET_SWITCHES): Add -mfdpic.
10946 (FDPIC_FPTR_REGNO): New.
10947 (FDPIC_REGNO): New.
10948 (OUR_FDPIC_REG): New.
10949 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
10950 FDPIC_CALL_REGS.
10951 (REG_CLASS_NAMES): Likewise.
10952 (REG_CLASS_CONTENTS): Likewise.
10953 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
10954 (EXTRA_CONSTRAINT): Add it here.
10955 (FRV_GLOBAL_P): New.
10956 (OUTPUT_ADDR_CONST_EXTRA): New.
10957
10958 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
10959
10960 * config/sparc/sparc.h: Remove commented-out definitions of
10961 TARGET_EDOM and GEN_ERRNO_RTX.
10962
10963 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
10964
10965 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
10966 df_analyse with df_analyze.
10967
10968 2004-02-24 Alan Modra <amodra@bigpond.net.au>
10969
10970 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
10971 beginning of block.
10972
10973 2004-02-23 James E Wilson <wilson@specifixinc.com>
10974
10975 * calls.c (precompute_arguments): Update comment.
10976
10977 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
10978
10979 * et-forest.c: Replace et_occurences with et_occurrences.
10980
10981 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
10982
10983 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
10984 with iv_analyze.
10985
10986 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
10987
10988 * config/i386/i386.c: Rename pni to sse3.
10989 * config/i386/i386.h: Likewise.
10990 * config/i386/i386.md: Likewise.
10991 * config/i386/pmmintrin.h: Likewise.
10992 * doc/extend.texi: Likewise.
10993 * doc/invoke.texi: Likewise.
10994
10995 2004-02-23 Zack Weinberg <zack@codesourcery.com>
10996 Kazu Hirata <kazu@cs.umass.edu>
10997
10998 Remove -fwritable-strings.
10999 * c-common.c (fix_string_type): Don't check
11000 flag_writable_strings.
11001 (fix_string_type): Likewise.
11002 * c-opts.c (set_std_c89): Don't initialize
11003 flag_writable_strings.
11004 (set_std_c99): Likewise.
11005 * common.opt (fwritable-strings): Remove.
11006 * flags.h: Remove the external declaration of
11007 flag_writable_strings.
11008 * opts.c (common_handle_option) <OPT_fwritable_strings>:
11009 Remove.
11010 * toplev.c (flag_writable_strings): Remove.
11011 (f_options): Remove an entry for writable-strings.
11012 * varasm.c (const_hash_1) <STRING_CST>: Don't check
11013 flag_writable_strings.
11014 (compare_constant) <STRING_CST>: Likewise.
11015 (build_constant_desc): Likewise.
11016 * config/darwin.c (machopic_select_section): Likewise.
11017 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
11018 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
11019 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
11020 * config/mips/mips.c (mips_select_section): Likewise.
11021 (mips_encode_section_info): Likewise.
11022 * config/pa/pa.c (pa_select_section): Likewise.
11023 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
11024 * config/v850/v850.c (v850_select_section): Likewise.
11025 * doc/invoke.texi (-fwritable-strings): Remove.
11026 (-fno-const-strings): Don't mention -fwritable-strings.
11027 * doc/trouble.texi: Don't mention -fwritable-strings.
11028
11029 2003-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
11030
11031 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
11032
11033 2004-02-23 Dale Johannesen <dalej@apple.com>
11034
11035 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
11036 (movdf_hardfloat64): Ditto.
11037 (movdf_softfloat64): Ditto.
11038
11039 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
11040 * config/rs6000/rs6000.c (function_arg): call to
11041 rs6000_mixed_function_arg for DFmode moved to allow
11042 normal DFmode incoming register assignment.
11043
11044 2004-02-23 Dale Johannesen <dalej@apple.com>
11045
11046 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
11047 (movdf_hardfloat64): Ditto.
11048
11049 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
11050
11051 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
11052 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
11053 copyright.
11054
11055 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
11056
11057 PR c/14156
11058 * c-typeck.c (c_expand_return): Change check for VAR_DECL
11059 to use DECL_P instead.
11060
11061 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
11062 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
11063
11064 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
11065
11066 * Makefile.in (opts.o): Depend on target.h.
11067 * opts.c (decode_options): Use targetm.default_short_enums
11068 instead of DEFAULT_SHORT_ENUMS.
11069 * system.h (DEFAULT_SHORT_ENUMS): Poison.
11070 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
11071 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
11072 * target.h (gcc_target): Add default_short_enums.
11073 * config/cris/cris.h: Remove a comment about
11074 DEFAULT_SHORT_ENUMS.
11075 * config/ip2k/ip2k.h: Likewise.
11076 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
11077 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
11078
11079 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
11080 Falk Hueffner <falk@debian.org>
11081
11082 PR c/14188
11083 * builtins.c (expand_builtin_va_arg): Emit an informative message
11084 if a trap is generated.
11085 * c-typeck.c (build_function_call): Likewise.
11086
11087 2004-02-22 Jakub Jelinek <jakub@redhat.com>
11088
11089 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
11090 fopen.
11091 * libgcov.c: Include sys/stat.h.
11092 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
11093 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
11094 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
11095 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
11096
11097 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
11098
11099 * reorg.c: Remove comments about dead ports.
11100
11101 2004-02-22 Christopher Faylor <cgf@redhat.com>
11102
11103 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
11104 extra host object file when targetting cygwin rather than generic
11105 object files.
11106
11107 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
11108
11109 Merge from tree-ssa:
11110 2003-11-20 Richard Henderson <rth@redhat.com>
11111
11112 * tree-inline.c (insert_decl_map): New.
11113 (remap_decl, remap_type, remap_block, copy_body_r,
11114 initialize_inlined_parameters, declare_return_variable,
11115 remap_save_expr): Use it.
11116
11117 * function.c (copy_body_r): Add mapping from id->ret_label to
11118 id->ret_label. Revert test for ret_label.
11119
11120 2004-02-22 Jakub Jelinek <jakub@redhat.com>
11121
11122 * genoutput.c (process_template): Strip trailing whitespace in @
11123 templates and issue a warning if there was any.
11124
11125 2004-02-21 Christopher Faylor <cgf@redhat.com>
11126
11127 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
11128 object file when targetting cygwin.
11129 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
11130 overridden by top-level Makefile.
11131
11132 2004-02-21 Roger Sayle <roger@eyesopen.com>
11133
11134 * config/i386/i386.c (standard_80387_constant_p): Also prefer
11135 the x87's load constant instructions when optimizing for size.
11136
11137 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
11138
11139 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
11140 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
11141 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
11142 * fold-const.c: Likewise.
11143 * simplify-rtx.c: Likewise.
11144
11145 2004-02-21 Alan Modra <amodra@bigpond.net.au>
11146
11147 * combine.c (can_combine_p): Don't ignore SETs marked with
11148 REG_EH_REGION notes.
11149 (try_combine): When attemting to fix unrecognized insns, don't
11150 split a PARALLEL that contains the original i2.
11151
11152 2004-02-21 Ziemowit Laski <zlaski@apple.com>
11153
11154 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
11155 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
11156 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
11157 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
11158 (vector, pixel, bool): #define to __vector, __pixel and __bool.
11159 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
11160 portion of header.
11161 (__altivec_link_error_invalid_argument): Remove prototype; will use
11162 __builtin_altivec_compiletime_error("vec_*") instead.
11163 (vec_*): Fix/complete set of available operation overloads given the
11164 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
11165 cv-correctness of pointer arguments; in C, always check for correct
11166 argument types before macro expansion.
11167 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
11168 defining Darwin/PowerPC-specific '-f[no-]altivec' and
11169 '-W[no-]altivec-long-deprecated' switches.
11170 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
11171 '__vector', '__pixel' and '__bool' macros using
11172 '__attribute__((altivec(...)))' types.
11173 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
11174 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
11175 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
11176 New type nodes.
11177 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
11178 handling '-W[no-]altivec-long-deprecated'.
11179 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
11180 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
11181 altivec_expand_dst_builtin): Remove casts from integer literals.
11182 (altivec_expand_builtin): Likewise; handle expansion of new
11183 '__builtin_altivec_compiletime_error' function.
11184 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
11185 types, and make them distinct from other vector types; register
11186 '__builtin_altivec_compiletime_error' function.
11187 (print_operand): For 'P', print a full target register name instead of
11188 merely its number.
11189 (rs6000_attribute_table): Add "altivec" attribute.
11190 (rs6000_handle_altivec_attribute): New function.
11191 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
11192 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
11193 maps to).
11194 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
11195 declare.
11196 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
11197
11198 2004-02-20 James E Wilson <wilson@specifixinc.com>
11199
11200 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
11201 check.
11202 (shift_mix4left+2): Delete redundant pattern.
11203
11204 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
11205
11206 * alias.c (OUTGOING_REGNO): Don't define the default.
11207 * builtins.c (OUTGOING_REGNO): Likewise.
11208 (INCOMING_REGNO): Likewise.
11209 (apply_args_register_offset): Always use OUTGOING_REGNO.
11210 * combine.c (OUTGOING_REGNO): Likewise.
11211 * sibcall.c (OUTGOING_REGNO): Likewise.
11212 * defaults.h (INCOMING_REGNO): Provide the default.
11213 (OUTGOING_REGNO): Likewise.
11214
11215 2004-02-21 Jan Hubicka <jh@suse.cz>
11216
11217 * params.def (max-peeled-insns, max-completely-peeled-insns,
11218 max-once-peeled-insns): Set to 400.
11219
11220 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11221
11222 PR c++/12007
11223 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
11224 are set for parameters before outputing debugging information.
11225
11226 2004-02-20 Falk Hueffner <falk@debian.org>
11227
11228 PR target/14201
11229 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
11230 numbers.
11231
11232 2004-02-20 Per Bothner <per@bothner.com>
11233
11234 * input.h: Don't #include line-map.h. It may cause link problems
11235 with undefined linemap_line_start when line-map.h is included but
11236 line-map.o is not linked, as currently happens with gengtype on
11237 compilers that don't support inline.
11238 * toplev.c: So we do have to explicitly #include line-map.h here.
11239
11240 2004-02-20 Richard Henderson <rth@redhat.com>
11241
11242 * doc/invoke.texi: Add -Wvariadic-macros.
11243
11244 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
11245
11246 * haifa-sched.c (sched_emit_insn): Remove.
11247 * sched-int.h: Remove the corresponding prototype.
11248
11249 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
11250
11251 Revert:
11252 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
11253 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
11254 * system.h (DEFAULT_SHORT_ENUMS): Poison.
11255 * config/cris/cris.h: Remove a comment about
11256 DEFAULT_SHORT_ENUMS.
11257 * config/ip2k/ip2k.h: Likewise.
11258 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
11259
11260 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
11261 Tom Tromey <tromey@redhat.com>
11262
11263 * doc/install.texi: Moved --disable-libgcj and
11264 --with-system-zlib documentation to new section for
11265 Java-specific options.
11266 Added explicit Cross-Compiler-Specific Options subheading.
11267 Added section for Java-specific options.
11268
11269 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
11270
11271 * doc/install.texi (Building the Ada compiler): Remove
11272 example.
11273
11274 2004-02-20 James E Wilson <wilson@specifixinc.com>
11275
11276 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
11277
11278 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
11279
11280 * gcc.c (process_command): Allow translation of the copyright
11281 symbol but not the rest of the copyright message.
11282 * gcov.c (print_version): Likewise. Allow translation of the
11283 message about warranty.
11284
11285 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
11286
11287 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
11288 predicate.
11289 ("*andsi_clear"): Tweak constraints to not match postincrement.
11290 Adjust the predicate to exclude a volatile memory reference.
11291 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
11292 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
11293
11294 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
11295
11296 * move-if-change: Remove.
11297 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
11298 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
11299 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
11300 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
11301 (s-gtyp-gen, s-iov): Use the top level move-if-change.
11302 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
11303
11304 2004-02-19 James E Wilson <wilson@specifixinc.com>
11305
11306 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
11307 for operand2. Add condition that requires register_operand operand2
11308 before reload.
11309
11310 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
11311 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11312
11313 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
11314 * config/mips/mips.md: Expand comment above unaligned loads and stores.
11315
11316 2004-02-19 Richard Henderson <rth@redhat.com>
11317
11318 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
11319 * tree.c (build0, build1, build2, build3, build4): Split out from...
11320 (build): ... here. Call them.
11321 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
11322
11323 * convert.c (convert_to_integer): Remove extra build argument.
11324 * tree-inline.c (expand_call_inline): Likewise.
11325
11326 2004-02-19 Richard Henderson <rth@redhat.com>
11327
11328 * c-opts.c (warn_variadic_macros): New.
11329 (c_common_handle_option): Set it.
11330 (sanitize_cpp_opts): Copy it to cpp_opts.
11331 * c.opt (Wvariadic-macros): New.
11332 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
11333 * cppinit.c (cpp_create_reader): Initialize it.
11334 * cppmacro.c (parse_params): Check it.
11335
11336 2004-02-19 David Daney <ddaney@avtrex.com>
11337
11338 PR preprocessor/14198
11339 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
11340 builtin_assert ("machine=mips")
11341
11342 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
11343
11344 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
11345 * system.h (DEFAULT_SHORT_ENUMS): Poison.
11346 * config/cris/cris.h: Remove a comment about
11347 DEFAULT_SHORT_ENUMS.
11348 * config/ip2k/ip2k.h: Likewise.
11349 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
11350
11351 2004-02-19 Zack Weinberg <zack@codesourcery.com>
11352
11353 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
11354 when passing single SFmode quantities in general registers,
11355 put them in the high half.
11356
11357 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
11358
11359 * doc/md.texi (Standard Names): Document additional dependency on
11360 fix pattern.
11361
11362 * optabs.c (ftruncify): Remove.
11363 (expand_fix): Manually inline ftruncify above.
11364 (can_fix_p): Add FIXME note.
11365
11366 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
11367
11368 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
11369 spe_fixuns_truncsfsi2.
11370
11371 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
11372 fixuns_truncsfsi2.
11373
11374 2004-02-19 Steve Ellcey <sje@cup.hp.com>
11375
11376 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
11377 * testsuite/gcc.dg/20040219-1.c: New test.
11378
11379 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
11380
11381 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
11382 "*subsf3_cconly"): Subtraction is not commutative.
11383
11384 2004-02-19 Zack Weinberg <zack@codesourcery.com>
11385
11386 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
11387 (sdbout_symbol): If called before sdbout_init, queue DECL for
11388 later and return.
11389 (sdbout_init): Set sdbout_initialized true, process decls
11390 queued earlier by sdbout_symbol.
11391 (sdbout_finish): Use size_t for index variable.
11392
11393 2004-02-19 Jeff Law <law@redhat.com>
11394
11395 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
11396 for unordered comparison codes.
11397
11398 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
11399
11400 * reload1.c (reload): Correct comment.
11401 (scan_paradoxical_subregs): Remove #if 0 and old comment.
11402 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
11403 register variables are not used by reload.
11404
11405 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
11406
11407 PR target/14209
11408 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
11409 constraints to not match postincrement. Adjust the predicate to
11410 exclude a volatile memory reference.
11411
11412 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
11413
11414 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
11415
11416 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
11417
11418 * hooks.c (hook_void_tree_int): Remove.
11419 (hook_void_constcharptr): Likewise.
11420 (hook_int_void_0): Likewise.
11421 * hooks.h: Remove the prototypes for the above three
11422 functions.
11423 * targhooks.c (hook_bool_machine_mode_true): Remove.
11424 * targhooks.h: Remove the prototype for
11425 hook_bool_machine_mode_true.
11426
11427 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
11428
11429 * emit-rtl.c (subreg_realpart_p): Remove.
11430 (reorder_insns_with_line_notes): Likewise.
11431 (end_full_sequence): Likewise.
11432 * rtl.h: Remove the prototype for the above functions.
11433
11434 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
11435
11436 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
11437 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
11438 config/iq2000/iq2000.h, config/m32r/m32r.h,
11439 config/pdp11/pdp11.h, config/sparc/sparc.h,
11440 config/xtensa/xtensa.h: Remove commented-out or useless
11441 definitions of CASE_VECTOR_PC_RELATIVE.
11442
11443 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
11444
11445 * loop.c (all_sets_invariant_p): Remove.
11446
11447 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
11448
11449 PR target/12916
11450 * config/sparc/sparc.h (NPARM_REGS): Delete.
11451 (BASE_RETURN_VALUE_REG): Likewise.
11452 (BASE_OUTGOING_VALUE_REG): Likewise.
11453 (BASE_PASSING_ARG_REG): Likewise.
11454 (BASE_INCOMING_ARG_REG): Likewise.
11455 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
11456 TARGET_ARCH64, not TARGET_V9.
11457 (function_arg_slotno): Dispatch based on the mode class.
11458 Handle vector modes like floating-point modes.
11459 (function_arg_record_value_1): Handle vector types like
11460 floating-point types.
11461 (function_arg_record_value_2): Likewise.
11462 Calculate regno after mode transformation.
11463 (function_arg): Handle vector modes like floating-point modes.
11464 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
11465 If ARCH64, do not recheck alignment.
11466 (function_arg_pass_by_reference): Reorder the conditions.
11467 (sparc_return_in_memory): Move after function_arg_padding.
11468 Implement calling conventions for vector modes.
11469 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
11470 (function_value): Move scope of 'regbase'.
11471 Implement calling conventions for vector modes.
11472 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
11473 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
11474 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
11475 the argument is passed by reference.
11476 (sparc_type_code): Handle vector types.
11477
11478 2004-02-19 Alan Modra <amodra@bigpond.net.au>
11479
11480 * function.c (assign_parms): When building decl_rtl for
11481 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
11482
11483 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
11484
11485 * expr.c (is_aligning_offset): Check if we are aligning the
11486 expressions's address over BIGGEST_ALIGNMENT in bytes, not
11487 in bits.
11488
11489 2003-02-18 Matt Austern <austern@apple.com>
11490
11491 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
11492 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
11493 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
11494 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
11495 spec string.
11496 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
11497
11498 2004-02-18 Zack Weinberg <zack@codesourcery.com>
11499
11500 * dwarf2out.c (loclabel_num): Move outside #ifdef
11501 DWARF2_DEBUGGING_INFO and mark with GTY(()).
11502 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
11503 Mark with GTY(()).
11504 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
11505 Allocate memory with ggc_alloc. No need to copy anything.
11506 (ia64_hpux_file_end): Update to match.
11507
11508 2004-02-18 Jakub Jelinek <jakub@redhat.com>
11509
11510 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
11511 by default.
11512
11513 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11514
11515 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
11516 ("divmodtisi3"): Likewise.
11517 ("udivmoddi4", "udivmodtidi3"): Likewise.
11518 ("divmodsi4", "divmoddisi3"): Likewise.
11519 ("udivmodsi4", "udivmoddisi3"): Likewise.
11520 ("udivsi3", "umodsi3"): Likewise.
11521
11522 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
11523
11524 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
11525 placeholder insn when chunkifying the pool.
11526
11527 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11528
11529 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
11530 generating PIC code.
11531
11532 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
11533
11534 * config/h8300/h8300-protos.h: Add a prototype for
11535 h8300_expand_branch.
11536 * config/h8300/h8300.c (h8300_expand_branch): New.
11537 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
11538 bgtu, beq, bne): Call h8300_expand_branch().
11539
11540 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
11541
11542 * config/h8300/h8300-protos.h: Add prototypes for
11543 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
11544 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
11545 (h8300_hard_regno_mode_ok): Likewise.
11546 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
11547 h8300_hard_regno_nregs().
11548 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
11549
11550 2004-02-18 Per Bothner <per@bothner.com>
11551
11552 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
11553 partly reverts my 2003-10-01 change, because we're back to logically
11554 including <command line> inside the main line.
11555 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
11556 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
11557 Fixes PR preprocessor/14103.
11558
11559 * cppfiles.c (_cpp_stack_include): When appropriate decrement
11560 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
11561 (cpp_push_include): Don't need to increment pfile's line field.
11562 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
11563
11564 * c-ppoutput.c (print struct): New first_time field.
11565 (init_pp_output): Set print.first_time.
11566 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
11567 which is set also for (say) <command line>. Clear print.first_time.
11568
11569 * cppfiles.c (struct _cpp_file): Comment and type for pch field
11570 does not match the code, so fix both.
11571 (should_stack_file): Inline include_pch_p function.
11572 (include_pch_p): Remove pointless function.
11573
11574 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
11575
11576 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
11577
11578 * config/h8300/h8300.md (four define_peephole2's): Use
11579 h8300_regs_ok_for_stm().
11580
11581 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
11582
11583 * config/h8300/h8300-protos.h: Update the prototype for
11584 expand_a_rotate().
11585 * config/h8300/h8300.c (expand_a_rotate): Remove the first
11586 argument.
11587 * config/h8300/h8300.md: Update all callers.
11588
11589 2004-02-18 Jan Hubicka <jh@suse.cz>
11590
11591 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
11592 floats.
11593 (simplify_binary_operation): Deal with logicals on floats.
11594
11595 * i386.md (SSE fabs splitters): Emit new patterns.
11596 (SSE cmov splitters): Likewise.
11597 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
11598 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
11599 subregs.
11600 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
11601 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
11602
11603 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
11604
11605 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
11606 by hand.
11607 (output_a_rotate): Tweak a comment.
11608 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
11609 (*rotlhi3_1): Change to rotlhi3_1.
11610 (*rotlsi3_1): Change to rotlsi3_1.
11611
11612 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
11613
11614 PR target/13866
11615 * arm.c (load_multiple_operation): Don't insist that the source reg
11616 of a post-increment component is the same as the destination.
11617 (store_multiple_operation): Likewise.
11618
11619 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
11620
11621 * config/h8300/h8300.md: Move movsf patterns into one section
11622 of the file.
11623
11624 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
11625
11626 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
11627 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
11628 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
11629 config/mips/linux64.h, config/pa/pa-64.h,
11630 config/rs6000/aix51.h, config/rs6000/aix52.h,
11631 config/rs6000/spe.md, config/sparc/linux.h,
11632 config/sparc/linux64.h: Update copyright.
11633
11634 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
11635
11636 * config/h8300/h8300.md: Move push patterns into one
11637 section of the file.
11638
11639 2004-02-18 Mark Mitchell <mark@codesourcery.com>
11640
11641 PR c++/11326
11642 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
11643 fntype.
11644
11645 2004-02-18 Paul Brook <paul@codesourcery.com>
11646
11647 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
11648
11649 2004-02-18 Paul Brook <paul@codesourcery.com>
11650
11651 PR debug/12934
11652 * dwarf2out.c (loc_descriptor_from_tree): Handle
11653 EXPR_WITH_FILE_LOCATION.
11654
11655 2004-02-18 Jakub Jelinek <jakub@redhat.com>
11656
11657 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
11658 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
11659 trailing whitespace from instructions.
11660
11661 2004-02-17 Geoffrey Keating <geoffk@apple.com>
11662
11663 * configure.ac: When generating auto-build.h, pass
11664 --enable-languages to the sub-configure.
11665 Put quotes around ${program_transform_name} when generating
11666 name of as, ld, nm, objdump.
11667 * configure: Regenerate.
11668
11669 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
11670
11671 * Makefile.in (s-check, s-config, s-conditions, s-flags)
11672 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
11673 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
11674 (s-preds, s-iov): Do not depend on move-if-change.
11675
11676 2004-02-17 James E Wilson <wilson@specifixinc.com>
11677
11678 * caller-save.c (insert_restore): Pass mem through copy_rtx.
11679 (insert_save): Likewise.
11680
11681 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11682
11683 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
11684 warning.
11685
11686 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11687
11688 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
11689 *one_cmplsi2_h8300.
11690 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
11691
11692 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11693
11694 * config/h8300/h8300-protos.h: Update the prototype of
11695 fix_bit_operand().
11696 * config/h8300/h8300.c (fix_bit_operand): Remove the second
11697 argument "what".
11698 * config/h8300/h8300.md: Update all callers.
11699
11700 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11701
11702 * config/h8300/h8300.c (fix_bit_operand): Change the name of
11703 the last argument to "code" from "type".
11704
11705 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11706
11707 * config/h8300/h8300.c: Remove an extern declaration of
11708 rtx_equal_function_value_matters.
11709
11710 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11711
11712 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
11713 by hand.
11714 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
11715 (*iorqi3_1): Change to iorqi3_1.
11716 (*xorqi3_1): Change to xorqi3_1.
11717
11718 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11719
11720 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
11721 typos.
11722
11723 2004-02-17 Jan Hubicka <jh@suse.cz>
11724
11725 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
11726
11727 2004-02-18 Alan Modra <amodra@bigpond.net.au>
11728
11729 PR optimization/14119
11730 * combine.c (try_combine): When attemting to fix unrecognized insns,
11731 don't delete SETs marked with REG_EH_REGION notes.
11732
11733 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
11734
11735 * combine.c (simplify_if_then_else): Do not replace
11736 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
11737 modes differ.
11738
11739 2004-02017 Steven Bosscher <stevenb@suse.de>
11740
11741 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
11742 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
11743 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
11744 * ada/utils.c: Likewise.
11745 * cp/decl.c: Likewise.
11746 * f/com.c: Likewise.
11747 * java/class.c: Likewise.
11748
11749 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11750
11751 * config/h8300/h8300.md: Fix comment typos.
11752
11753 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11754
11755 * config/mips/t-iris6gld: Renamed to ...
11756 * config/mips/t-irix-gld: ... this.
11757 * config.gcc (mips-sgi-irix6*): Reflect this
11758 (mips-sgi-irix5*): Use it with GNU ld.
11759
11760 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
11761 to ...
11762 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
11763 * config/mips/t-irix-gld: Reflect this.
11764 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
11765
11766 * config/mips/iris5gld.h: New file.
11767 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
11768 Only use collect2 without gas.
11769
11770 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
11771 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
11772 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
11773 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
11774
11775 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
11776 * config/mips/iris5.h: ... here.
11777
11778 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
11779 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
11780 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
11781
11782 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
11783 using irix_startfile_spec, irix_endfile_spec.
11784
11785 2004-02-16 Gunther Nikl <gni@gecko.de>
11786
11787 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
11788
11789 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11790
11791 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
11792 insns by hand.
11793
11794 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11795
11796 * cfghooks.c (split_edge): Speed up updating of dominators.
11797
11798 2004-02-17 Mark Mitchell <mark@codesourcery.com>
11799
11800 PR c++/11326
11801 * c-common.c (flag_abi_version): Remove.
11802 * c-common.h (flag_abi_version): Likewise.
11803 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
11804 * c.opt (fabi-version): Remove.
11805 * calls.c (expand_call): Always pass a function type to
11806 struct_value_rtx. Use convert_memory_address.
11807 * common.opt (fabi-version): Add it.
11808 * flags.h (flag_abi_version): Likewise.
11809 (abi_version_at_least): New macro.
11810 * opts.c (common_handle_option): Add OPT_fabi_version.
11811 * toplev.c (flag_abi_version): Define it.
11812 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
11813 New function.
11814 (ia64_output_mi_thunk): Use it.
11815 (ia64_struct_value_rtx): Likewise.
11816
11817 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11818
11819 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
11820 Don't generate insns by hand.
11821
11822 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
11823
11824 PR c++/14178
11825 * doc/invoke.texi (fabi-version): The default is 2 now.
11826
11827 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11828
11829 * loop-iv.c: New file.
11830 * Makefile.in (loop-iv.o): New.
11831 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
11832 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
11833 num_loop_branches): New functions.
11834 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
11835 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
11836 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
11837 get_simple_loop_desc, free_simple_loop_desc): Declare.
11838 (simple_loop_desc): New inline function.
11839 (struct rtx_iv, struct niter_desc): New.
11840 * cfgloopmanip.c (loopify): Specify semantics more precisely.
11841 * expr.c (force_operand): Handle subregs of expressions created by
11842 loop unroller.
11843 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
11844 parts of the initialization to toplev.c
11845 * loop-unroll.c (loop_exit_at_end_p): New.
11846 (unroll_and_peel_loops): Call iv_analysis_done.
11847 (decide_peel_once_rolling, decide_peel_completely,
11848 decide_unroll_stupid, decide_unroll_constant_iterations,
11849 decide_unroll_runtime_iterations, decide_peel_simple,
11850 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
11851 unroll_loop_runtime_iterations): Use new simple loop analysis.
11852 * loop-unswitch.c (compare_and_jump_seq): New.
11853 (may_unswitch_on_p): Renamed to ...
11854 (may_unswitch_on): Use new iv analysis.
11855 (reversed_condition): Export.
11856 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
11857 * predict.c (estimate_probability): Use new simple loop analysis.
11858 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
11859 canon_condition, simplify_using_condition): Declare.
11860 * stor-layout.c (get_mode_bounds): New.
11861 * toplev.c (rest_of_handle_loop2): Some parts of
11862 initialization/finalization moved here from loop-init.c.
11863
11864 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
11865
11866 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
11867 pointer.
11868 (CALL_USED_REGISTERS): Likewise.
11869 (REG_ALLOC_ORDER): Likewise.
11870 (REG_CLASS) <GENERAL_REGS>: Likewise.
11871
11872 2004-02-16 Geoffrey Keating <geoffk@apple.com>
11873
11874 * doc/md.texi (Insn Canonicalizations): Document left-chaining
11875 in associative operators.
11876 * rtlanal.c (commutative_operand_precedence): Create some new
11877 variables. Prefer a commutative operand on the left, then
11878 binary expressions, then NEG and NOT.
11879
11880 2004-02-16 Matthias Klose <doko@debian.org>
11881
11882 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
11883 in terms of SHLIB_SOVERSION.
11884 * config/m68k/t-slibgcc-elf-ver: New file.
11885 * config/pa/t-slibgcc-elf-ver: New file.
11886 * config.gcc (m68k-linux, parisc-linux): Use them when not
11887 sjlj exceptions are not configured.
11888
11889 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
11890
11891 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
11892
11893 2004-02-16 Zack Weinberg <zack@codesourcery.com>
11894
11895 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
11896
11897 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
11898
11899 * doc/sourcebuild.texi: Mention backends.html.
11900
11901 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
11902
11903 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
11904 line-map.c, line-map.h, var-tracking.c: Fix comment
11905 formatting.
11906
11907 2004-02-16 Richard Henderson <rth@redhat.com>
11908
11909 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
11910
11911 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
11912
11913 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
11914
11915 * config/h8300/h8300.md: Remove unnecessary parallels from
11916 all define_insn and define_split patterns.
11917
11918 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
11919
11920 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
11921 "clobber").
11922
11923 2004-02-15 Bernardo Innocenti <bernie@develer.com>
11924
11925 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
11926 '%#'.
11927
11928 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
11929
11930 * config/ia64/ia64.c, config/mips/mips.c,
11931 config/mmix/mmix-modes.def: Fix comment typos.
11932
11933 2004-02-15 Roger Sayle <roger@eyesopen.com>
11934
11935 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
11936 (get_directive_line): Remove unused function prototype.
11937
11938 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
11939
11940 * tree-inline.c (copy_body_r): Do not replace ret_label.
11941
11942 2004-02-14 Jan Hubicka <jh@suse.cz>
11943
11944 * i386.c (x86_four_jump_limit): New variable.
11945 (k8_avoid_jump_misspredicts): Rename to ...
11946 (ix86_avoid_jump_misspredicts): .. this one.
11947 (ix86_pad_returns): Break out from ...
11948 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
11949 to.
11950 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
11951
11952 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
11953
11954 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
11955 PARALLEL is NULL.
11956
11957 2004-02-14 Per Bothner <per@bothner.com>
11958
11959 * fix-header.c (line_table): Move local variable in main to global.
11960 * scan.h (line_table): Use it.
11961 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
11962 line (recently renamed to src_loc) before calling recognized_function.
11963
11964 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
11965
11966 * Makefile.in: Fix comment typos.
11967
11968 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
11969
11970 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
11971 for start_value when it is directly moved into reg, and factorize
11972 the retrieval of GET_MODE (reg).
11973
11974 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
11975
11976 * config/mips/mips-protos.h (mips_load_got_page): Delete.
11977 (mips_load_got_global): Delete.
11978 (mips_gotoff_page): Declare.
11979 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
11980 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
11981 UNSPEC_LOAD_GOT pattern rather than a MEM.
11982 (*load_got[sd]i): New patterns.
11983 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
11984 (mips_load_got_page, mips_load_got_global): Delete.
11985 (mips_gotoff_page): New function.
11986 (override_options): Don't initialize mips_got_alias_set.
11987
11988 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
11989
11990 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
11991 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
11992 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
11993 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
11994 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
11995 * config/mips/mips.c: Fix some overly-long lines.
11996 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
11997 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
11998
11999 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12000
12001 * configure.ac: Search for as, ld below libexec/gcc.
12002 * configure: Regenerate.
12003
12004 2004-02-14 Ben Elliston <bje@wasabisystems.com>
12005
12006 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
12007 __builtin_arm_setwcx ().
12008 * config/arm/arm.c (arm_expand_builtin): Generate operands
12009 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
12010
12011 2004-02-14 Ben Elliston <bje@wasabisystems.com>
12012
12013 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
12014 and "wmuluh" to "wmulsm" and "wmulum", respectively.
12015 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
12016 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
12017 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
12018 (_mm_mulhi_pu16): Likewise.
12019
12020 2004-02-13 Zack Weinberg <zack@codesourcery.com>
12021
12022 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
12023 DECL_NAME != 0 before dereferencing.
12024
12025 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
12026
12027 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
12028 (s390_output_addr_const_extra): Declare.
12029 (s390_output_pool_entry): Remove FILE * argument.
12030 * config/s390/s390.c (s390_output_symbolic_const): Remove.
12031 (s390_output_addr_const_extra): New function.
12032 (print_operand_address): Call output_addr_const instead of
12033 s390_output_symbolic_const.
12034 (print_operand): Likewise.
12035 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
12036 Remove FILE * argument.
12037 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
12038 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
12039 call.
12040
12041 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12042
12043 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
12044 (struct edge, struct vertex, struct graph): New.
12045 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
12046 free_graph): New functions.
12047
12048 2004-02-12 Chris Demetriou <cgd@broadcom.com>
12049
12050 * config/mips/mips.md (casesi_internal, casesi_internal_di):
12051 Use ".set macro" to avoid warnings about multi-instruction
12052 macros, since they're intentional.
12053
12054 2004-02-12 Geoffrey Keating <geoffk@apple.com>
12055
12056 * config/darwin.h: Add include guards. Remove old, now incorrect,
12057 comment about STANDARD_EXEC_PREFIX.
12058
12059 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
12060 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
12061 for installing .1 manpages. Add rules for installing cpp
12062 and gcov manpages under their installed names.
12063
12064 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
12065
12066 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
12067 host, but try LD_FOR_TARGET first.
12068 * configure: Rebuilt.
12069
12070 2004-02-12 Zack Weinberg <zack@codesourcery.com>
12071
12072 * dbxout.c: Move declaration of dbxout_type_decl outside
12073 #ifdef DBX_DEBUGGING_INFO.
12074 * c-parse.in: Don't give the asmdef production a type.
12075
12076 2004-02-12 Zack Weinberg <zack@codesourcery.com>
12077
12078 * debug.h (struct gcc_debug_hooks): Add type_decl field.
12079 (debug_nothing_tree_int): Prototype.
12080 (dwarf_debug_hooks): Delete, unused.
12081 * debug.c (do_nothing_debug_hooks): Update.
12082 (debug_nothing_tree_int): New function.
12083 * langhooks.h (struct lang_hooks_for_decls):
12084 Remove builtin_type_decls field.
12085 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
12086 (LANG_HOOKS_DECLS): Update.
12087 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
12088 Use debug_hooks->type_decl.
12089 * dbxout.c (preinit_symbols): New static.
12090 (dbx_debug_hooks, xcoff_debug_hooks): Update.
12091 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
12092 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
12093 for symbols to output.
12094 (dbxout_type_decl): New function.
12095 (dbxout_symbol): If called before dbxout_init has run, queue
12096 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
12097 to TYPE_DECLs before emitting them.
12098 * xcoffout.c (assign_type_number): Delete.
12099 (xcoff_type_numbers): New static table.
12100 (xcoff_assign_fundamental_type_number): New function.
12101 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
12102 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
12103 * sdbout.c: Include varray.h.
12104 (deferred_global_decls): New static.
12105 (sdb_debug_hooks): Update.
12106 (sdbout_global_decl): If we can't emit something right now,
12107 remember it in deferred_global_decls.
12108 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
12109 (sdbout_init): Initialize deferred_global_decls.
12110 * Makefile.in: Update dependencies of sdbout.o.
12111 * dwarf2out.c (dwarf2out_type_decl): New function.
12112 (dwarf2_debug_hooks): Update.
12113 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
12114 * c-decl.c (getdecls): Just return 0.
12115 (check_for_loop_decls): Don't use getdecls.
12116 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
12117 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
12118
12119 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
12120
12121 * config/s390/s390.c (s390_sched_reorder2): Remove.
12122 (TARGET_SCHED_REORDER2): Do not redefine.
12123
12124 2004-02-12 Zack Weinberg <zack@codesourcery.com>
12125
12126 * c-parse.in (maybe_type_qual): Delete.
12127 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
12128 (asm_argument): New grammar rules.
12129 (extdef_1): Use asmdef.
12130 (maybeasm): Move down with other asm rules; use simple_asm_expr.
12131 (xexpr): Move up with other expression rules.
12132 (stmt): Use asm_stmt.
12133
12134 * c-typeck.c (build_asm_expr): New function - body mostly
12135 pulled from build_asm_stmt.
12136 (build_asm_stmt): Just handle tacking on the volatile qualifier.
12137 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
12138
12139 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
12140
12141 PR bootstrap/13617
12142 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
12143 (mips_declare_object): Make variadic.
12144 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
12145 mips_output_aligned_decl_common.
12146 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
12147 (mips_declare_object): Make variadic.
12148
12149 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12150
12151 * function.c (update_epilogue_consts): Teach about binary operations.
12152
12153 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
12154 previous MEM_VOLATILE in REF.
12155 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
12156 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
12157
12158 2004-02-12 Gunther Nikl <gni@gecko.de>
12159
12160 * config.gcc: Restore support for m68k-openbsd.
12161
12162 2004-02-12 Jan Hubicka <jh@suse.cz>
12163
12164 * tree-optimize.c (tree_rest_of_compilation): Do not release
12165 DECL_ARGUMENTS.
12166
12167 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
12168
12169 * doc/install.texi: Fix the spelling of "explicitly".
12170
12171 2004-02-11 Eric Christopher <echristo@redhat.com>
12172
12173 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
12174 duplicate argument structure of cpp_interpret_string.
12175 * cpphash.h: Move prototype...
12176 * cpplib.h: Here.
12177 * cpplib.c: Fix calls to match new function signature.
12178
12179 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
12180
12181 PR c/456
12182 * cppexp.c (num_binary_op): Don't allow comma operators in #if
12183 constant expressions at all outside C99 mode if pedantic.
12184
12185 2004-02-11 Uros Bizjak <uros@kss-loka.si>
12186
12187 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
12188 (log10_optab, log2_optab): Define corresponding macros.
12189 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
12190 * genopinit.c (optabs): Implement log10_optab and log2_optab
12191 using log10?f2 and log2?f2 patterns.
12192 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
12193 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
12194 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
12195 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
12196
12197 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
12198 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
12199 log2, log2f and log2l built-ins as inline x87 intrinsics.
12200
12201 2004-02-11 Richard Henderson <rth@redhat.com>
12202
12203 PR target/1532
12204 * flow.c (insn_dead_p): A clobber of a dead hard register is a
12205 dead insn after reload.
12206
12207 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
12208
12209 * tree.h (frame_base_decl): Add GTY marker.
12210 * var-tracking.c (frame_base_decl): Likewise.
12211
12212 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
12213
12214 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
12215 incorrect, hunk.
12216 (add_location_or_const_value_attribute): Use text_section_label,
12217 not TEXT_SECTION_NAME.
12218
12219 2004-02-11 Per Bothner <per@bothner.com>
12220
12221 Represent column numbers using line-map's source_location.
12222 The "next available source_location" is now managed internally by
12223 line-maps.c rather than by clients.
12224 * line-map.h (struct line_map): New field column_bits.
12225 <from_line>: Rename field to start_location.
12226 (struct line_maps): New fields highest_location and max_column_hint.
12227 (linemap_check_files_exited): New declaration.
12228 (linemap_line_start): New declaration.
12229 (linemap_add): Remove from_line parameter; use highest_location field.
12230 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
12231 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
12232 (CURRENT_LINE_MAP): Remove macro.
12233 (linemap_position_for_column): New inline function.
12234 * line-map.c (linemap_init): Clear new fields.
12235 (linemap_check_files_exited): New function, extracted from ...
12236 (linemap_free): Use linemap_check_files_exited.
12237 (linemap_add): Remove from_line parameter. Various updates.
12238 (linemap_line_start): New function.
12239 (linemap_lookeup): Update for new field names.
12240 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
12241 linemap_position_for_column may unpredictably change the current map,
12242 it is cleaner and simpler for us to not cache it in cpp_reader.
12243 (struct cpp_buffer): New sysp field.
12244 Changed warned_cplusplus_comments and from_stage3 to bitfields.
12245 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
12246 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
12247 current map using linemap_lookup.
12248 (do_linemarker): Also set buffer's sysp field.
12249 (destringize_and_run): No longer need to decrement current line.
12250 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
12251 (search_path_head, open_file_failed): Use buffer's sysp.
12252 (cpp_make_system_header): Get current map using linemap_lookup.
12253 Also set buffer's sysp flag.
12254 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
12255 * cpphash.h (CPP_INCREMENT_LINE): New macro.
12256 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
12257 (struct cpp_reader): ... and adding saved_line_base field.
12258 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
12259 Update accordingly. Don't adjust line.
12260 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
12261 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
12262 (cpp_in_system_header): ... new inline function, using buffer's sysp.
12263 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
12264 * cpplex.c (_cpp_lex_direct): Likewise.
12265 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
12266 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
12267 * cpplib.h (struct cpp_token): Rename line field to src_loc.
12268 Remove col field as it is now subsumed by src_loc.
12269 * cpperror.c: Update various field, parameter, and macro names.
12270 (print_location): If col==0, try SOURCE_COLUMN of line.
12271 (cpp_error): Use cur_token's src_loc field, rather than line+col.
12272 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
12273 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
12274 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
12275 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
12276 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
12277 (_cpp_lex_direct): Use linemap_position_for_column.
12278 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
12279 parameter. Instead get it from the line_table global. Adjust callers.
12280 (print): Remove map field. Replace line field to src_line.
12281 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
12282 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
12283 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
12284 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
12285 * cpptrad.c (copy_comment): Rename variable.
12286 * c-lex.c (map): Remove static variable, for same reason we removed
12287 cpp_reader's map field.
12288 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
12289 to call linemap_lookup.
12290 (cb_line_change): Token's line field replaced by src_loc.
12291 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
12292 Don't save new_map.
12293
12294 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
12295 source_location.
12296
12297 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
12298
12299 * config/rs6000/altivec.md (*movv4si_internal): At least one
12300 operand must be register_operand.
12301 (*movv8hi_internal1): Likewise.
12302 (*movv16qi_internal1): Likewise.
12303 (*movv4sf_internal1): Likewise.
12304
12305 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
12306
12307 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
12308 operand.
12309 (movv4hi_internal): Same.
12310 (movv2sf_internal): Same.
12311 (movv1di_internal): Same.
12312
12313 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
12314
12315 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
12316 TARGET_OLDABI consistently.
12317 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
12318 mips_va_arg,override_options,compute_frame_size,
12319 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
12320 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
12321 and TARGET_OLDABI consistently.
12322 * config/mips/mips.md (exception_receiver): Likewise.
12323 * config/mips/linux64.h: Likewise.
12324
12325 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
12326
12327 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
12328 Set AltiVec ABI and vrsave as default for ppc64 linux.
12329 (init_cumulative_args): Post error, if try to return
12330 value in AltiVec register without enable AltiVec.
12331 (function_arg_advance): Ditto for passing arguments.
12332
12333 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
12334
12335 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
12336 a label before updating its usage count.
12337
12338 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
12339
12340 * doc/install.texi: Remove extra cd.
12341
12342 2004-02-10 Ziemowit Laski <zlaski@apple.com>
12343
12344 * c-common.c (vector_size_helper): Remove; call
12345 reconstruct_complex_type() instead.
12346 * tree.c (reconstruct_complex_type): New function
12347 (formerly vector_size_helper() in c-common.c).
12348 (make_vector): Make externally visible.
12349 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
12350
12351 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
12352
12353 * config/h8300/h8300-protos.h: Add a prototype for
12354 h8300_regs_ok_for_stm.
12355 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
12356 * config/h8300/h8300.md (stm_h8300s_2_advanced,
12357 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
12358 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
12359 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
12360 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
12361 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
12362 ldm_h8300s_4_normal, ldm_h8300s_4): Use
12363 h8300_regs_ok_for_stm().
12364
12365 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
12366
12367 PR c/14088
12368 * real.c (real_from_string): Look for 'X' as well as 'x' in
12369 hexfloat strings.
12370
12371 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
12372
12373 * config/h8300/h8300.md: Remove an incorrect comment about
12374 peephole2. Add comments.
12375
12376 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
12377
12378 PR/14058
12379 * emit-rtl.c (set_decl_incoming_rtl): New.
12380 * tree.h (set_decl_incoming_rtl): New.
12381 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
12382 DECL_INCOMING_RTL.
12383 * ada/misc.c (adjust_decl_rtl): Likewise.
12384
12385 2004-02-10 Per Bothner <per@bothner.com>
12386
12387 * c-opts.c (c_common_post_options): Don't emit working directory
12388 in cpp output if -P was specified.
12389
12390 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
12391
12392 PR c/14092
12393 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
12394 negate_expr back to the original type.
12395
12396 2004-02-10 Alan Modra <amodra@bigpond.net.au>
12397
12398 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
12399 bump retaddr here.
12400
12401 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
12402
12403 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
12404 gen_lowpart_SUBREG): Move under the file in which they
12405 are actually declared.
12406
12407 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
12408
12409 * doc/sourcebuild.texi: Add libada documentation.
12410
12411 * doc/install.texi: Update documentation on Ada build, now
12412 that the GNAT lib and tools are built automatically.
12413
12414 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
12415
12416 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
12417 && TARGET_IRIX.
12418
12419 2004-02-09 Ziemowit Laski <zlaski@apple.com>
12420
12421 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
12422 boundaries outside build_component_ref() call (a macro in ObjC++).
12423
12424 2004-02-09 Bob Wilson <bob.wilson@acm.org>
12425
12426 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
12427 (init_cumulative_args): Likewise.
12428 (a7_overlap_mentioned_p): Delete prototype.
12429 * config/xtensa/xtensa.c (struct machine_function): Replace
12430 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
12431 Add set_frame_ptr_insn field.
12432 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
12433 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
12434 if the operand is an argument in a7. If so, copy a7 to a new pseudo
12435 at the function entry and replace the operand with the pseudo.
12436 (init_cumulative_args): Remove unused arguments. Add new "incoming"
12437 argument and record this flag in CUMULATIVE_ARGS.
12438 (function_arg): Remove result_mode and special-case code to handle
12439 arguments in a7. Instead, set need_a7_copy flag when there is an
12440 incoming argument in a7.
12441 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
12442 and use the value recorded in cfun->machine->set_frame_ptr_insn.
12443 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
12444 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
12445 special-case code.
12446 (a7_overlap_mentioned_p): Delete.
12447 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
12448 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
12449 arguments to init_cumulative_args and pass "incoming" flag instead.
12450 (BLOCK_REG_PADDING): Delete.
12451 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
12452 checks for reload_in_progress and reload_completed. Update calls to
12453 xtensa_copy_incoming_a7.
12454 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
12455 to call xtensa_copy_incoming_a7.
12456
12457 2004-02-09 DJ Delorie <dj@redhat.com>
12458
12459 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
12460 longer modify standard_exec_prefix, standard_bindir_prefix, or
12461 standard_startfile_prefix.
12462
12463 2004-02-09 James E Wilson <wilson@specifixinc.com>
12464
12465 PR c++/11295
12466 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
12467 to expand_expr_real call, and pass in alt_rtl as last argument.
12468
12469 PR libstdc++/5625
12470 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
12471 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
12472 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
12473 * except.c (expand_builtin_extend_pointer): New.
12474 * except.h (expand_builtin_extend_pointer): Declare.
12475
12476 2004-02-09 David Edelsohn <edelsohn@gnu.org>
12477
12478 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
12479 unaligned loads and stores.
12480
12481 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12482
12483 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
12484 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
12485
12486 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
12487 * config/mips/iris5.h: ... here.
12488 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
12489
12490 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
12491 * config/mips/iris5.h: ... here.
12492
12493 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12494
12495 * configure.ac: Remove default executable files before AC_PROG_CC.
12496 * configure: Regenerate.
12497
12498 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
12499
12500 PR target/13721
12501 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
12502 print a operand other than a register.
12503
12504 2004-02-09 Roger Sayle <roger@eyesopen.com>
12505
12506 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
12507 tree code rather than call fold_convert, which doesn't specify a
12508 default floating point to integer conversion.
12509
12510 2004-02-08 Bernardo Innocenti <bernie@develer.com>
12511
12512 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
12513 code to support SGS assembler. Reformat adjacent code where possible.
12514 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
12515 definition.
12516 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
12517 for '%#'.
12518 * config/m68k/linux.h, config/m68k/m68k.c,
12519 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
12520 macros and asm_printf() format strings.
12521 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
12522 * config/m68k/linux.h: Update copyright.
12523 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
12524
12525 2004-02-08 Andreas Schwab <schwab@suse.de>
12526 Bernardo Innocenti <bernie@develer.com>
12527
12528 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
12529 REGISTER_PREFIX.
12530 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
12531 frame pointer register, overridable by OS targets.
12532 * (M68K_REGNAME): Macro to obtain register name for asm output,
12533 eventually replacing %a6 with M68K_FP_REG_NAME.
12534 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
12535 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
12536 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
12537 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
12538 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
12539
12540 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
12541
12542 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
12543 hook_rtx_tree_int_null.
12544 * targhooks.c (default_struct_value_rtx): Remove.
12545 * targhooks.h: Remove the prototype for
12546 default_struct_value_rtx.
12547 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
12548 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
12549 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
12550 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
12551 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
12552 config/rs6000/rs6000.c, config/s390/s390.c,
12553 config/stormy16/stormy16.c, config/v850/v850.c,
12554 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
12555 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
12556
12557 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
12558
12559 * README.Portability: Change "ISO C89" to "ISO C90".
12560 * c-parse.in (primary, initelt): Likewise.
12561
12562 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
12563
12564 * real.c (encode_ibm_extended): Normalize the input value before
12565 converting it to a double. Handle the case where a normal value
12566 rounds to infinity.
12567
12568 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
12569
12570 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
12571 warning.
12572 * cse.c (preferrable): Change to preferable. Update all of its
12573 callers.
12574 * genautomata.c (ainsn): Change
12575 first_ainsn_with_given_equialence_num to
12576 first_ainsn_with_given_equivalence_num. Update all of its
12577 references.
12578
12579 2004-02-08 Jan Hubicka <jh@suse.cz>
12580
12581 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
12582
12583 2004-02-07 David Edelsohn <edelsohn@gnu.org>
12584
12585 * function.c (assign_parms): Fix formatting.
12586
12587 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
12588
12589 * default.h (PROMOTE_PROTOTYPES): Remove.
12590 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
12591 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
12592 EXPAND_BUILTIN_SAVEREGS): Poison.
12593 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
12594 hook_bool_tree_false.
12595 (TARGET_PROMOTE_PROTOTYPES): Likewise.
12596 * target.h: Replace SETUP_INCOMING_VARARGS with
12597 targetm.calls.setup_incoming_varargs().
12598 * targhooks.c (default_promote_function_return): Remove.
12599 (default_promote_prototypes): Likewise.
12600 (default_struct_value_rtx): Always abort().
12601 (default_expand_builtin_saveregs): Always print an error
12602 message.
12603 (default_setup_incoming_varargs): Do nothing.
12604 (default_pretend_outgoing_varargs_named): Don't depend on
12605 SETUP_INCOMING_VARARGS.
12606 * targhooks.h: Remove the prototype for
12607 default_promote_function_return and
12608 default_promote_prototypes.
12609
12610 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
12611
12612 * system.h (SHARED_SECTION_ASM_OP): Poison.
12613 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
12614 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
12615
12616 2004-02-07 Zack Weinberg <zack@codesourcery.com>
12617
12618 Bug 13856
12619 * c-decl.c (diagnose_mismatched_decls): Only give special
12620 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
12621 is also true.
12622 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
12623 DECL_FUNCTION_CODE when defining a built-in function.
12624 Don't update DECL_ESTIMATED_INSNS.
12625 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
12626 FUNCTION_DECLs.
12627 * tree.h: Delete DECL_ESTIMATED_INSNS.
12628 * tree-inline.c (struct inline_data): Delete inlined_insns field.
12629 (expand_call_inline, optimize_inline_calls): Don't update
12630 DECL_ESTIMATED_INSNS nor inlined_insns.
12631 * cgraphunit.c (cgraph_analyze_function): Don't update
12632 DECL_ESTIMATED_INSNS.
12633
12634 2004-02-07 Zack Weinberg <zack@codesourcery.com>
12635
12636 * c-common.c (shadow_warning): Delete.
12637 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
12638 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
12639 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
12640 * c-parse.in (free_parser_stacks): Delete.
12641
12642 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
12643
12644 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
12645 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
12646 Use the top level mkinstalldirs, not the one in the gcc subdir.
12647 * mkinstalldirs: Remove (from the gcc subdir).
12648
12649 2004-02-07 Roger Sayle <roger@eyesopen.com>
12650
12651 PR middle-end/13696
12652 * fold-const.c (fold_convert): New function to provide type
12653 conversion to the middle-end without using convert.
12654 (negate_expr, associate_trees, size_diffop, omit_one_operand,
12655 operand_equal_for_comparison_p, pedantic_omit_one_operand,
12656 invert_truthvalue, optimize_bit_field_compare, range_binop,
12657 decode_field_reference, make_range, build_range_check, unextend,
12658 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
12659 fold_binary_op_with_conditional_arg, fold_inf_compare,
12660 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
12661 convert with calls to fold_convert.
12662
12663 2004-02-07 Jan Hubicka <jh@suse.cz>
12664
12665 * genrecog.c (find_operand): add extra argument stop.
12666 (validate_pattern): Verify that mach_dup is duplicating operand
12667 defined lexically earlier.
12668
12669 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
12670
12671 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
12672 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
12673 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
12674 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
12675 config/ia64/ia64.h, config/ip2k/ip2k.h,
12676 config/iq2000/iq2000.h, config/mips/iris5.h,
12677 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
12678 config/rs6000/aix51.h, config/rs6000/aix52.h,
12679 config/rs6000/darwin.h, config/rs6000/rs6000.h,
12680 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
12681 config/sparc/linux.h, config/sparc/linux64.h,
12682 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
12683 config/xtensa/xtensa.h: Remove the definitions of
12684 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
12685 MAX_WCHAR_TYPE_SIZE.
12686 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
12687 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
12688
12689 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
12690
12691 PR bootstrap/13990
12692 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
12693 gen_rtx_NE.
12694
12695 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
12696
12697 * var-tracking.c (vt_add_function_parameters): Surround checkings by
12698 #ifdef ENABLE_CHECKING and #endif.
12699
12700 2004-02-07 Roger Sayle <roger@eyesopen.com>
12701
12702 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
12703 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
12704 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
12705 integer types and floating point with unsafe_math_optimizations.
12706 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
12707 Optimize A - B as A + (-B), if B is easily negated.
12708
12709 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
12710
12711 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
12712 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
12713 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
12714 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
12715 Update copyright.
12716
12717 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
12718
12719 * c-ppoutput.c, var-tracking.c: Fix comment typos.
12720
12721 2004-02-06 James E Wilson <wilson@specifixinc.com>
12722
12723 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
12724 glibc 2.3 or better.
12725
12726 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12727
12728 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
12729 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
12730
12731 2004-02-07 Alan Modra <amodra@bigpond.net.au>
12732
12733 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
12734 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
12735 (SHLIB_MKMAP_OPTS): Delete.
12736 (TARGET_LIBGCC2_CFLAGS): Add -specs.
12737 (bispecs): Add rule.
12738 * config/rs6000/libgcc-ppc64.ver: New file.
12739 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
12740 (__floatdidf, __floatdisf): Optimize multiply.
12741 (__fixunstfdi): New function.
12742 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
12743 real and imag parts larger than one register.
12744 (function_arg): Correct type of reg used when fp arg split partially
12745 to stack.
12746 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
12747 and __MACH__ or __powerpc64__.
12748
12749 2004-02-06 Roger Sayle <roger@eyesopen.com>
12750 Ulrich Weigand <uweigand@de.ibm.com>
12751
12752 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
12753 of gen_highpart or gen_lowpart when the floating point format is
12754 wider than the result mode.
12755
12756 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
12757
12758 * dwarf2out.c (loclabel_num): Move into #ifdef
12759 DWARF2_DEBUGGING_INFO.
12760
12761 2004-02-06 Ziemowit Laski <zlaski@apple.com>
12762
12763 * objc/objc-act.c (build_super_template) the 'class' field of
12764 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
12765 (get_super_receiver): Likewise.
12766
12767 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12768
12769 * reload1.c (check_eliminable_occurrences): Optimize the reset
12770 of can_eliminate.
12771 (eliminate_regs_in_insn): Likewise.
12772
12773 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
12774 Josef Zlomek <zlomekj@suse.cz>
12775
12776 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
12777 at the beginning of function, call dwarf2out_var_location for
12778 NOTE_INSN_VAR_LOCATION note.
12779 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
12780 decl_loc_table): New.
12781 (lookup_decl_loc): New function.
12782 (add_var_loc_to_decl): New function.
12783 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
12784 only if can_use_fbreg.
12785 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
12786 functions.
12787 (loc_descriptor): Likewise. Process VAR_LOCATION.
12788 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
12789 (loc_descriptor_from_tree): Call mem_loc_descriptor with
12790 can_use_fbreg == true.
12791 (add_location_or_const_value_attribute): Added parameter enum
12792 dwarf_attribute attr, generate attribute ATTR. Create the location list.
12793 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
12794 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
12795 with attr == DW_AT_location.
12796 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
12797 if frame_base_decl is defined and has a location list.
12798 (gen_variable_die): Call add_location_or_const_value_attribute with
12799 attr == DW_AT_location.
12800 (dwarf2out_var_location): New function.
12801 (dwarf2out_begin_function): New function.
12802 (dwarf2out_init): Create decl_loc_table.
12803
12804 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
12805
12806 * loop.c (force_movables): Transitively increase the priorities of
12807 all insns forces by an insn, not just the first one.
12808
12809 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
12810 Daniel Berlin <dberlin@dberlin.org>
12811
12812 Josef Zlomek <zlomekj@suse.cz>
12813 * Makefile.in (var-tracking.o): New.
12814 * common.opt (fvar-tracking): New.
12815 * flags.h (flag_var_tracking): New.
12816 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
12817 * opts.c (common_handle_option): Add OPT_fvar_tracking.
12818 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
12819 * rtl.c (note_insn_name): Likewise.
12820 * rtl.def (VAR_LOCATION): New.
12821 * rtl.h (NOTE_VAR_LOCATION): New.
12822 (NOTE_VAR_LOCATION_DECL): New.
12823 (NOTE_VAR_LOCATION_LOC): New.
12824 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
12825 (variable_tracking_main): New exported function.
12826 * timevar.def (TV_VAR_TRACKING): New.
12827 * toplev.c (enum dump_file_index): Added DFI_vartrack.
12828 (dump_file): "vartrack" was added (-dV).
12829 (flag_var_tracking): New.
12830 (f_options): "var-tracking" was added.
12831 (rest_of_handle_variable_tracking): New function.
12832 (rest_of_compilation): Run variable tracking.
12833 (process_options): If user has not specified flag_var_tracking set it
12834 according to optimize, debug_info_level and debug_hooks.
12835 * tree.h (frame_base_decl): New.
12836 * var-tracking.c: New file.
12837 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
12838 (ia64_override_options): Set flags to run variable tracking in machine
12839 dependent reorg instead of toplev.c.
12840 (ia64_reorg): Run variable tracking if wanted.
12841 * doc/invoke.texi: Mention variable tracking in -dV,
12842 add and -fvar-tracking.
12843 * doc/passes.texi: Added variable tracking pass.
12844
12845 Daniel Berlin <dberlin@dberlin.org>
12846 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
12847 * dbxout.c (dbx_debug_hooks): Likewise.
12848 (xcoff_debug): Likewise.
12849 * debug.c (do_nothing_debug_hooks): Likewise.
12850 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
12851 * dwarfout.c (dwarf_debug_hooks): Likewise.
12852 * sdbout.c (sdb_debug_hooks): Likewise.
12853 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12854 * final.c (final_scan_insn): Call var_location debug hook for each
12855 NOTE_INSN_VAR_LOCATION.
12856
12857 2004-02-06 Jan Hubicka <jh@suse.cz>
12858
12859 * flow.c (update_life_info): Allocate reg_deaths when called from
12860 scheudler.
12861 (attempt_auto_inc): Update life ranges accordingly.
12862
12863 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
12864
12865 PR debug/11816
12866 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
12867
12868 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
12869
12870 * cfganal.c (flow_call_edges_add): Never split a libcall block.
12871
12872 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
12873
12874 * dwarf2out.c (output_loc_list): Don't use deltas if we have
12875 a separate line info table in use.
12876 Use the correct size for terminators.
12877 (output_die): Use offset, not delta.
12878
12879 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
12880
12881 * doc/invoke.texi: Remove the pni option from -mfpmath=.
12882
12883 2004-02-06 Jan Hubicka <jh@suse.cz>
12884
12885 * recog.c (split_all_insns): Do not update reg info.
12886 * regrename.c (regrename_optimize): Likewise.
12887 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
12888 * flow.c (struct propagate_block_info): Add insn_num field.
12889 (reg_deaths): New array.
12890 (life_analysis): Free reg_deaths info.
12891 (allocate_reg_life_data): Allocate reg_deaths array.
12892 (propagate_one_insn): Use new array.
12893 (init_propagate_block): Initialize it.
12894 (free_propagate_block_info): Finish compuation of
12895 REG_LIVE_LENGTH
12896 (attempt_auto_inc): Sanity check that REG_INFO is not
12897 computed at same time.
12898 (mark_used_regs): Update new array.
12899
12900 * reg-stack.c (subst_stack_regs): Unshare clobbers before
12901 substitution.
12902
12903 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12904
12905 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
12906 *extendqisi2_short_displ.
12907
12908 2004-02-06 Alan Modra <amodra@bigpond.net.au>
12909
12910 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
12911 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
12912 (emit_library_call_value_1): Likewise pass nargs.
12913 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
12914 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
12915 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
12916 parameter instead of scanning TYPE_ARGS_TYPES to count args.
12917 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
12918 prototype.
12919 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
12920 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
12921 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
12922 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
12923 INIT_CUMULATIVE_ARGS.
12924 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
12925 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
12926 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
12927 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
12928 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
12929 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
12930 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
12931 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
12932 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
12933 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
12934 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
12935 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
12936
12937 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12938
12939 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
12940 possible.
12941
12942 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12943
12944 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
12945 note containing (plus (reg) (const_int)), where reg is an
12946 eliminable reg, then perform the register elimination without
12947 depending on eliminate_regs().
12948
12949 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12950
12951 * config/arc/arc.c (arc_return_in_memory): Check the return
12952 value of int_size_in_bytes against -1. Don't check
12953 TREE_ADDRESSABLE.
12954 * config/avr/avr.c (avr_return_in_memory): Check the return
12955 value of int_size_in_bytes against -1.
12956 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
12957 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
12958 Likewise.
12959 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
12960 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
12961 Likewise.
12962
12963 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12964
12965 * config/frv/frv-protos.h: Remove the prototype for
12966 frv_setup_incoming_varargs.
12967 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
12968 (frv_setup_incoming_varargs): Make it static.
12969 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
12970
12971 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12972
12973 * config/fr30/fr30-protos.h: Remove the prototype for
12974 fr30_setup_incoming_varargs.
12975 Update the prototypes for fr30_num_arg_regs and
12976 fr30_function_arg_partial_nregs.
12977 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
12978 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
12979 (fr30_setup_incoming_varargs): Make it static.
12980 Add argument second_time. Don't do anything when second_time
12981 is nonzero.
12982 (fr30_num_arg_regs): Change the type of the first argument to
12983 enum machine_mode.
12984 (fr30_function_arg_partial_nregs): Change the type of the
12985 second argument to enum machine_mode.
12986 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
12987 (SETUP_INCOMING_VARARGS): Remove.
12988
12989 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
12990
12991 * config/arc/arc-protos.h: Remove the prototype for
12992 arc_setup_incoming_varargs.
12993 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
12994 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
12995 (arc_setup_incoming_varargs): Make it static.
12996 (arc_external_libcall): Likewise.
12997 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
12998 Remove the commented-out definition of
12999 ASM_OUTPUT_EXTERNAL_LIBCALL.
13000
13001 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
13002
13003 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
13004 to $$(slibdir) in the installation commands.
13005
13006 2004-02-05 David Edelsohn <edelsohn@gnu.org>
13007
13008 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
13009 with inner_regno, not regno.
13010 * rtlanal.c (refers_to_regno_p): Same.
13011
13012 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
13013
13014 * config.gcc: Remove i370 support.
13015
13016 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
13017
13018 * doc/install.texi: Update automake and autoconf version
13019 requirements. Note where to find gcj automake version.
13020
13021 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
13022
13023 * Makefile.in (generate-manpages): Move dependencies to ...
13024 (man): here.
13025 * doc/makefile.texi: Document new targets.
13026 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
13027
13028 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
13029
13030 PR/13485
13031 Makefile.in (srcextra): Add a level of indirection to ...
13032 (gcc.srcextra): ... here.
13033 (po-generated): Delete.
13034 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
13035 options.c.
13036 (start.encap): Remove superfluous lang.srcextra dependency.
13037 objc/Make-lang.in (po-generated): Delete.
13038
13039 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
13040
13041 * config/ia64/ia64.c (REG_GP): Remove.
13042
13043 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13044
13045 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
13046
13047 2004-02-05 Devang Patel <dpatel@apple.com>
13048
13049 * dwarf2out.c (force_type_die): Look up input type itself
13050 instead of root_type() of type.
13051
13052 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
13053
13054 * config/s390/s390.md ("*tmqidi_ext"): New insn.
13055 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
13056 pre-reload splitters are transformed to post-reload
13057 define_insn_and_split patterns.
13058 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
13059
13060 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
13061
13062 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
13063 TARGET_PROMOTE_PROTOTYPES.
13064
13065 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13066
13067 PR middle-end/13750
13068 Revert:
13069 2004-01-15 Geoffrey Keating <geoffk@apple.com>
13070 PR pch/13361
13071 * c-typeck.c (constructor_asmspec): Delete.
13072 (struct initializer_stack): Delete field 'asmspec'.
13073 (start_init): Delete saving of asmspec.
13074 (finish_init): Don't update constructor_asmspec.
13075 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
13076 * stmt.c (expand_asm): Duplicate strings from tree.
13077 (expand_asm_operands): Likewise.
13078 * tree.c (tree_size): Update computation of size of STRING_CST.
13079 (make_node): Don't make STRING_CST nodes.
13080 (build_string): Allocate string with tree node.
13081 * tree.def (STRING_CST): Update comment.
13082 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
13083 (tree_string): Place contents of string in tree node.
13084 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
13085 from tree.
13086
13087 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
13088
13089 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
13090 msgid.
13091
13092 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
13093
13094 * config/rs6000/altivec.md (*movv4si_internal): At least one
13095 operand must be altivec_register_operand.
13096 (*movv8hi_internal1): Likewise.
13097 (*movv16qi_internal1): Likewise.
13098 (*movv4sf_internal1): Likewise.
13099
13100 2004-02-05 David Edelsohn <edelsohn@gnu.org>
13101
13102 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
13103 * configure: Regenerate.
13104
13105 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
13106
13107 * doc/install.texi: Update description of --gxx-include-dir to
13108 give correct default value.
13109
13110 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
13111
13112 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
13113 8 with MAC_REG.
13114
13115 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
13116
13117 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
13118 gen_rtx_PARALLEL.
13119
13120 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
13121
13122 * emit-rtl.c: Update the comment about the file.
13123
13124 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
13125
13126 * sourcebuild.texi (Test Idioms): Update testcase naming
13127 conventions.
13128
13129 2004-02-04 Per Bothner <per@bothner.com>
13130
13131 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
13132 * c-ppoutput.c (pp_dir_change): New function.
13133 * c-common.h (pp_dir_change): New declaration.
13134 * cpplib.h (struct cpp_options): Remove working_directory field.
13135 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
13136 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
13137 Don't handle -fworking_directory here, but in c_common_post_options.
13138 (read_original_directory): Don't back up when done.
13139 Don't clear no-longer used working_directory flag.
13140 * cpplib.h: Update declarations to match.
13141 * c-lex.c (cb_dir_change): Move to c-opts.c.
13142 (init_c_lex): Don't set dir_change callback here, since we want
13143 to set it even if flag_preprocess_only.
13144 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
13145 (c_common_post_options): Set dir_change callback.
13146 Call pp_dir_change if approporiate.
13147 (finish_options): Don't call cpp_find_main_file here. Hence remove
13148 unneeded parameter and result. Do LC_RENAME for <built-in>.
13149 (c_common_post_options): Call cpp_read_main_file here instead.
13150 (c_common_init): Update accordingly.
13151 (push_command_line_include): Don't cpp_push_main_file.
13152 Do LC_RENAME rather than LC_LEASE to get back to main file.
13153 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
13154 (c_common_parse_file): Call cpp_read_main_file for subsequent main
13155 files, but call finish_options for all files.
13156 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
13157 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
13158 cpp_find_main_file + cpp_push_main_file.
13159 * c-lex.c (fe_file_change): Don't set main_input_filename here.
13160 * opts.c (handle_options): Only set main_input_filename first time.
13161
13162 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
13163
13164 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
13165
13166 2004-02-04 Geoffrey Keating <geoffk@apple.com>
13167
13168 * reload.c (find_equiv_reg): When checking for register overlap,
13169 don't index hard_regno_nregs with a pseudo-reg.
13170
13171 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13172
13173 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
13174
13175 2004-02-04 David Edelsohn <edelsohn@gnu.org>
13176
13177 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
13178 against FIRST_PSEUDO_REGISTER.
13179
13180 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13181
13182 * Makefile.in: Move target, host overrides after per-language
13183 fragments.
13184
13185 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
13186 (GNATLIBCFLAGS): Remove -g.
13187
13188 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
13189
13190 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
13191 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
13192 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
13193 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
13194 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
13195 config/sparc/sparc.c, config/vax/vax.c: Revert the
13196 replacements of "FALLTHRU" with "Fall through" done in the
13197 previous patch.
13198
13199 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
13200
13201 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
13202 config/arm/arm.c, config/arm/arm.md,
13203 config/cris/cris-protos.h, config/fr30/fr30.c,
13204 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
13205 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
13206 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
13207 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
13208 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
13209 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
13210 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
13211 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
13212 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
13213 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
13214 config/s390/s390.md, config/sparc/netbsd-elf.h,
13215 config/sparc/openbsd.h, config/sparc/sparc.c,
13216 config/xtensa/lib2funcs.S: Fix comment formatting.
13217
13218 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
13219
13220 * config/alpha/alpha.c, config/arc/arc.c,
13221 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
13222 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
13223 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
13224 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
13225 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
13226 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
13227 config/iq2000/iq2000.c, config/m32r/m32r.c,
13228 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
13229 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
13230 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
13231 config/rs6000/rs6000.h, config/sparc/sparc.c,
13232 config/vax/vax.c: Fix comment typos. Follow spelling
13233 conventions.
13234
13235 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
13236
13237 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
13238 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
13239 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
13240 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
13241 config/arm/fpa.md, config/arm/iwmmxt.md,
13242 config/arm/netbsd-elf.h, config/arm/netbsd.h,
13243 config/m68hc11/m68hc11.md, config/mips/iris5.h,
13244 config/mn10300/mn10300.md, config/rs6000/altivec.md,
13245 config/sparc/netbsd-elf.h: Update copyright.
13246
13247 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
13248
13249 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
13250 for all modes whose size is greater than 8 bytes if ARCH32.
13251 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
13252 by reference if ARCH32.
13253
13254 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
13255
13256 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
13257
13258 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13259
13260 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
13261 to before adddi3 insn patterns.
13262 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
13263 "reload_insi"): Move to before addsi3 insn patterns.
13264
13265 2004-02-04 Mark Mitchell <mark@codesourcery.com>
13266
13267 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
13268 parameter. Use it instead of current_function_is_thunk.
13269 * function.h (struct function): Update documentation for is_thunk.
13270 * tree.h (CALL_FROM_THUNK_P): New macro.
13271 * config/alpha/alpha.c (alpha_sa_mask): Do not check
13272 no_new_pseudos when testing current_function_is_thunk.
13273 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
13274
13275 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
13276
13277 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
13278 TARGET_SETUP_INCOMING_VARARGS.
13279
13280 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
13281
13282 * emit-rtl.c (gen_rtx): Remove.
13283 * genattrtab.c: Don't mention gen_rtx in a comment.
13284 * rtl.h: Remove the prototype for gen_rtx.
13285 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
13286
13287 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
13288
13289 * config/arc/arc.h, config/fr30/fr30.h
13290 (SETUP_INCOMING_VARARGS): Remove the target-independent
13291 comments.
13292 * doc/tm.texi: Don't mention deprecated target macros.
13293
13294 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
13295
13296 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
13297 target-independent comment.
13298
13299 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
13300
13301 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
13302 mention deprecated target macros.
13303
13304 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
13305
13306 * config.gcc: Remove obsolete ports and configurations.
13307 * config/linux-aout.h, config/netware.h,
13308 config/t-linux-gnulibc1, config/d30v/abi,
13309 config/d30v/d30v-protos.h, config/d30v/d30v.c,
13310 config/d30v/d30v.h, config/d30v/d30v.md,
13311 config/d30v/libgcc1.asm, config/d30v/t-d30v,
13312 config/dsp16xx/dsp16xx-modes.def,
13313 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
13314 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
13315 config/i370/README, config/i370/i370-c.c,
13316 config/i370/i370-protos.h, config/i370/i370.c,
13317 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
13318 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
13319 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
13320 config/i386/moss.h, config/i386/netware.h,
13321 config/i386/svr3.ifile, config/i386/svr3dbx.h,
13322 config/i386/svr3gas.h, config/i386/svr3z.ifile,
13323 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
13324 config/i960/i960-c.c, config/i960/i960-coff.h,
13325 config/i960/i960-modes.def, config/i960/i960-protos.h,
13326 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
13327 config/i960/rtems.h, config/i960/t-960bare,
13328 config/m68k/hp310.h, config/m68k/hp320.h,
13329 config/m68k/hp320base.h, config/m68k/m68kv4.h,
13330 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
13331 Remove.
13332 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
13333 doc/md.texi: Remove mentions of obsolete ports.
13334
13335 2004-02-04 Jan Hubicka <jh@suse.cz>
13336
13337 * alias.c (find_base_term, get_addr): Do not dereference NULL
13338 pointer when all VALUE's locations has been invalidated.
13339 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
13340
13341 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
13342
13343 * doc/invoke.texi (x86 options): Fix spelling/wording.
13344
13345 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
13346
13347 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
13348 put the original string in a comment.
13349 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
13350 * config/mips/mips.c (mips_output_ascii): Likewise.
13351 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
13352
13353 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
13354
13355 * system.h (GIV_SORT_CRITERION): Poison.
13356 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
13357 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
13358
13359 2004-02-03 Roger Sayle <roger@eyesopen.com>
13360
13361 PR target/9348
13362 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
13363 multiplies with a multiplication of the wrong signedness, its the
13364 signedness of the multiplication that we've performed that needs to
13365 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
13366 if expand_mult_highpart_adjust places the result in target.
13367
13368 2004-02-03 Richard Henderson <rth@redhat.com>
13369
13370 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
13371
13372 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
13373
13374 * config.gcc (sh[234]l): Use little endian fragments.
13375
13376 2004-02-03 Paul Koning <pkoning@equallogic.com>
13377
13378 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
13379 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
13380 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
13381 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
13382 floating point format.
13383 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
13384 the above functions.
13385 (output_move_quad): Output float values in correct target format.
13386 (legitimate_const_double_p): New function.
13387 * config/pdp11/pdp11.h: Fix typos.
13388 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
13389 (TARGET_FLOAT_FORMAT): Ditto.
13390 (pdp11_f_format, pdp11_d_format): Add external declarations.
13391 (MAX_REGS_PER_ADDRESS): Corrected.
13392 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
13393 (PRINT_OPERAND): Output float literals in target format.
13394
13395 2004-02-03 Mark Mitchell <mark@codesourcery.com>
13396
13397 PR c++/13975
13398 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
13399 TI_PRIVATE.
13400 (access_public_node): Redefine.
13401 (access_protected_node): Likewise.
13402 (access_private_node): Likewise.
13403 * tree.c (build_common_tree_nodes): Create access_public_node,
13404 access_protected_node, and access_private_node.
13405
13406 2004-02-03 Steve Ellcey <sje@cup.hp.com>
13407
13408 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
13409 (MASK_INLINE_INT_DIV_THR): Ditto.
13410 (MASK_INLINE_SQRT_LAT): Ditto.
13411 (MASK_INLINE_SQRT_THR): Ditto.
13412 (MASK_DWARF2_ASM): Ditto.
13413 (MASK_EARLY_STOP_BITS): Ditto.
13414
13415 2004-02-02 Paul Brook <paul@codesourcery.com>
13416
13417 Merge from csl-arm-branch.
13418
13419 2004-01-30 Paul Brook <paul@codesourcery.com>
13420
13421 * aof.h (REGISTER_NAMES): Add vfp reg names
13422 (ADDITIONAL_REGISTER_NAMES): Ditto.
13423 * aout.h (REGISTER_NAMES): Ditto.
13424 (ADDITIONAL_REGISTER_NAMES): Ditto.
13425 * arm-protos.h: Update/Add Prototypes.
13426 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
13427 Only allow 0.0 for VFP.
13428 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
13429 (values_fp): Rename from values_fpa. Update Users.
13430 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
13431 Update users. Only check valid constants for this hardware.
13432 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
13433 Only allow consts for FPA.
13434 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
13435 Only allow consts for FPA.
13436 (use_return_insn): Check for saved VFP regs.
13437 (arm_legitimate_address_p): Handle VFP DFmode addressing.
13438 (arm_legitimize_address): Ditto.
13439 (arm_general_register_operand): New function.
13440 (vfp_mem_operand): New function.
13441 (vfp_compare_operand): New function.
13442 (vfp_secondary_reload_class): New function.
13443 (arm_float_compare_operand): New function.
13444 (vfp_print_multi): New function.
13445 (vfp_output_fstmx): New function.
13446 (vfp_emit_fstm): New function.
13447 (arm_output_epilogue): Output VPF reg restore code.
13448 (arm_expand_prologue): Output VFP reg save code.
13449 (arm_print_operand): Add 'P'.
13450 (arm_hard_regno_mode_ok): Return modes for VFP regs.
13451 (arm_regno_class): Return classes for VFP regs.
13452 (arm_compute_initial_elimination_offset): Include space for VFP regs.
13453 (arm_get_frame_size): Ditto.
13454 * arm.h (FIXED_REGISTERS): Add VFP regs.
13455 (CALL_USED_REGISTERS): Ditto.
13456 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
13457 (FIRST_VFP_REGNUM): Define.
13458 (LAST_VFP_REGNUM): Define.
13459 (IS_VFP_REGNUM): Define.
13460 (FIRST_PSEUDO_REGISTER): Include VFP regs.
13461 (HARD_REGNO_NREGS): Handle VFP regs.
13462 (REG_ALLOC_ORDER): Add VFP regs.
13463 (enum reg_class): Add VFP_REGS.
13464 (REG_CLASS_NAMES): Ditto.
13465 (REG_CLASS_CONTENTS): Ditto.
13466 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
13467 (REG_CLASS_FROM_LETTER): Add 'w'.
13468 (EXTRA_CONSTRAINT_ARM): Add 'U'.
13469 (EXTRA_MEMORY_CONSTRAINT): Define.
13470 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
13471 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
13472 (REGISTER_MOVE_COST): Ditto.
13473 (PREDICATE_CODES): Add arm_general_register_operand,
13474 arm_float_compare_operand and vfp_compare_operand.
13475 * arm.md (various): Rename as above.
13476 (divsf3): Enable when TARGET_VFP.
13477 (divdf3): Ditto.
13478 (movdfcc): Ditto.
13479 (sqrtsf2): Ditto.
13480 (sqrtdf2): Ditto.
13481 (arm_movdi): Disable when TARGET_VFP.
13482 (arm_movsi_insn): Ditto.
13483 (movsi): Only split with general regs.
13484 (cmpsf): Use arm_float_compare_operand.
13485 (push_fp_multi): Restrict to TARGET_FPA.
13486 (vfp.md): Include.
13487 * vfp.md: New file.
13488 * fpa.md (various): Rename as above.
13489 * doc/md.texi: Document ARM w and U constraints.
13490
13491 2004-01-15 Paul Brook <paul@codesourcery.com>
13492
13493 * config.gcc: Add with_fpu. Allow with-float=softfp.
13494 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
13495 Break out of loop when we find a float-abi. Fix typo.
13496 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
13497 Set -mfloat-abi=.
13498 * doc/install.texi: Document --with-fpu.
13499
13500 2003-01-14 Paul Brook <paul@codesourcery.com>
13501
13502 * config.gcc (with_arch): Add armv6.
13503 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
13504 * config/arm/arm.c (arm_overrride_options): Ditto.
13505
13506 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
13507
13508 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
13509 (FL_ARCH6): Renamed from FL_ARCH6J.
13510 (arm_arch3m): Renamed from arm_fast_multiply.
13511 (arm_arch6): Renamed from arm_arch6j.
13512 * arm.h: Update all uses of above.
13513 * arm-cores.def: Likewise.
13514 * arm.md: Likewise.
13515
13516 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
13517 not arm6j. Add entry for arch armv6.
13518
13519 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
13520
13521 * arm.c (arm_emit_extendsi): Delete.
13522 * arm-protos.h (arm_emit_extendsi): Delete.
13523 * arm.md (zero_extendhisi2): Also handle zero-extension of
13524 non-subregs.
13525 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
13526 (thumb_zero_extendhisi2): Only match if not v6.
13527 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
13528 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
13529 (thumb_extendqisi2): Likewise.
13530 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
13531 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
13532 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
13533 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
13534 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
13535 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
13536 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
13537 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
13538 (arm_extendqisi2addsi): Likewise.
13539
13540 2003-12-31 Mark Mitchell <mark@codesourcery.com>
13541
13542 Revert this change:
13543 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
13544 + REG addressing modes.
13545
13546 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
13547 + REG addressing modes.
13548
13549 2003-12-30 Mark Mitchell <mark@codesourcery.com>
13550
13551 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
13552 CONSTANT_P_RTX.
13553
13554 2003-30-12 Paul Brook <paul@codesourcery.com>
13555
13556 * longlong.h: protect arm inlines with !defined (__thumb__)
13557
13558 2003-30-12 Paul Brook <paul@codesourcery.com>
13559
13560 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
13561
13562 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
13563
13564 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
13565 change.
13566
13567 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
13568
13569 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
13570 to the virtual incoming args pointer for downward stacks.
13571
13572 2003-12-29 Paul Brook <paul@codesourcery.com>
13573
13574 * config/arm/arm-cores.def: Add cost function.
13575 * config/arm/arm.c (arm_*_rtx_costs): New functions.
13576 (arm_rtx_costs): Remove
13577 (struct processors): Add rtx_costs field.
13578 (all_cores, all_architectures): Ditto.
13579 (arm_override_options): Set targetm.rtx_costs.
13580 (thumb_rtx_costs): New function.
13581 (arm_rtx_costs_1): Remove cases handled elsewhere.
13582 * config/arm/arm.h (processor_type): Add COSTS parameter.
13583
13584 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
13585
13586 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
13587 (arm926ejs.md): Include it.
13588 * config/arm/arm926ejs.md: New pipeline description.
13589
13590 2003-12-24 Paul Brook <paul@codesourcery.com>
13591
13592 * config/arm/arm.c (arm_arch6j): New variable.
13593 (arm_override_options): Set it.
13594 (arm_emit_extendsi): New function.
13595 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
13596 * config/arm/arm.h (arm_arch6j): Declare.
13597 * config/arm/arm.md: Add sign/zero extend insns.
13598
13599 2003-12-23 Paul Brook <paul@codesourcery.com>
13600
13601 * config/arm/arm.c (all_architectures): Add armv6.
13602 * doc/invoke.texi: Document it.
13603
13604 2003-12-19 Paul Brook <paul@codesourcery.com>
13605
13606 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
13607 insn patterns to match.
13608 * config/arm/arm-generic.md: Ditto.
13609 * config/arm/cirrus.md: Ditto.
13610 * config/arm/fpa.md: Ditto.
13611 * config/amm/iwmmxt.md: Ditto.
13612 * config/arm/arm1026ejs.md: Ditto.
13613 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
13614 for 11_loadb.
13615
13616 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
13617
13618 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
13619 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
13620 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
13621 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
13622 arm_no_early_mul_dep): Correctly deal with conditional execution,
13623 parallels and single shift operations.
13624 (arm_no_early_alu_shift_value_dep): Define.
13625 * arm.md (attr type): Replace 'normal' with 'alu',
13626 'alu_shift' and 'alu_shift_reg'.
13627 (attr core_cycles): Adjust.
13628 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
13629 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
13630 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
13631 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
13632 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
13633 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
13634 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
13635 attribute appropriately.
13636 * config/arm/arm1026ejs.md (alu_op): Adjust.
13637 (alu_shift_op, alu_shift_reg_op): New.
13638 * config/arm/arm1136.md: Add better bypasses for early
13639 registers. Remove load[234] and store[234] bypasses.
13640 (11_alu_op): Adjust.
13641 (11_alu_shift_op, 11_alu_shift_reg_op): New.
13642
13643 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
13644
13645 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
13646 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
13647 * config/arm/arm.c (arm_no_early_store_addr_dep,
13648 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
13649 * config/arm/arm1026ejs.md: Add load-store bypass.
13650 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
13651 Add bypasses between instructions.
13652
13653 2003-12-10 Paul Brook <paul@codesourcery.com>
13654
13655 * config/arm/arm.c (arm_fpu_model): New variable.
13656 (arm_fload_abi): New variable.
13657 (target_fpe_name): Rename from target_fp_name.
13658 (target_fpu_name): New variable.
13659 (arm_is_cirrus): Remove.
13660 (fpu_desc): New struct.
13661 (all_fpus): Define.
13662 (pf_model_for_fpu): Define.
13663 (all_loat_abis): Define.
13664 (arm_override_options): Set fp arch flags based on -mfpu=
13665 and -float-abi=.
13666 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
13667 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
13668 (*): Use new TARGET_* flags.
13669 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
13670 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
13671 (TARGET_SOFT_FLOAT): Ditto.
13672 (TARGET_SOFT_FLOAT_ABI): New.
13673 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
13674 TARGET_HARD_FLOAT.
13675 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
13676 (TARGET_OPTIONS): Add -mfpu=.
13677 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
13678 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
13679 (arm_pf_model): Define.
13680 (arm_float_abi_type): Define.
13681 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
13682 * config/arm/arm.md: Use new TARGET_* flags.
13683 * config/arm/cirrus.md: Ditto.
13684 * config/arm/fpa.md: Ditto.
13685 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
13686 * config/arm/semi.h (ASM_SPEC): Ditto.
13687 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
13688 (FPUTYPE_DEFAULT): Set to VFP.
13689 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
13690
13691 2003-11-22 Phil Edwards <phil@codesourcery.com>
13692
13693 PR target/12476
13694 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
13695 'bx' instead of 'b' to avoid branch range restrictions. Output
13696 the thunk immediately before the thunked-to function.
13697 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
13698 .thumb_func if a thunk is being generated. Emit .code 16 along
13699 with .thumb_func if a thunk is not being generated.
13700
13701 2003-11-15 Nicolas Pitre <nico@cam.org>
13702
13703 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
13704 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
13705 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
13706 (lshrdi3_iwmmxt): Renamed from lshrdi3.
13707 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
13708
13709 2003-11-12 Steve Woodford <scw@wasabisystems.com>
13710 Ian Lance Taylor <ian@wasabisystems.com>
13711
13712 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
13713 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
13714
13715 2003-11-05 Phil Edwards <phil@codesourcery.com>
13716
13717 * config/arm/arm.md (insn): Add new V6 instruction names.
13718 (generic_sched): New attr.
13719 * config/arm/arm-generic.md: Use generic_sched here.
13720 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
13721 stages of pipeline. Adjust latency counts accordingly.
13722 * config/arm/arm1136jfs.md: New file.
13723
13724 2003-10-28 Mark Mitchell <mark@codesourcery.com>
13725
13726 * config/arm/arm.h (processor_type): New enumeration type.
13727 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
13728 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
13729 (CPP_CPU_ARCH_SPEC): Likewise.
13730 * config/arm/arm.c (arm_tune): New variable.
13731 (all_cores): Use cores.def.
13732 (all_architectures): Add representative processor.
13733 (arm_override_options): Restructure way in which tuning
13734 information is deduced.
13735 * arm.md: Update "insn" and "type" attributes throughout.
13736 (insn): New attribute.
13737 (type): Compute "mult" from "insn" attribute. Add load2,
13738 load3, load4 alternatives.
13739 (arm automaton): Move to arm-generic.md.
13740 * config/arm/arm-cores.def: New file.
13741 * config/arm/arm-generic.md: Likewise.
13742 * config/arm/arm1026ejs.md: Likewise.
13743
13744 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
13745
13746 * doc/invoke.texi (SPARC options): Remove -mflat and
13747 all -mxxx (xxx:chip) options.
13748 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
13749 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
13750 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
13751 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
13752 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
13753 * config/sparc/sparc.c: Likewise.
13754 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
13755 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
13756 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
13757 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
13758 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
13759 (sparc_flat_must_save_register_p): Likewise.
13760 (sparc_flat_compute_frame_size): Likewise.
13761 (sparc_flat_save_restore): Likewise.
13762 (sparc_flat_function_prologue): Likewise.
13763 (sparc_flat_function_epilogue): Likewise.
13764 (sparc_flat_epilogue_delay_slots): Likewise.
13765 (sparc_flat_eligible_for_epilogue_delay): Likewise.
13766 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
13767 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
13768 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
13769 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
13770 (CONDITIONAL_REGISTER_USAGE): Likewise.
13771 (FRAME_POINTER_REQUIRED): Likewise.
13772 (INITIAL_ELIMINATION_OFFSET): Likewise.
13773 (BASE_RETURN_VALUE_REG): Likewise.
13774 (BASE_OUTGOING_VALUE_REG): Likewise.
13775 (BASE_PASSING_ARG_REG): Likewise.
13776 (BASE_INCOMING_ARG_REG): Likewise.
13777 (INCOMING_REGNO): Likewise.
13778 (OUTGOING_REGNO): Likewise.
13779 (LOCAL_REGNO): Likewise.
13780 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
13781 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
13782 (EPILOGUE_USES): Likewise.
13783 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
13784 ("flat" attribute): Delete.
13785 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
13786 handling.
13787 (call followed by jump define_peephole's): Delete.
13788 (exception_receiver): Likewise.
13789 (builtin_setjmp_receiver): Likewise.
13790 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
13791
13792 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
13793
13794 PR c/11658
13795 PR c/13994
13796 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
13797 on langhooks.h.
13798 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
13799 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
13800 Include langhooks.h. Replace c_common_truthvalue_conversion
13801 with the truthvalue_conversion language hook throughout.
13802 (expr_no_commas): Call default_conversion before save_expr
13803 for the first term of the production 'x ? : y'.
13804 * c-common.c (c_common_truthvalue_conversion): Remove
13805 obsolete block. Invoke recursively the hook instead
13806 of this function.
13807 * c-convert.c (convert): handle ERROR_MARK_NODE.
13808 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
13809 returned by the truthvalue_conversion language hook.
13810 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
13811 c_objc_common_truthvalue_conversion.
13812 * c-objc-common.c (c_objc_common_truthvalue_conversion):
13813 New function.
13814 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
13815 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
13816 c_objc_common_truthvalue_conversion.
13817
13818 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
13819
13820 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
13821 of gen_rtx.
13822 (LIBCALL_VALUE): Likewise.
13823 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
13824 gen_rtx_CC0 instead of gen_rtx.
13825 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
13826 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
13827 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
13828 gen_rtx.
13829 (m68hc11_emit_logical): Likewise.
13830
13831 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
13832
13833 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
13834 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
13835 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
13836 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
13837 config/mips/mips.md, config/mmix/mmix.c,
13838 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
13839 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
13840 config/rs6000/altivec.md, config/s390/s390.c,
13841 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
13842 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
13843 Use const0_rtx instead of GEN_INT (0). Do the same for other
13844 constants that are readily available.
13845
13846 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
13847
13848 * doloop.c, optabs.c, regmove.c, sched-deps.c,
13849 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
13850 instead of GEN_INT (0). Do the same for other constants that
13851 are readily available.
13852
13853 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
13854
13855 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
13856 gen_rtx.
13857 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
13858 instead of gen_rtx.
13859 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
13860 gen_rtx.
13861 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
13862 gen_rtx_ASHIFT instead of gen_rtx.
13863 (udivmodqi4): Likewise.
13864
13865 2004-02-02 Richard Henderson <rth@redhat.com>
13866
13867 PR target/13789
13868 * expr.c (store_expr): Use force_operand before emit_move_insn.
13869
13870 2004-02-02 Jeff Law <law@redhat.com>
13871 Roger Sayle <roger@eyesopen.com>
13872
13873 * tree.c (commutative_tree_code, associative_tree_code): New
13874 functions.
13875 (iterative_hash_expr): Use commutative_tree_code.
13876 * tree.h (commutative_tree_code, associative_tree_code): Declare.
13877 * fold-const.c (operand_equal_p): Use commutative_tree_code
13878 rather than inlining the commutativity check.
13879 (fold): Likewise.
13880
13881 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
13882
13883 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
13884 * config/frv/frv-protos.h: Remove the prototype for
13885 frv_function_arg_keep_as_reference.
13886 * config/frv/frv.c (frv_function_arg_keep_as_reference):
13887 Remove.
13888 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
13889 * config/stormy16/stormy16.h: Remove the commented-out
13890 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
13891
13892 2004-02-03 Alan Modra <amodra@bigpond.net.au>
13893
13894 PR target/13914
13895 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
13896 for retaddr_column.
13897
13898 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
13899
13900 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
13901 gen_rtx.
13902
13903 2004-02-02 Eric Christopher <echristo@redhat.com>
13904 Zack Weinberg <zack@codesourcery.com>
13905
13906 * c-opts.c (c_common_handle_option): Add -finput-charset.
13907 * c.opt: Ditto.
13908 * cppcharset.c (one_iso88591_to_utf8): Remove.
13909 (convert_iso88591_utf8): Ditto.
13910 (conversion_tab): Remove 8859-1 converter.
13911 (_cpp_input_to_utf8): Remove.
13912 (_cpp_init_iconv_buffer): Ditto.
13913 (_cpp_close_iconv_buffer): Ditto.
13914 (_cpp_convert_input): New function.
13915 (_cpp_default_encoding): Ditto.
13916 * cpphash.h: Add/remove prototypes for above.
13917 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
13918 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
13919 for narrow execution and input character sets.
13920 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
13921 * doc/cppopts.texi: Document -finput-charset.
13922
13923 2004-02-02 David Edelsohn <edelsohn@gnu.org>
13924
13925 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
13926 against FIRST_PSEUDO_REGISTER.
13927
13928 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
13929
13930 * doc/invoke.texi (SPARC options): Further improve.
13931
13932 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
13933
13934 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
13935 config/h8300/h8300.c, config/ip2k/ip2k.md,
13936 config/iq2000/iq2000.c, config/mips/mips.c,
13937 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
13938 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
13939 config/v850/v850.md: Fix indentation.
13940
13941 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
13942
13943 * config/sparc/sparc.c (function_arg_slotno): Align TImode
13944 arguments on a 16-byte boundary in the parameter array if ARCH64.
13945 Split handling of TFmode.
13946
13947 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
13948
13949 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
13950 Don't test CONSTANT_P (x).
13951 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
13952 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
13953 Fix misindentation.
13954
13955 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
13956
13957 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
13958
13959 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
13960
13961 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
13962 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
13963 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
13964 config/iq2000/iq2000.c, config/m32r/m32r.c,
13965 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
13966 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
13967 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
13968 config/stormy16/stormy16.c, config/v850/v850.md,
13969 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
13970
13971 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
13972
13973 * config/mcore/mcore.c (block_move_sequence): Replace
13974 gen_rtx_CONST_INT with GEN_INT.
13975
13976 2004-02-02 Jan Hubicka <jh@suse.cz>
13977
13978 * alias.c (record_set): Use hard_regno_nregs.
13979 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
13980 * builtins.c (apply_args_size): Likewise.
13981 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
13982 mark_set_regs, add_stored_regs, mark_referenced_regs,
13983 insert_restore, insert_save, insert_one_insn): Likewise.
13984 * cfgcleanup.c: Include regs.h
13985 (mark_effect, mentions_nonequal_regs): Likewise.
13986 * cfgrtl.c (mark_killed_regs): Likewise
13987 * combine.c (update_table_tick, record_value_for_reg,
13988 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
13989 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
13990 reg_bitfield_target_p, distribute_notes): Likewise.
13991 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
13992 exp_equiv_p, cse_insn): Likewise.
13993 * cselib.c (cselib_lookup): Likewise.
13994 (cselib_invalidate_regno, cselib_record_set): Likewise.
13995 * df.c (df_ref_record): Likewise.
13996 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
13997 Likewise.
13998 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
13999 count_or_remove_death_notes_bb): Likewise.
14000 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
14001 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
14002 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
14003 * integrate.c (mark_stores): Likewise.
14004 * jump.c (delete_prior_computation): Likewise.
14005 * lcm.c (reg_dies, reg_becomes_live): Likewise.
14006 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
14007 * loop.c (LOOP_REGNO_NREGS): Likewise.
14008 * postreload.c (reload_combine, reload_combine_note_store,
14009 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
14010 * ra-colorize.c (combine, color_usable_p, get_free_reg,
14011 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
14012 try_recolor_web, insert_coalesced_conflicts, check_colors,
14013 break_precolored_alias): Likewise.
14014 * ra-debug.c: Include regs.h
14015 (ra_print_rtx_object): Likewise.
14016 * ra-rewrite (choose_spill_colors): Likewise.
14017 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
14018 * ra.c (init_ra): Likewise.
14019 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
14020 peep2_find_free_register): Likewise.
14021 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
14022 * regclass.c (hard_regno_nregs): New array.
14023 (init_reg_modes_once): Initialize it.
14024 (choose_hard_reg_mode): Use it.
14025 (record_reg_classes): Likewise.
14026 * regmove.c (mark_flags_life_zones): Likewise.
14027 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
14028 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
14029 copy_value, maybe_mode_change, find_oldest_value_reg,
14030 copyprop_hardreg_forward_1):
14031 * regs.h (hard_regno_nregs): Declare.
14032 * realod.c (reload_inner_reg_of_subreg): Use it.
14033 (push_reload, combine_reloads, find_dummy_reload,
14034 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
14035 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
14036 reload_adjust_reg_for_mode): Likewise.
14037 * reload1.c (compute_use_by_pseudos, count_pseudo,
14038 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
14039 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
14040 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
14041 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
14042 delete_output_reload): Likewise.
14043 * resource.c (update_live_status, mark_referenced_resources,
14044 mark_set_resources, mark_target_live_regs): Likewise.
14045 * rtlanal.c: Include regs.h
14046 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
14047 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
14048 subreg_regno_offset, subreg_offset_representable_p,
14049 hoist_test_store): Likewise.
14050 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
14051 * sched-rgn.c (check_live_1, update_live_1): Likewise.
14052 * stmt.c: Include regs.h
14053 (decl_conflicts_with_clobbers_p): Likewise.
14054 * varasm.c (make_decl_rtl): Likewise.
14055 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
14056
14057 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
14058
14059 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
14060 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
14061 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
14062 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
14063 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
14064 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
14065 config/iq2000/iq2000.h, config/m32r/m32r.c,
14066 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
14067 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
14068 config/mcore/mcore.c, config/mcore/mcore.h,
14069 config/mcore/mcore.md, config/mips/mips.c,
14070 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
14071 config/rs6000/rs6000.c, config/s390/s390.c,
14072 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
14073 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
14074 "gen_rtx (FOO, " with "gen_rtx_FOO (".
14075
14076 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
14077
14078 * config/h8300/h8300.md (two peephole2's): New.
14079
14080 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
14081
14082 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
14083 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
14084 (ASM_CPU_SPEC): Likewise
14085 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
14086 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
14087
14088 2004-02-01 Roger Sayle <roger@eyesopen.com>
14089
14090 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
14091 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
14092 (expand_builtin): Always call expand_builtin_pow.
14093
14094 2004-02-01 Roger Sayle <roger@eyesopen.com>
14095
14096 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
14097 BUILT_IN_SIGNBITL): New GCC builtins.
14098 * builtins.c (expand_builtin_signbit): New function to RTL expand
14099 calls to signbit, signbitf and signbitl as inline intrinsics.
14100 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
14101 (fold_builtin_signbit): New function to perform constant folding
14102 of signbit, signbitf and signbitl.
14103 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
14104
14105 * doc/extend.texi: Document new signbit{,f,l} builtins.
14106
14107 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
14108
14109 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
14110
14111 2004-02-01 Chris Demetriou <cgd@broadcom.com>
14112
14113 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
14114 "mips_const_double_ok" and "simple_memory_operand", which were
14115 removed from the MIPS port with the mips-3_4-rewrite branch merge.
14116 * config/mips/mips.c (mips16_lay_out_constants): Update comment
14117 for removal of simple_memory_operand.
14118
14119 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
14120
14121 * config/c4x/c4x.md: Use GEN_INT instead of
14122 gen_rtx (CONST_INT, ...).
14123
14124 2004-01-31 Richard Henderson <rth@redhat.com>
14125
14126 * varasm.c (output_constant_pool): Don't zap the pool.
14127
14128 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
14129
14130 * genrecog.c (decision_type): Add DT_const_int.
14131 (write_cond) [DT_const_int]: Print a comparison against small
14132 constant.
14133 (write_node): Simplify comparisons against small constants
14134 before printing tests.
14135
14136 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
14137
14138 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
14139 instead of gen_rtx_CONST_INT.
14140
14141 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
14142
14143 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
14144 instead of gen_rtx_CONST_INT.
14145
14146 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
14147
14148 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
14149 hook_bool_CUMULATIVE_ARGS_false.
14150 * targhooks.c (default_strict_argument_naming): Rename to
14151 hook_bool_CUMULATIVE_ARGS_false.
14152 * targhooks.h: Update the prototype for
14153 default_strict_argument_naming.
14154
14155 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
14156
14157 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
14158 * config/sh/sh.h: Likewise.
14159 * config/sh/sh.md: Likewise.
14160
14161 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
14162
14163 * doc/invoke.texi (SPARC options): Restructure and update.
14164
14165 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
14166
14167 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
14168 STRICT_ARGUMENT_NAMING): Poison.
14169 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
14170 hook_bool_tree_false.
14171 * targhooks.c (default_promote_function_args): Remove.
14172 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
14173 Don't check incoming.
14174 (default_strict_argument_naming): Don't use
14175 STRICT_ARGUMENT_NAMING.
14176 * targhooks.h: Remove the prototype for
14177 default_promote_function_args.
14178
14179 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
14180
14181 * config/i386/i386-protos.h: Remove the prototype for
14182 ix86_setup_incoming_varargs.
14183 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
14184 (ix86_setup_incoming_varargs): Make it static.
14185 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
14186
14187 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
14188
14189 * alloc-pool.c: Fix comment typos.
14190 * builtin-types.def: Likewise.
14191 * builtins.def: Likewise.
14192 * c-pretty-print.c: Likewise.
14193 * df.h: Likewise.
14194 * reload1.c: Likewise.
14195
14196 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
14197
14198 * doc/invoke.texi: Follow spelling conventions.
14199 * doc/tm.texi: Likewise.
14200
14201 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
14202
14203 * doc/install.texi: Fix typos.
14204 * doc/invoke.texi: Likewise.
14205
14206 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
14207
14208 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
14209 registers as pointers.
14210 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
14211
14212 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
14213
14214 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
14215 and restore it to gen_lowpart_general on exit.
14216 (gen_lowpart_for_combine): Adjust all callers to go through
14217 gen_lowpart.
14218 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
14219 and restore it to gen_lowpart_general on exit.
14220 (gen_lowpart_if_possible): Adjust all callers to go through
14221 gen_lowpart.
14222 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
14223 (gen_lowpart): Declare as pointer to function, initialized to
14224 gen_lowpart_general.
14225 * rtl.h (gen_lowpart): Declare as pointer to function.
14226
14227 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
14228
14229 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
14230 * calls.c: Likewise.
14231 * emit-rtl.c: Likewise.
14232 * function.c: Likewise.
14233 * reload1.c: Likewise.
14234 * config/i386/cygming.h: Likewise.
14235 * config/i386/i386.c: Likewise.
14236 * config/i386/winnt.c: Likewise.
14237
14238 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
14239
14240 PR bootstrap/9249
14241 * doc/install.texi: document --enable-__cxa_atexit option.
14242 * configure.ac: Disable __cxa_atexit if not supported.
14243 * configure: Regenerate.
14244
14245 2003-01-30 Daniel Berlin <dberlin@dberlin.org>
14246
14247 * ggc-zone.c (ggc_free): New function.
14248
14249 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
14250
14251 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
14252 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
14253 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
14254 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
14255 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
14256 config/alpha/alpha.c, config/alpha/alpha.h,
14257 config/alpha/alpha.md, config/alpha/unicosmk.h,
14258 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
14259 config/c4x/c4x-protos.h, config/c4x/c4x.md,
14260 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
14261 config/frv/frvend.c, config/i386/cygming.h,
14262 config/i386/djgpp.h, config/i386/emmintrin.h,
14263 config/i386/gthr-win32.c, config/i386/i386-interix.h,
14264 config/i386/i386-protos.h, config/i386/openbsd.h,
14265 config/i386/winnt.c, config/i386/xm-mingw32.h,
14266 config/i386/xmmintrin.h, config/ia64/ia64.md,
14267 config/iq2000/iq2000.md, config/m32r/m32r.md,
14268 config/m68k/m68k.md, config/mcore/mcore-elf.h,
14269 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
14270 config/mips/iris5gas.h, config/mips/iris6.h,
14271 config/mips/iris6gas.h, config/mips/linux.h,
14272 config/mips/mips.md, config/mips/netbsd.h,
14273 config/mips/openbsd.h, config/mips/windiss.h,
14274 config/pa/fptr.c, config/rs6000/aix.h,
14275 config/rs6000/altivec.h, config/rs6000/darwin.h,
14276 config/rs6000/xcoff.h, config/s390/s390-protos.h,
14277 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
14278 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
14279 config/sparc/sol2.h: Update copyright.
14280
14281 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
14282
14283 * Makefile.in (abs_docdir, abs_srcdir): Define.
14284 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
14285
14286 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
14287
14288 * genconfig.c (main): Have CC0_P check its operand even on a
14289 target without cc0.
14290
14291 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
14292
14293 * config/alpha/alpha.c: Remove mentions of deprecates macros
14294 in comments, remove some target-independent comments about target
14295 macros, and/or add minimal function comments for target hook
14296 implementations.
14297 * config/avr/avr.c: Likewise.
14298 * config/ia64/ia64.h: Likewise.
14299 * config/ip2k/ip2k.c: Likewise.
14300 * config/iq2000/iq2000.c: Likewise.
14301 * config/m32r/m32r.h: Likewise.
14302 * config/m68hc11/m68hc11.c: Likewise.
14303 * config/mcore/mcore.c: Likewise.
14304 * config/mmix/mmix.c: Likewise.
14305 * config/mn10300/mn10300.c: Likewise.
14306 * config/pa/pa.c: Likewise.
14307 * config/pdp11/pdp11.c: Likewise.
14308 * config/rs6000/rs6000.h: Likewise.
14309 * config/sh/sh.c: Likewise.
14310 * config/sh/sh.h: Likewise.
14311 * config/sparc/sparc.c: Likewise.
14312 * config/sparc/sparc.h: Likewise.
14313 * config/stormy16/stormy16.c: Likewise.
14314 * config/xtensa/xtensa.c: Likewise.
14315
14316 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14317
14318 PR optimization/12147
14319 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
14320 RELOAD_FOR_OPADDR_ADDR.
14321 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
14322 might be reused as RELOAD_FOR_OPADDR_ADDR register.
14323
14324 2004-01-30 Jan Hubicka <jh@suse.cz>
14325
14326 * reload.c (get_secondary_mem): Fix updating of
14327 secondary_memlocs_elim_used.
14328
14329 2004-01-30 Richard Henderson <rth@redhat.com>
14330
14331 * varasm.c (struct rtx_const, struct pool_constant): Remove.
14332 (MAX_RTX_HASH_TABLE): Remove.
14333 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
14334 (first_pool, last_pool, pool_offset): Remove.
14335 (struct rtx_constant_pool): Split out from ...
14336 (struct varasm_status): ... here. Reference one via pointer.
14337 (struct constant_descriptor_rtx): Merge struct pool_constant.
14338 (SYMHASH): Remove.
14339 (decode_rtx_const): Remove.
14340 (const_hash_rtx, compare_constant_rtx): Remove.
14341 (record_constant_rtx): Remove.
14342 (const_desc_rtx_hash, const_desc_rtx_eq): New.
14343 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
14344 (const_rtx_hash_1, const_rtx_hash): New.
14345 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
14346 (simplify_subtraction): Use simplify_rtx.
14347 (force_const_mem): Rewrite to use new data structures.
14348 (find_pool_constant): Likewise.
14349 (get_pool_constant, get_pool_constant_mark,
14350 get_pool_constant_for_function, get_pool_mode,
14351 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
14352 (output_constant_pool_2): Split out from output_constant_pool.
14353 (output_constant_pool_1): Likewise. Use new pool datastructures.
14354 (output_constant_pool): Zap entire pool datastructure.
14355 (mark_constant): Use new pool datastructures.
14356 (mark_constants): Use for_each_rtx.
14357 (mark_constant_pool): Use new pool datastructures.
14358
14359 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
14360
14361 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
14362 Copy operands[1] to pseudo for simplify_gen_subreg.
14363
14364 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
14365
14366 * gcse.c (bypass_block): Fix a typo in the previous check-in
14367 to the file.
14368
14369 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
14370
14371 * toplev.c: Include alloc-pool.h.
14372 * Makefile.in (toplev.c): Update dependencies.
14373
14374 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14375
14376 * combine.c (simplify_shift_const, case XOR): Be careful when
14377 commuting XOR with ASHIFTRT.
14378
14379 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
14380 Eric Botcazou <ebotcazou@libertysurf.fr>
14381
14382 * config/sparc/sparc-protos.h: Remove the prototype for
14383 sparc_builtin_saveregs.
14384 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
14385 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
14386 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14387 (TARGET_STRUCT_VALUE_RTX): Likewise.
14388 (TARGET_RETURN_IN_MEMORY): Likewise.
14389 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
14390 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
14391 (sparc_builtin_saveregs): Make it static.
14392 (sparc_promote_prototypes): New.
14393 (sparc_struct_value_rtx): Likewise.
14394 (sparc_return_in_memory): Likewise.
14395 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
14396 (PROMOTE_FUNCTION_RETURN): Likewise.
14397 (RETURN_IN_MEMORY): Likewise.
14398 (STRUCT_VALUE): Likewise.
14399 (STRUCT_VALUE_INCOMING): Likewise.
14400 (EXPAND_BUILTIN_SAVEREGS): Likewise.
14401 (STRICT_ARGUMENT_NAMING): Likewise.
14402 (PROMOTE_PROTOTYPES): Likewise.
14403
14404 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
14405
14406 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
14407
14408 PR c/12818
14409 * varasm.c (const_hash_1) <STRING_CST>: Use the
14410 address to compute the hash value if flag_writable_strings.
14411 (compare_constant) <STRING_CST>: Compare the addresses
14412 if flag_writable_strings.
14413 (build_constant_desc): Do not copy the expression for a
14414 STRING_CST if flag_writable_strings.
14415
14416 2004-01-30 Jan Hubicka <jh@suse.cz>
14417
14418 * alloc-pool.c: Include hashtab.h
14419 (alloc_pool_descriptor): New structure
14420 (alloc_pool_hash): New global variable.
14421 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
14422 (create_alloc_pool): Update statistics.
14423 (free_alloc_pool): Likewise.
14424 (pool_alloc): Likewise.
14425 (output_info): New structure
14426 (print_statistics, dump_alloc_pool_statistics): New function.
14427 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
14428 (dump_alloc_pool_statistics): Declare.
14429 * toplev.c (finalize): Dump statistics.
14430
14431 * reload.c (secondary_memlocs_elim_used): New static variable.
14432 (get_secondary_mem): Update it.
14433 (find_reloads): Use it.
14434
14435 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
14436
14437 * toplev.c: Fix broken checkin of 2003-12-30, again.
14438
14439 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
14440
14441 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
14442 s390*-*-* targets by specifying a 'nop' insn.
14443 * configure: Regenerate.
14444
14445 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
14446
14447 PR target/11475
14448 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
14449
14450 2004-01-29 Jakub Jelinek <jakub@redhat.com>
14451
14452 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
14453 of addr when creating MEM copy.
14454
14455 2004-01-29 Devang Patel <dpatel@apple.com>
14456
14457 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
14458
14459 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
14460
14461 PR inline-asm/6162
14462 * reload.c (find_reloads): Only support one pair of commutative
14463 operands.
14464
14465 2004-01-29 Roger Sayle <roger@eyesopen.com>
14466
14467 PR java/13824
14468 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
14469 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
14470 recursion.
14471
14472 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
14473
14474 * config/frv/frv.c: Don't mention deprecated macros in
14475 comments. Remove some target-independent comments about
14476 target macros.
14477 * config/frv/frv.h: Likewise.
14478
14479 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14480
14481 * cfghooks.c (split_block): Set probability and count of the
14482 new edge.
14483
14484 2005-01-29 Josef Zlomek <zlomekj@suse.cz>
14485
14486 * dwarf2out.c (struct die_struct): Added field decl_id.
14487 (decl_die_table): Changed to hash table.
14488 (decl_die_table_allocated): Deleted.
14489 (decl_die_table_in_use): Deleted.
14490 (DECL_DIE_TABLE_INCREMENT): Deleted.
14491 (decl_die_table_hash): New function.
14492 (decl_die_table_eq): New function.
14493 (lookup_decl_die): Lookup in a hash table.
14494 (equate_decl_number_to_die): Insert into a hash table.
14495 (dwarf2out_init): Init hash table decl_die_table.
14496
14497 2004-01-29 Jakub Jelinek <jakub@redhat.com>
14498
14499 PR optimization/13424
14500 * expr.c (store_constructor): Revert 2003-12-03 change.
14501
14502 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
14503 expected before returning early. Avoid sharing RTL if they
14504 need to be changed.
14505
14506 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
14507 handling so that memory attributes are preserved. Don't call
14508 ix86_set_move_mem_attrs.
14509 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
14510 (ix86_expand_clrstr): Rename src argument to
14511 dst. Rework rep_stos and strset handling so that memory attributes
14512 are preserved.
14513 (ix86_expand_strlen): Pass src argument to
14514 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
14515 memory attributes are preserved.
14516 (ix86_expand_strlensi_unroll_1): Add src argument. Use
14517 change_address instead of gen_rtx_MEM.
14518 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
14519 expanders.
14520 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
14521 strmovqi, strmovqi_rex64): Remove.
14522 (rep_mov*, strmov*): Prefix insn names with *.
14523 (strset, strset_singleop, rep_stos): New expanders.
14524 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
14525 strsetqi, strsetqi_rex64): Remove.
14526 (rep_stos*, strset*): Prefix insn names with *.
14527 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
14528 to SImode.
14529 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
14530 are preserved.
14531 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
14532 Prefix insn names with *.
14533 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
14534 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
14535 (strlenqi_1): New expander.
14536 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
14537
14538 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14539
14540 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
14541 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
14542 verify_flow_info): Declaration removed.
14543 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
14544 (debug_bb, debug_bb_n): Add argument to dump_bb call.
14545 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
14546 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
14547 instead of delete_block.
14548 * cfghooks.c: Include timevar.h and toplev.h.
14549 (cfg_hooks): Define here.
14550 (verify_flow_info, dump_bb): Moved from cfg.c.
14551 (redirect_edge_and_branch, redirect_edge_and_branch_force,
14552 split_block, split_block_after_labels, move_block_after,
14553 delete_basic_block, split_edge, create_basic_block,
14554 create_empty_bb, can_merge_blocks_p, merge_blocks,
14555 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
14556 New functions.
14557 * cfghooks.h (struct cfg_hooks): Added fields name,
14558 make_forwarder_block, tidy_fallthru_edge and
14559 move_block_after. Changed type of verify_flow_info, dump_bb,
14560 split_block fields. Renamed cfgh_split_edge and delete_block
14561 fields.
14562 (redirect_edge_and_branch, redirect_edge_and_branch_force,
14563 split_block, delete_block, split_edge, create_basic_block,
14564 can_merge_blocks_p, merge_blocks): Macros removed.
14565 (cfg_hooks): Do not export.
14566 (verify_flow_info, dump_bb, redirect_edge_and_branch,
14567 redirect_edge_and_branch_force, split_block, split_block_after_labels,
14568 move_block_after, delete_basic_block, split_edge, create_basic_block,
14569 create_empty_bb, can_merge_blocks_p, merge_blocks,
14570 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
14571 Declare.
14572 (cfg_layout_rtl_cfg_hooks): Declare.
14573 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
14574 New functions.
14575 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
14576 (redirect_edge_with_latch_update): Removed.
14577 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
14578 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
14579 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
14580 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
14581 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
14582 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
14583 cfghooks.c.
14584 (rtl_create_basic_block): Coding style fix.
14585 (rtl_tidy_fallthru_edge, rtl_move_block_after,
14586 rtl_make_forwarder_block): New functions.
14587 (update_cfg_after_block_merging): Removed.
14588 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
14589 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
14590 to dump_bb.
14591 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
14592 find_if_case_2): Don't update dominators.
14593 * timevar.def (TV_CFG_VERIFY): New.
14594 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
14595 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
14596 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
14597 (remove_bbs): Don't call remove_bbs.
14598 (create_preheader): Use make_forwarder_block.
14599 (mfb_keep_just, mfb_update_loops): New static functions.
14600
14601 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
14602
14603 * config/avr/avr.h: Remove target-independent comments about
14604 target macros.
14605
14606 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
14607
14608 * timevar.c (timevar_print): Mention when checking is enabled.
14609
14610 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
14611
14612 * c-lex.c (c_lex): Rename to...
14613 (c_lex_with_flags): Add new parameter to get CPP flags.
14614 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
14615 * c-pragma.h (c_lex_with_flags): Declare.
14616
14617 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14618
14619 * config/mcore/mcore.c (mcore_external_libcall): Add a
14620 comment.
14621 (mcore_return_in_memory): Likewise.
14622
14623 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14624
14625 * config/mcore/mcore-protos.h: Remove the prototype for
14626 mcore_setup_incoming_varargs.
14627 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
14628 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
14629 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
14630 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14631 (TARGET_STRUCT_VALUE_RTX): Likewise.
14632 (TARGET_RETURN_IN_MEMORY): Likewise.
14633 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14634 (mcore_setup_incoming_varargs): Make it static. Receive the
14635 first argument by reference. Add argument second_time.
14636 (mcore_external_libcall): New.
14637 (mcore_return_in_memory): Likewise.
14638 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
14639 (PROMOTE_FUNCTION_RETURN): Likewise.
14640 (STRUCT_VALUE): Likewise.
14641 (RETURN_IN_MEMORY): Likewise.
14642 (SETUP_INCOMING_VARARGS): Likewise.
14643 (PROMOTE_PROTOTYPES): Likewise.
14644 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
14645
14646 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14647
14648 * config/m32r/m32r-protos.h: Remove the prototype for
14649 m32r_setup_incoming_varargs.
14650 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
14651 (TARGET_STRUCT_VALUE_RTX): Likewise.
14652 (TARGET_RETURN_IN_MEMORY): Likewise.
14653 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14654 (m32r_return_in_memory): New.
14655 (m32r_setup_incoming_varargs): Make it static.
14656 * config/m32r/m32r.h: Remove #undef of
14657 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
14658 definitions of PROMOTE_FUNCTION_ARGS and
14659 PROMOTE_FUNCTION_RETURN.
14660 (PROMOTE_PROTOTYPES): Remove.
14661 (RETURN_IN_MEMORY): Likewise.
14662 (STRUCT_VALUE): Likewise.
14663
14664 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14665
14666 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
14667 (TARGET_STRUCT_VALUE_RTX): Likewise.
14668 (m68k_struct_value_rtx): Likewise.
14669 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
14670 STRUCT_VALUE_REGNUM.
14671 (PROMOTE_PROTOTYPES): Remove.
14672 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
14673 STRUCT_VALUE_REGNUM.
14674 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
14675 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
14676
14677 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14678
14679 * config/stormy16/stormy16.c
14680 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
14681 TARGET_BUILD_BUILTIN_VA_LIST.
14682
14683 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14684
14685 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
14686 (TARGET_STRUCT_VALUE_RTX): Likewise.
14687 (TARGET_RETURN_IN_MEMORY): Likewise.
14688 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14689 (v850_return_in_memory): Likewise.
14690 (v850_setup_incoming_varargs): Likewise.
14691 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
14692 (SETUP_INCOMING_VARARGS): Likewise.
14693 (RETURN_IN_MEMORY): Likewise.
14694 (STRUCT_VALUE): Likewise.
14695
14696 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14697
14698 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
14699 (fr30_setup_incoming_varargs): Don't use
14700 STRICT_ARGUMENT_NAMING.
14701 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
14702 (STRICT_ARGUMENT_NAMING): Likewise.
14703
14704 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14705
14706 * config/frv/frv-protos.h: Remove the prototype for
14707 frv_expand_builtin_saveregs.
14708 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
14709 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
14710 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
14711 STRUCT_VALUE_REGNUM.
14712 (frv_expand_builtin_saveregs): Make it static.
14713 (frv_struct_value_rtx): New.
14714 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
14715
14716 2004-01-29 Jan Hubicka <jh@suse.cz>
14717
14718 PR c++/12850
14719 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
14720 initial pointers.
14721 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
14722 for functions that will be only inlined.
14723 (cgraph_mark_function_to_output): Likewise.
14724 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
14725 do not clear function body.
14726 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
14727 (tree_rest_of_compilation): Reorganize the logic releasing function
14728 body to use callgraph datastructure.
14729
14730 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14731
14732 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
14733 to register_operand.
14734
14735 2004-01-28 Zack Weinberg <zack@codesourcery.com>
14736
14737 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
14738 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
14739 match_operand expressions so that all match_dups appear
14740 lexically after their corresponding match_operands.
14741
14742 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14743
14744 * config/h8300/h8300.c (WORD_REG_USED): Use
14745 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
14746 (compute_saved_regs): Likewise.
14747 (h8300_expand_prologue): Likewise. Allocate locals after
14748 saving registers.
14749 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
14750 of FRAME_POINTER_REGNUM. Deallocate locals before saving
14751 registers.
14752 (h8300_initial_elimination_offset): Adjust for the new frame
14753 layout, which swaps flips the order of locals and saved
14754 registers.
14755 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
14756 (HARD_FRAME_POINTER_REGNUM): New.
14757 (ELIMINABLE_REGS): Add an elimination rule from
14758 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
14759 (REGISTER_NAMES): Add fp.
14760 * config/h8300/h8300.md (FP_REG): Change to 11.
14761 (HFP_REG): New.
14762
14763 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14764
14765 * genrecog.c (write_node): Remove a useless local variable.
14766
14767 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
14768
14769 * Makefile.in (options.c options.h): Use stamp file s-options to
14770 avoid unnecessary rebuilds.
14771 (options.o): New target listing dependencies.
14772 (gtyp-gen.h): Use stamp file s-gtyp-gen.
14773 (STAGESTUFF): Add s-gtyp-gen.
14774
14775 2004-01-28 Richard Henderson <rth@redhat.com>
14776
14777 * ggc.h (ggc_free): Declare.
14778 * ggc-common.c (ggc_realloc): Use it.
14779 * ggc-page.c: Remove lots of inline markers.
14780 (globals): Add free_object_list.
14781 (ggc_alloc): Tidy.
14782 (ggc_free, validate_free_objects): New.
14783 (poison_pages): Provide default.
14784 (ggc_collect): Call validate_free_objects; emit markers to
14785 the debug file.
14786
14787 2004-01-28 Zack Weinberg <zack@codesourcery.com>
14788 Jim Wilson <wilson@specifixinc.com>
14789
14790 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
14791 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
14792 scratch pointer.
14793 (ia64_secondary_reload_class): Delete case GR_REGS.
14794 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
14795 Do not allocate a scratch register.
14796 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
14797
14798 2004-01-28 Jan Hubicka <jh@suse.cz>
14799
14800 * gcse.c (bypass_block): Prevent edges to be unified when we are
14801 about to emit compenstation code.
14802
14803 2004-01-28 Nick Clifton <nickc@redhat.com>
14804
14805 * config/arm/arm.c (arm_expand_builtin): Force second argument of
14806 the setcwx insn into a register.
14807
14808 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
14809
14810 * config/fp-bit.c (pack_d): When using paired doubles to implement
14811 a long double, round the high part separately.
14812 (unpack_d): Fix the case in which the high part is a power of two
14813 and the low part is a nonzero value of the opposite sign.
14814
14815 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14816
14817 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
14818 (TARGET_STRUCT_VALUE_RTX): Likewise.
14819 (c4x_external_libcall): Likewise.
14820 (c4x_struct_value_rtx): Likewise.
14821 * config/c4x/c4x.h: Remove.
14822 (STRUCT_VALUE_REGNUM): Likewise.
14823 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
14824
14825 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
14826
14827 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
14828 (TARGET_STRUCT_VALUE_RTX): Likewise.
14829 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
14830 (STRUCT_VALUE): Likewise.
14831 (PROMOTE_PROTOTYPES): Likewise.
14832
14833 2004-01-27 Roger Sayle <roger@eyesopen.com>
14834
14835 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
14836 CONST_INT before using INTVAL.
14837
14838 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
14839
14840 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
14841 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
14842 frame if !TARGET_BACKCHAIN.
14843 * config/s390/s390.md ("allocate_stack"): Use pattern only if
14844 TARGET_BACKCHAIN.
14845 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
14846
14847 2004-01-27 Zack Weinberg <zack@codesourcery.com>
14848
14849 * ia64.c (ia64_function_arg): When placing HFAs in integer
14850 registers, do not special case the mode used for complex
14851 types. Do not advance int_regs until the current register
14852 is full.
14853
14854 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
14855
14856 PR target/7297
14857 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
14858
14859 2004-01-27 David Edelsohn <edelsohn@gnu.org>
14860
14861 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
14862 slow, unaligned loads and stores while debugging. Fix formatting.
14863
14864 2004-01-27 David Edelsohn <edelsohn@gnu.org>
14865
14866 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
14867 of computing wmode.
14868 (restore_stack_nonlocal): Same.
14869
14870 2004-01-27 Devang Patel <dpatel@apple.com>
14871
14872 * Makefile.in (dwarf2out.o): Depend on input.h
14873 * dbxout.c (dbx_debug_hooks): Add new empty hook for
14874 imported_module_or_decl.
14875 (xcoff_debug_hooks): Same.
14876 * sdbout.c (sdb_debug_hooks): Same.
14877 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
14878 * debug.c (do_nothing_debug_hooks): Same.
14879 (debug_nothing_tree_tree): New function.
14880 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
14881 * dwarf2out.c: Include input.h.
14882 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
14883 (remove_child_TAG): New function.
14884 (dwarf_tag_name): Handle DW_TAG_imported_module.
14885 (gen_subprogram_die): Equate decl number to declaration die. Do not
14886 remove all children dies while reusing declaration die for definition.
14887 Instead, selectively remove only formal parameters.
14888 (gen_variable_die): Equate variable decl to declaration die.
14889 (gen_field_die): Equate field decl to line number.
14890 (force_namespace_die): Replace it with ...
14891 (force_decl_die): ... this.
14892 (force_type_die): New function.
14893 (setup_namespace_context): Replace use of force_namespace_die() with
14894 force_decl_die().
14895 (gen_namespace_die): Same.
14896 (dwarf2out_imported_module_or_decl): New function.
14897
14898 2004-01-27 Bob Wilson <bob.wilson@acm.org>
14899
14900 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
14901 on CQImode and CHImode incoming arguments in register a7.
14902 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
14903 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
14904 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
14905 xtensa_copy_incoming_a7 before reload.
14906
14907 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
14908
14909 * coverage.c (get_coverage_counts): Give a different message
14910 if flag_guess_branch_prob is set.
14911 * predict.c (counts_to_freqs): Return an int.
14912 (estimate_bb_frequencies): If counts_to_freqs returns zero,
14913 calculate estimates.
14914
14915 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
14916
14917 * config/iq2000/iq2000-protos.h: Remove the prototype for
14918 iq2000_setup_incoming_varargs.
14919 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
14920 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
14921 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14922 (TARGET_STRUCT_VALUE_RTX): Likewise.
14923 (TARGET_RETURN_IN_MEMORY): Likewise.
14924 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14925 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
14926 (iq2000_return_in_memory): Likewise.
14927 (iq2000_setup_incoming_varargs): Make it static. Receive the
14928 first argument by reference.
14929 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
14930 (PROMOTE_FUNCTION_RETURN): Likewise.
14931 (PROMOTE_PROTOTYPES): Likewise.
14932 (RETURN_IN_MEMORY): Likewise.
14933 (STRUCT_VALUE): Likewise.
14934 (SETUP_INCOMING_VARARGS): Likewise.
14935 (STRICT_ARGUMENT_NAMING): Likewise.
14936
14937 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
14938
14939 * fixinc/fixinc.c (test_test): Initialize res.
14940 (start_flexer): Initialize pz_cmd_save.
14941
14942 2004-01-27 Zack Weinberg <zack@codesourcery.com>
14943
14944 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
14945 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
14946
14947 2004-01-27 Zack Weinberg <zack@codesourcery.com>
14948
14949 PR 7198
14950 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
14951 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
14952 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
14953 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
14954 Possibly rename pattern for consistency.
14955 Remove ??? comments suggesting that this be done.
14956 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
14957 New patterns.
14958 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
14959 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
14960 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
14961 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
14962 Update to match.
14963
14964 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
14965
14966 * config/arm/arm.c (output_return_instruction): Only restore IP
14967 into SP if frame_pointer_needed.
14968
14969 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
14970
14971 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
14972 for SCmode and DCmode if ARCH32.
14973 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
14974 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
14975 if ARCH32.
14976 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
14977 if ARCH32.
14978 (BASE_OUTGOING_VALUE_REG): Likewise.
14979
14980 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
14981
14982 PR target/10904
14983 PR target/13058
14984 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
14985 Forbid mode changes from SImode for lower FP regs if ARCH64.
14986
14987 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
14988
14989 * Makefile.in (bt-load.o): Depend on except.h.
14990 * bt-load.c (except.h): #include.
14991 (compute_defs_uses_and_gen): If insn at end of BB can throw
14992 within this function, consider registers used by it unavailable for
14993 btr migration.
14994 (move_btr_def): If insn at end of BB can throw, insert before rather
14995 than after.
14996
14997 * flags.h (flag_btr_bb_exclusive): Declare.
14998 * toplev.c (flag_btr_bb_exclusive): New variable.
14999 (f_options): Add btr-bb-exclusive.
15000 * bt-load.c (augment_live_range): Restore old behaviour if
15001 flag_btr_bb_exclusive is set.
15002 * common.opt: Add entry for -fbtr-bb-exclusive.
15003 * opts.c (common_handle_options): Same.
15004 * doc/invoke.texi: Document -fbtr-bb-exclusive.
15005
15006 * bt-load.c (btrs_live_at_end): New variable.
15007 (compute_defs_uses_and_gen): Compute its pointed-to array.
15008 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
15009 (augment_live_range): When augmenting with a new dominator,
15010 use only its btrs_live_at_end set, but also add in the full set
15011 of the old dominator.
15012 (btr_def_live_range): Use btrs_live_at_end.
15013 (move_btr_def): Set other_btr_uses_before_def, and move new set
15014 to the end of the basic block, if appropriate.
15015 (migrate_btr_defs): Allocate and free btrs_live_at_end.
15016
15017 * bt-load.c (basic_block_freq): Remove outdated comment.
15018
15019 2004-01-27 Alan Modra <amodra@bigpond.net.au>
15020
15021 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
15022 (PREDICATE_CODES): Remove duplicate.
15023 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
15024 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
15025 (MASK_PROFILE_KERNEL): Adjust define.
15026
15027 2004-01-27 Jakub Jelinek <jakub@redhat.com>
15028
15029 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
15030 of long string literals from 32 bytes to sizeof (void *) when !-Os
15031 and to 1 with -Os.
15032
15033 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
15034
15035 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
15036 constant addresses in the normal mode.
15037
15038 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15039
15040 * system.h (CHAR_BITFIELD): Delete.
15041 (BOOL_BITFIELD): New.
15042 * c-decl.c (c_scope): Use BOOL_BITFIELD.
15043 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
15044
15045 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
15046
15047 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
15048 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
15049 (TARGET_PROMOTE_PROTOTYPES): Likewise.
15050 (TARGET_STRUCT_VALUE_RTX): Likewise.
15051 (TARGET_RETURN_IN_MEMORY): Likewise.
15052 (arc_return_in_memory): Likewise.
15053 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
15054 (PROMOTE_FUNCTION_RETURN): Likewise.
15055 (RETURN_IN_MEMORY): Likewise.
15056 (STRUCT_VALUE): Likewise.
15057
15058 2004-01-26 Richard Henderson <rth@redhat.com>
15059
15060 * c-parse.in (extension): Use itype.
15061 (SAVE_EXT_FLAGS): Don't allocate a tree.
15062 (RESTORE_EXT_FLAGS): Don't read a tree.
15063
15064 2004-01-26 Jan Hubicka <jh@suse.cz>
15065
15066 * cselib.c (discard_useless_values): Clear out value pointer pointing
15067 to datastructure to be recycled.
15068
15069 2004-01-25 Jan Hubicka <jh@suse.cz>
15070
15071 * genextract.c (main): Do not output the memset when not checking.
15072
15073 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
15074
15075 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
15076 switch statement instead of a chain of if statements.
15077
15078 2004-01-26 Jeff Law <law@redhat.com>
15079
15080 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
15081 acute accents for Petur Runolfsson's entry.
15082
15083 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
15084
15085 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
15086 (TARGET_RETURN_IN_MEMORY): Likewise.
15087 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
15088 (RETURN_IN_MEMORY): Likewise.
15089
15090 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
15091
15092 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
15093 unaligned load/store into smaller loads and stores.
15094
15095 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
15096
15097 * function.c (assign_parms): Do not assign
15098 long long argument to memory in prologue if
15099 is it loaded into register.
15100
15101 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
15102
15103 PR middle-end/13779
15104 * expr.c (emit_group_load): split constant
15105 correctly into register components of PARALLEL insn.
15106
15107 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
15108
15109 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
15110 Use adjust_address_nv directly with appropriate mode.
15111 (restore_stack_nonlocal): Ditto.
15112
15113 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
15114
15115 * config/xtensa/xtensa-protos.h: Remove the prototype for
15116 xtensa_builtin_saveregs.
15117 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
15118 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
15119 (TARGET_PROMOTE_PROTOTYPES): Likewise.
15120 (TARGET_STRUCT_VALUE_RTX): Likewise.
15121 (TARGET_RETURN_IN_MEMORY): Likewise.
15122 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
15123 (xtensa_builtin_saveregs): Make it static.
15124 (xtensa_return_in_memory): New.
15125 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
15126 (PROMOTE_FUNCTION_RETURN): Likewise.
15127 (PROMOTE_PROTOTYPES): Likewise.
15128 (STRUCT_VALUE): Likewise.
15129 (RETURN_IN_MEMORY): Likewise.
15130 (EXPAND_BUILTIN_SAVEREGS): Likewise.
15131
15132 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
15133
15134 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
15135 (arm_setup_incoming_varargs): Likewise.
15136 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
15137
15138 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
15139
15140 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
15141 (cris_setup_incoming_varargs): Likewise.
15142 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
15143
15144 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
15145
15146 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
15147 (ns32k_struct_value_rtx): Likewise.
15148 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
15149 NS32K_STRUCT_VALUE_REGNUM.
15150
15151 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
15152
15153 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
15154 (TARGET_PROMOTE_PROTOTYPES): Likewise.
15155 (TARGET_STRUCT_VALUE_RTX): Likewise.
15156 (arm_struct_value_rtx): Likewise.
15157 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
15158 (STRUCT_VALUE): Likewise.
15159 (STRUCT_VALUE_REGNUM): Likewise.
15160 (PROMOTE_PROTOTYPES): Likewise.
15161
15162 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
15163
15164 * config/ia64/ia64-protos.h: Remove the prototype for
15165 ia64_setup_incoming_varargs and ia64_return_in_memory.
15166 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
15167 (TARGET_RETURN_IN_MEMORY): Likewise.
15168 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
15169 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
15170 (ia64_setup_incoming_varargs): Adjust the arguments to meet
15171 the requirement of TARGET_SETUP_INCOMING_VARARGS.
15172 (ia64_return_in_memory): Make it static. Change the return
15173 type to bool from int. Add an argument.
15174 (ia64_struct_value_rtx): New.
15175 * config/ia64/ia64.h: Remove commented-out definitions of
15176 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
15177 PROMOTE_PROTOTYPES.
15178 (RETURN_IN_MEMORY): Remove.
15179 (STRUCT_VALUE_REGNUM): Likewise.
15180 (STRICT_ARGUMENT_NAMING): Likewise.
15181
15182 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
15183
15184 PR target/13666
15185 * config/sparc/sparc.c (function_arg_union_value): New function.
15186 (function_arg): Use it to deal with unions.
15187 (function_value): Likewise. Define 'regbase' only for ARCH64.
15188 Replace a conditional statement by a simpler one.
15189
15190 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
15191
15192 * config/mips/mips.c (mips16_optimize_gp): Delete.
15193 (mips_reorg): Don't call it.
15194
15195 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15196
15197 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
15198 (floatunsqihf2): Remove operand 6.
15199 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
15200 fix patterns.
15201 (ldi_conditional, ldf_conditional): Validate operands.
15202
15203 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15204
15205 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
15206 (HAVE_GAS_HIDDEN): Undefine as interim measure.
15207
15208 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15209
15210 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
15211 memory references if TARGET_EXPOSE_LDP nonzero.
15212
15213 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15214
15215 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
15216
15217 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15218
15219 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
15220 invalid operand combinations.
15221
15222 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15223
15224 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
15225 c4x_legitimate_address_p. Fix post_modify check.
15226
15227 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
15228 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
15229
15230 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
15231
15232 * config/pa/pa-protos.h: Remove the prototype for
15233 hppa_builtin_saveregs. Add a prototype for
15234 pa_return_in_memory.
15235 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
15236 (TARGET_PROMOTE_PROTOTYPES): Likewise.
15237 (TARGET_STRUCT_VALUE_RTX): Likewise.
15238 (TARGET_RETURN_IN_MEMORY): Likewise.
15239 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
15240 (pa_struct_value_rtx): Likewise.
15241 (pa_return_in_memory): Likewise.
15242 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
15243 PA_STRUCT_VALUE_REGNUM.
15244 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
15245 (EXPAND_BUILTIN_SAVEREGS): Remove.
15246 (PROMOTE_PROTOTYPES): Likewise.
15247 (PROMOTE_FUNCTION_RETURN): Likewise.
15248
15249 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
15250
15251 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
15252 (TARGET_STRUCT_VALUE_RTX): Likewise.
15253 (vax_struct_value_rtx): Likewise.
15254 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
15255 VAX_STRUCT_VALUE_REGNUM.
15256 (PROMOTE_PROTOTYPES): Remove.
15257
15258 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
15259
15260 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
15261
15262 2003-04-25 Chris Demetriou <cgd@broadcom.com>
15263
15264 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
15265 and MIPS64 have HI/LO interlocks. Update comment.
15266
15267 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
15268
15269 * config/stormy16/stormy16-protos.h: Remove the prototype for
15270 xstormy16_setup_incoming_varargs.
15271 * config/stormy16/stormy16.c
15272 (xstormy16_setup_incoming_varargs): Remove.
15273 (xstormy16_return_in_memory): New.
15274 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
15275 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
15276 (TARGET_PROMOTE_PROTOTYPES): Likewise.
15277 (TARGET_STRUCT_VALUE_RTX): Likewise.
15278 (TARGET_RETURN_IN_MEMORY): Likewise.
15279 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
15280 (PROMOTE_FUNCTION_RETURN): Likewise
15281 (PROMOTE_PROTOTYPES): Likewise
15282 (RETURN_IN_MEMORY): Likewise
15283 (STRUCT_VALUE): Likewise
15284 (SETUP_INCOMING_VARARGS): Likewise
15285
15286 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
15287
15288 * config/mips/mips.c (mips_offset_within_object_p): New function.
15289 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
15290 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
15291 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
15292
15293 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
15294
15295 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
15296 (PROMOTE_FUNCTION_RETURN): Likewise.
15297
15298 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
15299
15300 * config/mn10300/mn10300-protos.h: Remove the prototype for
15301 mn10300_builtin_saveregs.
15302 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
15303 (TARGET_STRUCT_VALUE_RTX): Likewise.
15304 (TARGET_RETURN_IN_MEMORY): Likewise.
15305 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
15306 (mn10300_return_in_memory): Likewise.
15307 (mn10300_builtin_saveregs): Make it static.
15308 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
15309 (RETURN_IN_MEMORY): Likewise.
15310 (STRUCT_VALUE): Likewise.
15311 (EXPAND_BUILTIN_SAVEREGS): Likewise.
15312
15313 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
15314
15315 PR bootstrap/13853
15316 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
15317
15318 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
15319
15320 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
15321 using ccr.
15322
15323 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
15324
15325 * config/i860/i860-protos.h: Remove the prototype for
15326 i860_saveregs.
15327 * config/i860/i860.c (i860_saveregs): Make it static.
15328 (i860_struct_value_rtx): New.
15329 (TARGET_STRUCT_VALUE_RTX): Likewise.
15330 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
15331 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
15332 I860_STRUCT_VALUE_REGNUM.
15333 (EXPAND_BUILTIN_SAVEREGS): Remove.
15334
15335 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
15336
15337 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
15338 (TARGET_RETURN_IN_MEMORY): Likewise.
15339 (m68hc11_struct_value_rtx): Likewise.
15340 (m68hc11_return_in_memory): Likewise.
15341 * config/m68hc11/m68hc11.h: Remove a commented-out definition
15342 of PROMOTE_PROTOTYPES.
15343 (RETURN_IN_MEMORY): Remove.
15344 (STRUCT_VALUE_REGNUM): Likewise.
15345
15346 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
15347
15348 * config/mmix/mmix-protos.h: Remove the prototype for
15349 mmix_setup_incoming_varargs.
15350 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
15351 (TARGET_STRUCT_VALUE_RTX): Likewise.
15352 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
15353 (mmix_setup_incoming_varargs): Make it static.
15354 (mmix_struct_value_rtx): New.
15355 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
15356 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
15357 (STRUCT_VALUE_REGNUM): Remove.
15358 (SETUP_INCOMING_VARARGS): Likewise.
15359
15360 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
15361
15362 * config/mips/mips-protos.h: Remove the prototypes for
15363 mips_setup_incoming_varargs and mips_return_in_memory.
15364 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
15365 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
15366 (TARGET_PROMOTE_PROTOTYPES): Likewise.
15367 (TARGET_STRUCT_VALUE_RTX): Likewise.
15368 (TARGET_RETURN_IN_MEMORY): Likewise.
15369 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
15370 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
15371 (mips_setup_incoming_varargs): Match the prototype for
15372 TARGET_SETUP_INCOMING_VARARGS.
15373 (mips_return_in_memory): Make it static. Add argument fntype.
15374 (mips_strict_argument_naming): New.
15375 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
15376 (PROMOTE_FUNCTION_ARGS): Likewise.
15377 (PROMOTE_FUNCTION_RETURN): Likewise.
15378 (STRUCT_VALUE): Likewise.
15379 (RETURN_IN_MEMORY): Likewise.
15380 (SETUP_INCOMING_VARARGS): Likewise.
15381 (STRICT_ARGUMENT_NAMING): Likewise.
15382
15383 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
15384
15385 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
15386 (TARGET_RETURN_IN_MEMORY): Likewise.
15387 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
15388 (ip2k_return_in_memory): Likewise.
15389 (ip2k_setup_incoming_varargs): Likewise.
15390 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
15391 (STRUCT_VALUE): Likewise.
15392 (STRUCT_VALUE_INCOMING): Likewise.
15393 (SETUP_INCOMING_VARARGS): Likewise.
15394
15395 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
15396
15397 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
15398 (TARGET_RETURN_IN_MEMORY): Likewise.
15399 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
15400 (avr_return_in_memory): Remove.
15401 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
15402 (STRUCT_VALUE): Likewise.
15403 (STRUCT_VALUE_INCOMING): Likewise.
15404 (STRICT_ARGUMENT_NAMING): Likewise.
15405
15406 2004-01-25 Jan Hubicka <jh@suse.cz>
15407
15408 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
15409
15410 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
15411
15412 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
15413 (mips_regno_mode_ok_for_base_p): Declare.
15414 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
15415 (FRAME_POINTER_REGNUM): Renumber to 78.
15416 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
15417 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
15418 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
15419 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
15420 (REG_MODE_OK_FOR_BASE_P): Likewise.
15421 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
15422 entry for 77 to "$arg" and entry for 78 to "$frame".
15423 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
15424 (mips_reg_mode_ok_for_base_p): Remove.
15425 (mips_regno_mode_ok_for_base_p): New function, derived from old
15426 BASE_REG_P macro. Don't enforce the mips16 stack pointer
15427 restrictions unless we're being strict.
15428 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
15429
15430 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
15431
15432 * c-common.h: Fix comment typos.
15433 * c-decl.c: Likewise.
15434 * cgraphunit.c: Likewise.
15435 * combine.c: Likewise.
15436 * et-forest.c: Likewise.
15437 * flow.c: Likewise.
15438 * function.c: Likewise.
15439 * ifcvt.c: Likewise.
15440 * integrate.c: Likewise.
15441 * jump.c: Likewise.
15442 * postreload.c: Likewise.
15443 * varray.c: Likewise.
15444
15445 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
15446
15447 * doc/frontends.texi: Update copyright.
15448 * doc/gcov.texi: Likewise.
15449 * doc/gty.texi: Likewise.
15450 * doc/sourcebuild.texi: Likewise.
15451 * doc/standards.texi: Likewise.
15452
15453 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
15454
15455 PR target/12978
15456 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
15457 Remove movstrqi_small because it conflicts with movstrqi_large.
15458
15459 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
15460
15461 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
15462 (TARGET_STRUCT_VALUE_RTX): Likewise.
15463 (cris_struct_value_rtx): Likewise.
15464 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
15465 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
15466 STRUCT_VALUE_REGNUM.
15467 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
15468
15469 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
15470
15471 PR bootstrap/13848
15472 * cse.c (cse_cc_succs): Change the mode of the source expression
15473 as soon as decide we need a new mode. Don't permit changing modes
15474 if we found a match in a successor block.
15475 (cse_condition_code_reg): Save original mode of source expression
15476 so that we know whether we have to change the mode in other
15477 insns.
15478
15479 2004-01-24 Jan Hubicka <jh@suse.cz>
15480
15481 * emit-rtl.c (change_address, adjust_address_1, offset_address,
15482 widen_memory_access): Return early when there is nothing to change.
15483
15484 2004-01-24 Jakub Jelinek <jakub@redhat.com>
15485
15486 * simplify-rtx.c (simplify_relational_operation): Don't
15487 simplify address == constant into address + -constant == 0.
15488
15489 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
15490
15491 * gcc.c (process_command): Don't internationalize the
15492 Copyright message.
15493 * mips-tfile.c (main): Likewise.
15494
15495 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
15496
15497 * cse.c: (cse_cc_succs) Fix comparison warning.
15498
15499 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
15500
15501 * config/h8300/h8300.md: Remove extraneous USE in expanders.
15502
15503 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
15504
15505 * config/h8300/h8300-protos.h: Provide prototypes for
15506 h8300_legitimate_constant_p and h8300_legitimate_address_p.
15507 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
15508 (h8300_rtx_ok_for_base_p): Likewise.
15509 (h8300_legitimate_address_p): Likewise.
15510 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
15511 h8300_legitimate_constant_p.
15512 (RTX_OK_FOR_BASE_P): Remove.
15513 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
15514
15515 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
15516
15517 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
15518 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
15519 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
15520 (REG_OK_FOR_BASE_STRICT_P): Likewise.
15521 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
15522 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
15523 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
15524 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
15525
15526 2004-01-24 Jan Hubicka <jh@suse.cz>
15527
15528 * cselib.c (remove_useless_values): Do not access discarded values.
15529
15530 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
15531
15532 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
15533 arrays.
15534
15535 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
15536
15537 * recog.c: Fix a typo in copyright.
15538
15539 2004-01-23 Andrew Pinski <apinski@apple.com>
15540
15541 * config/rs6000/rs6000.md (call): Fix misappiled patch.
15542 (call_value): Likewise.
15543
15544 2004-01-23 Richard Henderson <rth@redhat.com>
15545
15546 PR opt/12941
15547 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
15548 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
15549 if SHIFT_COUNT_TRUNCATED is set.
15550
15551 2004-01-23 Bob Wilson <bob.wilson@acm.org>
15552
15553 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
15554 separate real and imaginary parts.
15555 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
15556
15557 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
15558
15559 PR target/13674
15560 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
15561 loading into GPR.
15562
15563 2004-01-23 Jan Hubicka <jh@suse.cz>
15564
15565 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
15566 change.
15567
15568 * alloc-pool.c (align_four): Kill.
15569 (create_alloc_pool): Align size to eight.
15570 (free_alloc_pool, free_pool): Invalidate deallocated data.
15571
15572 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
15573
15574 PR gcc/1532
15575 * cse.c (cse_change_cc_mode): New static function.
15576 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
15577 (cse_condition_code_reg): New function.
15578 * rtl.h (cse_condition_code_reg): Declare.
15579 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
15580 * target.h (struct gcc_target): Add fixed_condition_code_regs and
15581 cc_modes_compatible.
15582 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
15583 (TARGET_CC_MODES_COMPATIBLE): Define.
15584 (TARGET_INITIALIZER): Add new initializers.
15585 * targhooks.c (default_cc_modes_compatible): New function.
15586 * targhooks.c (default_cc_modes_compatible): Declare.
15587 * hooks.c (hook_bool_intp_intp_false): New function.
15588 * hooks.h (hook_bool_intp_intp_false): Declare.
15589 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
15590 (TARGET_CC_MODES_COMPATIBLE): Define.
15591 (ix86_fixed_condition_code_regs): New static function.
15592 (ix86_cc_modes_compatible): Likewise.
15593 * doc/tm.texi (Condition Code): Document new hooks.
15594
15595 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15596
15597 * fixinc/inclhack.def (bad_lval): Renamed to ...
15598 (alpha_bad_lval): ... this.
15599 Removed file list.
15600 Restrict to alpha*-dec-osf*.
15601 * fixinc/fixincl.x: Regenerate.
15602 * fixinc/tests/base/dirent.h: Remove, moving test ...
15603 * fixinc/tests/base/testing.h: ... here, reflecting new name.
15604
15605 2004-01-23 Zack Weinberg <zack@codesourcery.com>
15606
15607 PR c/13814
15608 * c-decl.c (diagnose_mismatched_decls): Also discard a
15609 built-in if we encounter an old-style definition with the
15610 same name.
15611
15612 2004-01-23 Jakub Jelinek <jakub@redhat.com>
15613
15614 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
15615 set to default{32,64}.
15616
15617 2004-01-21 Jakub Jelinek <jakub@redhat.com>
15618
15619 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
15620 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
15621
15622 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
15623 Olivier Hainque <hainque@act-europe.fr>
15624
15625 * fold-const.c (fold_binary_op_with_conditional_arg): Only
15626 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
15627
15628 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
15629
15630 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
15631 size for minipool references.
15632
15633 2004-01-23 Roger Sayle <roger@eyesopen.com>
15634
15635 * real.c (real_floor, real_ceil): Tweak to allow input and output
15636 arguments to overlap.
15637 (real_round): New function to implement round(3m) semantics.
15638 * real.h (real_round): Prototype here.
15639 * builtins.c (fold_builtin_round): New function to constant fold
15640 round, roundf and roundl.
15641 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
15642
15643 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
15644
15645 PR optimization/13819
15646 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
15647 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
15648 (sh_handle_sp_switch_attribute): Remove warning.
15649
15650 2003-11-30 Jan Hubicka <jh@suse.cz>
15651
15652 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
15653
15654 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
15655
15656 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
15657 may or may not return non-NIL.
15658 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
15659 check CANNOT_CHANGE_MODE_CLASS
15660
15661 2004-01-23 Jan Hubicka <jh@suse.cz>
15662
15663 * basic-block.h (PROP_POSTRELOAD): New macro.
15664 (CLEANUP_LOG_LINKS): New.
15665 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
15666 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
15667
15668 * cselib.c (value_pool): New.
15669 (new_cselib_val): Use pool.
15670 (cselib_init): Initialize value_pool
15671 (cselib_finish): Free pool.
15672
15673 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
15674
15675 * config/sparc/sparc.c (scan_record_type): New function.
15676 (function_arg_slotno): Use it to determine which kinds of
15677 registers the record can be passed in.
15678
15679 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
15680
15681 * config/pa/fptr.c: Fix old-style definition.
15682
15683 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
15684
15685 PR optimization/13724
15686 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
15687 represents the zero bits produced by a ZERO_EXTEND operation.
15688
15689 2004-01-22 Roger Sayle <roger@eyesopen.com>
15690
15691 PR optimization/13821
15692 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
15693 correctly calculate the lowpart offset of the contracted subreg.
15694
15695 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
15696
15697 * doc/invoke.texi (Optimize Options): Note that --param arguments
15698 are subject to change without notice.
15699
15700 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15701
15702 * config.gcc (mips-sgi-irix6*o32): Removed.
15703 * config/mips/iris6-o32-as.h: Likewise.
15704 * config/mips/iris6-o32-gas.h: Likewise.
15705 * config/mips/iris6-o32.h: Likewise.
15706
15707 2004-01-22 Jan Hubicka <jh@suse.cz>
15708
15709 * cfgcleanup.c (first_pass): New static variable.
15710 (try_forward_edges): Add work limiting check for threading.
15711 (try_crossjump_bb): Add work limiting check for crossjumping.
15712 (try_optimize_cfg): Maintain first pass variable.
15713
15714 2004-01-22 Bob Wilson <bob.wilson@acm.org>
15715
15716 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
15717 handles complex and vector modes.
15718
15719 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
15720
15721 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
15722 (REG_OK_FOR_BASE_P_STRICT): Likewise.
15723 (STRICT): Likewise.
15724
15725 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
15726
15727 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
15728 (genrtl_for_stmt): Remove emit_nop calls.
15729
15730 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15731
15732 PR target/13713
15733 PR target/13324
15734 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
15735 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
15736 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
15737
15738 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
15739
15740 * config/arm/arm.c: Include "debug.h".
15741 (thumb_pushpop): Take two new arguments. Add some commentary.
15742 Output frame information when pushing.
15743 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
15744 thumb_pushpop.
15745 (thumb_output_function_prologue): Likewise. Accumulate a CFA
15746 offset, and pass it to thumb_pushpop. Output CFI information.
15747 (thumb_expand_prologue): Add some frame-related markers and notes.
15748
15749 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
15750
15751 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
15752 for TARGET_64BIT.
15753 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
15754 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
15755
15756 2004-01-22 Roger Sayle <roger@eyesopen.com>
15757 Paolo Bonzini <bonzini@gnu.org>
15758
15759 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
15760 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
15761 * rtl.h (subreg_lsb_1): Prototype here.
15762 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
15763 sign extensions.
15764
15765 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
15766
15767 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
15768 macro need not be defined if jump-tables should contain
15769 relative addresses only when -fPIC or -fPIC is in effect.
15770
15771 2004-01-22 Jan Hubicka <jh@suse.cz>
15772
15773 * alias.c (reg_base_value): Turn into varray.
15774 (reg_base_value_size): Kill.
15775 (old_reg_base_value): New deletable varray.
15776 (alias_invariant_size): New variable.
15777 (REG_BASE_VALUE): Update to use varray.
15778 (find_base_value): Likewise.
15779 (record_set): Likewise.
15780 (record_base_value): Likewise.
15781 (memrefs_conflict_p): Likewise.
15782 (record_set): Likewise
15783 (record_base_value): Likewise.
15784 (memrefs_conflict_p): Use alias_invariant_size.
15785 (init_alias_analysis): Use varray; set alias_invariant_size;
15786 rescale other arrays to be sized by maxreg.
15787 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
15788
15789 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
15790
15791 * config/sparc/sparc.c (function_arg_slotno): Use
15792 FLOAT_TYPE_P to detect FP fields in structures.
15793 (function_arg_record_value_1): Likewise.
15794 (function_arg_record_value_2): Likewise.
15795
15796 2004-01-22 Jan Hubicka <jh@suse.cz>
15797
15798 * function.c (allocate_struct_function): Do not initialize expr, emit
15799 and varasm.
15800 (prepare_function_start): Do it here.
15801 * c-parse.in (maybe_type_qual): Do not produce line number notes.
15802
15803 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
15804
15805 PR target/13559
15806 * config/sparc/sparc.c (function_arg_record_value_3): Revert
15807 to 'word_mode' once the first slot has been filled.
15808
15809 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
15810
15811 * config/sparc/sparc.c (function_arg_record_value_1): Fix
15812 computation of the number of integer registers required.
15813
15814 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
15815
15816 * config/i386/i386.md: Simplify certain comparisons of
15817 const_int.
15818
15819 2004-01-21 Andrew Pinski <apinski@apple.com>
15820
15821 PR target/13785
15822 * config/rs6000/rs6000.md (call_value): Force operand
15823 1 not operand 0 into a register.
15824
15825 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
15826
15827 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
15828 unwind-dw2-fde.h: Update copyright.
15829
15830 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15831
15832 * pa-protos.h: Update copyright.
15833 * pa.h: Likewise.
15834 * pa.md: Likewise.
15835
15836 2004-01-21 Caroline Tice <ctice@apple.com>
15837
15838 PR target/12308
15839 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
15840 flags register.
15841 (fix_truncdfdi2): Likewise.
15842 (fix_truncsfdi2): Likewise.
15843 (*fix_truncdi_1): Likewise.
15844 (fix_truncxfsi2): Likewise.
15845 (fix_truncdfsi2): Likewise.
15846 (fix_truncsfsi2): Likewise.
15847 (*fix_truncsi_1): Likewise.
15848 (fix_truncxfhi2): Likewise.
15849 (fix_truncdfhi2): Likewise.
15850 (fix_truncsfhi2): Likewise.
15851 (*fix_trunchi_1): Likewise.
15852
15853 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
15854
15855 * alias.c, basic-block.h, c-common.c, c-common.h,
15856 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
15857 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
15858 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
15859 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
15860 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
15861 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
15862 genautomata.c, genconditions.c, genemit.c, genflags.c,
15863 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
15864 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
15865 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
15866 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
15867 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
15868 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
15869 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
15870 unwind.h, varray.c, varray.h: Update copyright.
15871
15872 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
15873
15874 * config/h8300/coff.h: Update copyright.
15875 * config/h8300/elf.h: Likewise.
15876 * config/h8300/h8300-protos.h: Likewise.
15877 * config/h8300/h8300.c: Likewise.
15878 * config/h8300/h8300.h: Likewise.
15879 * config/h8300/h8300.md: Likewise.
15880
15881 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15882
15883 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
15884 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
15885 ultrix_unistd): New hacks.
15886 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
15887 ULTRIX_CONST2_CHECK): Add checks.
15888 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
15889 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
15890 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
15891 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
15892 * fixinc/tests/base/locale.h: New file.
15893 * fixinc/fixincl.x: Rebuilt.
15894
15895 2004-01-21 Andreas Jaeger <aj@suse.de>
15896 Michael Matz <matz@suse.de>
15897
15898 * doc/extend.texi (Extended Asm): Clarify memory clobber.
15899
15900 2004-01-21 Jakub Jelinek <jakub@redhat.com>
15901
15902 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
15903 _Jv_RegisterClasses through a function pointer.
15904
15905 2004-01-21 Falk Hueffner <falk@debian.org>
15906
15907 PR target/12898
15908 * config/alpha/alpha.c (alpha_emit_set_const_1): If
15909 no_new_pseudos, use gen_rtx_SET directly for SImode constants
15910 which need multiple instructions to emit.
15911
15912 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
15913
15914 * config/m32r/m32r.h (CPP_SPEC): Define.
15915
15916 2004-01-21 Zack Weinberg <zack@codesourcery.com>
15917
15918 * c-decl.c (merge_decls): Kill different_binding_level and
15919 different_tu arguments; simplify throughout.
15920 (duplicate_decls): Likewise.
15921 (pushdecl, merge_translation_unit_decls): Update calls to
15922 duplicate_decls.
15923
15924 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15925
15926 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
15927 $(SYSTEM_H).
15928 (print-rtl1.o): Depend on $(SYSTEM_H).
15929
15930 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
15931
15932 PR bootstrap/12730
15933 * configure.ac: Delete definition and subsitution of docdir.
15934 Add info, man, srcman and srcinfo to target hooks. Create doc/
15935 directory.
15936 * configure: Regenerate.
15937 * Makefile.in: Don't substitute docdir and delete all references
15938 throughout.
15939 (MAKEINFOFLAGS): Define.
15940 (stmp-docobjdir): Delete.
15941 (INFOFILES, MANFILES): Define.
15942 (info): Call lang.info, srcinfo and lang.srcinfo.
15943 (generated-manpages): Call lang.man, srcman and lang.srcman.
15944 (srcinfo, srcman): New rules to copy back files to source directory.
15945 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
15946 (install-man): Revamp rule.
15947 (clean): Update dvi directory.
15948 (distclean): Delete TAGS from front end directorys.
15949 (maintainer-clean): Delete all document files in source directory.
15950
15951 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
15952 (objc.srcman, objc.srcinfo): Likewise.
15953
15954 2004-01-20 Bruce Korb <bkorb@gnu.org>
15955
15956 * fixinc/inclhack.def(math_exception): bypass only for glibc.
15957 (matherr_decl): rename & relocate as exception_structure.
15958 This fix must precede the math_exception fix.
15959
15960 2004-01-20 Roger Sayle <roger@eyesopen.com>
15961
15962 * fold-const.c (fold_convert): Rename to fold_convert_const.
15963 (fold_convert_const): Change arguments to take a tree_code,
15964 a type and the operand/expression to be converted. Return
15965 NULL_TREE if no simplification is possible. Add support for
15966 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
15967 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
15968 Adjust call to fold_convert to match new fold_convert_const.
15969 Avoid modifying the tree passed to fold in-place.
15970
15971 2004-01-21 Alan Modra <amodra@bigpond.net.au>
15972
15973 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
15974 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
15975 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
15976
15977 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15978
15979 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
15980 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
15981 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
15982 (emit_move_sequence): Check scratch_reg first in various if statements.
15983 Extend source simplification to handle all 64-bit CONST_INTs.
15984 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
15985 frame size.
15986 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
15987 frame offset calculations.
15988 * pa.h (NEW_HP_ASSEMBLER): Add comment.
15989 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
15990 LEGITIMATE_64BIT_CONST_INT_P): Define.
15991 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
15992 any CONST_INT as legitimate during and after reload.
15993 (VAL_32_BITS_P, INT_32_BITS): Define.
15994 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
15995
15996 2004-01-20 Jan Hubicka <jh@suse.cz>
15997
15998 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
15999 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
16000 containing hard regs are shared.
16001 (gen_hard_reg_clobber): New function.
16002 (hard_reg_clobbers): New array.
16003 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
16004 (copy_rtx): Do not copy clobbers containing hard regs.
16005 * rtl.h (gen_hard_reg_clobber): Declare.
16006
16007 2004-01-20 Jan Hubicka <jh@suse.cz>
16008
16009 * varray.c: Include hashtab.h
16010 (varray_descriptor): New structure.
16011 (hash_descriptor, eq_descriptor, varray_descriptor,
16012 print_statistics): New static functions
16013 (varray_init, varray_grow): Update statistics
16014 (dump_varray_statistics): New function.
16015 * varray.h (dump_varray_statistics): Declare.
16016 * toplev.c (finalize): Call it.
16017 * Makefile.in (varray.o): Add dependency.
16018
16019 2004-01-20 Jan Hubicka <jh@suse.cz>
16020
16021 * cselib.c: Include alloc-pool.h
16022 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
16023 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
16024 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
16025 unchain_one_elt_loc_list_pool, unchain_one_value,
16026 new_cselib_val): Simplify using allocpool.
16027 (cselib_init): Initialize allocpools.
16028 (cselib_finish): Finish allocpools.
16029 * Makefile.in (cselib.o): Depend on alloc-pool.h
16030
16031 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
16032
16033 * config/mips/mips.c (mips_load_call_address): Make the call insn
16034 use $gp if it could be calling a lazy binding stub.
16035
16036 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
16037
16038 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
16039 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16040 (TARGET_STRUCT_VALUE_RTX): Likewise.
16041 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
16042 (PROMOTE_FUNCTION_RETURN): Remove.
16043 (STRUCT_VALUE): Remove.
16044
16045 2004-01-20 Denis Chertykov <denisc@overta.ru>
16046
16047 PR bootstrap/13735
16048 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
16049 register as pointer after reload.
16050
16051 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16052
16053 PR optimization/12440
16054 * loop.c: Include ggc.h.
16055 (loop_optimize): Run garbage collector between optimization of loops.
16056 * Makefile.in (loop.o): Add GGC_H dependency.
16057
16058 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
16059
16060 * gcc/config/rs6000/rs6000.c (function_arg) Handle
16061 vector register special in function without prototype.
16062 (function_arg_advance): Vector parameters get always
16063 GPRs allocated for the linux64 target.
16064
16065 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
16066
16067 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
16068 not TARGET_M32RX_MASK.
16069
16070 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
16071
16072 PR target/13557
16073 * config/sparc/sparc.c (function_arg): Reorder the cases.
16074
16075 2004-01-19 Per Bothner <per@bothner.com>
16076
16077 Move cpp_reader's line_maps field to a shared global.
16078 * cpphash.h (cpp_reader): Rename line_maps field to line_table
16079 and change the type to a pointer rather than a struct.
16080 * cppinit.c (cpp_push_main_field): Adjust accordingly.
16081 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
16082 Likewise.
16083 * cppfiles.c (validate_pch): Likewise.
16084 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
16085 Likewise.
16086 * cpperror.c (print_location): Likewise.
16087 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
16088 * cppinit.c (cpp_create_reader): Handle new parameter.
16089 (cpp_destroy): Don't free line_maps - that's no longer our job.
16090 * input.h (line_table): New variable.
16091 * toplev.c (line_table): Declare variable.
16092 (general_init): Initialize line_table.
16093 * c-opts.c (c_common_init_options): Pass line_table to
16094 cpp_create_reader.
16095 * fix-header.c (read_scan_file): New local variable line_table.
16096 Initialize, and pass it to cpp_create_reader.
16097 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
16098 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
16099
16100 2004-01-19 Per Bothner <per@bothner.com>
16101
16102 Implement a cache for linemap_lookup.
16103 * line-map.h (struct_line_maps): Add cache field.
16104 * line-map.c (linemap_init): Zero cache field.
16105 (linemap_add): Set cache field to offset of newly allocated map.
16106 (linemap_lookup): Use and set cache field.
16107
16108 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
16109
16110 PR optimization/13567
16111 * cse.c (cse_basic_block): Call cse_insn with a non-null
16112 libcall_insn for the last SET insn of a no-confilict block.
16113
16114 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
16115
16116 * Makefile.in (target_noncanonical, program_transform_name): Use
16117 immediate define instead of deferred.
16118 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
16119 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
16120 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
16121 deferred backquote.
16122
16123 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
16124
16125 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
16126 true unconditionally.
16127 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
16128 Remove.
16129 (build_unary_op, build_modify_expr): Don't handle extended
16130 lvalues.
16131 (build_component_ref, build_conditional_expr): Call non_lvalue
16132 instead of pedantic_non_lvalue.
16133 (build_c_cast): Don't condition use of non_lvalue on pedantic.
16134 * fold-const.c (fold): Don't check pedantic directly for
16135 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
16136 passed to pedantic_non_lvalue.
16137 * doc/extend.texi: Remove documentation of extended lvalues.
16138
16139 2004-01-19 Roger Sayle <roger@eyesopen.com>
16140
16141 PR optimization/5263
16142 * simplify-rtx.c (associative_constant_p): Delete.
16143 (simplify_associative_operation): Rewrite to linearize terms, and
16144 attempt to simplify new term against both left and right subterms.
16145 (simplify_binary_operation): Call swap_commutative_operands_p on
16146 op0 and op1, not trueop0 and trueop1. Move the initialization of
16147 trueop0 and trueop1 down to where first needed.
16148 (simplify_relational_operation): Likewise.
16149 * rtlanal.c (commutative_operand_precedence): Also order constant
16150 operands using avoid_constant_pool_reference.
16151
16152 2004-01-19 Richard Henderson <rth@redhat.com>
16153
16154 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
16155 don't check memory mode.
16156 (unaligned_memory_operand): Likewise.
16157 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
16158 abort for op0 not MEM.
16159
16160 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
16161 is not a reg, copy to a scratch first.
16162 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
16163 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
16164 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
16165 (reload_inqi, reload_inhi): Fix mode of op0.
16166 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
16167 reload_outhi_help): Likewise. Use define_insn_and_split.
16168
16169 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
16170 as well as $29 dead.
16171
16172 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
16173
16174 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
16175 "tls_object" for thread-local objects.
16176 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
16177 "#tls" for thread-local sections.
16178 * configure.ac (thread-local checks): Specify --fatal-warnings in
16179 every binutils-specific checks. For sparc*-*-*, test whether the
16180 OS is Solaris and the tools are native and act accordingly.
16181 * configure: Rebuild.
16182
16183 2004-01-19 Jeff Law <law@redhat.com>
16184
16185 * contrib.texi: Update Paolo Carlini's entry. New entries for
16186 Jerry Quinn and Petur Runolfsson.
16187
16188 2004-01-19 Roger Sayle <roger@eyesopen.com>
16189
16190 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
16191 size, don't use the larger zero-extending loads.
16192
16193 2004-01-19 Richard Henderson <rth@redhat.com>
16194
16195 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
16196 * alpha.md (UNSPEC_NT_LDA): Remove.
16197 (UNSPEC_CVTLQ, cvtlq): New.
16198 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
16199 (extendsidi2_fix): Remove.
16200 (extendsidi2 splitter): Use cvtlq.
16201 (extendsidi2 fp peepholes): Remove.
16202 (cvtql): Use SFmode instead of SImode.
16203 (fix_trunc?fsi): Update to match.
16204 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
16205 (movsi): Rename from movsi_nofix, remove f alternatives.
16206 (movsi_nt_vms): Similarly.
16207 (movsi_fix, movsi_nt_vms_fix): Remove.
16208 (nt_lda): Remove.
16209 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
16210
16211 2004-01-19 Jan Hubicka <jh@suse.cz>
16212
16213 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
16214 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
16215 list.
16216 (cgraph_remove_unreachable_nodes): New function
16217 (cgraph_decide_inlining_of_small_function): Fix pasto.
16218 (cgraph_decide_inlining_incrementally): Fix pasto.
16219 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
16220
16221 2004-01-19 Steven Bosscher <stevenb@suse.de>
16222
16223 * gengtype.c (header_file): Make it static.
16224 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
16225 * gengtype.h (header_file): No longer extern.
16226
16227 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
16228
16229 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
16230 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
16231 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
16232
16233 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
16234
16235 * stmt.c (HAVE_casesi): Define it not already defined.
16236 (HAVE_tablejump): Likewise.
16237 (expand_end_case_type): Resort to the binary tree method if
16238 neither casesi or tablejump is available.
16239
16240 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
16241
16242 * final.c (final_scan_insn): Make non-static again.
16243 * output.h (final_scan_insn): Re-add prototype.
16244 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
16245 to final_scan_insn call.
16246 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
16247 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
16248 * config/pa/pa.c (output_lbranch, output_call): Likewise.
16249 * config/sh/sh.c (print_slot): Likewise.
16250 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
16251 (output_sibcall, sparc_flat_function_epilogue): Likewise.
16252
16253 2004-01-18 Jan Hubicka <jh@suse.cz>
16254
16255 * basic-block.h (try_redirect_by_replacing_jump): Declare.
16256 * cfgcleanup.c (try_optimize_cfg): Use it.
16257 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
16258 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
16259 Kill hack.
16260 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
16261
16262 Revert:
16263 2004-01-16 Geoffrey Keating <geoffk@apple.com>
16264
16265 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
16266 even after reload, just don't remove the actual jump tables.
16267
16268 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
16269
16270 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
16271
16272 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
16273
16274 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
16275 the size of a pointer in bytes.
16276
16277 2004-01-18 Roger Sayle <roger@eyesopen.com>
16278
16279 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
16280 live "next" variable, which could lead to an infinite loop.
16281
16282 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
16283
16284 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
16285 block.
16286
16287 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
16288 Check for NULL in the chain and remove repeated code.
16289
16290 2004-01-18 Jan Hubicka <jh@suse.cz>
16291
16292 * coverage.c (checksum_string): Rename to ...
16293 (coverage_checksum_string): ... this one, Use crc32_string; recognize
16294 names containing random number and zero the number out in order to get
16295 match.
16296
16297 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
16298
16299 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
16300
16301 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
16302
16303 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
16304 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
16305 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
16306 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
16307 doc/trouble.texi: Remove trailing whitespace.
16308
16309 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
16310
16311 PR target/7618
16312 * config/mips/mips.c: Include cfglayout.h.
16313 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16314 (mips_unspec_offset_high): Add temporary register argument.
16315 (mips_load_call_address): New function, split out from...
16316 (mips_expand_call): ...here.
16317 (mips_output_cplocal): New function.
16318 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
16319 (mips_emit_loadgp): New function, split out from...
16320 (mips_expand_prologue): ...here.
16321 (mips_output_mi_thunk): New function.
16322
16323 2004-01-17 Bernardo Innocenti <bernie@develer.com>
16324
16325 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
16326 mcpu32): Remove redundant checks for implied target predefines.
16327
16328 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
16329
16330 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
16331 Return type is unsigned int not int.
16332 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
16333 Likewise.
16334
16335 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
16336
16337 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
16338 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
16339 "GNU/Linux" and "Microsoft Windows" terminology.
16340
16341 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
16342
16343 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
16344 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
16345 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
16346 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
16347 @smallexample instead of @example.
16348
16349 2004-01-17 Ziemowit Laski <zlaski@apple.com>
16350
16351 * objc/objc-act.c (build_objc_method_call): Use target
16352 hooks instead of macros to determine if ..._stret
16353 dispatchers should be used (NeXT runtime only).
16354
16355 2004-01-17 Roger Sayle <roger@eyesopen.com>
16356
16357 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
16358 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
16359
16360 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
16361
16362 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
16363 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
16364 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
16365 macros.
16366 * reload1.c (emit_reload_insns): Use them.
16367 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
16368 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
16369 for NULL PATTERN.
16370
16371 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
16372
16373 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
16374 (final_scan_insn): Update to take an additional SEEN argument. Emit
16375 a line note after the prologue. Make static.
16376 (line_note_exists): Remove.
16377 (final): Don't initialize line_note_exists. Update call to
16378 final_scan_insn.
16379 * output.h (final_scan_insn): Remove prologue.
16380 * function.c (set_insn_locators): Update comment.
16381 (thread_prologue_and_epilogue_insns): Add a comment.
16382
16383 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
16384
16385 PR target/10781
16386 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
16387 Prototype.
16388 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
16389 New function.
16390 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
16391 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
16392 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
16393
16394 2004-01-17 Jan Hubicka <jh@suse.cz>
16395
16396 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
16397 commit.
16398
16399 * toplev.c (HAVE_conditional_execution): Provide default.
16400 (rest_of_handle_reorder_blocks): For conditional_execution target
16401 update liveness once after all transformations
16402 (rest_of_compilation): Do crossjumping before ce3.
16403
16404 2004-01-17 Geoffrey Keating <geoffk@apple.com>
16405
16406 * alias.c (new_alias_set): Mark last_alias_set for PCH.
16407 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
16408 for PCH.
16409 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
16410 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
16411 (get_TOC_alias_set): Mark 'set' for PCH.
16412
16413 2004-01-16 Geoffrey Keating <geoffk@apple.com>
16414
16415 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
16416 even after reload, just don't remove the actual jump tables.
16417
16418 2004-01-17 J. Brobecker <brobecker@gnat.com>
16419
16420 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
16421 Remove checks for is_ada() and TREE_UNSIGNED.
16422 (subrange_type_die): Emit a byte_size attribute if the subrange
16423 type size is different from the base type size.
16424 (modified_type_die): Replace call to is_ada_subrange_type() by
16425 call to is_subrange_type().
16426
16427 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
16428
16429 * config/sh/sh.c: Include ggc.h.
16430
16431 2004-01-16 Geoffrey Keating <geoffk@apple.com>
16432
16433 * Makefile.in (MD5_H): New.
16434 (fold-const.o): Depend on md5.h.
16435 (dwarf2out.o): Likewise.
16436 (cppfiles.o): Likewise.
16437 * cppfiles.c: Include md5.h.
16438 (should_stack_file): Check against list read from PCH file.
16439 (struct pchf_data): New.
16440 (pchf): New variable.
16441 (struct pchf_adder_info): New.
16442 (pchf_adder): New.
16443 (pchf_save_compare): New.
16444 (_cpp_save_file_entries): New.
16445 (_cpp_read_file_entries): New.
16446 (struct pchf_compare_data): New.
16447 (pchf_compare): New.
16448 (check_file_against_entries): New.
16449 * cpphash.h (_cpp_save_file_entries): Prototype.
16450 (_cpp_read_file_entries): Prototype.
16451 * cpppch.c (cpp_write_pch_state): Write the list of headers.
16452 (cpp_read_state): Read the list of headers.
16453
16454 2004-01-17 Jan Hubicka <jh@suse.cz>
16455
16456 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
16457 builtin_expect specially.
16458 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
16459 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
16460 * invoke.texi (max-inline-insns-single): Set to 100.
16461 (large-function-insns): Set to 3000.
16462
16463 2004-01-16 Eric Christopher <echristo@redhat.com>
16464 Chandrakala Chavva <cchavva@redhat.com>
16465
16466 * cppcharset.c (one_iso88591_to_utf8): New function.
16467 (convert_iso88591_utf8): Ditto. Use.
16468 (conversion_tab): Use.
16469 (_cpp_input_to_utf8): New function.
16470 (_cpp_init_iconv_buffer): Ditto.
16471 (_cpp_close_iconv_buffer): Ditto.
16472 * cpphash.h: Prototype new functions.
16473 (cpp_buffer): Add input_cset_desc.
16474 * cppinit.c: Add input_charset default.
16475 * cpplib.c (cpp_push_buffer): Support init and
16476 close of iconv.
16477 * cpplib.h (cpp_options): Add input_charset.
16478
16479 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
16480
16481 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
16482 * config/alpha/unicosmk.h: Remove a commented-out definition
16483 of ASM_OUTPUT_SECTION_NAME.
16484 * config/stormy16/stormy16.h: Likewise.
16485
16486 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16487
16488 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
16489 (alpha___extern_prefix_sys_stat): ... this.
16490 Apply to <sys/mount.h>, too.
16491 Tweak to match more variations.
16492 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
16493
16494 * fixinc/inclhack.def (alpha___extern_prefix,
16495 alpha___extern_prefix_standards): New hacks to obey
16496 __PRAGMA_EXTERN_PREFIX.
16497 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
16498 test.
16499 * fixinc/tests/base/standards.h: Likewise.
16500
16501 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
16502 variations.
16503 New testcase.
16504 * fixinc/tests/base/pthread.h: Handle it.
16505
16506 * fixincl/inclhack.def (bad_lval): Sort file list.
16507 Add many missing files up to Tru64 UNIX V5.1B.
16508 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
16509 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
16510 order.
16511
16512 * fixinc/fixincl.x: Regenerate.
16513
16514 2004-01-16 Mark Mitchell <mark@codesourcery.com>
16515
16516 * version.c (version_string): Change to 3.5.0.
16517 * doc/include/gcc-common.texi (version-GCC): Likewise.
16518
16519 2004-01-16 Jan Hubicka <jh@suse.cz>
16520
16521 * i386.md (load_tp_di): Fix pasto.
16522
16523 PR opt/13608
16524 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
16525
16526 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
16527 pp_c_character_constant, pp_c_floating_constant,
16528 pp_c_additive_expression, pp_c_shift_expression,
16529 pp_c_equality_expression, pp_c_and_expression,
16530 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
16531 pp_c_logical_and_expression): Remove inline modifier.
16532 * dwarf2out.c (get_AT): Likewise.
16533 * et-forest.c (et_splay): Likewise.
16534 * ra.h (ra_alloc, ra_calloc): Likewise
16535
16536 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
16537
16538 * config/frv/frv-protos.h: Fix comment formatting.
16539 * config/frv/frv.c: Likewise.
16540 * config/frv/frv.h: Likewise.
16541 * config/frv/frv.md: Likewise.
16542 * config/frv/frvbegin.c: Likewise.
16543 * config/frv/frvend.c: Likewise.
16544
16545 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
16546
16547 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
16548 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
16549 LINKER_DOES_NOT_WORK_WITH_DWARF2.
16550 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
16551
16552 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
16553
16554 PR 11864
16555 * postreload.c (reload_cse_simplify_operands): Don't remove
16556 implicit extension from LOAD_EXTEND_OP.
16557
16558 2004-01-16 Jan Hubicka <jh@suse.cz>
16559
16560 PR opt/11350
16561 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
16562 after reload.
16563 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
16564 rtl_try_redirect_by_replacing_branch): Likewise.
16565
16566 2004-01-15 Geoffrey Keating <geoffk@apple.com>
16567
16568 PR pch/13689
16569 * alias.c (struct alias_set_entry): Mark for GC.
16570 (alias_sets): Make static, mark for GC.
16571 (record_alias_subset): Use GC to allocate alias structures.
16572 * varray.c (element): Make generic varrays GCed.
16573
16574 PR pch/13361
16575 * c-typeck.c (constructor_asmspec): Delete.
16576 (struct initializer_stack): Delete field 'asmspec'.
16577 (start_init): Delete saving of asmspec.
16578 (finish_init): Don't update constructor_asmspec.
16579 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
16580 * stmt.c (expand_asm): Duplicate strings from tree.
16581 (expand_asm_operands): Likewise.
16582 * tree.c (tree_size): Update computation of size of STRING_CST.
16583 (make_node): Don't make STRING_CST nodes.
16584 (build_string): Allocate string with tree node.
16585 * tree.def (STRING_CST): Update comment.
16586 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
16587 (tree_string): Place contents of string in tree node.
16588 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
16589 from tree.
16590
16591 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
16592 altivec operands.
16593
16594 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
16595
16596 * c-common.h: Fix comment formatting.
16597 * c-cppbuiltin.c: Likewise.
16598 * c-pragma.c: Likewise.
16599 * calls.c: Likewise.
16600 * collect2.c: Likewise.
16601 * cppcharset.c: Likewise.
16602 * cpptrad.c: Likewise.
16603 * dbxout.c: Likewise.
16604 * defaults.h: Likewise.
16605 * dwarf2out.c: Likewise.
16606 * fold-const.c: Likewise.
16607 * genautomata.c: Likewise.
16608 * genconditions.c: Likewise.
16609 * genflags.c: Likewise.
16610 * gengtype.c: Likewise.
16611 * integrate.c: Likewise.
16612 * loop.c: Likewise.
16613 * predict.c: Likewise.
16614 * sdbout.c: Likewise.
16615
16616 2004-01-15 Zack Weinberg <zack@codesourcery.com>
16617
16618 * config/ia64/ia64.md (*movti_internal): C output template
16619 extracted to ia64.c.
16620 (*movti_internal_reg): Delete.
16621 (reload_inti, reload_outti): Use the correct mode on operand 2
16622 in the first place, don't fix it up in the output template.
16623 (movtf, reload_ointf, reload_outtf): New expanders.
16624 (*movtf_internal): New define_insn_and_split.
16625 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
16626 make static; do not hand TFmode CONST_DOUBLEs to split_double.
16627 (ia64_split_tmode_move): New function, body mostly pulled
16628 from ia64.md:*movti_internal.
16629 (ia64_function_arg_words): New function, extracted common
16630 logic from ia64_function_arg et seq.
16631 (ia64_function_arg_offset): Likewise. Handle correctly the
16632 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
16633 (ia64_function_arg, ia64_function_arg_partial_nregs)
16634 (ia64_function_arg_advance): Use ia64_function_arg_words and
16635 ia64_function_arg_offset.
16636 (ia64_function_value): TCmode does not go in float regs.
16637 (ia64_secondary_reload_class): Also handle TFmode.
16638 * config/ia64/ia64-protos.h: Remove prototype for
16639 ia64_split_timode; add prototype for ia64_split_tmode_move.
16640
16641 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
16642
16643 * Makefile.in (MAINT): Make it an immediate assignment.
16644
16645 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
16646
16647 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
16648
16649 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
16650
16651 * config/h8300/coff.h: Replace Hitachi with Renesas.
16652 * config/h8300/elf.h: Likewise.
16653 * config/h8300/h8300-protos.h: Likewise.
16654 * config/h8300/h8300.c: Likewise.
16655 * config/h8300/h8300.h: Likewise.
16656 * config/h8300/h8300.md: Likewise.
16657 * config/h8300/lib1funcs.asm: Likewise.
16658
16659 2004-01-15 Andrew Pinski <apinski@apple.com>
16660
16661 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
16662 around it.
16663
16664 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
16665
16666 * config/h8300/h8300.c (h8300_return_in_memory): New.
16667 (TARGET_STRUCT_VALUE_RTX): Likewise.
16668 (TARGET_RETURN_IN_MEMORY): Likewise.
16669 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
16670 (RETURN_IN_MEMORY): Likewise.
16671
16672 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
16673
16674 PR optimization/13375
16675 * gcse.c (handle_avail_expr): Just return if the source is not a
16676 single set.
16677
16678 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
16679 Daniel Jacobowitz <drow@mvista.com>
16680
16681 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
16682 (EQUIV): Define.
16683 (ARM_FUNC_ALIAS): New macro.
16684 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
16685 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
16686
16687 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16688
16689 PR optimization/12372
16690 * calls.c (expand_call): Add call_fusage data for stack arguments in
16691 constant calls.
16692
16693 2004-01-15 Alan Modra <amodra@bigpond.net.au>
16694
16695 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
16696 (rs6000_elf_declare_function_name): Formatting.
16697 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
16698
16699 2004-01-15 Jan Hubicka <jh@suse.cz>
16700
16701 PR bootstrap/13692
16702 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
16703 previous patch.
16704
16705 2004-01-15 Richard Henderson <rth@redhat.com>
16706
16707 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
16708 integer regs of the same call-savedness.
16709
16710 2004-01-15 Andreas Schwab <schwab@suse.de>
16711
16712 PR bootstrap/13562
16713 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
16714 status for NOTB/NOTW/NEGW methods.
16715
16716 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
16717
16718 * doc/invoke.texi: Update dump file names. Fix a typo.
16719
16720 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
16721
16722 * builtins.c (expand_builtin_va_end): Don't use
16723 EXPAND_BUILTIN_VA_END.
16724 * system.h (EXPAND_BUILTIN_VA_END): Poison.
16725 * config/d30v/d30v.h: Remove a commented-out definition of
16726 EXPAND_BUILTIN_VA_END.
16727 * config/stormy16/stormy16.h: Likewise.
16728
16729 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
16730
16731 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
16732 * targhooks.c (default_struct_value_rtx): Don't use
16733 STRUCT_VALUE_INCOMING_REGNUM.
16734
16735 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
16736
16737 PR bootstrap/12744
16738 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
16739 GENINSRC and not parsedir. Define srcextra as a langhook.
16740 * configure: Regenerate.
16741 * Makefile.in: Suppress default .l.c rule. Don't substitute
16742 parsedir and delete all references throughout. Conditionally define
16743 rule for srcextra dependent on GENINSRC.
16744 (stmp-docobjdir): Delete.
16745 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
16746 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
16747 and gengtype-yacc.h back to source directory.
16748 (maintainer-clean): Delete all parse files in source directory.
16749 (distclean): Delete generated files.
16750
16751 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
16752 (objc-parse.c, objc-parse.y): Don't use parsedir.
16753 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
16754 directory if requested.
16755 (po-generated): Don't use parsedir.
16756 (objc.maintainer-clean): Delete above files from source directory.
16757
16758 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16759
16760 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
16761
16762 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16763
16764 * doc/tm.texi: Replace RETURN_IN_MEMORY with
16765 TARGET_RETURN_IN_MEMORY.
16766
16767 2004-01-15 Jan Hubicka <jh@suse.cz>
16768
16769 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
16770 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
16771 functions accepting SSE arguments
16772 (function_arg): Warn only when asked to warn.
16773 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
16774
16775 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
16776
16777 * c-parse.in (stmts_and_decls): Make label at end of compound
16778 statement a hard error.
16779
16780 2004-01-14 Jan Hubicka <jh@suse.cz>
16781
16782 * cgraph.c (create_edge): Use local.redefined_extern_inline.
16783 * cgraph.h (cgraph_local_info): Sort fields by size; add
16784 redefined_extern_inline
16785 (cgraph_global_info): Sort fields by size.
16786 (cgraph_node): Likewise.
16787 * cgraphunit.c (cgraph_finalize_function): Se
16788 local.redefined_extern_inline on redefinition.
16789 (cgraph_analyze_function): Use it; fix formating.
16790
16791 2004-01-14 Jan Hubicka <jh@suse.cz>
16792
16793 PR c++/10776
16794 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
16795 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
16796 bitmaps
16797 (cache_size): New variable
16798 (add_dependence): Update use; canonize early memory locations
16799 (sched_analyze_1): Likewise.
16800 (sched_analyze_2): Likewise.
16801 (init_dependency_caches): Initialize bitmaps.
16802 (free_dependency_caches): Free bitmaps
16803
16804 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16805
16806 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
16807 targetm.calls.strict_argument_naming().
16808 * target.h: Likewise.
16809
16810 2004-01-14 Richard Henderson <rth@redhat.com>
16811
16812 PR debug/13231
16813 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
16814 instructions.
16815
16816 2004-01-14 Richard Henderson <rth@redhat.com>
16817
16818 PR c++/12491
16819 * except.c (struct eh_region): Add u.fixup.resolved.
16820 (resolve_one_fixup_region): Split out from ...
16821 (resolve_fixup_regions): ... here.
16822
16823 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16824
16825 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
16826
16827 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16828
16829 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
16830 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
16831 (STRUCT_VALUE): Remove.
16832
16833 2004-01-14 Steven Bosscher <stevenb@suse.de>
16834
16835 * system.h: Poison PROMOTED_MODE
16836 * integrate.c (expand_inline_function): Don't mention the
16837 PROMOTED_MODE.
16838 * loop.c (update_giv_derive): Same.
16839 * tree.h (DECL_RTL): Same.
16840
16841 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
16842
16843 PR target/9365
16844 * sh.c (gen_block_redirect): Add special handling of RETURN.
16845 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
16846 far branch target (i.e. it's a return).
16847
16848 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16849
16850 * regrename.c (find_oldest_value_reg): Fix a warning.
16851
16852 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
16853
16854 PR bootstrap/12527
16855 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
16856 Move linux-gas.h and linux-elf.h before aout.h.
16857 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
16858 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
16859
16860 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
16861
16862 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
16863 (CONST_INT, VOIDmode, ...).
16864
16865 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
16866
16867 * regrename.c (find_oldest_value_reg): If the replacement uses
16868 multiple hard registers, check that all of them are in CLASS.
16869
16870 2004-01-14 Jan Hubicka <jh@suse.cz>
16871
16872 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
16873 impossible.
16874
16875 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
16876
16877 * Makefile.in: Define MAINT from --enable-maintainer-mode.
16878
16879 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
16880
16881 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
16882 Calculate always vrsave_mask if TARGET_ALTIVEC.
16883 (rs6000_emit_prologue): Emit code for vrsave
16884 only if TARGET_ALTIVEC_VRSAVE.
16885 (rs6000_emit_epilogue): Likewise.
16886
16887 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
16888
16889 * config/sparc/sparc.md (tie_add32): Fix pasto.
16890 (tie_add64): Likewise.
16891
16892 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16893
16894 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
16895
16896 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
16897
16898 * config/iq2000/iq2000-protos.h: Fix comment formatting.
16899 * config/iq2000/iq2000.c: Likewise.
16900 * config/iq2000/iq2000.md: Likewise.
16901
16902 2004-01-14 J. Brobecker <brobecker@gnat.com>
16903
16904 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
16905 (subrange_type_die): Add handle for nameless subrange types.
16906
16907 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
16908
16909 * config/h8300/h8300-protos.h: Replace do_movsi with
16910 h8300_expand_movsi.
16911 * config/h8300/h8300.c (do_movsi): Change to
16912 h8300_expand_movsi.
16913 * config/h8300/h8300.md (movsi): Replace do_movsi with
16914 h8300_expand_movsi.
16915 (movsf): Likewise.
16916
16917 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
16918
16919 * config/h8300/h8300.c (dosize): Change to
16920 h8300_emit_stack_adjustment. Update callers.
16921
16922 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
16923
16924 * config/h8300/h8300.md (movstrictqi): Add an alternative with
16925 the source being post_inc. Tighten the predicate for the
16926 destination to register_operand.
16927 (movstricthi): Likewise.
16928
16929 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
16930
16931 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
16932 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
16933 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
16934
16935 2004-01-14 Jan Hubicka <jh@suse.cz>
16936
16937 Partial fix PR c++/12850
16938 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
16939 at zero nest level.
16940
16941 2004-01-13 Bernardo Innocenti <bernie@develer.com>
16942
16943 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
16944 pseudo-register.
16945
16946 2004-01-13 Devang Patel <dpatel@apple.com
16947
16948 PR debug/7078
16949 * dbxout.c (dbxout_symbol_name): Emit mangled names for
16950 NAMESPACE_DECL memebers.
16951
16952 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
16953
16954 PR c++/12709
16955 * c-common.c (finish_fname_decls): Use the chain only if the
16956 tree is an expr_stmt.
16957
16958 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
16959
16960 * rtl.def: Add comment about new option in automata_option.
16961
16962 * genautomata.c (PROGRESS_OPTION): New macro.
16963 (progress_flag): New global variable.
16964 (gen_automata_option): Process `progress'.
16965 (transform_insn_regexps, check_unit_distributions_to_automata,
16966 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
16967 expand_automata, write_automata): Print about the progress only if
16968 progress_flag. Remove fflush.
16969 (initiate_automaton_gen): Process command line flag `-progress'.
16970
16971 * doc/md.texi: Describe the new option.
16972
16973 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16974
16975 * cfg.c (dump_bb): Dump entry edges.
16976
16977 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
16978
16979 * arm.c (thumb_legitimate_address_p): Only allow constant pool
16980 references from SImode.
16981 * arm.md (thumb_movhi_insn): Don't allow minipool references.
16982
16983 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
16984
16985 * system.h (TEXT_SECTION): Poison.
16986 * varasm.c (text_section): Don't use TEXT_SECTION.
16987 * config/sh/sh.c (sh_file_start): Fix a comment typo.
16988 * doc/tm.texi (TEXT_SECTION): Remove.
16989
16990 2004-01-13 Ben Elliston <bje@wasabisystems.com>
16991
16992 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
16993
16994 2004-01-12 James E Wilson <wilson@specifixinc.com>
16995
16996 * unwind-libunwind.c: Delete.
16997
16998 2004-01-12 Zack Weinberg <zack@codesourcery.com>
16999
17000 PR 13656
17001 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
17002 oldtype is set, set *newtypep or *oldtypep too. Do not set
17003 them at the very end.
17004 (validate_proto_after_old_defn): Restructure for comprehensibility;
17005 make error messages clearer.
17006
17007 2004-01-12 Zack Weinberg <zack@codesourcery.com>
17008
17009 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
17010 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
17011 * varray.c: No need to prototype error.
17012 (varray_check_failed): Wrap long string onto two lines.
17013 (varray_underflow): New function.
17014
17015 2004-01-13 Steven Bosscher <stevenb@suse.de>
17016
17017 PR c++/13376
17018 * function.h (struct function): Kill `name' field.
17019 (current_function_name): Make it an extern function.
17020 * function.c (current_function_name): New function.
17021 * graph.c: Update all uses of current_function_name.
17022 * gcse.c: Likewise.
17023 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
17024 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
17025 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
17026 instead of a strcmp with "main".
17027
17028 2004-01-13 Jan Hubicka <jh@suse.cz>
17029
17030 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
17031
17032 * cgraphunit.c (cgraph_optimize_function): Always do
17033 optimize_inline_calls when there is always_inline callee.
17034 (cgraph_decide_inlining): Fix formating.
17035 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
17036 functions.
17037 (expand_call_inline): Likewise.
17038 * toplev.h (sorry): Fix prototype.
17039
17040 2004-01-12 Roger Sayle <roger@eyesopen.com>
17041
17042 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
17043 conditional jumps that drop through to unconditional jumps or the
17044 end of the sequence.
17045
17046 2004-01-13 Jan Hubicka <jh@suse.cz>
17047
17048 * alias.c (new_alias_set): Construct the alias_set varray.
17049 (init_alias_once): Don't do it here.
17050
17051 2004-01-12 Marc Espie <espie@openbsd.org>
17052
17053 * system.h: handle YYBYACC like YYBISON.
17054
17055 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
17056
17057 PR target/10847
17058 * config.gcc: No longer includes conflicting header sparc/sol2.h when
17059 building on sparc64-*-openbsd*.
17060
17061 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
17062
17063 PR debug/13539
17064 * dbxout.c (dbxout_type): Protected inheritance is not
17065 private but protected.
17066
17067 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
17068
17069 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
17070
17071 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
17072
17073 PR optimization/12508.
17074 * combine.c (try_combine): Remove a dead set in a parallel
17075 even if its destination is a subreg.
17076
17077 Revert:
17078 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
17079 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
17080 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
17081
17082 2004-01-12 Geoffrey Keating <geoffk@apple.com>
17083
17084 * real.c: Update copyright date.
17085 * emit-rtl.c: Likewise.
17086 * rtl.h: Likewise.
17087 * dwarf2out.c: Likewise.
17088 * config/rs6000/darwin-ldouble.c: Likewise.
17089 * config/rs6000/rs6000.md: Likewise.
17090
17091 2004-01-12 David Edelsohn <edelsohn@gnu.org>
17092
17093 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
17094 TFmode to SImode libfuncs.
17095
17096 2004-01-12 Roger Sayle <roger@eyesopen.com>
17097
17098 PR middle-end/11397
17099 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
17100
17101 2004-01-12 Jan Hubicka <jh@suse.cz>
17102
17103 PR opt/12826
17104 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
17105 stored.
17106
17107 PR opt/12863
17108 * cfgcleanup.c (label_is_jump_target_p): Move to...
17109 * rtlanal.c (label_is_jump_target_p): ... here.
17110 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
17111 edges unified with branch edges.
17112
17113 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
17114
17115 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
17116 high word of an integral CONST_DOUBLE.
17117
17118 2004-01-12 Paul Brook <paul@codesourcery.com>
17119
17120 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
17121
17122 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
17123
17124 PR target/13585
17125 * sh-protos.h (check_use_sfunc_addr): Declare.
17126 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
17127 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
17128
17129 2004-01-12 Jan Hubicka <jh@suse.cz>
17130
17131 * alias.c: Invlude varray.h
17132 (alias_sets): Turn into varray.
17133 (get_alias_set_entry): Use VARRAY; mark inline.
17134 (mems_in_disjoint_alias_sets_p): Mark inline.
17135 (record_alias_subset): Use varray.
17136 (init_alias_once): Initialize varray.
17137 (new_alias_set): Grow array.
17138 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
17139
17140 2004-01-12 Jan Hubicka <jh@suse.cz>
17141
17142 Partial fix for PR opt/10776 II
17143 * cselib.c: Include params.h
17144 (cselib_invalidate_mem): Limit amount of nonconflicting memory
17145 locations.
17146 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
17147 * Makefile.in (cselib.o): Depend on params.h
17148
17149 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
17150
17151 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
17152 simplify_unary_operation if the operand has a known mode.
17153
17154 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
17155
17156 PR target/13534
17157 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
17158 predicate to handle 'ld' conform addresses.
17159 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
17160 contraint.
17161 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
17162 are memory contraints.
17163 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
17164 New prototype.
17165 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
17166 Change 'o' to 'Y' constraint.
17167 (*movdf_softfloat64): Ditto.
17168
17169 2004-01-12 Bernardo Innocenti <bernie@develer.com>
17170
17171 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
17172 brace-enclosed syntax in all C output statements.
17173
17174 2004-01-12 David Edelsohn <edelsohn@gnu.org>
17175
17176 PR target/13401
17177 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
17178 Objective-C language type value is 14.
17179
17180 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
17181
17182 PR c/12148
17183 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
17184 `int' in a number of places to make sure we always have a SImode
17185 and not a HImode. Add a 'L' suffix to a number of constants.
17186
17187 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17188
17189 * pa.c: Don't include obstack.h.
17190
17191 * pa.md: Correct constraint in pattern for loading PIC label address.
17192
17193 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
17194
17195 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
17196 before defining.
17197
17198 2004-01-11 Steven Bosscher <stevenb@suse.de>
17199
17200 PR fortran/9972
17201 * toplev.c (rest_of_handle_inline): Also consider functions
17202 for deferral if the language is GNU F77.
17203
17204 2004-01-11 Zack Weinberg <zack@codesourcery.com>
17205
17206 * c-decl.c (diagnose_arglist_conflict): Add missing space to
17207 diagnostic messages.
17208
17209 2004-01-11 Jakub Jelinek <jakub@redhat.com>
17210
17211 PR middle-end/13392
17212 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
17213 to drop through label. Don't fall back to SCC even when conditional
17214 jump has not been found.
17215
17216 2004-01-11 Jan Hubicka <jh@suse.cz>
17217
17218 * invoke.texi: Fix syntax error in previous patch.
17219
17220 Partial fix for PR opt/10776
17221 * Makefile.in (reload.o): Include param.h
17222 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
17223 * reload.c: Include params.h.
17224 (find_equiv_reg): Work limiting check.
17225 * invoke.texi: Document.
17226
17227 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
17228
17229 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
17230 out-of-bounds accesses to string constants. Simplify mips16
17231 case accordingly.
17232
17233 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
17234
17235 PR optimization/13469
17236 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
17237 reload_cse_regs (-fnon-call-exceptions only).
17238
17239 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
17240
17241 * config/mcore/lib1.asm: Fix comment formatting.
17242 * config/mcore/mcore-elf.h: Likewise.
17243 * config/mcore/mcore.c: Likewise.
17244 * config/mcore/mcore.h: Likewise.
17245 * config/mcore/mcore.md: Likewise.
17246
17247 2004-01-10 Zack Weinberg <zack@codesourcery.com>
17248
17249 * c-decl.c (duplicate_decls): Break apart into...
17250 (diagnose_arglist_conflict, validate_proto_after_old_defn)
17251 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
17252 ... these new functions. Restructure for comprehensibility.
17253 Remove various archaic special cases. Always report the
17254 location of the previous declaration when a diagnostic is issued.
17255 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
17256 (match_builtin_function_types): Delete unnecessary forward declaration.
17257
17258 2004-01-10 Zack Weinberg <zack@codesourcery.com>
17259
17260 * genautomata.c (make_automaton, NDFA_to_DFA):
17261 Print progress bars with '.' characters instead of '*'.
17262 (build_automaton): Change notes to match.
17263
17264 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
17265
17266 * config/m32r/m32r.md: Use define_constants for unspec and
17267 unspec_volatile.
17268
17269 2004-01-10 Jan Hubicka <jh@suse.cz>
17270
17271 PR opt/11635
17272 * expr.c (expand_expr_real): More curefully expand union casts.
17273
17274 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
17275
17276 * config/m32r/m32r.md (flush_icache): Use 1 for
17277 unspec_volatile.
17278
17279 2004-01-10 David Edelsohn <edelsohn@gnu.org>
17280 James E Wilson <wilson@specifixinc.com>
17281
17282 PR debug/12860
17283 * dbxout.c (dbxout_symbol): Remove initialization of
17284 current_sym_code, current_sym_value, and current_sym_addr.
17285 (dbxout_symbol_location): Same.
17286 (dbxout_prepare_symbol): Zero current_sym_code,
17287 current_sym_value, and current_sym_addr.
17288
17289 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
17290
17291 * tree.c (get_unwidened): Reorder conditions so that the null pointer
17292 check is done first.
17293
17294 2004-01-09 Eric Christopher <echristo@redhat.com>
17295
17296 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
17297 if we're running mark_constant_function.
17298
17299 2004-01-09 Jeff Bailey <jbailey@nisa.net>
17300
17301 PR target/12561
17302 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
17303
17304 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
17305
17306 PR debug/11231
17307 * dbxout.c (dbxout_type_fields): Return if any item is
17308 error_mark_node or the type is error_mark_node.
17309
17310 2004-01-09 Geoffrey Keating <geoffk@apple.com>
17311
17312 * config/rs6000/darwin-ldouble.c: Add big comment explaining
17313 exactly what is expected as a 'long double'.
17314 (_xlqadd): When a value to be returned is representable as a
17315 'double', just return it directly, do not construct it using a union.
17316 Also, correct final fixup.
17317 (_xlqmul): Likewise.
17318 (_xlqdiv): Likewise.
17319 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
17320
17321 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
17322
17323 2004-01-09 Richard Henderson <rth@redhat.com>
17324
17325 * recog.c (constrain_operands): Validate mem operands.
17326
17327 2004-01-09 James E Wilson <wilson@specifixinc.com>
17328
17329 * gcc.c (init_spec): Remove -lunwind from shared case.
17330 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
17331
17332 2004-01-09 Steve Ellcey <sje@cup.hp.com>
17333
17334 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
17335 * configure: Regenerate
17336
17337 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
17338
17339 PR c/11234
17340 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
17341 between function and object pointers.
17342 (digest_init): When comparing a pointer to function type to the
17343 target type, only apply TREE_TYPE once to the pointer to function
17344 type.
17345 * except.c (for_each_eh_label_1): Treat data as a pointer to a
17346 function pointer rather than casting it to a function pointer.
17347 (for_each_eh_label): Update caller.
17348 * recog.h (struct insn_data): Use a struct or union for output.
17349 * genoutput.c (output_insn_data): Update.
17350 * final.c (get_insn_template): Update.
17351
17352 2004-01-09 Mark Mitchell <mark@codesourcery.com>
17353
17354 * expr.h (expand_expr): Make it a macro, not a function.
17355 (expand_expr_real): New function.
17356 * expr.c (store_expr): Adjust logic for deciding whether or not to
17357 copy the value returned by expand_expr.
17358 (expand_expr): Rename to ...
17359 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
17360 calls to language hooks.
17361 * c-common.h (c_expand_expr): Adjust prototype.
17362 * c-common.c (c_expand_expr): Add alt_rtl parameter.
17363 * langhooks-def.h (lhd_expand_expr): Change prototype.
17364 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
17365 * langhooks.h (lang_hooks): Change type of expand_expr.
17366 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
17367 (last_expr_alt_rtl): Likewise.
17368 (expand_expr_stmt_value): Set last_expr_alt_rtl.
17369 (clear_last_expr): Clear it.
17370 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
17371 (expand_end_bindings): Save and restor last_expr_alt_rtl.
17372 * tree.def (RTL_EXPR): Give it an additional operand.
17373 * tree.h (RTL_EXPR_ALT_RTL): New macro.
17374
17375 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
17376
17377 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
17378 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
17379
17380 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
17381
17382 PR target/13380.
17383 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
17384 or (ne:SI (reg:CC 17) (const_int 0)).
17385 Be specific about modes wherever possible.
17386
17387 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
17388
17389 * config/m32r/m32r.c (m32r_expand_block_move): Call
17390 gen_movestrsi_internal with two more arguments.
17391 (m32r_output_block_move): Adjust operand numbers.
17392 Properly update the source and destination pointers.
17393 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
17394 'r+'. Change the set detinations to match_operand.
17395
17396 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
17397
17398 * final.c (FIRST_INSN_ADDRESS): Remove.
17399 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
17400 * system.h (FIRST_INSN_ADDRESS): Poison.
17401 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
17402 * config/m32r/m32r-protos.h: Remove the prototype for
17403 m32r_first_insn_address.
17404 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
17405 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
17406 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
17407
17408 2004-01-09 J. Brobecker <brobecker@gnat.com>
17409
17410 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
17411 we just created.
17412 (is_ada_subrange_type): DIEs for enumeration subtypes should be
17413 emitted as subrange types too.
17414 (subrange_type_die): Add handling of enumeration subtypes.
17415
17416 2004-01-08 Richard Henderson <rth@redhat.com>
17417
17418 PR opt/12441
17419 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
17420 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
17421 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
17422 (ix86_address_cost): Be prepared for SUBREGed registers.
17423 (legitimate_address_p): Accept SUBREGed registers.
17424
17425 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
17426
17427 * Makefile.in: Rename configure.in to configure.ac
17428 * doc/sourcebuild.texi: Likewise.
17429 * configure: Regenerate.
17430 * config.in: Regenerate.
17431
17432 2004-01-08 Stuart Hastings <stuart@apple.com>
17433
17434 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
17435
17436 2004-01-08 Jan Hubicka <jh@suse.cz>
17437
17438 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
17439
17440 2004-01-08 Geoffrey Keating <geoffk@apple.com>
17441
17442 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
17443 (UNSPEC_FIX_TRUNC_TF): New constant.
17444 (movtf_internal): Make splitter active only when insn is active.
17445 (extenddftf2): Rewrite to properly load zero into low part.
17446 (extenddftf2_internal): New.
17447 (extendsftf2): Rewrite.
17448 (truncdftf2): Correct length.
17449 (floatditf2): Delete.
17450 (fix_trunc_helper): New.
17451 (fix_trunctfdi2): Use fix_trunc_helper.
17452 (fix_trunctfsi2): Likewise.fix_trunc
17453 (fix_trunctfsi2_internal): New.
17454
17455 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
17456 addresses are legitimate on Darwin even when flag_pic.
17457 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
17458 non-offsettable addresses for loads of TFmode constants.
17459
17460 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
17461
17462 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
17463 variables in the appropriate bss section.
17464
17465 2004-01-09 Alan Modra <amodra@bigpond.net.au>
17466
17467 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
17468 target_flags has MASK_POWERPC64 when -m64.
17469 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
17470 to 620, 630, power3, power4 and rs64a entries.
17471 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
17472
17473 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
17474
17475 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
17476 floating-point constants.
17477
17478 2004-01-08 J. Brobecker <brobecker@gnat.com>
17479
17480 * dwarf2out.c (subrange_type_die): Add context_die parameter.
17481 Create the subrange_type DIE using the given context DIE.
17482 (modified_type_die): Update call to subrange_type_die.
17483
17484 2004-01-08 Zack Weinberg <zack@codesourcery.com>
17485
17486 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
17487 Add multiple-include guard.
17488
17489 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
17490
17491 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
17492 all vector constant loadable by vsplt*.
17493 (output_vec_const_move): Likewise.
17494
17495 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
17496
17497 PR c/6024
17498 * c-typeck.c (comptypes): Only treat enumerated types in the same
17499 translation unit as compatible with each other when they are the
17500 same type.
17501 * doc/extend.texi: Update.
17502
17503 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
17504
17505 PR c/12165
17506 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
17507 array type from the array element type.
17508
17509 2004-01-07 Alan Modra <amodra@bigpond.net.au>
17510
17511 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
17512 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
17513 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
17514 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
17515 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
17516
17517 2004-01-06 Eric Christopher <echristo@redhat.com>
17518
17519 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
17520 (DWARF2_DEBUGGING_INFO): Define.
17521 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
17522 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
17523 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
17524 for irix as.
17525 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
17526 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
17527 * config/mips/iris5gas.h: Ditto.
17528 (DBX_DEBUGGING_INFO): Remove.
17529 (DWARF2_DEBUGGING_INFO): Ditto.
17530 (MIPS_DEBUGGING_INFO): Ditto.
17531 (PREFERRED_DEBUGGING_TYPE): Ditto.
17532 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
17533 (PREFERRED_DEBUGGING_TYPE): Ditto.
17534 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
17535 * config/mips/elf64.h: Ditto.
17536
17537 2004-01-06 Jan Hubicka <jh@suse.cz>
17538
17539 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
17540 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
17541
17542 2004-01-06 Geoffrey Keating <geoffk@apple.com>
17543
17544 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
17545 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
17546 * config/rs6000/darwin-ldouble.c: New.
17547
17548 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
17549 for constants.
17550 (constant_subword): Delete.
17551 * rtl.h (constant_subword): Delete prototype.
17552 (immed_double_const): Is not in varasm.c.
17553 * simplify-rtx.c (simplify_immed_subreg): New.
17554 (simplify_subreg): Use simplify_immed_subreg.
17555
17556 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
17557 than trying to generate RTL directly.
17558 (fix_trunctfsi2): Use expand_fix rather than trying to generate
17559 RTL directly.
17560
17561 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
17562
17563 2004-01-06 David Edelsohn <edelsohn@gnu.org>
17564
17565 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
17566 function into a separate macro.
17567 (read_only_data_section): Add void argument.
17568 (private_data_section): Same.
17569 (read_only_private_data_section): Same.
17570 (toc_section): Same.
17571
17572 2004-01-06 Jan Hubicka <jh@suse.cz>
17573
17574 * invoke.texi: Remove typo in last change.
17575
17576 PR target/10301
17577 * config.gcc: Accept opteron and athlon-64 as variants
17578 of k8.
17579 * i386.c (override_options): Likewise.
17580 * invoke.texi (i386 -mtune): Expand documentation.
17581
17582 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
17583
17584 * alias.c: Fix comment typos.
17585 * builtins.c: Likewise.
17586 * cfg.c: Likewise.
17587 * df.c: Likewise.
17588 * dominance.c: Likewise.
17589 * dwarf2out.c: Likewise.
17590 * emit-rtl.c: Likewise.
17591 * expr.c: Likewise.
17592 * final.c: Likewise.
17593 * fold-const.c: Likewise.
17594 * gcse.c: Likewise.
17595 * genattrtab.c: Likewise.
17596 * genrecog.c: Likewise.
17597 * gensupport.c: Likewise.
17598 * ggc-zone.c: Likewise.
17599 * integrate.c: Likewise.
17600 * local-alloc.c: Likewise.
17601 * loop.c: Likewise.
17602 * recog.c: Likewise.
17603 * regmove.c: Likewise.
17604 * reg-stack.c: Likewise.
17605 * reorg.c: Likewise.
17606 * rtlanal.c: Likewise.
17607 * rtl.h: Likewise.
17608 * sched-ebb.c: Likewise.
17609 * simplify-rtx.c: Likewise.
17610 * toplev.c: Likewise.
17611 * varasm.c: Likewise.
17612
17613 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
17614
17615 * doc/install.texi: Fix typos.
17616 * doc/invoke.texi: Likewise.
17617 * doc/md.texi: Likewise.
17618
17619 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
17620
17621 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
17622
17623 2004-01-06 Jan Hubicka <jh@suse.cz>
17624
17625 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
17626 (function_arg_advance): Do not pass aggregates in SSE; deal handling
17627 of MMX_REGPARM.
17628 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
17629 add MMX_REGPARM.
17630 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
17631 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
17632 (MMX_REGPARM_MAX): Similarly for -mmmx.
17633
17634 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
17635
17636 * config/sh/linux.h: Fix comment formatting.
17637 * config/sh/netbsd-elf.h: Likewise.
17638 * config/sh/sh.c: Likewise.
17639 * config/sh/sh.h: Likewise.
17640 * config/sh/vxworks.h: Likewise.
17641
17642 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
17643
17644 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
17645 * toplev.c (output_file_directive): Don't use
17646 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
17647
17648 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
17649
17650 * toplev.c: Fix broken checkin of 2003-12-30.
17651
17652 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
17653
17654 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
17655 (USING_MMAP): We don't support non-mmap.
17656 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
17657 large objects.
17658 (struct page_entry): Remove bytes_free.
17659 (struct page_table_chain): Remove.
17660 (struct globals): Remove page_table member.
17661 (loookup_page_table_entry): Function deleted.
17662 (set_page_table_entry): Ditto.
17663 (ggc_allocated_p): No longer need page table lookups.
17664 (ggc_marked_p): Ditto.
17665 (alloc_small_page): Don't care about bytes_free anymore.
17666 (alloc_large_page): Round up size.
17667 (ggc_alloc_zone_1): Mark large objects as such, and calculate
17668 their size the new way.
17669 Remove page table lookups and setting.
17670 (ggc_get_size): Calculate large object size the new way.
17671 (sweep_pages): Redo to account for fact that we no longer have
17672 bytes_free.
17673 (ggc_collect): No longer need to reincrement bytes_free.
17674 (ggc_pch_alloc_object): Handle new large objects properly.
17675 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
17676
17677 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
17678
17679 * doc/invoke.texi: Remove a page break.
17680
17681 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
17682
17683 * config/avr/avr.c (avr_output_function_prologue): Remove an
17684 extra pair of curly braces.
17685
17686 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
17687
17688 * config/mn10300/mn10300.c: Fix comment formatting.
17689 * config/mn10300/mn10300.h: Likewise.
17690
17691 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17692
17693 * tree.h: Update documentation on nothrow_flag.
17694 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
17695 types.
17696
17697 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
17698
17699 * doc/invoke.texi: Remove traces of dead ports.
17700
17701 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
17702
17703 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
17704 option.
17705
17706 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
17707
17708 PR target/12945
17709 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
17710 counter labels.
17711 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
17712 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
17713 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
17714 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
17715 (mips_symbol_insns): Don't trust the local/global classification.
17716 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
17717 (override_options): Make -mabicalls -fno-unit-at-a-time imply
17718 -mno-explicit-relocs.
17719 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
17720 between local and global symbols.
17721
17722 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
17723
17724 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
17725 (mips_preferred_reload_class): Declare.
17726 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
17727 (EXTRA_CONSTRAINT): Update accordingly.
17728 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
17729 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
17730 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
17731 mips_dangerous_for_la25_p.
17732 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
17733 if mips_dangerous_for_la25_p.
17734
17735 2004-01-05 Bernardo Innocenti <bernie@develer.com>
17736
17737 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
17738 warning.
17739
17740 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
17741
17742 * configure.ac: Use AC_PROG_CPP_WERROR.
17743 * configure: Regenerate.
17744
17745 2004-01-04 Zack Weinberg <zack@codesourcery.com>
17746
17747 * .cvsignore: Add autom4te.cache.
17748
17749 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
17750
17751 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
17752 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
17753 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
17754 then architecture options, then ABI options. General rewording.
17755
17756 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
17757
17758 PR c/3414
17759 * doc/extend.texi: Clarify definition of malloc attribute.
17760
17761 2004-01-04 Jan Hubicka <jh@suse.cz>
17762
17763 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
17764 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
17765 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
17766 (cgraph_inline_p): Add extra argument reason.
17767 * cgraphunit.c: Minor formating fixes.
17768 cgraph_first_inlined_callee): New functions.
17769 (record_call_1): Record builtins too.
17770 (cgraph_analyze_function): Update inline_failed messages.
17771 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
17772 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
17773 (cgraph_check_inline_limits): Likewise; Add argument reason.
17774 (cgraph_set_inline_failed): New static function.
17775 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
17776 reasons.
17777 (cgraph_inline_p): Add new argument reason.
17778 * tree-inline.c (expand_call_inline): Update warning.
17779
17780 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
17781
17782 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
17783 with modern equivalents.
17784 * configure: Regenerate.
17785
17786 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
17787 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
17788 * configure: Regenerate.
17789
17790 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
17791
17792 * configure.in: Rename to configure.ac.
17793 * configure.ac: Renamed from configure.in; make minimum necessary
17794 changes for autoconf 2.5x.
17795 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
17796 * configure: Regenerate with autoconf 2.57.
17797
17798 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
17799
17800 * config/mips/linux.h: Fix comment formatting.
17801 * config/mips/mips.c: Likewise.
17802 * config/mips/mips.h: Likewise.
17803 * config/mips/mips.md: Likewise.
17804 * config/mips/netbsd.h: Likewise.
17805 * config/mips/windiss.h: Likewise.
17806
17807 2004-01-02 Richard Henderson <rth@redhat.com>
17808
17809 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
17810 for sse and 387; add suppression for mmx.
17811
17812 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
17813
17814 * loop.c (loop_optimize): Free all loops_info's mems.
17815
17816 * c-typeck.c (finish_init): Free spelling_base before
17817 setting it again.
17818
17819 * cfgloop.c (flow_loops_find): Always free the sbitmap
17820 headers.
17821
17822 * predict.c (estimate_probability): Free bbs after being
17823 done with it.
17824
17825 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
17826
17827 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
17828 const_8bit_operand and call_address_operand.
17829
17830 2004-01-02 Jan Hubicka <jh@suse.cz>
17831
17832 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
17833 when there is nothing to inline but warnings are requested.
17834 (cgraph_decide_inlining): Fix memory leak.
17835
17836 2004-01-02 Jan Hubicka <jh@suse.cz>
17837
17838 * expr.c (store_constructor): Fix pasto in previous patch.
17839
17840 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
17841
17842 * config/i386/cygming.h: Fix comment formatting.
17843 * config/i386/djgpp.h: Likewise.
17844 * config/i386/gthr-win32.c: Likewise.
17845 * config/i386/i386-interix.h: Likewise.
17846 * config/i386/i386.c: Likewise.
17847 * config/i386/i386.h: Likewise.
17848 * config/i386/openbsd.h: Likewise.
17849 * config/i386/winnt.c: Likewise.
17850 * config/i386/xm-mingw32.h: Likewise.
17851
17852 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
17853
17854 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
17855 copyright and last modification dates.
17856
17857 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
17858
17859 * doc/install.texi (Specific): Mention x86_64.
17860
17861 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
17862
17863 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
17864 Call force_operand on plus_constant result.
17865
17866 2004-01-01 Jan Hubicka <jh@suse.cz>
17867
17868 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
17869 * expr.c (store_constructor): Use vec_init pattern.
17870 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
17871 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
17872 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
17873 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
17874 New patterns.
17875 (sse2_unpc?pd): Fix pattern.
17876 (sse2_movlpd): Kill.
17877 (sse2_movsd): Deal with movlpd too.
17878 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
17879 (ix86_expand_vector_init): New.
17880 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
17881 * md.texi (vec_set, vec_extract): Document
17882
17883 2003-12-31 Jan Hubicka <jh@suse.cz>
17884
17885 PR opt/13473
17886 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
17887 ASM input operands
17888
17889 PR opt/12617
17890 * toplev.c (dump_file_index): Reorder ce3 and bbro.
17891 (dump_file): Likewise.
17892 (rest_of_compilation): Likewise.
17893
17894 PR debug/13367
17895 * cgraph.c (cgraph_function_possibly_inlined): Even with
17896 flag_really_no_inline we inline always_inline functions.
17897 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
17898 for non-always_inline functions when there is flag_really_no_inline.
17899 (cgraph_decide_inlining): Limit work done when not inlining.
17900 (cgraph_decide_inlining_incrementally): Likewise.
17901 (cgraph_optimize_function): Check whether something got inlined.
17902 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
17903 extern inline functions when not inlining.
17904
17905 * opts.c (decode_options): Disable crossjumping at -O1
17906 * invoke.texi (-O1): Document change.
17907
17908 See ChangeLog.10 for earlier changes.