OSDN Git Service

* reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
2
3         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
4         is only used as frame pointer when frame_pointer_needed is true.
5
6 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
7
8         PR target/817
9         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
10         for the fact that the pool entry uses two words.
11         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
12         1k bytes.
13         (movdf_soft_insn): Similarly.
14         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
15         for the fact that the pool entry uses three words.
16
17 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
18
19         * config/mips/mips.c (mips_va_arg): When using the struct version
20         of the EABI va_list, allow arguments in the register save area to
21         take up less room than a stack argument.
22
23 2002-04-10  Richard Henderson  <rth@redhat.com>
24
25         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
26         if EXPAND_INITIALIZER.
27
28 2002-04-09  Richard Henderson  <rth@redhat.com>
29
30         * config/alpha/alpha.md (movdi_er_maybe_g): New.
31         * config/alpha/alpha.c (alpha_expand_mov): Use it.
32
33 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
34
35         PR optimization/6233
36         * rtlanal.c (pure_call_p): New function.
37         * rtl.h (pure_call_p): Declare.
38         * loop.c (prescan_loop): Use it to set has_nonconst_call.
39         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
40
41 2002-04-09  Eric Christopher  <echristo@redhat.com>
42
43         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
44         information to .comm directive.
45
46 2002-04-09  Richard Henderson  <rth@redhat.com>
47
48         PR c/5078
49         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
50
51 2002-04-09  Richard Henderson  <rth@redhat.com>
52
53         * basic-block.h (flow_delete_block_noexpunge): Declare.
54         (expunge_block_nocompact): Declare.
55         * cfg.c (expunge_block_nocompact): Split out from ...
56         (expunge_block): ... here.
57         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
58         (flow_delete_block_noexpunge): Split out from ...
59         (flow_delete_block): ... here.
60         * cfgcleanup.c (delete_unreachable_blocks): Compact while
61         removing dead blocks.
62         * except.c (exception_handler_labels): Remove.
63         (exception_handler_label_map): New.
64         (struct eh_region): Add aka member.
65         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
66         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
67         (for_each_eh_label, for_each_eh_label_1): New.
68         (init_eh): Register exception_handler_label_map.
69         (free_eh_status): Use free_region.
70         (find_exception_handler_labels): Use the map, not the list.
71         (remove_exception_handler_label): Likewise.
72         (maybe_remove_eh_handler): Likewise.
73         (remove_eh_handler): Use the region aka bitmap.
74         * except.h (exception_handler_labels): Remove.
75         (for_each_eh_label): Declare.
76         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
77         * loop.c (invalidate_loops_containing_label): New.
78         (find_and_verify_loops): Use it.  Use for_each_eh_label.
79         * sched-rgn.c (is_cfg_nonregular): Use
80         current_function_has_exception_handlers.
81
82 2002-04-09  Richard Henderson  <rth@redhat.com>
83
84         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
85         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
86         Do not return changed status.
87         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
88         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
89         New functions that do return changed status.
90         * sbitmap.h: Update decls.
91         * gcse.c, lcm.c: Use _cg functions as needed.
92
93 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
94
95         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
96         (sh64-*-elf*, sh-*-rtemself*): Likewise.
97         * config/sh/embed_bb.c: New file.
98         * config/sh/embed-elf.h: New file.
99         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
100         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
101         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
102         __PTRDIFF_TYPE__ .
103         (SUBTARGET_CPP_PTR_SPEC): Don't define.
104         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
105         Add subtarget_asm_endian_spec.
106         (ASM_SPEC): Use subtarget_asm_endian_spec.
107         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
108         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
109         (WCHAR_UNSIGNED): Define.
110         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
111         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
112         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
113         Fix value.
114         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
115         (sh_adjust_cost): Likewise.
116         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
117         __PTRDIFF_TYPE__ .
118         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
119         (WCHAR_TYPE_SIZE): Likewise.
120         (ASM_SPEC): Use subtarget_asm_endian_spec.
121         (SH_ELF_WCHAR_TYPE): #undef/ #define.
122         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
123         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
124         (MAX_WCHAR_TYPE_SIZE): Don't #define .
125         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
126         (USER_LABEL_PREFIX): Don't #undef /#define .
127         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
128         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
129         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
130         (ASM_SPEC): Likewise.
131         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
132         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
133         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
134         (LIB2FUNCS_EXTRA): Define.
135         * t-sh64 (LIB2FUNCS_EXTRA): Define.
136         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
137         (LIB1ASMFUNCS_CACHE): Define.
138         (LIB2FUNCS_EXTRA): Redefine empty.
139
140 2002-04-08  Richard Henderson  <rth@redhat.com>
141
142         * reorg.c (get_branch_condition): Use reversed_comparison_code.
143
144 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
145
146         * config/m68hc11/larith.asm (__map_data_section): Fix condition
147         and optimize for size.
148         (__do_global_ctors): Fix pointer comparison.
149         (__do_global_dtors): Likewise.
150
151 2002-04-09  David S. Miller  <davem@redhat.com>
152
153         * config/sparc/sparc.c (sparc_extra_constraint_check): New
154         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
155         allow reloading pseudos.
156         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
157         * config/sparc/sparc-protos.h: Declare it.
158
159         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
160         unsigned comparison warning.
161         (output_restore_regs): Mark leaf_function as unused.
162
163 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
164
165         * expr.c (is_aligning_offset): New function.
166         (expand_expr, case COMPONENT_EXPR): Call it.
167
168 2002-04-08  David S. Miller  <davem@redhat.com>
169
170         PR target/6082
171         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
172
173         Make init_priority work on Sparc when using GNU ld.
174         * config/sparc/linux.h, config/sparc/linux64.h,
175         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
176         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
177         * config/sparc/sol2-gld.h: New file to do the same.
178         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
179         sparc/sol2-gld.h to tm_file.
180
181         PR optimization/4328
182         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
183         * doc/md.texi: Document it.
184         * config/sparc/sparc.md (movdi_insn_sp64_novis,
185         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
186         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
187         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
188         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
189
190 2002-04-08  Andreas Jaeger  <aj@suse.de>
191
192         * stmt.c (expand_asm_operands): Revert last patch from Richard
193         Henderson.
194
195 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
196
197         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
198         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
199
200 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
201
202         * doc/contrib.texi (Contributors): Add David O'Brien.
203
204 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
205
206         * configure.in (auto-build.h): Use target_alias and build_alias
207         when running configure.
208         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
209         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
210         * configure: Regenerate.
211
212 2002-04-07  David S. Miller  <davem@redhat.com>
213
214         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
215
216 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
217
218         PR 5933
219         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
220         generating 32-bit pic code.
221
222 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
223
224         * cppinit.c (cpp_create_reader): Initialize
225         discard_comments_in_macro_exp.
226         (COMMAND_LINE_OPTIONS): Add "-CC" option.
227         (cpp_handle_option): Handle "-CC" option.
228         * cpplex.c (save_comment): If saving a C++ comment in
229         a directive, convert it to a C comment.
230         (_cpp_lex_direct): Pass second comment start character to
231         save_comment to indicate comment type.
232         * cpplib.c (_cpp_handle_directive): If processing
233         a "#define" directive and discard_comments_in_macro_exp
234         is false,  re-enable saving of comments.
235         (lex_macro_node): If discard_comments_in_macro_exp is false,
236         discard any comments before the macro identifier.
237         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
238         member.
239         * cppmacro.c (cpp_get_token): If expanding a macro while
240         processing a directive, discard any comments we might encounter.
241         (parse_params): If discard_comments_in_macro_exp is false,
242         ignore comments in the macro parameter list.
243         * gcc.c (cpp_unique_options): Add "-CC" option.
244         (option_map): Map "--comments-in-macros" to "-CC".
245         * doc/cppopts.texi: Document "-CC" option.
246         * f/lang-specs.h: Add "-CC" option.
247         * testsuite/gcc.dg/cpp/maccom1.c: New test.
248         * testsuite/gcc.dg/cpp/maccom2.c: New test.
249         * testsuite/gcc.dg/cpp/maccom3.c: New test.
250         * testsuite/gcc.dg/cpp/maccom4.c: New test.
251         * testsuite/gcc.dg/cpp/maccom5.c: New test.
252         * testsuite/gcc.dg/cpp/maccom6.c: New test.
253
254 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
255
256         PR middle-end/6180
257         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
258
259 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
260
261         PR c++/5571
262         * stor-layout.c (layout_decl): Reset the RTL for the decl.
263
264         PR opt/5120
265         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
266         RTX_UNCHANGING_P for the functions arguments when a tail call
267         is made.
268
269 2002-04-06  Jason Merrill  <jason@redhat.com>
270
271         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
272         (parse_options_and_default_flags): Set them appropriately.
273         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
274
275 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
276
277         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
278         here.
279
280         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
281         semicolon.
282
283         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
284         types come in by-reference.  Fix typo in comment.
285
286 2002-04-05  David S. Miller  <davem@redhat.com>
287
288         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
289         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
290         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
291         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
292
293 2002-04-05  David S. Miller  <davem@redhat.com>
294
295         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
296         are not going to emit return instructions, emit at least a nop
297         for the sake of sane backtraces.
298
299 2002-04-05  Richard Henderson  <rth@redhat.com>
300
301         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
302
303 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
304
305         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
306
307 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
308
309         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
310         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
311         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
312
313 2002-04-05  Andreas Schwab  <schwab@suse.de>
314
315         * c-convert.c: Include c-common.h.
316         * Makefile.in (c-convert.o): Updated.
317
318 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
319
320         * mklibgcc.in: Use separate libgcc.map for each multilib.
321         * Makefile.in (distclean): Don't remove libgcc.map here.
322
323 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
324
325         * Makefile.in (s-mlib): Handle --disable-multilib by separate
326         genmultilib invocation.
327
328 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
329
330         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
331         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
332         to num_gprs for symmetry.
333         * config/mips/mips.c: Adjust accordingly.
334
335 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
336
337         * c-common.c (truthvalue_conversion): Rename, update.
338         * c-common.h (c_common_truthvalue_conversion): New.
339         * c-convert.c (convert): Update.
340         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
341         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
342         * c-typeck.c (build_binary_op, build_unary_op,
343         build_conditional_expr): Update.
344         * fold-const.c (constant_boolean_node, fold): Use langhook.
345         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
346         * langhooks.h (struct lang_hooks): New hook.
347         * stmt.c (expand_decl_cleanup): Use langhook.
348         * tree.h (truthvalue_conversion): Remove.
349 objc:
350         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
351
352 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
353
354         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
355         Add rules to make null object file.
356
357 2002-04-04  Jim Blandy  <jimb@redhat.com>
358
359         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
360         macro formal parameter names.
361
362 2002-04-04  David S. Miller  <davem@redhat.com>
363
364         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
365
366 2002-04-04  Richard Henderson  <rth@redhat.com>
367
368         PR middle-end/5099
369         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
370         Support copies into and out of memory.  Don't accept allows_reg
371         and allows_mem as gospel.
372
373 2002-04-04  Richard Henderson  <rth@redhat.com>
374
375         PR opt/6165
376         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
377         (write_dependence_p): Likewise.
378
379 2002-04-04  Richard Henderson  <rth@redhat.com>
380
381         * predict.c (estimate_bb_frequencies): Do frequency calculation
382         with a volatile temporary.
383
384 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
385
386         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
387
388 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
389
390         PR c++/6119
391         * final.c (final_start_function): Don't bump profile_label_no here...
392         (final_end_function): ...but here.
393
394 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
395
396         * config/sparc/sparc.md (pic): New attribute.
397         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
398         into stack slots.
399         (split after do_builtin_setjmp_setup): New.
400
401 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
402
403         PR fortran/6106
404         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
405         change.
406
407 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
408
409         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
410         UNITS_PER_WORD for zero sized aggregates.
411
412 2002-04-03  David S. Miller  <davem@redhat.com>
413
414         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
415         one-character spec for this, just use %(link_gcc_c_sequence).
416
417 2002-04-03  David S. Miller  <davem@redhat.com>
418
419         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
420         handling.
421
422 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
423
424         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
425         (DWARF_FRAME_RETURN_COLUMN): Move.
426         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
427         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
428         * pa.c (except.h, predict.h): Include.
429         (FRP): Delete.
430         (store_reg_modify, set_reg_plus_d): Revise prototypes.
431         (output_ascii): Add cast.
432         (store_reg_modify): Revise to add frame notes.
433         (set_reg_plus_d): Likewise.
434         (compute_frame_size): Include space for eh data registers in frame if
435         the current function calls eh_return.
436         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
437         function calls eh_return.  Save eh data registers if the current
438         function calls eh_return.  Fix code to add frame notes.  Emit
439         blockage to prevent insns with frame notes being scheduled in the
440         delay slot of calls.
441         (hppa_expand_epilogue): Restore eh data registers and do final stack
442         adjustment if the current function calls eh_return.  Don't add frame
443         notes.
444         (output_call): Revise for change in length of call insn.  Don't do
445         return pointer adjustment for an unconditional jump in the delay slot
446         of a call when using frame notes.
447         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
448         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
449         (ARG_POINTER_CFA_OFFSET): Define.
450         * pa.md (return_external_pic): New pattern.
451         (prologue): Correct formatting.  Use return_external_pic if current
452         function calls eh_return.
453         (call_internal_symref, call_value_internal_symref,
454         sibcall_internal_symref, sibcall_value_internal_symref): Change default
455         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
456         respectively.
457         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
458
459         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
460         list of targets to check using "nop" insn.
461         * configure: Rebuilt.
462
463 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
464
465         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
466
467 2002-04-03  David S. Miller  <davem@redhat.com>
468
469         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
470         library sequence passed to the linker.
471         (LINK_COMMAND_SPEC): Use it.
472         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
473         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
474         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
475
476 2002-04-03  Jason Merrill  <jason@redhat.com>
477
478         * except.c (struct eh_status): Remove protect_list.
479         (begin_protect_partials, end_protect_partials): Remove.
480         (add_partial_entry): Remove.
481         * except.h: Remove prototypes.
482
483         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
484         expand_decl_cleanup_eh.
485
486         PR c++/5636
487         * tree.h (CLEANUP_EH_ONLY): New macro.
488         * stmt.c (expand_decl_cleanup_eh): New fn.
489         (expand_cleanups): Check CLEANUP_EH_ONLY.
490         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
491         Use expand_decl_cleanup_eh.
492         (expand_stmt): Adjust.
493         * c-common.h: Adjust prototype.
494
495 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
496
497         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
498         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
499         (cris_target_asm_function_epilogue): Ditto.
500         (cris_initial_frame_pointer_offset): Ditto.
501         (cris_simple_epilogue): Ditto.
502         (cris_expand_builtin_va_arg): Variable-size types come in
503         by-reference.
504
505 2002-04-03  David S. Miller  <davem@redhat.com>
506
507         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
508         little-endian.
509         (set_fast_math): Correct 'fsr' type.
510
511 2002-04-03  Richard Henderson  <rth@redhat.com>
512
513         PR opt/3569
514         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
515         * toplev.c (check_global_declarations): Use it.
516         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
517         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
518         (LANG_HOOKS_DECLS): Add it.
519         * langhooks.c (lhd_warn_unused_global_decl): New.
520         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
521         * c-objc-common.c (c_warn_unused_global_decl): New.
522         * c-tree.h (c_warn_unused_global_decl): Declare.
523         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
524
525 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
526
527         * langhooks-def.h (lhd_set_decl_assembler_name,
528         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
529         (LANG_HOOKS_INITIALIZER): Update.
530         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
531         * langhooks.h (struct lang_hooks): New hook.
532         * tree.c (set_decl_assembler_name): Move to langhooks.c.
533         (lang_set_decl_assembler_name): Remove.
534         (init_obstacks): Don't set hook.
535         (decl_assembler_name): New function.
536         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
537         (decl_assembler_name): New.
538         (lang_set_decl_assembler_name): Remove.
539
540 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
541
542         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
543         works properly with .hidden symbols.
544         * configure: Rebuilt.
545         * config.in: Rebuilt.
546         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
547         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
548         properly with .hidden symbols.
549
550 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
551
552         PR middle-end/6102
553         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
554         USE argument.
555
556 2002-04-03  Richard Henderson  <rth@redhat.com>
557
558         PR opt/4120
559         * sched-rgn.c (sets_likely_spilled): New.
560         (sets_likely_spilled_1): New.
561         (add_branch_dependences): Use it.
562
563 2002-04-02  Richard Henderson  <rth@redhat.com>
564
565         PR opt/4311
566         * loop.h (LOOP_FIRST_PASS): New.
567         * loop.c (strength_reduce): Mind it when deciding to unroll.
568         * toplev.c (rest_of_compilation): Set it.
569
570 2002-04-02  David S. Miller  <davem@redhat.com>
571
572         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
573         mems_ok_for_ldd_peep when the order of the loads being examined
574         is reversed.
575         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
576         existing comment to increase comprehension of this situation.
577
578 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
579
580         * config/sh/sh.md: Don't use union real_extract.
581
582 2002-04-02  Richard Henderson  <rth@redhat.com>
583
584         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
585
586 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
587
588         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
589         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
590         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
591         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
592         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
593         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
594         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
595         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
596         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
597         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
598         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
599         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
600         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
601         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
602         Include as many configury headers via tm_file as possible.  This
603         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
604         * config/openbsd-oldgas.h: New file.
605         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
606         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
607         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
608         config/i386/i386-coff.h, config/i386/i386-interix.h,
609         config/i386/iscdbx.h, config/i386/linux-aout.h,
610         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
611         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
612         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
613         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
614         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
615         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
616         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
617         config/i386/vxi386.h: Do not directly include configury headers.
618         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
619         Directly include configury headers that are no longer automatically
620         included by the above headers.
621         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
622         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
623         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
624         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
625         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
626         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
627         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
628         (TARGET_VERSION): Define.
629         * config/i386/beos-elf.h, config/i386/freebsd.h,
630         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
631         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
632         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
633         config/i386/sco5.h, config/i386/sysv4.h
634         (TARGET_VERSION): Do not need to protect.
635         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
636         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
637         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
638         config/i386/i386-interix.h, config/i386/linux-aout.h,
639         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
640         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
641         (YES_UNDERSCORES): Do not define - not needed.
642         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
643         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
644         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
645         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
646         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
647         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
648         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
649         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
650
651 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
652             Richard Henderson  <rth@redhat.com>
653
654         PR c/5484
655         * function.c (assign_temp): Accept either type or decl argument.
656         Detect variables whose size is too large to fit into an integer.
657         * stmt.c (expand_decl): Pass the decl, not the type.
658
659 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
660
661         * protoize.c: Match include directory usage with cppdefault.c.
662
663 2002-04-03  Jeffrey A Law  (law@redhat.com)
664             Hans-Peter Nilsson  <hp@bitrange.com>
665
666         * combine.c (simplify_comparison): Avoid narrowing a comparison
667         with a paradoxical subreg when doing so would drop signficant bits.
668
669 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
670
671         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
672         if POINTERS_EXTEND_UNSIGNED is defined.
673
674 2002-04-02  Richard Henderson  <rth@redhat.com>
675
676         PR opt/3967
677         * local-alloc.c (contains_replace_regs): LO_SUM may contain
678         replace regs.
679
680 2002-04-02  Richard Henderson  <rth@redhat.com>
681
682         * doc/standards.texi: Document required freestanding libc entry points.
683
684 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
685
686         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
687         associated splitter.  Remove MQ constraint.
688         (ctrdi_internal4): Correct CCmode clobber.
689
690 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
691
692         * milli64.S ($$dyncall): New function.
693         * t-linux (LIB1ASMFUNCS): Revise module list.
694         (LIB1ASMSRC): Use pa/milli64.S.
695
696 2002-04-02  Richard Henderson  <rth@redhat.com>
697
698         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
699         rename solaris_sys_varargs_h.
700
701 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
702
703         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
704         the same mode as its component.
705
706 2002-04-02  Richard Henderson  <rth@redhat.com>
707
708         PR opt/190
709         * final.c (this_is_asm_operands): Export.
710         * output.h (this_is_asm_operands): Declare.
711         * config/i386/i386.c (print_operand): Error odd asm operands.
712
713 2002-04-02  Richard Henderson  <rth@redhat.com>
714
715         PR opt/420
716         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
717
718 2002-04-01  Richard Henderson  <rth@redhat.com>
719
720         PR target/1538
721         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
722         * fixinc/fixincl.x: Rebuild.
723
724 2002-04-01  Richard Henderson  <rth@redhat.com>
725
726         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
727         (atomic_alloc, atomic_free): New.
728         (SIZE, MASK_FOR, PTR_IN): New.
729         (emergency_reg_state, emergency_reg_state_free): New.
730         (emergency_labeled_state, emergency_labeled_state_free): New.
731         (reg_state_alloced, labeled_state_alloced): New.
732         (alloc_reg_state, free_reg_state): New.
733         (alloc_label_state, free_label_state, free_label_states): New.
734         (push, pop, dup_state_stack, free_state_stack): Use them.
735         (desc_label_state): Likewise.
736         (uw_frame_state_for): Free label states and state stack.
737         (uw_update_reg_address): Eliminate warnings.
738
739 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
740
741         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
742         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
743
744 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
745
746         * c-decl.c (grokdeclarator): Update.
747         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
748         * c-tree.h (c_mark_addressable): New.
749         * c-typeck.c (default_function_array_conversion, build_unary_op,
750         build_array_ref, convert_for_assignment): Update.
751         (mark_addressable): Rename.
752         * calls.c (try_to_integrate, expand_call): Use langhook.
753         * expr.c (expand_expr): Use langhook.
754         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
755         * langhooks.h (struct lang_hooks): New hook.
756         * stmt.c (expand_asm_operands): Use langhook.
757         * tree.h (mark_addressable): Remove.
758 objc:
759         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
760
761 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
762
763         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
764         in previous change.
765
766 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
767
768         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
769         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
770
771 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
772
773         * c-common.c (unsigned_conversion_warning, convert_and_check,
774         unsigned_type, signed_type, shorten_compare,
775         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
776         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
777         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
778         New.
779         * c-decl.c (grokdeclarator): Update.
780         * c-format.c (check_format_types): Update.
781         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
782         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
783         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
784         * convert.c (convert_to_integer): Use new hooks.
785         * expmed.c (make_tree): Use new hooks.
786         * expr.c (store_expr): Use new hooks.
787         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
788         all_ones_mask_p, unextend, fold): Use new hooks.
789         * langhooks.h (struct lang_hooks_for_types): New hooks.
790         * tree.h (signed_or_unsigned_type, signed_type,
791         unsigned_type): Remove.
792 objc:
793         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
794         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
795
796 2002-03-31  Richard Henderson  <rth@redhat.com>
797
798         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
799         (desc_frgr_mem): Fix reference to f16-f31.
800
801 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
802
803         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
804         RTVEC_ELT): Const-ify.
805         * varray.h (VARRAY_CHECK): Const-ify.
806         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
807         ggc_mark_rtvec, ggc_mark): Const-ify.
808
809 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
810
811         * diagnostic.c: Include langhooks-def.h.
812         * Makefile.in (diagnostic.o): Update.
813
814 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
815
816         * c-common.c (c_unsafe_for_reeval): Rename.
817         * c-common.h (c_unsafe_for_reeval): Rename.
818         * c-decl.c (finish_incomplete_decl): Rename.
819         (c_init_decl_processing): Don't set langhook.
820         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
821         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
822         * c-objc-common.c (c_objc_common_init): Don't set langhook.
823         * c-tree.h (finish_incomplete_decl): Rename.
824         * langhooks-def.h (lhd_unsafe_for_reeval): New.
825         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
826         (LANG_HOOKS_INITIALIZER): Update.
827         * langhooks.c (lhd_unsafe_For_reeval): New.
828         * langhooks.h (struct langhooks): New hooks.
829         * toplev.c (incomplete_decl_finalize_hook): Remove.
830         (wrapup_global_declarations): Update.
831         * tree.c (lang_unsafe_for_reeval): Remove.
832         (unsafe_for_reeval): Update.
833         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
834         Remove.
835 objc:
836         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
837         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
838
839 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
840
841         * diagnostic.c (print_error_function): Remove.
842         (default_print_error_function): Rename.
843         (report_error_function): Update.
844         * diagnostic.h (print_error_function): Remove.
845         (default_print_error_function): Remove.
846         * langhooks-def.h (struct diagnostic_context): Predeclare.
847         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
848         (LANG_HOOKS_INITIALIZER): Update.
849         * langhooks.h (struct diagnostic context): Predeclare.
850         (struct lang_hooks): New hook.
851
852 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
853
854         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
855         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
856         !flag_pic.
857         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
858         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
859         of PIC_OFFSET_TABLE_REGNUM thruout.
860         * config/rs6000/rs6000.md: Likewise.
861         * config/rs6000/darwin.h: Likewise.
862
863 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
864
865         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
866         unsigned HOST_WIDE_INT, not unsigned int.
867
868 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
869
870         PR middle-end/6096, middle-end/6098, middle-end/6099
871         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
872         CODE_LABELs.
873         (fill_slots_from_thread): Likewise.
874
875 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
876
877         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
878         floating fields in float regs.
879         (function_arg_record_value_2): Likewise.
880
881 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
882
883         * config/mmix/mmix.md (define_constants): Remove misleading
884         FIXME.  Add MMIX_fp_rO_OFFSET.
885         ("nonlocal_goto_receiver"): Don't have stack-frame address of
886         saved rO as part of the pattern.  Remove FIXME.
887         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
888         here, at output-time.
889
890 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
891
892         PR middle-end/6100
893         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
894         REG_BR_PRED.
895         (output_v9branch): Likewise.
896
897 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
898
899         * gcc.c: Revert previous patch for now.
900         * config/i386/djgpp.h: Likewise.
901
902 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
903
904         * config/mmix/crti.asm (_init): Register _fini with atexit.
905         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
906
907 2002-03-31  Richard Henderson  <rth@redhat.com>
908
909         PR target/3997
910         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
911         (ASM_OUTPUT_DEF_FROM_DECLS): New.
912
913 2002-03-31  Richard Henderson  <rth@redhat.com>
914
915         * libgcc2.c (__bb_exit_func): Make static.
916
917         * config/alpha/alpha.md (trap): New.
918
919 2002-03-31  Richard Henderson  <rth@redhat.com>
920
921         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
922         promoted argument types; build trap.
923         (expand_builtin_trap): New.
924         (expand_builtin): Use it.
925         * stmt.c (expand_nl_goto_receivers): Likewise.
926         * expr.h (expand_builtin_trap): Declare.
927         * libfuncs.h (LTI_abort, abort_libfunc): New.
928         * optabs.c (init_optabs): Init abort_libfunc.
929
930 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
931
932         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
933         (LINK_COMMAND_SPEC): ... from here.
934         (init_gcc_specs): Duplicate it here too, omitting
935         shared_name in the second copy.
936         (init_spec): Test for duplicate
937         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
938
939 2002-03-30  David S. Miller  <davem@redhat.com>
940
941         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
942         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
943
944 2002-03-30  Roger Sayle <roger@eyesopen.com>
945             Richard Henderson  <rth@redhat.com>
946
947         * regmove.c (combine_stack_adjustments_for_block): Avoid
948         emitting a stack adjustment of zero bytes.  Let delete_insn
949         update bb->head.
950
951 2002-03-30  Richard Henderson  <rth@redhat.com>
952
953         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
954         (sparc_emitting_epilogue): New.
955         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
956         * config/sparc/sparc-protos.h: Update.
957         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
958         (TARGET_SWITCHES): Update.
959         * config/sparc/sparc.md (return): Remove.
960         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
961         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
962         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
963         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
964         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
965         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
966         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
967         Remove MASK_EPILOGUE.
968         * doc/invoke.texi: Update.
969
970 2002-03-30  Daniel Berlin  <dan@dberlin.org>
971
972         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
973         CPP will start the file for us.
974
975 2002-03-30  Richard Henderson  <rth@redhat.com>
976
977         PR target/5446
978         * config/ia64/ia64.c (group_barrier_needed_p): Special case
979         prologue_allocate_stack.
980         (ia64_single_set): Use insn codes for recognition of special
981         cases, not rtl matching.
982         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
983
984 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
985
986         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
987
988 2002-03-30  Richard Henderson  <rth@redhat.com>
989
990         PR target/6032
991         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
992         or -fomit-frame-pointer with profiling.
993         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
994         (FUNCTION_PROFILER): Do nothing.
995         (PROFILE_HOOK): New.
996         * config/sparc/sparc.c (sparc_override_options): Don't check
997         code models for profiling.
998         (sparc_function_profiler): Remove.
999         (sparc_profile_hook): New.
1000         * config/sparc/sparc-protos.h: Update.
1001
1002 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
1003
1004         PR optimization/6086
1005         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
1006         of SUBREG of volatile MEM or because the MEM was mode dependent,
1007         return CLOBBER instead of unmodified SUBREG.
1008
1009 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
1010
1011         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
1012         when not optimizing.
1013
1014         * toplev.c (rest_of_compilation): Cann mark_constant_function
1015         only when optimizing.
1016
1017         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
1018         are NULL.
1019
1020         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
1021         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
1022         (try_optimize_cfg): clear all AUX fields.
1023
1024         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
1025         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
1026         (ix86_address_cost): Be prepared for SUBREGed registers.
1027         (legitimate_address_p): Accept SUBREGed registers.
1028
1029 2002-03-29  Richard Henderson  <rth@redhat.com>
1030
1031         PR target/5672
1032         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
1033
1034 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1035
1036         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
1037         for aggregate and TFmode types.
1038
1039 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1040
1041         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
1042
1043 2002-03-29  Richard Henderson  <rth@redhat.com>
1044
1045         PR target/5886
1046         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
1047         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
1048
1049 2002-03-29  Richard Henderson  <rth@redhat.com>
1050
1051         PR target/6041
1052         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
1053         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
1054         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
1055         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
1056         conditional.
1057         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
1058
1059 2002-03-29  Dale Johannesen <dalej@apple.com>
1060
1061         * loop.c (combine_movables): Do allow combination of pseudos.
1062
1063 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
1064
1065         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
1066         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
1067         No functional change except ...
1068         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
1069         * doc/install.texi (*-*-freebsd*): Document port configuration.
1070
1071 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1072
1073         * Makefile.in (convert.o, calls.o, expmed.o): Update.
1074         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
1075         Use new hooks.
1076         * builtin-types.def (BT_PTRMODE): Update.
1077         * c-common.c (type_for_size): Rename c_common_type_for_size.
1078         (type_for_mode): Similarly.
1079         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
1080         Use new hook.
1081         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
1082         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
1083         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
1084         Redefine.
1085         * c-typeck.c (common_type, comptypes, default_conversion):
1086         Use new hooks.
1087         * calls.c: Include langhooks.h.
1088         (emit_library_call_value_1): Use new hooks.  Avoid redundant
1089         calls.
1090         * convert.c: Include langhooks.h
1091         (convert_to_pointer, convert_to_integer): Use new hooks.
1092         * except.c (init_eh): Similarly.
1093         * expmed.c: Include langhooks.h.
1094         (expand_mult_add): Use new hooks.
1095         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
1096         try_casesi): Similarly.
1097         * fold-const.c (optimize_bit_field_compare, make_range,
1098         decode_field_reference, fold_truthop, fold): Similarly.
1099         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
1100         put_var_into_stack): Similarly.
1101         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
1102         LANG_HOOKS_TYPE_FOR_SIZE): New.
1103         (LANG_HOOKS_TYPES_INITIALIZER): Update.
1104         * langhooks.h (lang_hooks_for_types): New hooks.
1105         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
1106         * tree.c (get_unwidened, get_narrower): Similarly.
1107         * tree.h (type_for_mode, type_for_size): Remove.
1108         * varasm.c (force_const_mem): Use new hooks.
1109         * utils2.c (nonbinary_modular_operation): Update.
1110 objc:
1111         * objc-act.c (handle_impent): Update.
1112         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
1113         Redefine.
1114
1115 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
1116
1117         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
1118         * config/ia64/ia64.c (basereg_operand): New.
1119         * config/ia64/ia64-protos.h (basereg_operand): Declare.
1120         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
1121
1122 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
1123
1124         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
1125         unwind information when frame_pointer_needed.
1126         (mmix_assemble_integer): Tweak wording in comment.
1127
1128 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1129
1130         * Makefile.in (except.o): Update.
1131         * except.c: Include langhooks.h.
1132         (init_eh): Use langhook.
1133         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
1134         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
1135         (LANG_HOOKS_INITIALIZER): Update.
1136         * langhooks.h (lang_hooks_for_types): New.
1137         (struct lang_hooks): Add it.
1138         * tree.c (make_lang_type_fn, make_lang_type): Remove.
1139         * tree.h (make_lang_type_fn, make_lang_type): Remove.
1140 config:
1141         * alpha/alpha.c: Include langhooks.h.
1142         (alpha_build_va_list): Use langhook.
1143         * d30v/d30v.c: Include langhooks.h.
1144         (d30v_build_va_list): Use langhook.
1145         * i386/i386.c: Include langhooks.h.
1146         (ix86_build_va_list): Use langhook.
1147         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
1148         * s390/s390.c: Include langhooks.h.
1149         (s390_build_va_list): Use langhook.
1150         * stormy16/stormy16.c: Include langhooks.h.
1151         (stormy16_build_va_list): Use langhook.
1152
1153 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1154
1155         PR c++/5964
1156         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
1157         attributes.
1158         (length): Compute variable length for branches/calls/jumps here.
1159         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
1160         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
1161         define branch_type attribute.
1162         (divsi3_sp32): Maximum length is 6 not 7.
1163         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
1164         call_address_untyped_struct_value_sp32,
1165         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
1166         * config/sparc/sparc.c (empty_delay_slot): New function.
1167         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
1168         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
1169
1170 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
1171
1172         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
1173         nonzero_bits if not needed.
1174         (nonzero_bits) [XOR]: Likewise.
1175         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
1176         reg_last_set_mode and mode are both MODE_INT, but not equal.
1177         (record_value_for_reg): Compute reg_last_set_nonzero_bits
1178         in nonzero_bits_mode for MODE_INT modes.
1179
1180 2002-03-28  Richard Henderson  <rth@redhat.com>
1181
1182         PR target/5715
1183         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
1184         to GAS.  Correct drift between alternatives.
1185
1186 2002-03-28  Richard Henderson  <rth@redhat.com>
1187
1188         PR target/6087
1189         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
1190
1191 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
1192
1193         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
1194         emulation to the linker.
1195
1196 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
1197
1198         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
1199         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1200
1201 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
1202
1203         * combine.c (simplify_and_const_int): Make sure to apply mask
1204         when force_to_mode returns a constant integer.  PR3311.
1205
1206 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1207
1208         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
1209
1210 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1211
1212         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
1213         and Objective-C Dialect Options.
1214
1215 2002-03-28  Richard Henderson  <rth@redhat.com>
1216
1217         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
1218         comparison should be done vs !=0 not >0 return code.  Tidy cases.
1219
1220 2002-03-28  Richard Henderson  <rth@redhat.com>
1221
1222         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
1223         on to c_expand_body.
1224         * c-tree.h (finish_function): Update decl.
1225         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
1226
1227 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
1228
1229         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
1230
1231 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
1232
1233         * rtlanal.c: Include flags.h
1234         (may_trap_p): Do not mark FP operations if trapping
1235         if !flag_trapping_math
1236         * Makefile.in (rtlanal.o): Add dependency on flag.h
1237         * ifcvt.c (noce_operand_ok): Avoid the lameness.
1238
1239 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
1240
1241         * mips.md: Use dconst1, not 1.0, as first argument of
1242         REAL_VALUE_LDEXP.  Don't use union real_extract.
1243
1244 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
1245
1246         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
1247         rather than $target.  Heed program_prefix and
1248         program_transform_name.  Search for gas in cross-compiler case too.
1249         "test -x" rather than "test -f".
1250         (gcc_cv_ld): Likewise.
1251         (gcc_cv_nm): Heed program_prefix and program_transform_name.
1252         (gcc_cv_objdump): Likewise.
1253         * configure: Regenerate.
1254
1255 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1256
1257         * Makefile.in (attribs.o): Update.
1258         * attribs.c: Include langhooks.h.
1259         (decl_attributes): Use langhook.
1260         * c-decl.c (insert_default_attributes): Rename.
1261         * c-tree.h (c_insert_default_attributes): New.
1262         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
1263         (LANG_HOOKS_INITIALIZER): Update.
1264         * langhooks.h (struct lang_hooks): New hook.
1265         * tree.h (insert_default_attributes): Remove.
1266 objc:
1267         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
1268
1269 2002-03-27  Andreas Schwab  <schwab@suse.de>
1270
1271         * config/i386/i386.c (classify_argument): Also check for
1272         QUAL_UNION_TYPE.
1273
1274 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1275
1276         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
1277         any more.
1278
1279 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
1280
1281         * i960.md (ret): Set PC.
1282         (nonlocal_goto): Fix expander.
1283         * builtins.c (epxand_builin_longjmp): Check that we've emitted
1284         some jump or call.
1285
1286 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
1287
1288         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
1289         of libcall regions.
1290
1291 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1292
1293         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
1294         assigning to BLOCK_FOR_INSN directly.
1295
1296 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
1297
1298         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
1299
1300 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1301
1302         * c-common.c (c_expand_expr): Fix prototype.
1303         * c-common.h (c_expand_expr): Always declare, update.
1304         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1305         * c-objc-common.c (c_objc_common_init): No global hook.
1306         * expr.c (expand_expr): Use langhook.
1307         * expr.h (enum expand_modifier): Conditionally declare.
1308         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
1309         (LANG_HOOKS_INITIALIZER): Update.
1310         * langhooks.c (lhd_expand_expr): New.
1311         * langhooks.h (struct lang_hooks): New hook.
1312         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
1313         (lang_independent_init): Don't default hook.
1314 objc:
1315         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
1316
1317 2002-03-27  Richard Henderson  <rth@redhat.com>
1318
1319         PR target/6054
1320         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
1321         TARGET_CONST_GP.  Simplify conditions.
1322
1323 2002-03-27  Richard Henderson  <rth@redhat.com>
1324
1325         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
1326         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
1327         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
1328
1329 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
1330
1331         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
1332         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
1333         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
1334         Remove unnecessary masks.
1335         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
1336         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
1337         -mwindows, -mdll switches and their negations.
1338
1339 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1340
1341         * gcc-common.c (lang_mark_false_label_stack): Remove.
1342         * ggc.h (lang_mark_false_label_stack): Similarly.
1343
1344 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
1345
1346         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
1347
1348         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
1349         or __rtems_ is defined.
1350
1351 2002-03-26  Richard Henderson  <rth@redhat.com>
1352
1353         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
1354         if a non-trivial load was emitted.
1355         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
1356         in high+extra+low case.
1357
1358 2002-03-26  Richard Henderson  <rth@redhat.com>
1359
1360         * config.gcc (sparc*-solaris): Use float_format=sparc.
1361
1362 2002-03-26  Richard Henderson  <rth@redhat.com>
1363
1364         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
1365         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
1366         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
1367         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
1368         (WINT_TYPE_SIZE): Fix at 32.
1369
1370 2002-03-26  Richard Henderson  <rth@redhat.com>
1371
1372         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
1373         until after eh landing pad generation.
1374         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
1375         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
1376
1377 2002-03-26  Richard Henderson  <rth@redhat.com>
1378
1379         * expr.h (ADD_PARM_SIZE): One more convert for INC.
1380
1381 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
1382
1383         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
1384         and warning switches.
1385         (cc1_options):  Likewise.
1386
1387 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
1388
1389         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
1390         Restore more of the signal context.  Set no_reg_stack_frame.
1391         * config/ia64/unwind-ia64.c (unw_state_record):
1392         Add no_reg_stack_frame, comments.
1393         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
1394         (uw_update_context): Adjust bsp when unwinding from leaf,
1395         but not signal frame.
1396
1397 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
1398
1399         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
1400
1401 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
1402
1403         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
1404
1405 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
1406
1407         PR target/5621
1408         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
1409         "Add a pool_range attribute", which was lost during the ARM/Thumb
1410         merge.
1411
1412 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
1413
1414         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
1415         a register into the MAC16 accumulator.
1416
1417 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
1418
1419         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
1420         (Warning Options): Document -Wswitch-enum.
1421         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
1422         -Wswitch.
1423         (warn_switch_enum): Define variables.
1424         * flags.h (warn_switch_enum): Declare variables.
1425         * stmt.c (expand_end_case_type): When warn_switch_enum /
1426         -Wswitch-enum, perform switch checks.
1427         Fix PR c/5044.
1428
1429 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
1430
1431         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
1432         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
1433         (reload_muladdsi_compare0_scratch): Delete.
1434
1435 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
1436
1437         * doc/install.texi (*-*-freebsd*): Update.
1438
1439 2002-03-26  Richard Henderson  <rth@redhat.com>
1440
1441         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
1442         (SUB_PARM_SIZE): Cast DEC to ssizetype.
1443
1444         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
1445         types from the normal argument frame.
1446
1447         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
1448         variable sized objects by reference.
1449         (sparc_va_arg): Receive them by reference too.
1450
1451 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
1452
1453         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
1454         code to not restoring global registers.
1455
1456 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1457
1458         * Makefile.in (ggc-common.o): Update.
1459         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
1460         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1461         * c-tree.h (c_mark_tree): New.
1462         * ggc-common.c: Include langhooks.h.
1463         (gcc_mark_trees): Use new langhook.
1464         * ggc-callbacks.c: Delete file.
1465         * ggc.h (lang_mark_tree): Remove.
1466         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
1467         (LANG_HOOKS_INITIALIZER): Update.
1468         * langhooks.h (struct lang_hooks): New hook.
1469 objc:
1470         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
1471
1472 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
1473
1474         * doc/cpp.texi: Exclude entire Top node from printed manual.
1475         Move option index after directive index.  Insert page breaks
1476         before GFDL and concept index.  Index environment variables
1477         with command line options.
1478         * doc/cppenv.texi: Use @vtable for environment variable list.
1479         Add paragraph explaining semantics of empty elements in path
1480         variables.  Exclude a cross-reference to Fishkill from the
1481         manpage.  Remove an unnecessary cross-reference of the entry
1482         right above the referer.  Don't use @anchor in text that goes
1483         into manpage.
1484         * doc/cppopts.texi: Cross-reference the environment variables
1485         section, not the specific environment variable, for consistency.
1486
1487 2002-03-25  Richard Henderson  <rth@redhat.com>
1488
1489         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
1490         anywhere in the block.  Don't refer to insns that have been
1491         removed from the chain.  Iterate backward through the new insns.
1492         Don't refer to edges that have been removed.
1493
1494 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
1495
1496         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
1497         test for overflow of constant.
1498
1499 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
1500
1501         PR target/2623
1502         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
1503         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
1504         these patterns on arm_archv4.
1505
1506 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
1507
1508         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
1509         int".
1510
1511 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
1512
1513         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
1514         float_handled, float_handler, float_signal, set_float_handler,
1515         and do_float_handler.  Set handler for SIGFPE to crash_signal.
1516         * toplev.h: Don't prototype do_float_handler.
1517
1518         * c-lex.c: Fold parse_float into lex_number.  Make warning
1519         about portability of hex float constants more informative, and
1520         don't issue it on top of a syntax error.
1521         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
1522         their callers.
1523         * real.h: Define REAL_VALUE_ABS here...
1524         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
1525         simplify_unary_real, simplify_binary_real, and
1526         simplify_binary_is2orm1 into their callers.
1527         * tree.c: Fold build_real_from_int_cst_1 into caller.
1528
1529         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
1530
1531         * tsystem.h: Include float.h here...
1532         * libgcc2.c: ... not here.
1533
1534 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
1535
1536         Fixes for: PR bootstrap/3591, target/5676
1537         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
1538         defined.  Do not disable exceptions or rtti.
1539         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
1540         mcore.h.  Disable exceptions and rtti, since they are not
1541         supported by EPOC.
1542
1543 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1544
1545         * c-decl.c (maybe_build_cleanup): Remove.
1546         * expr.c (expand_expr): Use langhook.
1547         * langhooks-def.h (lhd_return_null_tree,
1548         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
1549         (LANGHOOKS_INITIALIZER): Update.
1550         * langhooks.c (lhd_return_null_tree): New.
1551         * langhooks.h (struct lang_hooks): New hook.
1552         * tree-inline.c (initialize_inlined_parameters): Use langhook.
1553         * tree.h (maybe_build_cleanup): Remove.
1554
1555 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
1556
1557         * regrename.c (build_def_use): Move recog_memoized
1558         before extract_insn.
1559
1560 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
1561
1562         PR target/6043
1563         * expr.c (emit_group_store): Handle storing into CONCAT.
1564
1565 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
1566
1567         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
1568         corresponding MATCH_DUP.
1569
1570 2002-03-24  Richard Henderson  <rth@redhat.com>
1571
1572         * unroll.c (unroll_loop): Zero label_map.
1573
1574         * gcse.c: Include except.h.
1575         * Makefile.in (gcse.o): Update.
1576
1577 2002-03-24  Richard Henderson  <rth@redhat.com>
1578
1579         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
1580         Do resolve_unique_section before shared data clause.
1581
1582 2002-03-24  Richard Henderson  <rth@redhat.com>
1583
1584         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
1585
1586 2002-03-24  Richard Henderson  <rth@redhat.com>
1587
1588         * recog.c (peephole2_optimize): Split blocks when EH insns are
1589         generated in the middle of a block.  Do global life update if
1590         zapped EH edges.
1591
1592 2002-03-24  Richard Henderson  <rth@redhat.com>
1593
1594         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
1595
1596 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1597
1598         preprocessor/3951
1599         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
1600         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
1601         (init_dependency_output): Don't make no_output decision here.
1602
1603 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
1604
1605         * stmt.c (check_for_full_enumeration_handling): Remove tests of
1606         warn_switch.  Update description.
1607         (expand_end_case_type): Call check_for_full_enumeration_handling
1608         when warn_switch.
1609
1610 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1611
1612         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
1613         (m68hc11_split_move): Call it to see if the source and destination
1614         operands use the same direction auto inc/dec mode, otherwise make the
1615         source an offsetable memory operand and generate an add.
1616
1617 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1618
1619         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
1620         register for operand 2.
1621         ("*subsi3_zero_extendqi"): Likewise.
1622         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
1623         bits so that it is compatible with a pop.
1624         ("*andhi3_gen"): Likewise.
1625         ("xorhi3"): Likewise.
1626
1627 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1628
1629         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
1630         -pedantic here...
1631         (cpp_post_options): ... not here.
1632
1633 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1634             Aldy Hernandez  <aldyh@redhat.com>
1635
1636         Removal of separate preprocessor cpp0.
1637
1638         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
1639         cpp0, install-common): Update.
1640         * c-common.c (flag_preprocess_only): New.
1641         (c_common_init): Preprocess for -E.
1642         * c-common.h (flag_preprocess_only): New.
1643         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
1644         * c-objc-common.c (c_init_decl_processing): Exit quickly
1645         for NULL return from c_common_init.
1646         * cpplib.h (cpp_preprocess_file): New.
1647         * cppmain.c (main, general_init, pfile, progname): Remove.
1648         (do_preprocessing): Rename cpp_preprocess_file, don't call
1649         cpp_finish.  Don't close stdout here.
1650         (setup_callbacks): Update prototype.
1651         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
1652         Update.
1653         * tradcpp.c (main): Ignore -quiet.
1654 objc:
1655         * lang-specs.h (default_compilers): Preprocess with cc1obj.
1656
1657 2002-03-24  Richard Henderson  <rth@redhat.com>
1658
1659         PR optimization/5742
1660         * machmode.def: Add inner mode field to complex modes.
1661         * config/mips/mips.c (mips_function_value): Always define.  Add
1662         new argument to handle libcalls.
1663         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
1664         (FUNCTION_VALUE): Likewise.
1665         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
1666         * config/mips/mips-protos.h: Update.
1667
1668 2002-03-23  Richard Henderson  <rth@redhat.com>
1669
1670         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
1671         * config/sparc/sparc-protos.h: Update.
1672         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
1673
1674 2002-03-23  Richard Henderson  <rth@redhat.com>
1675
1676         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
1677         _start or _init begins the text segment.
1678
1679 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
1680
1681         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
1682         not HOST_WIDEST_INT.
1683         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
1684
1685 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
1686
1687         PR java/5489
1688         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
1689         operand argument to output_return_instruction.
1690         * arm.c (arm_print_operand, case 'd'): If the operand is
1691         const_true_rtx then just return.
1692         (arm_print_operand, case 'D'): If the operand is const_true_rtx
1693         then abort.
1694
1695 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
1696
1697         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
1698         (Warning Options): Document -Wswitch-default.
1699         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
1700         -Wswitch.
1701         (warn_switch_default): Define variable.
1702         (warn_switch): Update comment.
1703         * flags.h (warn_switch_default): Declare variable.
1704         (warn_switch): Update comment.
1705         * stmt.c (expand_end_case): Check for and, when
1706         warn_switch_no_default, warn of a missing default case.
1707
1708 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
1709
1710         * real.h (N): Special case 128 bit doubles.
1711
1712         * combine.c (simplify_comparison): When widening modes, ignore
1713         sign extension on CONST_INTs.
1714
1715 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
1716
1717         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
1718         passed to adjust_address.  Fix comment formatting.
1719
1720
1721 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
1722
1723         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
1724         Always make REAL_VALUE_TYPE a struct containing an array of
1725         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
1726         big it is.  Don't declare or use union real_extract.
1727
1728         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
1729         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
1730         (print_operand), config/arm/arm.c (output_move_double),
1731         config/arm/arm.md (consttable_4, consttable_8),
1732         config/romp/romp.c (output_fpops), config/s390/s390.h
1733         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
1734         (xtensa_output_literal): Don't use union real_extract.
1735
1736         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
1737         (sfmode_constant_to_ulong), config/ns32k/merlin.h
1738         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
1739         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
1740         (PRINT_OPERAND): Don't use local version of union
1741         real_extract.
1742
1743         * config/convex/convex.c (check_float_value), config/vax/vax.c
1744         (vax_float_literal), config/m88k/m88k.md (divdf3),
1745         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
1746         config/pdp11/pdp11.c (output_move_quad): Don't do host
1747         arithmetic on target floating point quantities.
1748
1749         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
1750         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
1751
1752         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
1753         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
1754
1755         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
1756         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
1757         INFINITY.
1758         * print-rtl.c (print_rtx): Disable code which needs
1759         floating-point emulator.
1760         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
1761         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
1762         depending on HOST_FLOAT_FORMAT to be defined properly.
1763
1764         * config/1750a/1750a.c (get_double, float_label): Delete.
1765         (print_operand): Delete huge commented-out chunk.  Use
1766         REAL_VALUE_TO_DECIMAL.
1767         * config/1750a/1750a-protos.h: Delete prototypes of deleted
1768         functions.
1769         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
1770         IEEE_FLOAT_FORMAT.
1771         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
1772         Use REAL_VALUE_TO_DECIMAL as ELF version does.
1773         * config/m88k/m88k.c (real_power_of_2_operand,
1774         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
1775         real_extract out of the union; run the input through
1776         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
1777         from that into the union.
1778         * config/pdp11/pdp11.c (output_move_double): Rearrange
1779         parentheses to make automatic indenter happy.
1780
1781         * doc/tm.texi (Cross-compilation): Rename node to "Floating
1782         Point" and rewrite to describe current situation.  Also adjust
1783         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
1784         match code.
1785         * doc/rtl.texi: Adjust cross reference.
1786
1787 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
1788
1789         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
1790         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
1791         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
1792         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
1793         prevent use of sp as a reload register.
1794         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
1795         non_acc_reg_operand.
1796         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
1797         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
1798         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
1799         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
1800
1801 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1802
1803         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
1804         * cpplex.c (unterminated): Delete.
1805         (parse_string): No string literal may extend over multiple
1806         lines.  Suppress the error when preprocessing assembly.
1807         * cppmain.c (scan_translation_unit): Strings are single-line.
1808
1809         * doc/cpp.texi: Update to match.
1810
1811 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
1812
1813         PR optimization/5854
1814         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
1815         Shut up warnings.
1816         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
1817         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
1818         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
1819         const0 if scratch register was not allocated.
1820         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
1821         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
1822         with GEN_INT (...).
1823         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
1824         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
1825         with GEN_INT (...) everywhere.  Remove constraints in define_split
1826         patterns.
1827         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
1828         require scratch register for setting 0 into regs/non-pushable memory.
1829
1830 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
1831
1832         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
1833         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
1834
1835 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
1836
1837         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
1838         * cppinit.c (cpp_create_reader):  On by default.
1839         (cpp_handle_option):  Handle -W[no-]endif-labels.
1840         (cpp_post_options):  Also enable if -pedantic.
1841         * cpplib.c (do_else):  Use it.
1842         (do_endif):  Likewise.
1843         * doc/cppopts.texi:  Document new option.
1844         * doc/invoke.texi:  Document new option.
1845
1846 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
1847
1848         * config/i386/i386.c, config/i386/i386.md: Change all occurences
1849         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
1850
1851 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
1852
1853         * flow.c (calculate_global_regs_live): Clear aux fields of
1854         ENTRY and EXIT.
1855
1856 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
1857
1858         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
1859         REG or MEM subregs, pass rtx * instead of rtx to it.
1860         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
1861         rtx * instead of rtx to alter_subreg.
1862         * config/m32r/m32r.c (gen_split_move_double): Likewise.
1863         * config/pj/pj.c (pj_output_rval): Likewise.
1864
1865 2002-03-22  Richard Henderson  <rth@redhat.com>
1866
1867         PR target/3177
1868         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
1869         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
1870         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
1871         (ia64_expand_prologue): Look at int_regs, not words, for number
1872         of incomming int regs.
1873
1874 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
1875
1876         * expr.c (expand_expr): A RESULT_DECL is part of a call.
1877
1878 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
1879
1880         * toplev.c (flag_loop_optimize, flag_crossjumping):
1881         New static variables.
1882         (rest_of_compilation): Conditionalize crossjumping and
1883         loop optimizer.
1884         (parse_options_and_default_flags): Default loop_optimize and
1885         crossjumping.
1886         (lang_independent_options): Add -fcrossjumping and -floop-optimize
1887         * invoke.texi (crossjumping, loop-optimize): Document.
1888
1889 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
1890
1891         * real.c (eiisneg): Move outside #ifdef NANS.
1892
1893 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
1894
1895         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
1896         frequencies match; avoid match on different loop depths.
1897         (try_crossjump_to_bb): Kill tests that no longer brings time
1898         savings.
1899         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
1900         updating code.
1901         (split_edge): Likewise.
1902
1903         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
1904         variable.
1905
1906         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
1907         * cfgrtl.c: Include insn-config.h
1908         (split_block) Dirtify block in presence of conditional execution
1909
1910 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
1911
1912         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
1913         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
1914         (function_arg): Constify CUMULATIVE_ARGS.
1915         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
1916         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
1917         (UNITS_PER_DOUBLE): New macro.
1918         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
1919         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
1920         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
1921         fp_regs and stack_words.
1922         (EABI_FLOAT_VARARGS_P): New macro.
1923         * config/mips/mips.c (struct mips_arg_info): New.
1924         (mips_arg_info): New function.
1925         (function_arg_advance): Use it.  Add adjustment instructions here
1926         rather than in function_arg.
1927         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
1928         for VOIDmode at the beginning of the function.
1929         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
1930         (function_arg_pass_by_reference): Likewise.
1931         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
1932         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
1933         (mips_va_start): Likewise.  Use the new stack_words field of
1934         CUMULATIVE_ARGS to set up overflow area.  Reformat.
1935         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
1936         doubles and other types, aligning the overflow pointer for non-doubles
1937         too.  Remove some code duplication.  Replace hard-coded constants.
1938
1939 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
1940
1941         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
1942         (CLASS_UNITS): Undefine.
1943         (CLASS_MAX_NREGS): Use FP_INC.
1944         * config/mips/mips.c (compute_frame_size): Likewise.
1945         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
1946
1947 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1948
1949         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
1950         prototype, and handle lexing numbers and identifiers.
1951         (parse_identifier): Update to new form of parse_slow.
1952         (parse_number): Fast path only, use parse_slow otherwise.
1953         (_cpp_lex_direct): Update calls to parse_number.
1954
1955 2002-03-21  DJ Delorie  <dj@redhat.com>
1956
1957         * bb-reorder.c (make_reorder_chain_1): Protect against
1958         when redundant edges are omitted.
1959         * predict.c (dump_prediction): Likewise.
1960
1961 2002-03-21  Richard Henderson  <rth@redhat.com>
1962
1963         PR target/5996
1964         * fixinc/inclhack.def (solaris_stdio_tag): New.
1965         * fixinc/fixincl.x: Regenerate.
1966
1967 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
1968
1969         PR c/5597
1970         * c-typeck.c (process_init_element): Flag non-static
1971         initialization of a flexible array member as illegal.
1972
1973 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
1974
1975         * config/rs6000/t-linux64: New.
1976         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
1977         t-ppccomm.  Use t-rs6000 and t-linux64.
1978         (powerpc64-*-gnu* <tmake_file>): Likewise.
1979         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
1980         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
1981         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
1982
1983 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
1984
1985         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
1986         flag_really_no_inline instead of optimize == 0.
1987
1988         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
1989
1990         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
1991
1992         * flags.h (flag_really_no_inline): New.
1993
1994         * c-common.c (c_common_post_options): Initialize
1995         flag_really_no_inline.
1996
1997         * toplev.c (flag_really_no_inline): New.
1998
1999 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2000
2001         * config/avr/avr.md (length): Fix length computation for
2002         conditional branches.
2003
2004 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2005
2006         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
2007         sdbout.o, profile.o): Update.
2008         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
2009         langhook.
2010         * c-common.h (gettags): Move here from tree.h.
2011         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
2012         insert_block, getdecls, kept_level_p, global_bindings_p): New.
2013         * dbxout.c (dbxout_init): Use getdecls langhook.
2014         * expr.c (expand_expr): Use insert_block langhook.
2015         * fold-const.c: Include langhooks.h.
2016         (fold_range_test, fold_binary_op_with_conditional_arg,
2017         fold): Use global_bindings_p langhook.
2018         * integrate.c (expand_inline_function): Use insert_block langhook.
2019         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
2020         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
2021         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
2022         LANG_HOOKS_GETDECLS): New.
2023         (LANG_HOOKS_INITIALIZER): Update.
2024         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
2025         langhook.
2026         * langhooks.h (struct lang_hooks_for_decls): New.
2027         (struct lang_hooks): Update.
2028         * profile.c: Include langhooks.h.
2029         (output_func_start_profiler): Use new langhooks.
2030         * sdbout.c: Include langhooks.h.
2031         (sdbout_init, sdbout_finish): Use getdecls langhook.
2032         * stmt.c: Include langhooks.h.
2033         (expand_fixup, fixup_gotos): Use new langhooks.
2034         * stor-layout.c: Include langhooks.h.
2035         (variable_size): Use global_bindings_p langhook.
2036         * toplev.c (compile_file): Use getdecls langhook.
2037         * tree-inline.c (remap_block): Use insert_block langhook.
2038         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
2039         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
2040
2041 2002-03-21  Richard Henderson  <rth@redhat.com>
2042
2043         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
2044         constants in .data when -fpic.
2045
2046 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2047
2048         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
2049         where appropriate.
2050
2051 2002-03-21  Tom Tromey  <tromey@redhat.com>
2052
2053         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
2054
2055 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2056
2057         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
2058
2059         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
2060
2061 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
2062             Richard Henderson  <rth@redhat.com>
2063
2064         PR c/5354
2065         * c-common.c (c_expand_expr): Preserve result of a statement
2066         expression if needed.
2067
2068 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
2069
2070         PR bootstrap/4195
2071         * genrecog.c (maybe_both_true_mode): Remove.
2072         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
2073         * machmode.def (Pmode): Likewise.
2074
2075 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
2076
2077         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
2078         (nonlocal_mentioned_p_1): New function.
2079         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
2080         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
2081         (mark_constant_function): Recognize pure functions.
2082         * rtl.h (global_reg_mentioned_p): New prototype.
2083         * rtlanal.c (global_reg_mentioned_p,
2084         global_reg_mentioned_p_1): New function.
2085
2086 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2087
2088         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
2089         UNIX assert.h.
2090         * fixinc/fixincl.x: Regenerate.
2091
2092 2002-03-20  Jason Merrill  <jason@redhat.com>
2093
2094         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
2095
2096 2002-03-20  Michael Meissner  <meissner@redhat.com>
2097
2098         * doc/invoke.texi (Optimize Options): Document that -O2 sets
2099         -fstrict-aliasing.
2100
2101 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2102
2103         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
2104         ".literal_position" directive before the constant pool.
2105
2106 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2107
2108         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
2109         Add Craig Rodrigues.
2110         Add Brad Lucier to testers.
2111
2112 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2113
2114         PR target/4792
2115         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
2116         to if_then_else.
2117         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
2118         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
2119         instead of insn_extract.
2120
2121 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2122
2123         PR bootstrap/4192
2124         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
2125
2126         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
2127         stmt if some case has been output.
2128
2129 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
2130
2131         PR c/5972
2132         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
2133         movsfcc_1, movdfcc_1): Add %O2.
2134         * config/i386/i386.c (print_operand): Handle %ON.
2135         Print . before float condition codes in Sun as cmov syntax.
2136         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
2137         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
2138         no longer true.
2139
2140 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
2141
2142         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
2143         return instruction if PC was popped.
2144
2145 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
2146
2147         * config/xtensa/xtensa.md: Remove unused type attributes.
2148         (adddi_carry, subddi_carry): Change type attribute to "multi".
2149
2150 2002-03-19  Dale Johannesen  <dalej@apple.com>
2151
2152         PR optimization/5999, middle-end/5731
2153         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
2154         multiplications by reciprocals.
2155
2156 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2157
2158         * Makefile.in: Update.
2159         * c-common.c: Include langhooks.h.
2160         (inline_forbidden_p): Use new hook.
2161         * diagnostic.c: Include langhooks.h.
2162         (format_with_decl, announce_function,
2163         default_print_error_function): Use new hook.
2164         * dwarf2out.c (dwarf2_name): Use new hook.
2165         * function.c: Include langhooks.h.
2166         (init_function_start): Use new hook.
2167         * langhooks-def.h (lhd_decl_printable_name): New.
2168         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
2169         (LANGHOOKS_INITIALIZER): Update.
2170         * langhooks.c (lhd_decl_printable_name): New.
2171         * langhooks.h (struct lang_hooks): New hook.
2172         * toplev.c (decl_name, decl_printable_name): Remove.
2173         (open_dump_file): Use new hook.
2174         (process_options): Remove old hook.
2175         * tree.h (decl_printable_name): Remove.
2176 objc:
2177         * objc-act.c (objc_init): Remove old hook.
2178         (objc_printable_name): Export.
2179         * objc-act.h (objc_printable_name): New.
2180         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
2181
2182 2002-03-19  Jim Blandy  <jimb@redhat.com>
2183
2184         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
2185         the start_source_file debug hook, not the current line number.
2186
2187 2002-03-19  Richard Henderson  <rth@redhat.com>
2188
2189         * flow.c (EH_USES): Provide default.
2190         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
2191         * doc/tm.texi (EH_USES): New.
2192
2193         * config/ia64/ia64.c (ia64_eh_uses): New.
2194         * config/ia64/ia64-protos.h: Update.
2195         * config/ia64/ia64.h (EH_USES): New.
2196
2197 2002-03-19  Richard Henderson  <rth@redhat.com>
2198
2199         * varasm.c (output_constant_def): Fix stupid typo.
2200
2201 2002-03-19  Richard Henderson  <rth@redhat.com>
2202
2203         PR 5879
2204         * except.c (current_function_has_exception_handlers): New.
2205         * except.h: Declare it.
2206         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
2207         Combine tests that disable all sibcalls for the function.
2208
2209 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
2210
2211         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
2212         for INTEGER_CST.
2213
2214 2002-03-19  Richard Henderson  <rth@redhat.com>
2215
2216         PR 5977, 5991
2217         * config/ia64/ia64.c: Revert 2002-03-01 patch.
2218         * config/ia64/ia64.h (INIT_EXPANDERS): New.
2219
2220 2002-03-19  Jim Blandy  <jimb@redhat.com>
2221
2222         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
2223         name, even if the replacement list contains no tokens, as required
2224         by Dwarf.
2225
2226 2002-03-19  Jason Merrill  <jason@redhat.com>
2227
2228         * varasm.c (globalize_decl): Get the name from the RTL, not
2229         DECL_ASSEMBLER_NAME.
2230
2231         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
2232
2233 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
2234
2235         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
2236         subdi_carry): Define.
2237
2238 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
2239
2240         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
2241         about -fpic/-fPIC if extra_warnings set.
2242
2243 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
2244
2245         * expr.c (expand_expr): Sign-extend CONST_INT generated from
2246         TREE_STRING_POINTER.
2247         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
2248
2249 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2250
2251         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
2252         in favor of SP if FRAME_POINTER_REQUIRED is false.
2253
2254 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
2255
2256         * emit-rtl.c (gen_int_mode): New function.
2257         * rtl.h: Prototype for it.
2258         * combine.c (make_extraction, simplify_comparison), expmed.c
2259         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
2260         (convert_modes, store_field), optabs.c (expand_fix),
2261         simplify-rtx.c (neg_const_int, simplify_unary_real),
2262
2263         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
2264         Use it instead of GEN_INT (trunc_int_for_mode (...)).
2265
2266 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
2267
2268         PR c/5656
2269         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
2270         convert_parm_for_inlining.
2271         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
2272         Define.
2273         * langhooks-def.h: Likewise.
2274         * objc/objc-lang.c: Likewise.
2275         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
2276         function.
2277         * tree-inline.c (initialize_inlined_parameters):
2278         Call convert_parm_for_inlining lang hook if needed.
2279         * c-typeck.c (c_convert_parm_for_inlining): New function.
2280         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
2281
2282 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
2283
2284         * calls.c (precompute_arguments): Do not assume that temporaries
2285         can be destroyed after expanding the argument.
2286         (expand_call): Likewise.
2287
2288 2002-03-15  Eric Christopher  <echristo@redhat.com>
2289
2290         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
2291         Fix register preference on last change.
2292         * config/mips/mips.c (mips_return_in_memory): New function.
2293         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
2294         * config/mips/mips-protos.h: Declare.
2295         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
2296         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
2297
2298 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
2299
2300         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
2301         a register too.
2302         (anddi3, iorsi3): Likewise.
2303
2304         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
2305         use %gprel for symbols that are going to be placed in linkonce
2306         sections.
2307
2308         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
2309         RETURN_ADDRESS_POINTER_REGNUM to $ra.
2310         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
2311         not needed.  Disregard leaf_function_p().
2312         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
2313         mips16 frame pointer.
2314         * config/mips/mips.md (store ra): Only to small SP offsets.
2315         2001-08-22  Graham Stott  <grahams@redhat.com>
2316         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
2317         return a REG rtx for the return address register.
2318
2319 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
2320
2321         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
2322         constant-pool addresses as "mode-dependent".
2323         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
2324
2325 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
2326
2327         PR target/5740
2328         * expr.c (emit_group_load): Use extract_bit_field if
2329         needed for CONCAT arguments.
2330
2331 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
2332
2333         PR target/4863
2334         * arm.md (tablejump): Make this a define_expand.  For PIC add the
2335         offset to the base of the table.
2336         (thumb_tablejump): Matcher for Thumb tablejump insn.
2337         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
2338         as the difference of two labels.
2339         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2340         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
2341         tables in the code.
2342         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
2343         * arm.c (get_jump_table_size): If the table is not in the text
2344         section, return zero.
2345
2346 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
2347
2348         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
2349         of gen_rtx_SUBREG.
2350         (arm_reload_out_hi): Use gen_lowpart instead of
2351         gen_rtx_SUBREG to access QImode components.
2352         * config/arm/arm.md: Disable zero_extend split for QImode
2353         subregs in BIG_ENDIAN mode.
2354         (storehi_bigend): Match use of least significant byte.
2355         (storeinthi): Remove extraneous SUBREG.
2356         Add missing construction of operands[2].
2357         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
2358         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
2359         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
2360
2361 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
2362
2363         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
2364         any_operand.
2365
2366 2002-03-17  Richard Henderson  <rth@redhat.com>
2367
2368         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
2369         explicitly.
2370
2371 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
2372
2373         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
2374         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
2375
2376 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2377
2378         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
2379
2380         * predict.c (estimate_bb_frequencies): Delete unused variables.
2381
2382 2002-03-17  Richard Henderson  <rth@redhat.com>
2383
2384         * config/ia64/ia64.c (ia64_attribute_table): Move before
2385         targetm definition.  Make static.
2386
2387 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2388
2389         * c-common.h (yyparse, c_common_parse_file): New.
2390         * c-lang.c: Include c-common.h.
2391         (LANG_HOOKS_PARSE_FILE): Redefine.
2392         * c-lex.c: Include c-common.h.
2393         (yyparse): Rename c_common_parse_file.  Call yyparse.
2394         * c-parse.in (yyparse): Remove macro.
2395         * c-tree.h (yyparse_1): Remove.
2396         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
2397         (LANG_HOOKS_INITIALIZER): Update.
2398         * langhooks.h (struct lang_hoooks): New hook parse_file.
2399         * toplev.c (compile_file): Use parse_file hook.
2400         * tree.h (yyparse): Remove.
2401         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
2402
2403 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
2404
2405         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
2406         float_truncate, not fix.
2407         ("*truncdfsf2_real"): Ditto.
2408         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
2409
2410         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
2411
2412 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
2413
2414         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
2415         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
2416         where appropriate.  Make the second reference to
2417         leaf_function_p a function call, as intended.  Reindented.
2418
2419         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
2420         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
2421
2422         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
2423         add register to non-constant into sp.
2424
2425         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
2426         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
2427         (mips16_gp_pseudo_rtx): Lose.
2428         (INIT_EXPANDERS): Deleted.
2429         * config/mips/mips.c (mips_init_machine_status): New.
2430         (mips_free_machine_status): New.
2431         (mips_mark_machine_status): New.
2432         (override_options): Set them.
2433         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
2434         (struct machine_function): ... new.  Replaced all references.
2435         (mips_add_gc_roots): Don't mark them.
2436         (embedded_pic_fnaddr_reg): New, extracted from...
2437         (embedded_pic_offset): ... here.
2438         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
2439         (movsi): Likewise.
2440
2441 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2442
2443         * cppinit.c: Revert -MD removal.
2444
2445 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2446
2447         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
2448         soft registers by default for 68HC12.
2449         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
2450         when compiling with -fomit-frame-pointer.
2451         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
2452         (expand_epilogue): Likewise.
2453         (m68hc11_gen_rotate): Use exg when rotating by 8.
2454
2455 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2456
2457         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
2458         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
2459         (splits): Remove unused add splits.
2460         ("*addhi3_68hc12"): Tune constraints.
2461         ("addhi_sp"): Try to use X instead of Y in all cases and if the
2462         constant fits in 8-bits and D is dead use abx/aby instructions.
2463         ("*addhi3"): Remove extern declaration of ix_reg.
2464         ("*subsi3"): Optimize and provide new split.
2465         ("subhi3"): Cleanup.
2466         ("*subhi3_sp"): Avoid saving X if we know it is dead.
2467         (arith splits): For 68hc12 save the address register on the stack
2468         and do the arithmetic operation with a pop.
2469
2470 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2471
2472         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
2473         allocating QImode in address registers.
2474         ("*movqi_m68hc11"): Likewise.
2475
2476 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
2477
2478         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
2479
2480 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2481
2482         * cppinit.c (print_help): Display -MD and -MMD.
2483         Don't display usage string.  Update assertion syntax and
2484         typo.
2485         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
2486         (cpp_handle_option): Update.
2487
2488 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
2489
2490         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
2491         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
2492         and define it so that regardless of target CPU size,
2493         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
2494         of "int" rather than "long."
2495
2496 2002-03-15  Richard Henderson  <rth@redhat.com>
2497
2498         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
2499         size as a tree.
2500
2501 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2502
2503         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
2504         ("tstqi" split): Avoid using memory for tstqi on address register.
2505         (splits): Remove constraints.
2506         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
2507         ("cmpdf", "cmpsf"): Remove since not used.
2508         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
2509         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
2510
2511 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2512
2513         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
2514         ("neghi2"): Tighten constraints.
2515         ("one_cmplsi2"): Optimize and simplify split.
2516         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
2517
2518 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2519
2520         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
2521         and split of AND operation to clear the upper bits.
2522         ("*logicalsi3_zextqi"): Likewise.
2523         ("*logicallhi3_zexthi_ashift8"): Likewise.
2524         ("*logicalsi3_silshr16"): Likewise.
2525         ("logicalsi3_silshl16"): Likewise.
2526         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
2527
2528 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2529
2530         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
2531         (m68hc11_indirect_p): New function.
2532         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
2533         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
2534         TARGET_M6812.
2535         (asm_print_register): Likewise.
2536         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
2537         (m68hc11_indirect_p): Declare.
2538         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
2539         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
2540         (TARGET_SWITCHES): New option -mrelax.
2541         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
2542         destination.
2543         ("iorsi3", "xorsi3"): Likewise.
2544         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
2545         ("*andhi3_mem"): New to handle destination in memory with bclr
2546         and a scratch register.
2547         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
2548         ("*andhi3_const"): New when operand2 is constant.
2549         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
2550         ("*andhi3_gen"): Cleanup of the old "andhi3".
2551         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
2552         ("xorqi3"): Update constraints.
2553
2554 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2555
2556         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
2557         for reg_equiv_memory_loc when the operand is a register that does
2558         not get a hard register (stack location).
2559         (tst_operand): After reload, accept all memory operand.
2560         (symbolic_memory_operand): Fix detection of symbolic references.
2561         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
2562         accept symbols and any constant.
2563
2564 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2565
2566         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
2567         note on the insn that sets the soft frame register.
2568         (must_parenthesize): ix and iy are also reserved names.
2569         (print_operand_address): One more place where parenthesis are required
2570         to avoid confusion with register names.
2571         (m68hc11_gen_movhi): Allow push of stack pointer.
2572         (m68hc11_check_z_replacement): Fix handling of parallel with a
2573         clobber.
2574         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
2575         the replacement register is.
2576         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
2577         and D8_REGS classes.
2578         (MODES_TIEABLE_P): All modes are tieable except QImode.
2579
2580 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2581
2582         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
2583         (___subdi3): Likewise.
2584         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
2585         (__map_data_section): Optimize 68hc11 case.
2586
2587 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2588
2589         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
2590         than a shift to avoid adding a register with itself.
2591         (m68hc11_memory_move_cost): Take into account NO_REGS.
2592         (m68hc11_register_move_cost): Update and use memory move cost
2593         for soft registers.
2594         (m68hc11_address_cost): Make cost of valid offset not 0 so that
2595         it gives more opportunities to cse to optimize.
2596         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
2597         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
2598
2599 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
2600
2601         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
2602         * c-common.def (CLEANUP_STMT): New tree node.
2603         * c-common.h (CLEANUP_DECL): New macro.
2604         (CLEANUP_EXPR): Likewise.
2605         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
2606         * expr.c (expand_expr): Tidy.
2607         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
2608         * tree-inline.c (initialize_inlined_parameters): Clean up
2609         new local variables.
2610
2611 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
2612
2613         PR bootstrap/4128
2614         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
2615         before movrXX only, use reg_overlap_mentioned_p.
2616         Only special case NE if just one insn can be generated.
2617
2618 2002-03-15  Jason Merrill  <jason@redhat.com>
2619
2620         * varasm.c (assemble_variable): Call resolve_unique_section before
2621         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
2622         of error_mark_node.
2623
2624 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
2625
2626         PR target/5170
2627         * arm.md (split pattern for thumb shiftable immediates): Add comment
2628         explaining non-obvious test.
2629
2630 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
2631
2632         PR target/5712
2633         * arm.md (movaddr, movaddr_insn): Delete.
2634
2635 2002-03-15  Jason Merrill  <jason@redhat.com>
2636
2637         * toplev.c (wrapup_global_declarations): Clarify variable handling.
2638         -fkeep-static-consts doesn't apply to comdats.
2639
2640 2002-03-14  Richard Henderson  <rth@redhat.com>
2641
2642         * c-decl.c: Include c-pragma.h.
2643         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
2644         (finish_function): Tidy.
2645         * c-pragma.c: Include c-common.h.
2646         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
2647         (handle_pragma_weak): Use them.
2648         (init_pragma): Register pending_weaks.
2649         * c-pragma.h (maybe_apply_pragma_weak): Declare.
2650         * print-tree.c (print_node): Print DECL_WEAK.
2651         * varasm.c (mark_weak_decls): Remove.
2652         (remove_from_pending_weak_list): Remove.
2653         (add_weak): Remove.
2654         (asm_emit_uninitialised): Call globalize_decl for weak commons.
2655         (weak_decls): Make a tree_list.
2656         (declare_weak): Cons weak_decls directly.
2657         (globalize_decl): Remove weak_decls elements directly.
2658         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
2659         symbols.  Don't pretend to handle aliases.
2660         (init_varasm_once): Update weak_decls registry.
2661         * Makefile.in: Update dependencies.
2662
2663 2002-03-14  Richard Henderson  <rth@redhat.com>
2664
2665         PR target/5312
2666         * config/ia64/ia64.c: Include tm_p.h last.
2667         (gen_nop_type): Remove duplicate definition.
2668         (cycle_end_fill_slots): Set sched_data for second L slot.
2669         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
2670         (nop_cycles_until): Fix typos.
2671
2672 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
2673
2674         PR optimization/5891
2675         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
2676
2677 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
2678
2679         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
2680           descriptors correctly.
2681
2682 2002-03-14  Michael Meissner  <meissner@redhat.com>
2683
2684         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
2685         100, allowing MAX_UNROLLED_INSNS to be overridden.
2686
2687         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
2688         --param.
2689
2690         * unroll.c (params.h): Include.
2691         (MAX_UNROLLED_INSNS): Delete, now in params.h.
2692
2693         * doc/invoke.texi (--param max-unroll-insns): Document.
2694
2695         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
2696
2697 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
2698
2699         * arm.md: Fix warnings about constraints in peepholes and splits.
2700
2701 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
2702
2703         * cpphash.h (struct lexer_state): Remove line_extension member.
2704         * cpplib.c (dequote_string, do_linemarker): New functions.
2705         (linemarker_dir): New data object.
2706         (DIRECTIVE_TABLE): No longer need to interpret #line in
2707         preprocessed source.  Delete obsolete comment about return
2708         values of handlers.
2709         (end_directive, directive_diagnostics, _cpp_handle_directive):
2710         Don't muck with line_extension.
2711         (directive_diagnostics): No need to issue warnings for
2712         linemarkers here.
2713         (_cpp_handle_directive): Issue warnings for linemarkers here,
2714         when appropriate.  Dispatch linemarkers to do_linemarker, not
2715         do_line.
2716         (do_line): Code to handle linemarkers split out to do_linemarker.
2717         Convert escape sequences in filename argument, both places.
2718
2719         * cppmacro.c (quote_string): Rename cpp_quote_string and
2720         export.  All callers changed.
2721         * cpplib.h (cpp_quote_string): Prototype.
2722         * cppmain.c (print_line): Call cpp_quote_string on to_file
2723         before printing it.
2724
2725         * doc/cpp.texi: Document that escapes are now interpreted in
2726         #line and in linemarkers, and that non-printing characters are
2727         converted to octal escapes when linemarkers are generated.
2728
2729 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
2730
2731         * emit-rtl.c (try_split): Use delete_insns.
2732         * recog.c (split_all_insns): Fix terminating condition.
2733
2734 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
2735             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
2736
2737         PR target/5828
2738         * arm.c (arm_output_epilogue): Fix floating-point register save
2739         adjustment when using a frame pointer.
2740
2741 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
2742
2743         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
2744         * config/mips/mips.c (compute_frame_size): Retrofit them here.
2745         (save_restore_insns, mips_expand_epilogue): And here.
2746         (build_mips16_call_stub): And here.
2747         (mips_function_value): Use the new macros to decide whether a single
2748         or complex float can be returned in floating-point registers.  Return
2749         a parallel rtx in the complex case.
2750
2751 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
2752
2753         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
2754         call after liveness analysis.
2755
2756         * recog.c (split_insn): Use delete_insn_and_edges.
2757
2758         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
2759         instructions to have branch prediction notes.
2760         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
2761
2762 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
2763
2764         * configure.in: Don't pass -Wno-long-long to a ADA compiler
2765         that doesn't support it.
2766         * configure: Regenerate.
2767
2768 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
2769
2770         PR target/5626
2771         * config/sparc/sparc.md (normal_branch, inverted_branch,
2772         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
2773         inverted_fp_branch): Adjust calls to output_cbranch.
2774         Set length attribute.
2775         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
2776         output_v9branch.  Set length attribute.
2777         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
2778         predicates.
2779         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
2780         (output_cbranch): Likewise.  Handle far branches.
2781         (output_v9branch): Handle far branches.
2782         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
2783         Adjust prototypes.
2784         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
2785         noov_compare64_op predicates.
2786
2787 2002-03-13  Jason Merrill  <jason@redhat.com>
2788
2789         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
2790         into the function and constify it.
2791         * gthr-dce.h, gthr-solaris.h: Likewise.
2792
2793 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
2794
2795         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
2796         * config/rs6000/rs6000.c (rs6000_va_arg): Use
2797         std_expand_builtin_va_arg if not ABI_V4.
2798
2799 2002-03-13  Jason Merrill  <jason@redhat.com>
2800
2801         * varasm.c (globalize_decl): New fn.
2802         (assemble_start_function): Use it.
2803         (asm_emit_uninitialized): Use it.
2804         (assemble_alias): Use it.
2805         (assemble_variable): Use it.
2806
2807 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
2808
2809         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
2810         2002-03-12 internal visibility change.
2811         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
2812         visibility into SYMBOL_REF_FLAG.
2813
2814 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
2815
2816         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
2817         VOIDmode operand.  Add compile-time optimization for constant results.
2818
2819 2002-03-12  Jason Merrill  <jason@redhat.com>
2820
2821         * c-typeck.c (convert_for_assignment): Don't allow conversions
2822         between pointers and references.  Only allow lvalues to convert to
2823         reference.
2824
2825 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
2826
2827         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
2828         before prologue, to avoid scheduling problems.
2829
2830 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
2831
2832         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
2833         (ELIMINABLE_REGS): Add sfp->sp.
2834         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
2835
2836 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
2837
2838         PR optimization/5892
2839         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
2840
2841 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
2842
2843         * loop.c (basic_induction_var): Don't call convert_modes if mode
2844         classes are different.
2845
2846 2002-03-12  Richard Henderson  <rth@redhat.com>
2847
2848         PR optimization/5901
2849         * function.c (reposition_prologue_and_epilogue_notes): Position
2850         the markers after/before the last/first insn not deleted.
2851
2852 2002-03-12  Richard Henderson  <rth@redhat.com>
2853
2854         PR optimization/5878
2855         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
2856         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
2857         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
2858
2859         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
2860         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
2861         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
2862
2863         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
2864         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
2865         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
2866         also.  Don't set it if not flag_pic.
2867         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
2868         to be INVALID_REGNUM when not used.
2869
2870 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
2871
2872         * expmed.c (store_bit_field): Reset alias set for memory.
2873         (extract_bit_field): Same.
2874
2875 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2876
2877         * c-common.c (c_tree_code_type, c_tree_code_length,
2878         c_tree_code_name, add_c_tree_codes): Delete.
2879         * c-common.h (add_c_tree_codes): Delete.
2880         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
2881         Define.
2882         * c-objc-common.c (c_objc_common_init): Don't call
2883         add_c_tree_codes, instead set lang_unsafe_for_reeval.
2884         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
2885         objc_tree_code_name, add_objc_tree_codes): Delete.
2886         (objc_init): Don't call add_objc_tree_codes.
2887         * objc/objc-lang.c (tree_code_type, tree_code_length,
2888         tree_code_name): Define.
2889         * toplev.c (lang_independent_init): Don't set
2890         tree_code_length[IDENTIFIER_NODE].
2891         * tree.c (tree_code_type, tree_code_length, tree_code_name):
2892         Delete definitions, moved to language front-ends.
2893         * tree.def (IDENTIFIER_NODE): Hardwire the length.
2894         * tree.h (tree_code_type, tree_code_length, tree_code_name):
2895         Const-ify.
2896         (tree_code_length): Change type to unsigned char.
2897
2898 2002-03-12  Richard Henderson  <rth@redhat.com>
2899
2900         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
2901         internal visibility change.
2902
2903 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
2904
2905         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
2906         validize_mem() instead of change_address to avoid clobbering
2907         memory attributes.
2908
2909 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
2910
2911         * c-lex.h (position_after_whitespace): Remove.
2912
2913 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
2914
2915         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
2916         (lex_string): Use unsigned char pointers.
2917
2918 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
2919
2920         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
2921         is not a valid memory_operand.
2922
2923 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
2924
2925         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
2926         * config/xtensa/lib1funcs.asm: Fix copyright to include
2927         special case for libgcc files.
2928         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
2929         (__divsi3): Likewise.
2930         (__umodsi3): Likewise.
2931         (__modsi3): Likewise.
2932         * config/xtensa/lib2funcs.S: Fix copyright to include
2933         special case for libgcc files.
2934
2935 2002-03-12  Tom Rix  <trix@redhat.com>
2936
2937         * collect2.c (resolve_lib_name): Move outside of
2938         OBJECT_FORMAT_COFF ifdef.
2939         (ignore_library): Same.
2940
2941 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
2942
2943         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
2944
2945 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
2946
2947         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
2948         to function_section before writing out the constant pool.
2949
2950 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
2951
2952         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
2953         zero_constant.
2954         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
2955
2956 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
2957
2958         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
2959         (adddi3): Likewise.
2960         (movdf): Likewise.
2961         (movdi): Likewise.
2962         (cmpsi splitter): Likewise.
2963         (modsi3): Fail if <= 0.
2964         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
2965         redundant test when HOST_BITS_PER_WIDE_INT != 32.
2966         (reg_or_sub_cint64_operand): Likewise.
2967         (num_insns_constant_wide): Optimize sign extension.
2968         (rs6000_legitimize_address): Likewise.
2969
2970 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
2971
2972         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2973         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
2974
2975 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
2976
2977         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
2978         address calculation.
2979
2980 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
2981
2982         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
2983         scratch register to DImode / TImode.
2984         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
2985         register used does not overlap the target.
2986
2987 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2988
2989         * Makefile.in (debug.o): Depend on debug.h.
2990         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
2991         * debug.c (do_nothing_debug_hooks): Likewise.
2992         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
2993         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
2994         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
2995         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
2996         * dwarfout.c (dwarf_debug_hooks): Likewise.
2997         * integrate.c (output_inline_function): Likewise.
2998         * objc/objc-act.c (synth_module_prologue): Likewise.
2999         * sdbout.c (sdb_debug_hooks): Likewise.
3000         * toplev.c (debug_hooks): Likewise.
3001         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3002
3003 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3004
3005         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
3006         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
3007         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
3008         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
3009         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
3010         * defaults.h (POINTER_SIZE): Define.
3011         * doc/tm.texi (POINTER_SIZE): Document default.
3012
3013 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3014
3015         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
3016
3017 2002-03-11  Richard Henderson  <rth@redhat.com>
3018
3019         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
3020         if rebuild_label_notes_after_reload.
3021
3022 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
3023
3024         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
3025         emit pic register load if "internal" visibility.
3026         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
3027         (cris_expand_builtin_va_arg): Do all computations on trees.
3028
3029 2002-03-11  Richard Henderson  <rth@redhat.com>
3030
3031         * rtlanal.c: Include recog.h.
3032         (keep_with_call_p): Fix thinko.
3033         * Makefile.in (rtlanal.o): Update dependencies.
3034
3035 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
3036
3037         * genflags.c (gen_insn): Use IS_VSPACE.
3038         * genoutput.c (output_insn_data): Likewise.
3039         (process_template): Likewise.
3040
3041 2002-03-11  Richard Henderson  <rth@redhat.com>
3042
3043         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
3044
3045 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3046
3047         * Makefile.in: Update.
3048         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
3049         Update documentation.
3050         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
3051         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
3052
3053 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
3054
3055         * Makefile.in: Give texi2pod its input file as a command line
3056         argument, not on stdin.
3057
3058 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
3059             Daniel Berlin  <dan@dberlin.org>
3060
3061         C++ alias analysis improvement.
3062         * alias.c (record_component_aliases): Record aliases for base
3063         classes too.
3064
3065 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
3066
3067         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
3068
3069 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
3070
3071         * toplev.c (vms_fopen): Remove, not needed.
3072
3073         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
3074
3075         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
3076
3077         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
3078         for FP, already done later.
3079
3080         * toplev.c (debug_args): Add entry for VMS_DEBUG.
3081         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
3082
3083 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
3084
3085         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
3086         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
3087         LARGEST_EXPONENT_IS_NORMAL for the given mode.
3088         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
3089         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
3090         (ediv, emul, eldexp, esqrt): Likewise.
3091         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
3092         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
3093         (saturate): New function.
3094         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
3095         (make_nan): Use a saturation value instead of a NaN if
3096         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
3097         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
3098         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
3099         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
3100         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
3101         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
3102         !ROUND_TOWARDS_ZERO.
3103         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
3104         (ROUND_TOWARDS_ZERO): Document.
3105
3106 2002-03-11  Andreas Jaeger  <aj@suse.de>
3107
3108         * cfg.c (dump_flow_info): Remove unused variable.
3109
3110 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
3111
3112         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
3113         computations on trees.
3114
3115 2002-03-10  Richard Henderson  <rth@redhat.com>
3116
3117         PR 5693:
3118         * reload.c (copy_replacements_1): New.
3119         (copy_replacements): Use it to recurse through the rtx.
3120
3121 2002-03-10  Richard Henderson  <rth@redhat.com>
3122
3123         * loop.c (strength_reduce): Compute number of iterations as
3124         unsigned HOST_WIDE_INT.
3125
3126 2002-03-10  Richard Henderson  <rth@redhat.com>
3127
3128         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
3129         to move away from the end of the block.
3130
3131 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3132
3133         PR preprocessor/5899
3134         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
3135
3136 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3137
3138         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
3139
3140         * attribs.c (decl_attributes): Fix signed/unsigned warning.
3141
3142 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
3143
3144         * config/mmix/mmix.c: Improve comments.
3145         (mmix_target_asm_function_prologue): Drop variable
3146         empty_stack_frame.  Don't allocate unused slot above fp.
3147         (mmix_target_asm_function_epilogue): Mirror prologue changes.
3148         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
3149         brace in first column.
3150         (enum reg_class): Ditto.
3151         (FIRST_PARM_OFFSET): Now 0.
3152         (USER_LABEL_PREFIX): Remove #if 0:d definition.
3153
3154 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3155
3156         * combine.c (make_extraction): Fix error in last change.
3157
3158 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3159
3160         * c4x.c (c4x_fp_reglist): Const-ify.
3161         * cris.c (cris_print_operand): Likewise.
3162         * i386.c (ix86_va_arg): Likewise.
3163         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
3164         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
3165         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
3166         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
3167         * mcore.h (regno_reg_class): Likewise.
3168         * mips.c (gen_int_relational): Likewise.
3169         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
3170         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
3171         * pdp11.c (move_costs): Likewise.
3172         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
3173         * s390.c (s390_branch_condition_mnemonic, regclass_map):
3174         Likewise.
3175         * s390.h (regclass_map): Likewise.
3176         * sh.c (shift_amounts): Likewise.
3177         * sh.md (rotlsi3): Likewise.
3178
3179 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
3180
3181         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
3182         (ne0+5): Use new clobber to generate proper shift pattern.
3183         Patch by Michael Matz <matz@kde.org>.
3184
3185 2002-03-09  Andreas Schwab  <schwab@suse.de>
3186
3187         * gcc.c (validate_all_switches): Also handle `%W{...}'.
3188
3189 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
3190
3191         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
3192
3193 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3194
3195         PR middle-end/5877
3196         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
3197         even for non-representable constants.
3198
3199 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3200
3201         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
3202         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
3203         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
3204         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
3205         (pop_function_context): Compute MAY_SHARE parameter for
3206         fixup_var_refs.
3207         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
3208         (gen_mem_addressof): Call fixup_var_refs with new parm.
3209
3210         * combine.c (make_extraction): Don't make extension of CONST_INT.
3211
3212 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
3213
3214         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
3215         in o32 and o64 ABIs.
3216         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
3217         but getting fixed-size structs passed in registers regardless of
3218         padding in o32 and o64 ABIs.
3219
3220         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
3221         offset before loading address of argument passed by transparent
3222         reference.
3223
3224 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3225
3226         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
3227
3228 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
3229
3230         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
3231         marker such that registers after it are saved.
3232
3233 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3234
3235         * sparc.c (arith_4096_operand): Fix error in last change.
3236
3237 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
3238
3239         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
3240         defaults for MEABI.
3241
3242 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
3243
3244         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
3245         vectors.
3246
3247 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
3248
3249         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
3250
3251 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
3252
3253         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
3254         removed; fix return value.
3255         * combine.c (combine_instructions): Dirtify blocks where we failed to
3256         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
3257         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
3258
3259 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3260
3261         * gcse.c (insert_insn_end_bb): Fix typo in last change.
3262
3263 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
3264
3265         * recog.c (peephole2_optimize): Re-distribute EH edges.
3266
3267 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3268
3269         * expr.c (expand_expr): Use unsave lang hook.
3270         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
3271         (LANG_HOOKS_INITIALIZER): Update.
3272         * langhooks.h (struct lang_hooks): New hook unsave.
3273         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
3274         (unsave_expr_1): Remove unused lang_unsave_expr_now.
3275         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
3276         (unsave_expr_now): Remove.
3277         * tree.h (unsave_expr_now, lang_unsave,
3278         lang_unsave_expr_now): Remove.
3279         (lhd_unsave): New.
3280
3281 2002-03-08  Andreas Jaeger  <aj@suse.de>
3282
3283         * flow.c (propagate_block_delete_insn): Remove unused variable.
3284
3285 2002-03-08  Kazu Hirata  <kazu@hxi.com>
3286
3287         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
3288         insn length for memory load/store.
3289
3290 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3291
3292         * doc/install.texi (--with-libiconv-prefix): Document.
3293
3294 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
3295
3296         * doc/sourcebuild.texi: Fix typo.
3297
3298 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
3299
3300         PR c/3711
3301         * builtins.c (std_expand_builtin_va_arg): Do all computations on
3302         trees.
3303
3304 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3305
3306         * rtl.c (copy_most_rtx): Move from here ...
3307         * emit-rtl.c (copy_most_rtx): ... to here.
3308
3309 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
3310
3311         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
3312         SUBTARGET_CPP_SIZE_SPEC.
3313         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
3314
3315         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
3316
3317 2002-03-07  Matt Hiller  <hiller@redhat.com>
3318
3319         * gensupport.c (first_dir_md_include): Renamed from include;
3320         change all references.
3321         (last_dir_md_include): Renamed from last_include; change all
3322         references.
3323         (init_md_reader): Unconditionally initialize base_dir whether or
3324         not filename is a relative path.
3325
3326 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
3327
3328         * config/fp-bit.c (_unord_f2): Compile it in even if
3329         US_SOFTWARE_GOFAST is enabled.
3330
3331         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
3332         NULL_RTX.  Set all HFmode operations as NULL_RTX.
3333         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
3334         NULL_RTX, try reversing the comparison and the operands.
3335
3336 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
3337
3338         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
3339         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
3340         and MATCH_OP_DUP.
3341
3342 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
3343
3344         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
3345
3346 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
3347
3348         * basic-block.h (fixup_abnormal_edges): Declare.
3349         * reload1.c (fixup_abnormal_edges): New function.
3350         * reg-stack.c (convert_regs): Use it.
3351
3352         * gcse.c (insert_insn_end_bb): Handle trapping insns.
3353
3354         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
3355
3356 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
3357
3358         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
3359         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
3360         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
3361         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
3362         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
3363         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
3364         unless x and y could be infinite.
3365         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
3366         Check that the common type of both arguments is a real, even for
3367         targets without unordered comparisons.  Allow an integer argument
3368         to be compared against a real.
3369         (expand_tree_builtin): Use expand_unordered_cmp.
3370         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
3371         * cse.c (fold_rtx): Likewise.  Fix indentation.
3372         * fold-const.c (fold_real_zero_addition_p): New.
3373         (fold): Use it, and the new HONOR_... macros.
3374         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
3375         * jump.c (reversed_comparison_code_parts): After searching for
3376         the true comparison mode, use HONOR_NANS to decide whether it
3377         can be safely reversed.
3378         (reverse_condition_maybe_unordered): Remove IEEE check.
3379         * simplify-rtx.c (simplify_binary_operation): Use the new macros
3380         to decide which simplifications are valid.  Allow the following
3381         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
3382         and (a - -b) to (a + b).
3383         (simplify_relational_operation): Use HONOR_NANS.
3384         * doc/tm.texi: Document the MODE_HAS_... macros.
3385
3386 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
3387
3388         * combine.c (simplify_comparison): If simplifying a logical shift
3389         right and compare with constant, force the comparison to unsigned.
3390
3391 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
3392
3393         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
3394
3395         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
3396         -mabi=no-altivec
3397         (alt_reg_names): Remove % for vrsave.
3398
3399 2002-03-06  Richard Henderson  <rth@redhat.com>
3400
3401         PR optimization/5844
3402         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
3403         if used indicates we've already emitted one copy of an operand.
3404         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
3405         (gen_split): Supply a non-null used.
3406
3407 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
3408
3409         * reload1.c (reload): Unshare all rtl after reload is done.
3410
3411         * simplify-rtx.c (simplify_plus_minus): Do not abort,
3412         but simply fail if the expression is too complex to simplify.
3413         (simplify_gen_binary): Handle simplify_plus_minus failures.
3414
3415 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3416
3417         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
3418         consistently call delete_trivially_dead_insns after CSE and GCSE;
3419         fix DFI_life dumping; do jump threading after liveness; do crossjumping
3420         after liveness2; update comment in last crossjumping.
3421         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
3422
3423 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
3424
3425         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
3426         after completing fast dead code elimination.
3427
3428         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
3429         COMPARE operator.
3430
3431 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
3432
3433         * version.c:  Fix misplaced leading blanks on first line.
3434
3435 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
3436
3437         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
3438
3439 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
3440
3441         * cfgcleanup.c (mentions_nonequal_regs): New function.
3442         (thread_jump): Use it.
3443         * toplev.c (rest_of_compilation): Run jump threading after
3444         liveness.
3445
3446 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
3447
3448         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
3449         patch.
3450
3451 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
3452
3453         * predict.c (estimate_bb_frequencies): Do not reload the
3454         frequencies from notes.
3455
3456 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
3457
3458         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
3459         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
3460
3461         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
3462         delete_noop_moves): Return indeger.
3463         * flow.c (ndead): New variable.
3464         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
3465         BB argument; update callers.
3466         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
3467         (life_analysis): Do not call purge_all_dead_edges.
3468         (update_life_info): Return number of deleted insns; print statistics.
3469         (update_life_info_in_dirty_blocks): likewise.
3470         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
3471         return number of insns deleted.
3472
3473         * cse.c: Include timevar.h
3474         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
3475         iterate until stabilizes; print statistics; return number of killed
3476         insns.
3477         * Makefile.in: (cse.o): Add timevar.h dependency
3478         * rtl.h (delete_trivially_dead_insns): New.
3479         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
3480         * toplev.c (rest_of_compilation): Update callers.
3481
3482         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
3483         (try_optimize_cfg): Do not update liveness.
3484         (cleanup-cfg): Loop until try_optimize_cfg and dead code
3485         removal stabilizes; use delete_trivially_dead_insns.
3486
3487         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
3488
3489 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
3490
3491         * cppmain.c (setup_callbacks): Disable #pragma and #ident
3492         callbacks when processing assembly language.
3493
3494 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3495
3496         * pa.h (ASM_FILE_END): Define.
3497         * som.h (ASM_FILE_END): Delete.
3498
3499         * pa.c (function_arg): Don't pass floats in general registers in
3500         indirect calls if TARGET_ELF32.
3501
3502 2002-03-05  Richard Henderson  <rth@redhat.com>
3503
3504         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
3505
3506 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
3507
3508         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
3509
3510 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
3511
3512         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
3513         -r command line.  Don't hide any symbols if not building
3514         shared libgcc.
3515
3516 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
3517
3518         * cfg.c (dump_flow_info): Warn about profile mismatches.
3519         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
3520         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
3521
3522 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
3523
3524         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
3525         wide volatile memory by parts.
3526
3527 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
3528
3529         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
3530         is NULL.
3531
3532 2002-03-05  Richard Henderson  <rth@redhat.com>
3533
3534         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
3535
3536 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
3537
3538         * toplev.c (documented_lang_options): Document more
3539         language-specific options.
3540         * doc/invoke.texi (Warning Options): Correct documentation for
3541         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
3542         * c-decl.c (c_decode_option): Use a table to handle warning options.
3543
3544 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
3545
3546         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
3547         parameter to mmix_encode_section_info.
3548         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
3549         relocatably.  Always produce ELF, not mmo if linking relocatably.
3550         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
3551         first is non-zero, don't add symbol prefix.
3552         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
3553         prototype accordingly.
3554
3555 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
3556
3557         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
3558
3559 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
3560
3561         * configure.in: Increase required makeinfo version to 4.1.
3562         * configure: Regenerate.
3563
3564 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
3565
3566         * .cvsignore: Remove *.info* and genrtl*; these files are generated
3567         elsewhere now.
3568
3569 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
3570
3571         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
3572         * doc/invoke.texi: Fix @math uses.
3573
3574 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
3575
3576         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
3577         removal
3578
3579 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
3580
3581         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
3582         (powerpc-*-eabisimaltivec*): Same.
3583
3584         * config/rs6000/t-ppcendian: New.
3585
3586 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
3587
3588         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
3589         nonimmediate_src_operand and nonimmediate_lsrc_operand to
3590         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
3591
3592 2002-03-03  Richard Henderson  <rth@redhat.com>
3593
3594         * toplev.c (rest_of_decl_compilation): Revert last two changes.
3595
3596 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
3597
3598         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
3599         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
3600         tree.c, config/m68k/m68k.c:
3601         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
3602         REAL_ARITHMETIC blocks unconditional.  Delete some further
3603         #ifdef blocks predicated on REAL_ARITHMETIC.
3604         * flags.h, toplev.c: Delete remaining references to
3605         flag_pretend_float.
3606
3607         * doc/invoke.texi: Remove documentation of -fpretend-float.
3608         * doc/tm.texi: Describe the various REAL_* macros as provided by
3609         real.h, not by the target configuration files.
3610
3611         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
3612         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
3613         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
3614         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
3615         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
3616         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
3617         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
3618         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
3619         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
3620         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
3621         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
3622         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3623         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
3624         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
3625         config/xtensa/xtensa.h:
3626         Do not define, undefine, or mention in comments any of
3627         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
3628         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
3629         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
3630         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
3631         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
3632         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
3633         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
3634         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
3635         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
3636
3637 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3638
3639         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
3640         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
3641         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
3642         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
3643         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
3644         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
3645         Delete.
3646         * defaults.h (BITS_PER_WORD): Define.
3647         * doc/tm.texi (BITS_PER_WORD): Document default value.
3648
3649         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
3650         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
3651         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
3652
3653 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3654
3655         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
3656         lieu of explicit sizeof/sizeof.
3657         * i386.c (override_options, ix86_init_mmx_sse_builtins,
3658         ix86_expand_builtin): Likewise.
3659         * mips.c (mips_add_gc_roots): Likewise.
3660         * mmix.c (mmix_output_condition): Likewise.
3661         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
3662         altivec_init_builtins): Likewise.
3663         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
3664         * cppexp.c (Nsuff, parse_number): Likewise.
3665         * cppinit.c (builtin_array_end): Likewise.
3666         * gcc.c (n_default_compilers, process_command): Likewise.
3667         * genpreds.c (output_predicate_decls): Likewise.
3668         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
3669         * lcm.c (N_ENTITIES): Likewise.
3670         * stor-layout.c (set_sizetype): Likewise.
3671
3672 2002-03-03  Richard Henderson  <rth@redhat.com>
3673
3674         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
3675         for types or labels.
3676
3677 2002-03-03  Richard Henderson  <rth@redhat.com>
3678
3679         * c-decl.c (start_decl): Initialized variables are not common.
3680
3681 2002-03-02  Per Bothner  <per@bothner.com>
3682
3683         * gcc.c (option_map):  Suport new --bootclasspath option.
3684         --CLASSPATH is now just an alias for --classpath.
3685
3686 2002-03-02  Richard Henderson  <rth@redhat.com>
3687
3688         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
3689         load if "internal" visibility.
3690         * doc/extend.texi: Document visibility meanings.
3691
3692 2002-03-02  Richard Henderson  <rth@redhat.com>
3693
3694         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
3695         to functions as well.
3696
3697 2002-03-02  Richard Henderson  <rth@redhat.com>
3698
3699         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
3700         (handle_visibility_attribute): Don't call assemble_visibility.
3701         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
3702         without asmspec.  Invoke assemble_alias when needed.
3703         * varasm.c (maybe_assemble_visibility): New.
3704         (assemble_start_function, assemble_variable, assemble_alias): Use it.
3705
3706 2002-03-02  Richard Henderson  <rth@redhat.com>
3707
3708         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
3709         invoke ENCODE_SECTION_INFO with first call flag.
3710
3711         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
3712         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
3713         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
3714         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
3715         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
3716         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
3717         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
3718         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
3719         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
3720         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
3721         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
3722         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
3723         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
3724         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
3725         config/mcore/mcore-protos.h, config/mcore/mcore.c,
3726         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
3727         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
3728         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
3729         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
3730         config/sh/sh.h, config/sparc/sparc.h,
3731         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
3732         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
3733         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
3734         FIRST argument.  As needed, examine it and do nothing.
3735
3736         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
3737         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
3738         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
3739
3740         * config/arm/t-pe (pe.o): Add dependencies.
3741
3742 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3743
3744         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
3745         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
3746         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
3747         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
3748         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
3749         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
3750         * defaults.h (BITS_PER_UNIT): Define.
3751         * doc/tm.texi (BITS_PER_UNIT): Document default value.
3752
3753 2002-03-02  Kazu Hirata  <kazu@hxi.com>
3754
3755         * config/h8300/h8300-protos.h: Add a prototype for
3756         compute_a_shift_length.
3757         * config/h8300/h8300.c (h8300_asm_insn_count): New.
3758         (compute_a_shift_length): Likewise.
3759         (h8300_adjust_insn_length): Do not adjust insn length of shift
3760         insns.
3761         * config/h8300/h8300.md (anonymous shift patterns): Use
3762         compute_a_shift_length.
3763
3764 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3765
3766         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
3767         trunc_int_for_mode.
3768
3769         * emit-rtl.c (offset_address): Call update_temp_slot_address.
3770
3771 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3772
3773         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
3774         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
3775         * flags.h (flag_zero_initialized_in_bss): Declare.
3776         * toplev.c (flag_zero_initialized_in_bss): New flag.
3777         (lang_independent_options): Add flag_zero_initialized_in_bss.
3778         * tree.c (initializer_zerop): New function.
3779         * tree.h (initializer_zerop): Declare.
3780         * varasm.c (assemble_variable): If we can emit bss, put zero
3781         initializers in the bss section.
3782
3783 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
3784
3785         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
3786         like more than one symbol per .weak directive.
3787
3788 2002-03-01  Richard Henderson  <rth@redhat.com>
3789
3790         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
3791         adjust argument_pointer by pretend_args_size.
3792         (ia64_va_start): Adjust va_start address by -pretend_args_size.
3793
3794 2002-03-01  Kazu Hirata  <kazu@hxi.com>
3795
3796         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
3797
3798 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
3799
3800         * toplev.c (rest_of_compilation): Delete dead jumptables before
3801         loop.
3802         * flow.c (delete_dead_jumptables): Make global.
3803         * rtl.h (delete_dead_jumptables): Declare.
3804
3805 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
3806
3807         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
3808         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
3809         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
3810
3811 2002-03-01  Kazu Hirata  <kazu@hxi.com>
3812
3813         * config/h8300/h8300-protos.h: Fix formatting.
3814         * config/h8300/h8300.c: Likewise.
3815         * config/h8300/h8300.h: Likewise.
3816
3817 2002-03-01  Kazu Hirata  <kazu@hxi.com>
3818
3819         * config/h8300/h8300.c (print_operand): Support 16-bit
3820         constant addresses.
3821         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
3822
3823 2002-02-28  Richard Henderson  <rth@redhat.com>
3824
3825         * expmed.c (store_bit_field): Prevent generation of CONCATs;
3826         pun complex values as integers; use gen_lowpart instead of
3827         gen_rtx_SUBREG.
3828         (extract_bit_field): Likewise.
3829
3830 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
3831             David Edelsohn  <edelsohn@gnu.org>
3832
3833         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
3834         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
3835         (SUPPORTS_WEAK): Likewise.
3836         * output.h (add_weak): Add tree param.
3837         * varasm.c (add_weak): Likewise.  Save decl.
3838         (struct weak_syms): Add decl field.
3839         (mark_weak_decls): New function.
3840         (init_varasm_once): ggc_add_root mark_weak_decls.
3841         (assemble_start_function): Use ASM_WEAKEN_DECL.
3842         (assemble_variable): Likewise.
3843         (assemble_alias): Likewise.
3844         (declare_weak): Pass decl to add_weak.
3845         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
3846         (remove_from_pending_weak_list): Declare and define for
3847         ASM_WEAKEN_DECL.
3848         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
3849         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
3850         * defaults.h (SUPPORTS_WEAK): Likewise.
3851         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
3852         .weak for code sym.  Do emit .size for descriptor sym.
3853         (ASM_DECLARE_FUNCTION_SIZE): Define.
3854         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
3855         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
3856         .lglobl unless TARGET_XCOFF.  Formatting fixes.
3857         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
3858         .weak for code sym.
3859         (HANDLE_PRAGMA_WEAK): Remove.
3860         (ASM_WEAKEN_LABEL): Remove.
3861         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
3862
3863 2002-03-01  Jason Merrill  <jason@redhat.com>
3864
3865         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
3866         (TARGET_EXPR_CLEANUP): New macro.
3867
3868 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
3869
3870         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
3871         to take ptr_extend into account as third type of extension.
3872         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
3873         fields used by SUBREG_PROMOTED_UNSIGNED_P.
3874         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
3875         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
3876         * calls.c (precompute_arguments): Use new macro.
3877         (expand_call): Ditto.
3878         * combine.c (nonzero_bits): Ditto.
3879         (record_promoted_value): Ditto.
3880         * expr.c (store_expr): Ditto.
3881         (expand_expr): Ditto.
3882         * function.c (assign_parms): Ditto.
3883
3884 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
3885
3886         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
3887         override -shared and -shared-libgcc.
3888
3889 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
3890
3891         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
3892         of "ultrasparc".
3893         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
3894         to be broken.
3895
3896 2002-02-28  Richard Henderson  <rth@redhat.com>
3897
3898         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
3899         4 cycle latency from MM producers.
3900         (ia64_internal_sched_reorder): Likewise with pipeline flush.
3901
3902 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
3903
3904         * mklibgcc.in: Don't use GNU make extension.
3905
3906 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
3907
3908         * c-parse.in (STATIC): New terminal.
3909         (scspec): New non-terminal.  Update productions accordingly.
3910         (program): Remove bogus ifc / end ifc.
3911         (array_declarator): Simplify production using STATIC.
3912
3913 2002-02-28  Jim Meyering  <meyering@lucent.com>
3914
3915         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
3916         \a still means TARGET_BELL.
3917
3918 2002-02-28  Richard Henderson  <rth@redhat.com>
3919
3920         * haifa-sched.c (sched_emit_insn): New.
3921         (schedule_block): Use last_scheduled_insn to track last insn.
3922         * sched-int.h (sched_emit_insn): Prototype.
3923         * config/ia64/ia64.c (last_issued): Remove.
3924         (ia64_variable_issue): Don't set it.
3925         (nop_cycles_until): Use sched_emit_insn.
3926
3927 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
3928
3929         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
3930         extended constants.
3931
3932 2002-02-28  Kazu Hirata  <kazu@hxi.com>
3933
3934         * config/h8300/h8300.c: Fix formatting.
3935         * config/h8300/h8300.h: Likewise.
3936
3937 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3938
3939         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
3940         which may overwrite the high byte of the frame pointer.
3941
3942 2002-02-28  Bo Thorsen  <bo@suse.de>
3943
3944         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
3945         (STARTFILE_SPEC): Add 64 bit files.
3946         (ENDFILE_SPEC): Likewise.
3947
3948 2002-02-28  Jason Merrill  <jason@redhat.com>
3949
3950         * c-decl.c (finish_function): Only warn about missing return
3951         statement with -Wreturn-type.
3952
3953 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
3954
3955         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
3956
3957         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
3958         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
3959
3960 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
3961
3962         * basic-block.h (BB_REACHABLE): Renumber.
3963         (BB_DIRTY, BB_NEW): New flags.
3964         (clear_bb_flags): Declare.
3965         (update_life_info_in_dirty_blocks): Declare.
3966         * cfg.c (clear_bb_flags): New function.
3967         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
3968         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
3969         reorder_insns, emit_insn_after): Mark block as dirty.
3970         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
3971         (update_life_info_in_dirty_blocks): New function.
3972         * recog.c (apply_change_group): Dirtify block.
3973
3974         * cse.c (cse_insn): Reorder emitting of jump insn to keep
3975         cfg consistent.
3976         * gcse.c (delete_null_pointer_checks): Likewise.
3977
3978         * toplev.c (dump_file_index): Move cse2 after bp,
3979         add DFI_null
3980         (dump_file_info): Similary.
3981         (rest_of_compilation): Avoid most of CFG rebuilds;
3982         do first if converision after null pointer checks, do cse2
3983         after branch prediction; avoid full liveness rebuild after
3984         initializing subregs.
3985         * invoke.texi (-d options): Document -du, renumber.
3986
3987         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
3988         (notice_new_block): Do not set BB_UPDATE_LIFE.
3989         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
3990          merge_blocks_move_successor_nojumps, merge_blocks,
3991          try_crossjump_to_edge): Likewise.
3992         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
3993         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
3994         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
3995         (merge_of_block): Do not use life_data_ok.
3996         (find_if_case_1): Do not use SET_UPDATE_LIFE.
3997         (if_convert): Use BB_DIRTY mechanizm to update life.
3998         * lcm.c (optimize_mode_switching): Update
3999         update_life_info_in_dirty_blocks
4000
4001 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4002
4003         * Makefile.in (integrate.o): Update.
4004         * c-decl.c (copy_lang_decl): Rename.
4005         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4006         * integrate.c: Include langhooks.h.
4007         (copy_decl_for_inlining): Update to use langhook.
4008         * langhooks-def.h (lhd_do_nothing_t,
4009         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
4010         (LANG_HOOKS_INITIALIZER): Update.
4011         * langhooks.c (lhd_do_nothing_t): New.
4012         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
4013         * tree.h (copy_lang_decl): Remove.
4014 objc:
4015         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
4016
4017 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
4018
4019         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
4020         POST_DEC, and POST_MODIFY.
4021
4022 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4023
4024         * c-typeck.c (digest_init): Remove unused parameter; all
4025         callers changed.
4026
4027 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
4028
4029         * expmed.c (expand_shift): Correctly test for low part of a
4030         subreg.
4031
4032 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
4033
4034         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
4035         insn UIDs with insn addresses.
4036
4037 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4038
4039         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
4040         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
4041         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
4042         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
4043         gcc.c, toplev.c: Delete code implementing -traditional mode.
4044
4045         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
4046         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
4047         Document removal of -traditional mode for compilation, and
4048         remove documentation only relevant to that mode.
4049
4050         * config/nextstep.h, config/ptx4.h, config/svr4.h,
4051         config/convex/convex.h, config/d30v/d30v.h,
4052         config/i386/dgux.h, config/i386/osf1elf.h,
4053         config/i386/osfelf.h, config/i386/osfrose.h,
4054         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
4055         config/m68k/hp310.h, config/m88k/dgux.h,
4056         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
4057         config/m88k/m88k.h, config/m88k/openbsd.h,
4058         config/mips/abi64.h, config/mips/osfrose.h,
4059         config/mips/svr4-5.h, config/mips/svr4-t.h,
4060         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
4061         config/stormy16/stormy16.h: Remove all references to
4062         -traditional from target specs.  Delete all mention of the
4063         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
4064         delete a couple of commented-out definitions of
4065         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
4066         to -traditional.
4067
4068         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
4069         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
4070
4071 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
4072
4073         * mklibgcc.in: Don't use \n in a line subject to
4074         interpretation by echo.
4075
4076 2002-02-27  Graham Stott  <grahams@redhat.com>
4077
4078         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
4079         Constify NAME.
4080
4081         * loop.c (prescan_loop): Handle PARALLEL.
4082
4083         * unroll.c (loop_iterations): Return 0 if the add_val for
4084         a BIV is REG.
4085
4086         * final.c (output_operand_lossage): Constify PFX_STR.
4087
4088         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
4089
4090 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
4091
4092         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
4093         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
4094
4095 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
4096
4097         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
4098
4099 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4100
4101         * cpplex.c (_cpp_lex_token): Handle directives in macro
4102         arguments.
4103         * cpplib.c (_cpp_handle_directive): Save and restore state
4104         if parsing macro args when entering a directive.
4105         * cppmacro.c (collect_args): No need to handle directives
4106         in macro arguments.
4107         (enter_macro_context, replace_args): Use the original macro
4108         definition in case it was redefined whilst collecting arguments.
4109 doc:
4110         * cpp.texi: Update.
4111
4112 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
4113
4114         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
4115         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
4116         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
4117         method on AIX.
4118         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
4119         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
4120         (load_toc_v4_PIC_2): Same.
4121
4122 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
4123
4124         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
4125
4126 2002-02-26  Richard Henderson  <rth@redhat.com>
4127
4128         * config/alpha/alpha.md (ashldi_se): Re-enable.
4129
4130 2002-02-26  Richard Henderson  <rth@redhat.com>
4131
4132         * config/alpha/alpha.c (alpha_encode_section_info): Examine
4133         MODULE_LOCAL_P; improve commentary.
4134
4135 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
4136
4137         * doc/cpp.texi: Clarify documentation of relationship between
4138         #line and #include.
4139
4140 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4141
4142         * config/h8300/h8300-protos.h: Update the prototype for
4143         compute_logical_op_length.  Add the prototype for
4144         compute_logical_op_cc.
4145         * config/h8300/h8300.c (compute_logical_op_length): Figure out
4146         code from operands.
4147         (compute_logical_op_cc): New.
4148         * config/h8300/h8300.md: Combine all the logical op patterns
4149         in HImode and SImode.  Use compute_logical_op_cc.
4150
4151 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
4152
4153         * config/i386/i386.c (print_operand): Don't append ATT-style
4154         length suffixs to x87 opcodes when in Intel mode.
4155
4156 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
4157
4158         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
4159         (init_emit_once): Update calls.
4160         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
4161         (init_syntax_once): Prototype.
4162
4163 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4164
4165         * pa-linux.h (LIB_SPEC): Update definition.
4166         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
4167
4168 2002-02-26  Richard Henderson  <rth@redhat.com>
4169
4170         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
4171         if we emitted a stop bit.
4172
4173 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4174
4175         * configure.in (libgcc_visibility): Substitute.
4176         * configure: Rebuilt.
4177         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
4178         defined symbols .hidden.
4179
4180 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4181
4182         * attribs.c (c_common_attribute_table): Add visibility.
4183         (handle_visibility_attribute): New function.
4184         * varasm.c (assemble_visibility): New function.
4185         * output.h (assemble_visibility): Add prototype.
4186         * tree.h (MODULE_LOCAL_P): Define.
4187         * crtstuff.c (__dso_handle): Use visibility attribute.
4188         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
4189         for MODULE_LOCAL_P symbols too.
4190         * config/ia64/ia64.c (ia64_encode_section_info): Handle
4191         MODULE_LOCAL_P symbols the same way as local symbols.
4192         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
4193         into .sdata/.sbss by the user.
4194         * doc/extend.texi (Function Attributes): Document visibility
4195         attribute.
4196
4197 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
4198
4199         PR debug/5770
4200         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
4201         STRING_CST initializer spanning the whole variable without
4202         embedded zeros.
4203         If expand_expr returned MEM, don't use it.
4204
4205 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
4206
4207         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
4208         generate a die for the lexical block.
4209
4210 2002-02-26  Kazu Hirata  <kazu@hxi.com>
4211
4212         * config/h8300/h8300-protos.h: Add a prototype for
4213         compute_logical_op_length.
4214         * config/h8300/h8300.c (compute_logical_op_length): New.
4215         * config/h8300/h8300.md (anonymous logical patterns): Use
4216         compute_logical_op_length for length.
4217
4218 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4219
4220         * dwarf2out.c (modified_type_die): Do not call type_main_variant
4221         for vectors.
4222         (gen_type_die): Same.
4223
4224         * attribs.c (handle_vector_size_attribute): Set debug information.
4225
4226 2002-02-26  Daniel Egger  <degger@fhm.edu>
4227
4228         * config/rs6000/rs6000.md: Swap define_insn attributes to
4229         fix incorrect generation of merge high instructions instead
4230         of merge low.
4231
4232 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4233
4234         * c-typeck.c (really_start_incremental_init): Use
4235         bitsize_zero_node for vectors.
4236
4237 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
4238
4239         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
4240         ("*set_vrsave_internal"): Same.
4241
4242 2002-02-25  Richard Henderson  <rth@redhat.com>
4243
4244         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
4245         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
4246
4247 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
4248
4249         PR target/5755
4250         * config/i386/i386.c (ix86_return_pops_args): Only pop
4251         fake structure return argument if it was passed on the stack.
4252
4253 2002-02-25  Jason Merrill  <jason@redhat.com>
4254
4255         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
4256         RESULT_DECL.
4257
4258 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
4259
4260         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
4261         link with shared_name only.
4262         * doc/invoke.texi (Link Options): Document new behavior.
4263
4264 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
4265
4266         * c-typeck.c (push_init_level): Handle vectors.
4267
4268 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
4269
4270         * config/sparc/sparc.c (const64_high_operand): Zero-extend
4271         operands of SPARC_SETHI_P.
4272         (input_operand): Likewise.
4273         (sparc_emit_set_const32): Likewise.
4274         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
4275         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
4276         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
4277         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
4278         (movdi_insn_sp64_vis): Likewise.
4279         (movdi split, movdf split): Use SETHI32.
4280         * doc/md.texi: Document SPARC constraints L, M and N.
4281
4282 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
4283
4284         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
4285         ("*set_vrsave_internal"): use mfspr for Darwin.
4286
4287         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
4288         gen_get_vrsave_internal.
4289
4290 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4291
4292         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
4293
4294 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4295
4296         * cpplex.c (cpp_interpret_charconst): Get signedness or
4297         otherwise of wide character constants correct.
4298         * cppexp.c (lex): Get signedness of wide charconsts correct.
4299
4300 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4301
4302         * optabs.c (widen_operand): Only call convert_modes for
4303         promoted SUBREG if signedness matches.
4304         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
4305
4306 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4307
4308         * cpplib.c (glue_header_name): Use local buffer to build up
4309         header name.
4310
4311 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4312
4313         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
4314
4315 2002-02-23  Kazu Hirata  <kazu@hxi.com>
4316
4317         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
4318         H8/300[HS] separately.
4319         * config/h8300/h8300.md: Remove the early clobber constraint
4320         from bit field patterns.
4321
4322 2002-02-23  Kazu Hirata  <kazu@hxi.com>
4323
4324         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
4325         register_operand.
4326         (mulhisi3): Likewise.
4327         (umulqisi3): Likewise.
4328         (umulhisi3): Likewise.
4329
4330 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
4331
4332         * cppinit.c (output_deps): Correct test for stdout output.
4333         (init_dependency_output): Cure warning.
4334
4335 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4336
4337         * expr.c (store_expr): When converting expression to promoted
4338         equivalent type, allow using SUBREG_REG of TARGET as the target
4339         of the expansion of EXP.
4340         * loop.c (basic_induction_var, case SUBREG): Always look inside.
4341         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
4342         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
4343         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
4344         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
4345
4346 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
4347
4348         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
4349         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
4350         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
4351
4352 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
4353
4354         PR optimization/5747
4355         * loop.c (scan_loop): Update reg info if move_movables created new
4356         pseudos.
4357
4358 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
4359
4360         * gcc.c (init_gcc_spec): Revert last change.
4361
4362 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
4363
4364         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
4365         gpc_reg_operand constraint.
4366
4367 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
4368
4369         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
4370         Simplify comparison of `low'.
4371         (add_operand): Fix formatting.
4372         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
4373         (mask_operand): Disallow mask to wrap in 64-bit mode.
4374         (rs6000_stack_info): Remove redundant test setting push_p.
4375         (output_toc): Fix formatting.
4376         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
4377         cc_reg_not_cr0_operand constraint.
4378         (booldi3, boolcdi3 splitters): Same.
4379
4380 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
4381
4382         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
4383
4384 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
4385
4386         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
4387         gcc invoked with -shared-libgcc.
4388
4389 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
4390
4391         PR c++/5748
4392         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
4393         decl if any of elements was TREE_USED.
4394
4395 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
4396
4397         * config/sparc/sol2.h: Don't include sys/mman.h.
4398         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
4399         (arith_4096_operand): Don't throw high bits away.
4400         (const64_operand): Take sign extension of CONST_INTs into account.
4401         (const64_high_operand, sparc_emit_set_const32): Likewise.
4402         (GEN_HIGHINT64): Likewise.
4403         (sparc_emit_set_const64_quick1): Likewise.
4404         (const64_is_2insns): Likewise.
4405         (print_operand): Use trunc_int_for_mode for sign extension.
4406         * config/sparc/sparc.h (SMALL_INT32): Likewise.
4407         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
4408         chars.  Assume CONST_INT is already properly sign-extended.
4409         (movdi split): Sign-extend each SImode part.
4410         (andsi3 split): Don't mask high bits off, so that result
4411         remains properly sign-extend.
4412         (iorsi3 split): Likewise.
4413         (xorsi3 split): Likewise.
4414
4415 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
4416
4417         * fold-const.c (fold): Fix typo in comments.
4418
4419 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
4420
4421         * Makefile.in (langhooks.o): Update dependencies.
4422
4423 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
4424
4425         * langhooks.c: Include flags.h.
4426
4427 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
4428
4429         * testsuite/gcc.dg/attr-alwaysinline.c: New.
4430
4431         * c-common.c (c_common_post_options): Set inline trees by
4432         default.
4433
4434         * doc/extend.texi (Function Attributes): Document always_inline
4435         attribute.
4436         Update documentation about inlining when not optimizing.
4437
4438         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
4439
4440         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
4441         unless DECL_ALWAYS_INLINE.
4442
4443         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
4444         unless DECL_ALWAYS_INLINE.
4445         (c_disregard_inline_limits): Disregard if always_inline set.
4446
4447         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
4448         Disregard if always_inline set.
4449         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
4450         unless DECL_ALWAYS_INLINE.
4451
4452         * attribs.c (handle_always_inline_attribute): New.
4453         (c_common_attribute_table): Add always_inline.
4454
4455         * config/rs6000/altivec.h: Add prototypes for builtins
4456         requiring the always_inline attribute.
4457
4458 2002-02-21  Eric Christopher  <echristo@redhat.com>
4459
4460         * expmed.c (store_bit_field): Try to simplify the subreg
4461         before generating a new one when when the mode size of
4462         value is less than maxmode.
4463
4464 2002-02-21  Richard Henderson  <rth@redhat.com>
4465
4466         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
4467         than gen_rtx_PLUS to form the sum.
4468         * explow.c (force_reg): Rearrange to not allocate new pseudo
4469         when force_operand returns a register.
4470         * expr.c (expand_assignment): Allow offset_rtx expansion to
4471         return a sum.  Do not force addresses into registers.
4472         (expand_expr): Likewise.
4473         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
4474         to canonicalize arithmetic that didn't simpify.
4475         (simplify_plus_minus): New argument force; update
4476         all callers.  Don't split CONST unless we can do something with it,
4477         and wouldn't lose the constness of the operands.
4478
4479         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
4480         that we generated earlier.
4481
4482 2002-02-21  Tom Tromey  <tromey@redhat.com>
4483
4484         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4485         (output_line_info): Use constant `1', with a long explanatory
4486         comment.
4487         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
4488
4489 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
4490
4491         * jump.c (redirect_jump): If old label has no UID, don't try to
4492         delete it.
4493
4494 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
4495
4496         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
4497         If input is constant, do shifts at compile time.
4498
4499 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
4500
4501         * doc/extend.texi: Fix some more overfull hboxes.
4502
4503 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
4504
4505         PR optimization/4994
4506         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
4507         register moves.
4508
4509 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
4510
4511         PR c++/4574
4512         * expr.h (expand_and): Add mode argument.
4513         * expmed.c (expand_and): Add mode argument.
4514         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
4515         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
4516         * except.c (expand_builtin_extract_return_addr): Likewise.
4517         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
4518         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4519         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
4520         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
4521         * config/c4x/c4x.md: Use GEN_INT (x) instead of
4522         gen_rtx (CONST_INT, VOIDmode, x).
4523
4524 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
4525
4526         PR c/4697:
4527         * stmt.c (warn_if_unused_value): Move side effects test once more.
4528
4529 2002-02-20  Torbjorn Granlund  <tege@swox.com>
4530
4531         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
4532         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
4533
4534 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
4535
4536         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
4537         SUBREG or ZERO_EXTEND.
4538
4539 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
4540
4541         * sh.h (current_function_anonymous_args): Remove.
4542         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
4543         of current_function_varargs and current_function_stdarg is set.
4544         * sh.c (sh_expand_prologue): Check current_function_varargs /
4545         current_function_stdarg / TARGET_SH5 instead of
4546         current_function_anonymous_args.
4547
4548         * sh64.h (TARGET_VERSION): Define.
4549
4550 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
4551
4552         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
4553         VRSAVE_REGNO on TARGET_ALTIVEC.
4554
4555 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
4556
4557         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
4558         bits of SImode const_int.
4559         (includes_rshift_p): Likewise.
4560         (print_operand): Call mask_operand and mask64_operand with correct
4561         mode.
4562         (rs6000_output_function_epilogue): Pad traceback table to word.
4563         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
4564         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
4565         mask64_operand with correct mode.
4566         (FUNCTION_ARG_REGNO_P): Correct parentheses.
4567
4568 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
4569
4570         PR debug/4461
4571         * varasm.c (get_pool_constant_mark): New.
4572         * rtl.h (get_pool_constant_mark): Add prototype.
4573         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
4574         be represented if it has not been output.
4575
4576 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
4577
4578         * combine.c (do_SUBST): Sanity check substitutions of
4579         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
4580         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
4581         CONST_INT into its operand.
4582         (known_cond): Likewise, for ZERO_EXTEND.
4583         * simplify-rtx.c (simplify_unary_operation): Fix condition to
4584         allow for simplification of wide modes.  Reject CONST_INTs in
4585         ZERO_EXTEND when their actual mode is not given.
4586
4587 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
4588
4589         * c-decl.c (pushdecl): If no global declaration is found for an
4590         extern declaration in block scope, try a limbo one.
4591
4592 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
4593
4594         PR c++/4401
4595         * c-common.c (pointer_int_sum): Moved from...
4596         * c-typeck.c (pointer_int_sum): ...here.
4597         * c-common.h (pointer_int_sum): Add prototype.
4598
4599 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
4600
4601         PR c++/5713
4602         * c-decl.c (duplicate_decls): Return 0 if issued error about
4603         redeclaration.
4604
4605 2002-02-20  Roger Sayle  <roger@eyesopen.com>
4606             Jakub Jelinek  <jakub@redhat.com>
4607
4608         PR c/4389
4609         * tree.c (host_integerp): Ensure that the constant integer is
4610         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
4611         when pos is zero or non-zero respectively.  Clarify comment.
4612         * c-format.c (check_format_info_recurse): Fix host_integerp
4613         usage; the pos argument should be zero when assigning to a
4614         signed HOST_WIDE_INT.
4615
4616 2002-02-20  Richard Henderson  <rth@redhat.com>
4617
4618         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
4619         of the operand, rather than assuming TImode.
4620         (ix86_expand_binop_builtin): Cope with commutative patterns
4621         using nonimmediate_operand for both operands.
4622         (ix86_expand_timode_binop_builtin): Likewise.
4623         (ix86_expand_store_builtin): Validate operand 1.
4624         (ix86_expand_unop1_builtin): Likewise.
4625
4626 2002-02-20  Philip Blundell  <philb@gnu.org>
4627
4628         PR 5705
4629         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
4630
4631 2002-02-20  Richard Henderson  <rth@redhat.com>
4632
4633         PR c/5615
4634         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
4635
4636 2002-02-20  Tom Tromey  <tromey@redhat.com>
4637
4638         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4639         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4640         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4641         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
4642         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
4643         unconditionally.
4644
4645 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
4646
4647         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
4648           for (const_int 0) in X not just INTVAL.
4649
4650 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
4651
4652         * doc/extend.texi: Avoid or reduce overfull hboxes.
4653
4654 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
4655
4656         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
4657         operations if the field does not start at a mode boundary.
4658
4659 2001-02-20      Joel Sherrill <joel@OARcorp.com>
4660
4661         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
4662         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
4663         Also done for -Acpu and -Amachine.
4664
4665 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4666
4667         * cppinit.c (init_dependency_output): Take deps output file
4668         from -o if none given with -MF.  Suppress normal output.
4669         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
4670         * doc/cpp.texi, doc/invoke.texi: Update.
4671
4672 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
4673
4674         * toplev.c (output_quoted_string): Write unprintable
4675         characters with octal escapes.
4676
4677 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
4678
4679         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
4680         really_call_used[VRSAVE_REGNO] if not Altivec.
4681
4682 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
4683
4684         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
4685         MODE_MASK.
4686         (constant_pool_expr_1): Fix formatting.
4687         (rs6000_legitimize_reload_address): Likewise.
4688
4689 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4690
4691         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
4692         now that we have one.
4693
4694 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
4695
4696         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
4697         end of first block of bitfields (which was only seven bits);
4698         rename dummy to unused_1; remove comment which is no longer true.
4699
4700 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
4701
4702         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
4703
4704 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
4705
4706         PR 5399
4707         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
4708         if generating PIC.
4709
4710         PR 5054
4711         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
4712         arm_is_longcall_p rather than inspecting call-type cookie
4713         directly.
4714         (call_value_insn) [TARGET_THUMB]: Likewise.
4715
4716 2002-02-19  Graham Stott  <grahams@redhat.com>
4717
4718         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
4719
4720 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
4721
4722         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
4723         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
4724         (FP_SAVE_INLINE): Delete.
4725
4726         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
4727         * config/rs6000/eabi.asm: Remove ABI save restore routines.
4728         * config/rs6000/t-ppccomm: Build crtsavres.o.
4729         * config/rs6000/crtsavres.asm: New file.
4730
4731 2002-02-19  Philip Blundell  <philb@gnu.org>
4732
4733         * config/arm/arm.c (use_return_insn): Don't reject interrupt
4734         functions.
4735         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
4736         (output_return_instruction): Allow interrupt functions to return with
4737         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
4738         (arm_expand_prologue): Subtract 4 before stacking LR in an
4739         interrupt function.
4740
4741 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
4742
4743         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
4744         decl, not just FUNCTION_DECL.
4745         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
4746         (arm_assemble_integer): Likewise.
4747         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
4748         marked local.
4749
4750 2002-02-19  matthew green  <mrg@eterna.com.au>
4751
4752         * config.gcc (sparc-*-netbsdelf*): Enable target.
4753         (sparc64-*-netbsd*): New target.
4754         * config/sparc/netbsd-elf.h: New file.
4755         * config/sparc/t-netbsd64: New file.
4756
4757 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
4758
4759         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
4760
4761 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
4762
4763         * doc/invoke.texi: explicitly list the style guidelines that
4764         -Weffc++ checks for.
4765
4766 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
4767
4768         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
4769
4770 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
4771
4772         PR other/5718
4773         * gcc.c (cpp_unique_options): Treat -o as indicating object file
4774         only if not -E.  If -E, pass -o through to the preprocessor.
4775
4776 2002-02-19  Kazu Hirata  <kazu@hxi.com>
4777
4778         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
4779         register number with an appropriate macro.
4780
4781 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
4782
4783         * doc/rtl.texi (Constants): Close @code tag.
4784
4785 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
4786
4787         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
4788         ("mmx_uavgv4hi3"): Same.
4789         ("pmulhrwv4hi3"): Same.
4790
4791         * tree-inline.c (walk_tree): Handle vectors.
4792
4793         * c-common.c (constant_expression_warning): Handle vectors.
4794         (overflow_warning): Same.
4795
4796         * sched-deps.c (sched_analyze_2): Handle vectors.
4797
4798         * rtlanal.c (rtx_unstable_p): Handle vectors.
4799         (rtx_varies_p): Same.
4800         (count_occurrences): Same.
4801         (regs_set_between_p): Same.
4802         (modified_between_p): Same.
4803         (modified_in_p): Same.
4804         (volatile_insn_p): Same.
4805         (volatile_refs_p): Same.
4806         (side_effects_p): Same.
4807         (may_trap_p): Same.
4808         (inequality_comparisons_p): Same.
4809         (replace_regs): Same.
4810         (computed_jump_p_1): Same.
4811
4812         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
4813         argument.
4814         (inner_mode_array): New.
4815         (copy_rtx): Handle vectors.
4816         (copy_most_rtx): Same.
4817         (rtx_equal_p): Same.
4818         (get_mode_alignment): Adjust for vectors.
4819
4820         * resource.c (mark_referenced_resources): Handle vectors.
4821         (mark_set_resources): Same.
4822
4823         * reload1.c (eliminate_regs): Handle vectors.
4824         (elimination_effects): Same.
4825         (scan_paradoxical_subregs): Same.
4826
4827         * reload.c (subst_reg_equivs): Handle vectors.
4828
4829         * regrename.c (scan_rtx): Handle vectors.
4830
4831         * regclass.c (reg_scan_mark_refs): Handle vectors.
4832
4833         * recog.c (find_single_use_1): Handle vectors.
4834
4835         * local-alloc.c (equiv_init_varies_p): Handle vectors.
4836         (contains_replace_regs): Same.
4837         (memref_referenced_p): Same.
4838
4839         * integrate.c (copy_rtx_and_substitute): Handle vectors.
4840         (subst_constants): Same.
4841
4842         * genattrtab.c (attr_copy_rtx): Handle vectors.
4843         (encode_units_mask): Same.
4844         (clear_struct_flag): Same.
4845         (count_sub_rtxs): Same.
4846
4847         * gcse.c (want_to_gcse_p): Handle vectors.
4848         (oprs_unchanged_p): Same.
4849         (hash_expr_1): Same.
4850         (oprs_not_set_p): Same.
4851         (expr_killed_p): Same.
4852         (compute_transp): Same.
4853         (store_ops_ok): Same.
4854
4855         * function.c (purge_addressof_1): Do not allow paradoxical subregs
4856         of vectors.
4857         (fixup_var_refs_1): Same.
4858         (instantiate_virtual_regs_1): Same.
4859
4860         * fold-const.c (operand_equal_p): Handle vectors.
4861         (fold): Same.
4862         (rtl_expr_nonnegative_p): Same.
4863
4864         * flow.c (mark_used_regs): Handle vectors.
4865
4866         * df.c (df_uses_record): Handle vectors.
4867
4868         * cselib.c (cselib_subst_to_values): Handle vectors.
4869         (cselib_mem_conflict_p): Same.
4870         (hash_rtx): Same.
4871
4872         * cse.c (canon_reg): Handle vectors.
4873         (fold_rt): Same.
4874         (cse_process_notes): Same.
4875         (count_reg_usage): Same.
4876         (canon_hash): Same.
4877
4878         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
4879
4880         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
4881
4882         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
4883         (gen_rtx): Handle CONST_VECTOR.
4884         (gen_const_vector_0): New.
4885         (copy_rtx_if_shared): CONST_VECTORs can be shared.
4886         (reset_used_flags): Same.
4887         (copy_insn_1): Same.
4888         (initializer_constant_valid_p): Handle VECTOR_CST.
4889
4890         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
4891
4892         * doc/rtl.texi (Constants): Document const_vector.
4893         (CONST0_RTX): Update for vectors.
4894         (RTL sharing): Same.
4895
4896         * print-tree.c (print_node): Add case for VECTOR_CST.
4897
4898         * tree.h (TREE_VECTOR_CST_ELTS): New.
4899         (struct tree_vector): New.
4900         (union tree_node): Add vector node.
4901         (build_vector): Add prototype.
4902
4903         * tree.def (VECTOR_CST): New.
4904
4905         * tree.c (build_vector): New.
4906
4907         * expmed.c (make_tree): Handle CONST_VECTOR.
4908
4909         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
4910         (CONST_VECTOR_ELT): New.
4911         (CONST_VECTOR_NUNITS): New.
4912
4913         * machmode.h (GET_MODE_INNER): New.
4914         (DEF_MACHMODE): Accept 8th arg.
4915
4916         * machmode.def: Add 8th argument for vector inner mode.
4917         Add inner vector modes for vectors.
4918
4919         * rtl.def (VEC_CONST): Remove.
4920         (CONST_VECTOR): New.
4921
4922         * expr.c (clear_storage): Allow vectors.
4923         (is_zeros_p): Handle VECTOR_CST.
4924
4925         * varasm.c (output_constant_pool): Handle vectors.
4926         (rtx_const): Add veclo and vechi fields.
4927         (kind): Add RTX_VECTOR.
4928         (decode_rtx_const): Add case for vector.
4929
4930         * config/rs6000/rs6000-protos.h: Add zero_constant.
4931
4932         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
4933         constants.  Force easy vector constants into memory.
4934         (easy_vector_constant): New.
4935         (emit_easy_vector_constant): New.
4936         (rs6000_legitimize_reload_address): Do not generate bad reloads on
4937         darwin.
4938
4939         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
4940         instruction does.
4941         ("altivec_lvxl"): Same.
4942         (altivec_lvebx): Same.
4943         (altivec_lvehx): Same.
4944         (altivec_lvewx): Same.
4945         ("*movv4si_const0"): New.
4946         ("*movv4sf_const0"): New.
4947         ("*movv8hi_const0"): New.
4948         ("*movv16qi_const0"): New.
4949
4950 2002-02-18  Kazu Hirata  <kazu@hxi.com>
4951
4952         * config/h8300/h8300.c (notice_update_cc): Use
4953         cc_status.value2.
4954
4955 2002-02-18  Kazu Hirata  <kazu@hxi.com>
4956
4957         * config/h8300/h8300.md (divmod patterns): Change the
4958         constraints for operands[1] to register_operand.
4959
4960 2002-02-18  Kazu Hirata  <kazu@hxi.com>
4961
4962         * config/h8300/h8300-protos.h: Remove the prototype for
4963         p_operand.
4964         * config/h8300/h8300.c (p_operand): Remove.
4965         * config/h8300/h8300.md: Replace p_operand with
4966         const_int_operand.
4967
4968 2002-02-18 Philip Blundell <pb@nexus.co.uk>
4969
4970         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
4971         comment.
4972         (output_return_instruction): Allow use of LDR to unstack
4973         return addresss even for interrupt handlers or when
4974         interworking.  If compiling for ARMv5, use interworking-safe
4975         return instructions by default.  Remove duplicated code and
4976         lengthy "strcat" sequences.
4977
4978 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4979
4980         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
4981         (LINK_EH_SPEC): Define.
4982         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
4983
4984 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
4985
4986         * config/s390/s390.c (s390_emit_prologue): Do not set the
4987         frame_related flag for call-clobbered registers.
4988
4989 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
4990
4991         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
4992         (construct_container): Fix handling of SSE operands.
4993         (ix86_expand_builtin): Fix handling of 64bit pointers.
4994         (mmx_maskmovq_rex): New pattern.
4995
4996 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
4997
4998         * regrename.c (kill_set_value): Handle subregs properly.
4999
5000 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
5001
5002         * objc/objc-act.c (handle_impent): Remove leading '*'
5003         from objc_class_name.
5004
5005 2002-02-17  Richard Henderson  <rth@redhat.com>
5006
5007         * config/alpha/alpha.c (some_small_symbolic_operand,
5008         some_small_symbolic_operand_1, split_small_symbolic_operand,
5009         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
5010         Handle small SYMBOL_REFs anywhere, not just inside memories.
5011         * config/alpha/alpha-protos.h: Update.
5012         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5013         * config/alpha/alpha.md (small symbolic operand splitter): Update.
5014
5015 2002-02-17  Roland McGrath  <roland@frob.com>
5016
5017         * config.gcc (powerpc-*-gnu-gnualtivec*,
5018         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
5019         * config/rs6000/gnu.h: New file.
5020         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
5021         Grok "gnu" in rs6000_abi_name.
5022         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
5023         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
5024         Grok -mcall-gnu analogous to -mcall-linux et al.
5025         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5026         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
5027         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
5028
5029 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
5030
5031         PR c/3444:
5032         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
5033         shortening.
5034
5035 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5036
5037         * config/cris/cris.h: Undefine STARTFILE_SPEC and
5038         ENDFILE_SPEC before (re)defining them.
5039
5040 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5041
5042         * config/h8300/h8300.c: Fix formatting.
5043         * config/h8300/h8300.h: Likewise.
5044
5045 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5046
5047         * doc/tm.texi: Explain why empty strings should not be
5048         marked for translation.
5049
5050 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5051
5052         * final.c (output_operand_lossage): Changed to accept
5053         printf style arguments. Change calls where necessary.
5054         * output.h (output_operand_lossage): Change declaration
5055         accordingly. Update copyright.
5056         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
5057         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
5058         Update copyright date where necessary.
5059
5060         * config/i386/i386.c (print_operand): Likewise. Remove use of
5061         sprintf.
5062
5063         * config/cris/cris.c (cris_operand_lossage): Likewise.
5064         Rename parameter so that exgettext recognizes it as
5065         translatable message.
5066         (LOSE_AND_RETURN): Rename parameter to msgid.
5067
5068 2002-02-17  Kazu Hirata  <kazu@hxi.com>
5069
5070         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
5071         hard coded register number with an appropriate macro.
5072         (HARD_REGNO_MODE_OK): Likewise.
5073         (ARG_POINTER_REGNUM): Likewise.
5074         (STATIC_CHAIN_REGNUM): Likewise.
5075         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
5076         * config/h8300/h8300.md (define_constants): Define more
5077         register numbers.
5078
5079 2002-02-17  Philipp Thomas  <pthomas@suse.de>
5080
5081         * config/i386/i386.h: Don't mark empty strings for translation.
5082
5083 2002-02-16  H.J. Lu <hjl@gnu.org>
5084
5085         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
5086
5087 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
5088
5089         * cppinit.c (merge_include_chains): Check for brack being
5090         NULL before attempting to merge it with qtail.
5091
5092 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
5093
5094         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
5095         DBX_DEBUG.
5096
5097 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5098
5099         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
5100
5101 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5102
5103         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
5104         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
5105         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
5106
5107 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5108
5109         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
5110         now only if !TARGET_FIX.
5111         (*movsi_nt_vms_fix): New pattern.
5112
5113 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
5114
5115         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
5116         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
5117         (alpha_sa_mask, alpha_sa_size): Reflect above change.
5118         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
5119         (alpha_start_function, alpha_expand_epilogue): Likewise.
5120         (unicosmk_gen_dsib): Likewise.
5121
5122 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5123
5124         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
5125
5126 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
5127
5128         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
5129         check_and_change_labels, s390_final_chunkify): Delete.
5130         (s390_split_branches, s390_chunkify_pool): New functions.
5131         (s390_function_prologue): Call them.
5132
5133         * config/s390/s390.h (S390_REL_MAX): Delete.
5134         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
5135
5136         * config/s390/s390.md (cjump, icjump, jump): Fix length
5137         attribute calculation.
5138
5139
5140 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
5141
5142         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
5143         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
5144
5145 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5146
5147         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
5148         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
5149         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
5150
5151 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5152
5153         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
5154
5155 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
5156
5157         * reload.c (find_dummy_reload): Check that an output register
5158         is valid for its mode.
5159
5160 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
5161
5162         * combine.c (known_cond): After replacing the REG of a SUBREG, try
5163         to simplify it.
5164
5165         * function.c (assign_parms): Demote promoted argument passed by
5166         transparent reference.
5167
5168 2001-02-14      Joel Sherrill <joel@OARcorp.com>
5169
5170         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
5171         -Acpu() and -Amachine() to eliminate warnings.
5172
5173 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
5174
5175         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
5176
5177 2002-02-14  Kazu Hirata  <kazu@hxi.com>
5178
5179         * config/h8300/h8300-protos.h: Update the prototype for
5180         const_costs.
5181         * config/h8300/h8300.c (const_costs): Treat SET as a little
5182         more expensive operation.
5183         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
5184         reference to const_costs.
5185
5186 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
5187
5188         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
5189
5190 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
5191
5192         PR c/5503:
5193         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
5194         use arguments from newtype.
5195
5196 2002-02-13  Eric Christopher  <echristo@redhat.com>
5197
5198         * config/mips/mips.c (override_options): Add check for march/mipsX
5199         on the same command line. Fix error message in cpu processing.
5200         Remove architecture and ISA checks.
5201
5202 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
5203
5204         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
5205
5206         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
5207
5208 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
5209
5210         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
5211         alternatives.
5212         ("*movv8hi_internal1"): Same.
5213         ("*movv16qi_internal1"): Same.
5214         ("*movv4sf_internal1"): Same.
5215
5216         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
5217         not push_reload for altivec modes.
5218
5219 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
5220
5221         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
5222         all RTEMS targets including removal of #includes from config/*/rtems*.h
5223         file and adding them to tm_file setting. Added xm_defines=POSIX to
5224         many targets.
5225         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
5226         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
5227         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
5228         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
5229         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
5230         config/m68k/rtemself.h: Ditto.
5231         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
5232         config/mips/rtems64.h: Ditto.
5233         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
5234         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
5235         Ditto.
5236         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
5237         config/sparc/rtemself.h: Ditto.
5238         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
5239         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
5240         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
5241         more like arm-elf.
5242         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
5243         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
5244         target made more similar to i386-elf.
5245         * config/i386/t-rtems-i386: Added soft float support and multilibs.
5246         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
5247         be similar to config/m68k/t-m68kelf.
5248         * gthr-rtems.h: Encapsulate with extern "C" for C++.
5249
5250 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
5251
5252         * regmove.c (kill_value): Handle subregs.
5253
5254 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
5255
5256         * i386.md (mul patterns): Allow memory operand to be first;
5257         add expanders where needed; fix constraints.
5258         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
5259         Allow memory operand to be the first.
5260
5261         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
5262         operands.
5263
5264 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
5265
5266         PR c/5681:
5267         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
5268         GET_MODE (x).
5269
5270 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
5271
5272         PR optimization/5547:
5273         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
5274         all valid IA-32 address modes involving non-scaled %ebx and
5275         GOT/GOTOFF as displacement.
5276
5277 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
5278
5279         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
5280         after emitting ltorg insns.
5281
5282         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
5283         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
5284         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
5285         *abssf2): Fix "op_type" attribute.
5286
5287 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
5288
5289         * mkconfig.sh: Avoid using a subshell redirect.
5290         ($output.T): Change to $(output)T.
5291         (ENABLE_NLS): Remove unneeded undef.
5292
5293         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
5294         * config/alpha/x-vms (libsubdir): Define.
5295
5296         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
5297         register frame procedures. Optimize retrieving context.
5298
5299         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
5300         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
5301         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
5302
5303 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5304
5305         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
5306         Make same change as for find_base_value.
5307
5308 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5309
5310         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
5311         of QImode and SImode.
5312
5313 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5314
5315         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
5316         length computation of movsi.
5317         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
5318
5319 2002-02-13  Kazu Hirata  <kazu@hxi.com>
5320
5321         * config/h8300/h8300.md (subqi3): Tighten the predicate for
5322         operands[2] to register_operand.
5323
5324 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
5325
5326         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
5327
5328 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
5329
5330         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
5331         for altivec_lvx* and altivec_stvx*.
5332         ("*movv4si_internal"): Add constraint for loading from GPRs.
5333         ("*movv8hi_internal1"): Same.
5334         ("*movv16qi_internal1"): Same.
5335         ("*movv4sf_internal1"): Same.
5336
5337         * config/rs6000/rs6000.c (altivec_register_operand): New.
5338
5339         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
5340         altivec_register_operand.
5341
5342 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
5343
5344         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
5345         handle SYMBOL_REF.
5346
5347 2002-02-13  Stan Shebs  <shebs@apple.com>
5348
5349         * c-typeck.c (digest_init): Handle vectors.
5350         (really_start_incremental_init): Same.
5351         (pop_init_level): Same.
5352         (process_init_element): Same.
5353
5354         * varasm.c (output_constant): Same.
5355
5356         * expr.c (clear_storage): Same.
5357         (store_constructor): Same.
5358
5359 2002-02-12  Eric Christopher  <echristo@redhat.com>
5360
5361         * explow.c (hard_function_value): Add comment explaining
5362         signed/unsigned comparison.
5363
5364 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
5365
5366         * jump.c (never_reached_warning): Add finish argument.
5367         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
5368         real insn after end.
5369         * rtl.h (never_reached_warning): Adjust prototype.
5370         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
5371         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
5372         never_reached_warning.
5373
5374 2002-02-12  Graham Stott  <grahams@redhat.com>
5375
5376         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
5377
5378 2002-02-12  Kazu Hirata  <kazu@hxi.com>
5379
5380         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
5381         logical shifts on H8/300.
5382         (shift_alg_si): Improve several shifts on H8/300.
5383         (get_shift_alg): Likewise.
5384
5385 2002-02-12  Graham Stott  <grahams@redhat.com>
5386
5387         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
5388
5389 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5390
5391         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
5392         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
5393
5394 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
5395
5396         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
5397         non-CONST_INT through default_assemble_integer.
5398         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
5399         <case 8>: Abort for CONST_DOUBLE.
5400
5401 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5402
5403         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
5404         is specified.
5405         * config/pa/pa-linux.h (LIB_SPEC): Delete.
5406         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
5407
5408 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
5409
5410         * config/stormy16/stormy16.md (zero_extendqihi2): New.
5411
5412 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
5413
5414         * regrename.c (regrename_optimize): Don't accept a
5415         part-clobbered register if the replaced register is not part
5416         clobbered.
5417
5418         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
5419         take padding into account when computing the argument value.
5420
5421         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
5422
5423         * combine.c (try_combine): Apply substitutions in
5424         CALL_INSN_FUNCTION_USAGE too.
5425
5426 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
5427
5428         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
5429         __builtin_altivec_abs*.
5430         (bdesc_abs): New.
5431
5432         * config/rs6000/rs6000.h (rs6000_builtins): Add
5433         ALTIVEC_BUILTIN_ABS*.
5434
5435         * config/rs6000/altivec.h: Use const char for builtins expecting
5436         literals.
5437         (vec_abs): New versions for C and C++.
5438         (vec_abss): Same.
5439
5440 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5441
5442         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
5443         using Pmode.
5444
5445 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5446
5447         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
5448         constant definition from h8300.md.
5449         (FRAME_POINTER_REGNUM): Likewise.
5450         * config/h8300/h8300.md (define_constants): Add FP_REG.
5451
5452 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5453
5454         * config/h8300/h8300.c (print_operand): Remove redundant code.
5455
5456 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5457
5458         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
5459         * config/h8300/h8300.c (byte_reg): Make it static.
5460
5461 2002-02-10  Richard Henderson  <rth@redhat.com>
5462
5463         PR c/5623
5464         * c-typeck.c (incomplete_type_error): Handle flexible array members.
5465
5466 2002-02-10  Richard Henderson  <rth@redhat.com>
5467
5468         PR c++/5624
5469         * tree.c (append_random_chars): Don't abort if main_input_filename
5470         does not exist.
5471
5472 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
5473
5474         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
5475
5476 2002-02-10  Kazu Hirata  <kazu@hxi.com>
5477
5478         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
5479         (pushhi1): Likewise.
5480
5481 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5482
5483         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
5484         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
5485
5486 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
5487
5488         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
5489         remove MASK_VIS.
5490         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
5491
5492 2002-02-09  Kazu Hirata  <kazu@hxi.com>
5493
5494         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
5495         a half of an SImode register on H8/300.
5496
5497 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
5498
5499         * i386.md (movdi_2): Add missing '!'.
5500
5501 2002-02-09  Kazu Hirata  <kazu@hxi.com>
5502
5503         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
5504         definitions.
5505
5506 2002-02-09  Kazu Hirata  <kazu@hxi.com>
5507
5508         * config/h8300/h8300.md (length): Correct the distance valid
5509         for the short branch.
5510
5511 2002-02-09  Kazu Hirata  <kazu@hxi.com>
5512
5513         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
5514
5515 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
5516
5517         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
5518         registers in SImode.
5519         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
5520         part-clobbered.
5521
5522         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
5523         patch.
5524
5525         Contribute sh64-elf.
5526         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
5527         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
5528         (sh_cannot_modify_jumps_p): New function.
5529         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
5530         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
5531         (sh_ms_bitfield_layout_p): New function.
5532         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
5533                     Zack Weinberg  <zack@codesourcery.com>
5534         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
5535         expand_simple_binop instead of expand_binop.
5536         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
5537         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
5538         use of .quad and .uaquad.
5539         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
5540         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
5541         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
5542         * config/sh/sh.md (movdi_const, movdi_const_32bit,
5543         movdi_const_16bit): Make sure all CONSTs have modes.
5544         (sym2PIC): Ditto, but by adjusting all callers.
5545         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
5546         if the prologue calls the SHmedia argument decoder or register
5547         saver.
5548         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
5549         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
5550         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
5551         (sh_expand_epilogue): Don't emit USE of return target register.
5552         (prepare_move_operands): Legitimize DImode PIC addresses.
5553         (sh_media_register_for_return): Skip tr0, used to initialize the
5554         PIC register.
5555         (sh_expand_prologue): Remove explicit USE of return register.
5556         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
5557         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
5558         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
5559         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
5560         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
5561         EXTRA_CONSTRAINT_T.
5562         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
5563         (MOVI_SHORI_BASE_OPERAND_P): New.
5564         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
5565         (EXTRA_CONSTRAINT_T): Define in terms of them.
5566         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
5567         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
5568         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
5569         alternatives supporting TARGET_REGS.
5570         (UNSPEC_GOTPLT): New constant.
5571         (movdi split): Move incrementing of LABEL_NUSES...
5572         (movdi_const, movdi_const_32bit): Here.  Use
5573         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
5574         (movdi_const_16bit): New.
5575         (call, call_value) [flag_pic]: Use GOTPLT.
5576         (call_pop, call_value_pop): New expands.
5577         (call_pop_compact, call_pop_rettramp): New insns.
5578         (call_value_pop_compact, call_value_pop_rettramp): New insns.
5579         (sibcall) [flag_pic]: Use GOT.
5580         (builtint_setjmp_receiver): Remove bogus, unused expand.
5581         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
5582         (*pt, *ptb, ptrel): New insns.
5583         (sym2GOT): Handle DImode GOT.
5584         (sym2GOTPLT, symGOTPLT2reg): New expands.
5585         (sym2PIC): New expand.
5586         (shcompact_return_tramp): Use GOTPLT to return trampoline.
5587         (shcompact_return_tramp_i): Use return register explicitly.
5588         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
5589         disable flag_reorder_blocks.
5590         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
5591         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
5592         clobbers, for clarity.
5593         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
5594         restoring of r0 in macl as MAYBE_DEAD.
5595         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
5596         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
5597         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
5598         alter_subreg all over.
5599         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
5600         reload, instead of emitting instructions that would require
5601         reloading.
5602         (casesi_load_media): Add missing modes.
5603         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
5604         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
5605         as used if the argument decoder is called.
5606         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
5607         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
5608         Pmode, then extend it to DImode if necessary.
5609         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
5610         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
5611         constants in FPU-enabled SHmedia, let them be loaded from memory.
5612         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
5613         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
5614         Adjust whitespace in assembly output templates.
5615         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
5616         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
5617         mode of if_then_else.
5618         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
5619         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
5620         sh.h.
5621         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
5622                     Joern Rennecke <amylaar@redhat.com>
5623         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
5624         (SUBTARGET_CPP_PTR_SPEC): New.
5625         (SUBTARGET_CPP_SPEC): Remove.
5626         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
5627         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5628         Fix typo in previous checkin.
5629         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
5630         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
5631         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
5632                     Alexandre Oliva  <aoliva@redhat.com>
5633         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
5634         what single FP register can hold for SHmedia target.
5635         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
5636                     Alexandre Oliva  <aoliva@redhat.com>
5637         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
5638         Do not split into SUBREG.
5639         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
5640         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
5641         and added new functions as specified in SH5 ABI r9.
5642         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
5643         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
5644         8-byte boundary.
5645         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
5646         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
5647         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
5648         and consttable_window_ends.
5649         2001-06-03  Graham Stott  <grahams@redhat,com>
5650         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
5651         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
5652         * config/sh/sh.c (print_operand): Handle floating-point pair,
5653         vector and matrix registers.
5654         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
5655         vector modes into account.
5656         * config/sh/sh.md (movv2sf): Split move between registers into
5657         movdf.
5658         (movv4sf, movv16sf): Introduce insns that get split only after
5659         reload.
5660         * config/sh/shmedia.h: Fix Copyright dates.
5661         * config/sh/ushmedia.h: Likewise.  Move loop counter
5662         declarations into conditionals that uses them.
5663         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
5664         loop boundary.
5665         * config/sh/sshmedia.h: Fix Copyright dates.
5666         (sh_media_PUTCFG): Fix constraints.
5667         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
5668         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
5669         ptrmemfunc_vbit_in_delta for SH5.
5670         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
5671         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
5672         * invoke.texi: Likewise.
5673         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
5674         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
5675         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
5676         GCC_pop_shmedia_regs_nofpu): New global symbols.
5677         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
5678         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
5679         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
5680         compact function with nonlocal labels.
5681         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
5682         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
5683         (initial_elimination_offset): Account for their stack space.
5684         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
5685         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
5686         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
5687         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
5688         least one of the operands to be a register.
5689         (movv2sf): Likewise.  Renamed to movv2sf_i.
5690         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
5691         prepare_move_operands() before emitting SHmedia insns.
5692         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
5693         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
5694         Don't save nor initialize r12.  Don't mis-align the stack.
5695         Pad the code with a nop.
5696         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
5697         stack.
5698         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
5699         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
5700         [__SHMEDIA__]: Implement.
5701         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
5702         * config/sh/sh.md: Set latency of `pt' closer to reality.
5703         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
5704         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
5705         Set move, load and store type attributes.
5706         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
5707         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
5708         profiling.
5709         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
5710         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
5711         * config/sh/sh.c (sh_media_register_for_return): New function.
5712         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
5713         branch-target register.
5714         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
5715         * config/sh/sh.md (return_media_i): Use any call-clobbered
5716         branch-target register.
5717         (return_media): If r18 wasn't copied in the prologue, copy it
5718         here.
5719         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
5720         Clear class FP0_REGS.
5721         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
5722         from elf.h.
5723         2001-03-08  DJ Delorie  <dj@redhat.com>
5724         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
5725         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
5726         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
5727         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
5728         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
5729         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
5730         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
5731         return value correctly for call_cookie.
5732         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
5733         * config/sh/crt1.asm (start): Modified so as to call
5734         ___setup_argv_and_call_main.
5735         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
5736         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
5737         SHmedia mode.
5738         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
5739         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
5740         (STRIP_NAME_ENCODING): Use it.
5741         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
5742         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
5743         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
5744         prepare_scc_operands().
5745         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
5746         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
5747         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
5748         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
5749         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
5750         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
5751         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
5752         used in shcompact_incoming_args.
5753         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
5754         change.
5755         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
5756         mode.
5757         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
5758         Adjust accordingly.
5759         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
5760         Simplify.  Adjust.  Add sanity check.
5761         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
5762         FPU_SINGLE_BIT.
5763         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
5764         TARGET_SHCOMPACT.
5765         (udivsi3, divsi3): Use them.
5766         (force_mode_for_call): New insn.
5767         (call, call_value, sibcall_value): Emit it before SHcompact
5768         calls.
5769         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
5770         * config/sh/sh.md (call, call_value, sibcall): Make sure the
5771         call cookie is non-NULL before taking its value.
5772         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
5773         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
5774         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
5775         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
5776         block.
5777         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
5778         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
5779         temporary for stack adjusts.  Use MACL and MACH to pass
5780         arguments to shcompact_incoming_args.
5781         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
5782         clobber r1.
5783         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
5784         (nested_trampoline): Load static chain address into r1.
5785         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
5786         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
5787         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
5788         fp_arith_reg_operand().
5789         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
5790         * config/sh/sh.md (casesi): Sign-extend the first two operands,
5791         and use signed compares for them.
5792         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
5793         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
5794         ones properly aligned.
5795         (find_barrier): Account for extra alignment needed for 8-byte wide
5796         constants.
5797         (machine_dependent_reorg): Require a label for the second 4-byte
5798         constant after an 8-byte one.
5799         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
5800         change.
5801         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
5802         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
5803         last_float when switching float modes.
5804         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
5805         auto-increment for general-purpose registers.
5806         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
5807         result.
5808         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
5809         for stack adjust.
5810         * config/sh/sh.c (sh_builtin_saveregs): Support using all
5811         registers for varargs.
5812         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
5813         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
5814         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
5815         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
5816         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
5817         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
5818         call_cookie accordingly.
5819         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
5820         (SHCOMPACT_BYREF): Likewise.
5821         (SHCOMPACT_FORCE_ON_STACK): New macro.
5822         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
5823         (sh_builtin_saveregs): Likewise.
5824         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
5825         shcompact_incoming_args): Use new shift values.  Support
5826         sequences of consecutive and non-consecutive pushes/pops.
5827         * config/sh/sh.md (return): Don't explicitly use PR_REG.
5828         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
5829         * config/sh/sh.h (TEXT_SECTION): Define.
5830         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
5831         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
5832         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
5833         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
5834         return values on FPU-enabled SHmedia.
5835         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
5836         FPU-enabled SHmedia.
5837         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
5838         value is returned in a non-FP reg and is not returned by
5839         reference.
5840         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
5841         jump_ind.
5842         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
5843         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
5844         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
5845         quad-aligned to be passed by callee-copy reference.
5846         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
5847         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
5848         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
5849         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
5850         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
5851         copying low-numbered FP regs to r7 and r8.
5852         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
5853         FP regs to general-purpose regs only if the copy was passed on the
5854         stack.
5855         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
5856         copying FP reg to r9.
5857         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
5858         copy FP regs to general-purpose regs only in outgoing calls.
5859         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
5860         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
5861         HOST_WIDE_INT.
5862         * config/sh/sh.h (struct sh_args): Document all fields.
5863         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
5864         passed partially on the stack should not consider making
5865         sibcalls.
5866         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
5867         stack_regs only for incoming calls.  When passing FP args,
5868         make sure there are FP regs available before modifying
5869         call_cookie.
5870         (SHCOMPACT_BYREF): Pass double args in general-purpose
5871         registers by reference.
5872         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
5873         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
5874         attempt to generate sibcalls if the caller got any arguments
5875         by reference.
5876         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
5877         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
5878         to 8-byte boundaries.
5879         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
5880         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
5881         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
5882         stored in the stack.
5883         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
5884         for the offsets to have the ISA bit set.
5885         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
5886         invocation.  Use beq instead of bgt to mark end of sequence of
5887         loads.
5888         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
5889         bgt to mark end of sequence of stores.
5890         * config/sh/sh.c (arith_operand): Don't check whether
5891         CONST_OK_FOR_J for now.
5892         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
5893         instead of long for conversion.
5894         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
5895         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
5896         before passing it to fprintf.
5897         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
5898         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
5899         Call set_fpscr before reading/writing SR.
5900         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
5901         Call set_fpscr.
5902         * config/sh/lib1funcs.asm: Add `.align 2' directives before
5903         SHmedia code.
5904         (FMOVD_WORKS): Define on SH5 with FPU.
5905         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
5906         setting.
5907         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
5908         _fpscr_values.
5909         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
5910         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
5911         address.
5912         (ia_main_table): Ditto.
5913         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
5914         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
5915         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
5916         the definitions from sh.h.
5917         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
5918         TARGET_SH5.
5919         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
5920         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
5921         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
5922         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
5923         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
5924         Increment LABEL_NUSES.
5925
5926         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
5927         TARGET_SH5.
5928         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
5929         defined.
5930         * config/sh/elf.h (SIZE_TYPE): Likewise.
5931         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
5932         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
5933         shcompact_incoming_args): Load switch table addresses using
5934         datalabel.
5935         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
5936         (NO_BUILTIN_SIZE_TYPE): Define.
5937         (SIZE_TYPE): Don't define.
5938         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
5939         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
5940         definition of __SH5__=32 for -m5-compact-nofpu.
5941         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
5942         ADDR_DIFF_VEC.
5943         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
5944         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
5945         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
5946         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
5947         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
5948         (INSN_LENGTH_ALIGNMENT): Likewise.
5949         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
5950         * config/sh/sh.md (call, call_value, sibcall): Simplify
5951         copying of non-branch-target register.
5952         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
5953         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
5954         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
5955         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
5956         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
5957         floating-point values as structs.
5958         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
5959         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
5960         general-purpose register.
5961         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
5962         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
5963         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
5964         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
5965         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
5966         (ENCODE_SECTION_INFO): Enclose variables and constants in
5967         DATALABEL unspecs.
5968         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
5969         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
5970         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
5971         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
5972         only for LABEL_REFs.  For SYMBOL_REFs, prepend
5973         SH_DATALABEL_ENCODING to the symbol name.
5974         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
5975         convert_mode().
5976         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
5977         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
5978         UNSPEC_DATALABEL.
5979         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
5980         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
5981         (DATALABEL_REF_P): Don't require CONST.
5982         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
5983         REL label.
5984         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
5985         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
5986         right.
5987         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
5988         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
5989         Use shallow_copy_rtx and PUT_MODE to change the mode of
5990         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
5991         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
5992         on SHmedia using GENERAL_REGs.
5993         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
5994         bltu_media_i): Fix reversion of conditions.
5995         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
5996         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
5997         * config/sh/sh.c (output_far_jump): Save r13 in macl.
5998         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
5999         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
6000         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
6001         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
6002         (GCC_nested_trampoline): Likewise.
6003         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
6004         * config/sh/sh.c (gen_datalabel_ref): Define.
6005         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
6006         (INITIALIZE_TRAMPOLINE): Likewise.
6007         (TRAMPOLINE_ADJUST_ADDRESS): Define.
6008         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
6009         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
6010         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
6011         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
6012         (ic_invalidate): Adjust for SH5.
6013         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
6014         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
6015         _nested_trampoline.
6016         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
6017         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
6018         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
6019         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6020         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
6021         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
6022         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
6023         * config/sh/sh.c (target_reg_operand): Match only target-branch
6024         registers and pseudos that aren't virtual registers.
6025         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6026         Copy operands that don't match target_reg_operand to pseudos.
6027         (call_media, call_value_media, sibcall_media): Use
6028         target_reg_operand instead of target_operand.
6029         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
6030         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
6031         * config/sh/sh.c (target_reg_operand): Match hardware registers
6032         other than branch-target registers.
6033         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
6034         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
6035         (fpscr_values) [SH5 == 32]: Define.
6036         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
6037         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
6038         Handle function addresses coming in SUBREGs.
6039         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
6040         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
6041         shcompact_return_trampoline): Use datalabel where appropriate.
6042         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
6043         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
6044         general-purpose register to copy one branch-target register to
6045         another.
6046         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6047         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
6048         SYMBOL_REFs with VOIDmode.
6049         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
6050         bltu_media_i): New insns.
6051         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
6052         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
6053         (INIT_CUMULATIVE_ARGS): Likewise.
6054         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
6055         * machmode.def (V16SFmode): New mode.
6056         * c-common.c (type_for_mode): Support V2SF and V16SF.
6057         * tree.c (build_common_tree_nodes_2): Likewise.
6058         * tree.h (tree_index): Likewise.
6059         * calls.c (emit_call_1): Take args_so_far.  Adjust all
6060         callers.  Introduce CALL_POPS_ARGS.
6061         * tm.texi (CALL_POPS_ARGS): Document.
6062         * config/sh/crt1.asm: Implement in SHmedia mode.
6063         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
6064         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
6065         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
6066         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
6067         Implement divsi and udivsi in SHmedia mode.  Introduce
6068         SHcompact trampolines.
6069         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
6070         only in SHmedia64.
6071         (regno_reg_class): Rewrite.
6072         (fp_reg_names): Remove.
6073         (sh_register_names, sh_additional_register_names): New.
6074         (print_operand): Added `u'.  Support SUBREGs in addresses.
6075         Add parentheses around shifted CONSTs.
6076         (output_file_start): Output .mode and .abi directives.
6077         (shiftcosts, addsubcosts, multcosts): Adjust.
6078         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
6079         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
6080         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
6081         bytes, not registers.  Take into account the need for the
6082         SHcompact incoming args trampoline.  Adjust all callers.
6083         (sh_expand_prologue): Take stack_regs into account.  Call
6084         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
6085         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
6086         stack aligned as per SH5 ABI.
6087         (sh_builtin_saveregs): Support SH5 ABI.
6088         (sh_build_va_list, sh_va_start): Likewise.
6089         (initial_elimination_offset): Take alignment into account.
6090         Compute location of PR according to the SH5 stack frame.
6091         (arith_reg_operand): Reject branch-target registers.
6092         (shmedia_6bit_operand): New.
6093         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
6094         (target_reg_operand): Match DImode only.  Accept SUBREGs.
6095         (target_operand): New.
6096         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
6097         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
6098         SIBCALL_REGS for SHmedia.
6099         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
6100         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
6101         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
6102         (TARGET_SWITCHES): New SH5 flags.
6103         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
6104         VALID_REGISTER_P to disable unsupported registers.
6105         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
6106         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
6107         (FUNCTION_ARG_PADDING): Define.
6108         (FASTEST_ALIGNMENT): Adjust.
6109         (SH_REGISTER_NAMES_INITIALIZER): New.
6110         (sh_register_names): Declare.
6111         (DEBUG_REGISTER_NAMES): Define.
6112         (REGISTER_NAMES): Define based on sh_register_names.
6113         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
6114         (sh_additional_register_names): Declare.
6115         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
6116         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
6117         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
6118         (REGISTER_NATURAL_MODE): Define.
6119         (FIRST_PSEUDO_REGISTER): Adjust.
6120         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
6121         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
6122         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
6123         (VECTOR_MODE_SUPPORTED_P): Define.
6124         (REG_CLASS_CONTENTS): Adjust.
6125         (SMALL_REGISTER_CLASSES): Adjust.
6126         (REG_ALLOC_ORDER): Adjust.
6127         (INDEX_REG_CLASS): Adjust.
6128         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
6129         (CONST_OK_FOR_LETTER_P): Adjust.
6130         (PREFERRED_RELOAD_CLASS): Adjust.
6131         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
6132         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
6133         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
6134         (FIRST_FP_PARM_REG): Adjust.
6135         (CALL_POPS_ARGS): Define.
6136         (FUNCTION_ARG_REGNO_P): Adjust.
6137         (struct sh_args): New fields.
6138         (GET_SH_ARG_CLASS): Adjust.
6139         (INIT_CUMULATIVE_ARGS): Adjust.
6140         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
6141         (FUNCTION_ARG_ADVANCE): Adjust.
6142         (FUNCTION_ARG): Adjust.
6143         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
6144         (FUNCTION_ARG_CALLEE_COPIES): Define.
6145         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
6146         (STRICT_ARGUMENT_NAMING): Define.
6147         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
6148         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
6149         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
6150         (SETUP_INCOMING_VARARGS): Adjust.
6151         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
6152         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
6153         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
6154         (SUBREG_OK_FOR_INDEX_P): Adjust.
6155         (EXTRA_CONSTRAINT_S): Update.
6156         (EXTRA_CONSTRAINT_T): New.
6157         (EXTRA_CONSTRAINT): Adjust.
6158         (GO_IF_LEGITIMATE_INDEX): Adjust.
6159         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
6160         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
6161         (MOVE_MAX): Adjust.
6162         (MAX_MOVE_MAX): Define.
6163         (Pmode): Adjust.
6164         (CONST_COSTS): Adjust.
6165         (REGISTER_MOVE_COST): Adjust.
6166         (BRANCH_COST): Adjust.
6167         (TEXT_SECTION_ASM_OP): Adjust.
6168         (DBX_REGISTER_NUMBER): Adjust.
6169         (ASM_OUTPUT_DOUBLE_INT): New.
6170         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6171         (PREDICATE_CODES): Adjust.
6172         (PROMOTE_MODE): Adjust.
6173         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
6174         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
6175         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
6176         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
6177         (DR0_REG, DR2_REG, DR4_REG): Renumber.
6178         (TR0_REG, TR1_REG, TR2_REG): New.
6179         (XD0_REG): Renumber.
6180         (UNSPEC_COMPACT_ARGS): New.
6181         (type): Added pt and ptabs.
6182         (length): Default to 4 on SHmedia.  Default pt length to 12
6183         and     20 on SHmedia32 and SHmedia64, respectively.
6184         (pt): New function unit.
6185         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
6186         Add whitespace between operands of SHmedia instructions.
6187         (movdicc): Fix.
6188         (adddi3_media, addsi3_media): Adjust constraints.
6189         (subsi3) [SHmedia]: Force operand 1 into a register.
6190         (udivsi3_i1_media, udivsi3_i4_media): New.
6191         (udivsi3): Support SHmedia.
6192         (divsi3_i1_media, divsi3_i4_media): New.
6193         (divsi3): Support SHmedia.
6194         (anddi3, iordi3, xordi3): Adjust constraints.
6195         (zero_extendhidi2, zero_extendqidi2): New.
6196         (extendsidi2, extendhidi2, extendqidi2): New.
6197         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
6198         (pop_e, pop_fpul, pop_4): Likewise.
6199         (movsi_media): Support FP and BT registers.
6200         (movsi_media_nofpu): New.  Adjust splits to DImode.
6201         (lduw, ldub): Renamed to zero_extend* above.
6202         (movqi_media): Fix typo.
6203         (movdi_media): Support FP and BT registers.
6204         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
6205         (movdi_const_32bit): New.
6206         (shori_media): Require immediate operand.  Use `u' for output.
6207         (movdf_media, movsf_media): Simplified.
6208         (movdf_media_nofpu, movsf_media_nofpu): New.
6209         (movdf, movsf): Adjust
6210         (movv2sf, movv2sf, movv16sf): New.
6211         (beq_media, beq_media_i): Adjust constraints.  Don't use
6212         scratch BT register.
6213         (bne_media, bne_media_i): Likewise.
6214         (bgt_media, bgt_media_i): Likewise.
6215         (bge_media, bge_media_i): Likewise.
6216         (bgtu_media, bgtu_media_i): Likewise.
6217         (bgeu_media, bgeu_media_i): Likewise.
6218         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
6219         bunordered): Emit jump insn.  Force operands to registers when
6220         needed.
6221         (jump_media, jump): Simplify.
6222         (call_compact, call_compact_rettramp): New.
6223         (call_value_compact, call_value_compact_rettramp): New.
6224         (call_media, call_value_media): Simplify.
6225         (sibcall_compact, sibcall_media): New.
6226         (call, call_value): Adjust for SHmedia and SHcompact.
6227         (sibcall, sibcall_value, untyped_call): Likewise.
6228         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
6229         (indirect_jump): Adjust for SHmedia.
6230         (casesi_jump_media): New.
6231         (nop): Re-enable for SHmedia.
6232         (call_site): Restrict to SH1.
6233         (casesi): Adjust for SHmedia.
6234         (casesi_shift_media, casesi_load_media): New.
6235         (return): Explicitly use PR register.  Call return trampoline
6236         on SHcompact.
6237         (return_i): Explicitly use PR register.
6238         (shcompact_return_tramp, shcompact_return_tramp_i): New.
6239         (return_media): Adjust.
6240         (shcompact_incoming_args): New.
6241         (epilogue): Adjust.
6242         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6243         (movstrsi): Disable on SH5.
6244         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
6245         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
6246         (subsf3, subsf3_media): Likewise.
6247         (mulsf3, mulsf3_media, mac_media): Likewise.
6248         (divsf3, divsf3_media): Likewise.
6249         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
6250         (floatsisf2, fux_truncsfsi2): Likewise.
6251         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
6252         constraints.
6253         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
6254         (cmpunsf_media, cmpsf): Likewise.
6255         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
6256         (abssf2, abssf2_media): Likewise.
6257         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
6258         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
6259         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
6260         (floatsidf2, fix_truncdfsi2): Likewise.
6261         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
6262         constraints.
6263         (cmpeqdf_media, cmpgtdf_media): Likewise.
6264         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
6265         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
6266         (absdf2, absdf2_media): Likewise.
6267         (extendsfdf2, extendsfdf2_media): Likewise.
6268         (truncsfdf2, truncsfdf2_media): Likewise.
6269         * config/sh/sh64.h: New file.
6270         * config/sh/t-sh64: New file.
6271         * config/sh/shmedia.h: New file.
6272         * config/sh/ushmedia.h: New file.
6273         * config/sh/sshmedia.h: New file.
6274         * configure.in: Added sh64-*-elf.
6275         * configure: Rebuilt.
6276         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
6277         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
6278         (reg_class_from_letter): Use `b' for TARGET_REGS.
6279         (print_operand): Support `%M', `%m', `AND' and
6280         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
6281         (andcosts): Adjust for SHmedia.
6282         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
6283         Likewise.
6284         (target_reg_operand): New function.
6285         * config/sh/sh-protos.h (target_reg_operand): Declare.
6286         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
6287         FP registers on SH5.
6288         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
6289         on SH4.
6290         (TARGET_REGISTER_P): New macro.
6291         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
6292         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
6293         (EXTRA_CONSTRAINT_S): New macro.
6294         (EXTRA_CONSTRAINT): Adjust.
6295         (FLOAT_TYPE_SIZE): Define to 32.
6296         (Pmode): DImode on SHmedia.
6297         (CONST_COSTS): Adjust for SHmedia literals.
6298         (PREDICATE_CODES): Added target_reg_operand.
6299         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
6300         * config/sh/sh.md: Remove all attrs from SHmedia insns.
6301         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
6302         (cmpdi): Accept SHmedia.
6303         (movdicc_false, movdicc_true): New insns.
6304         (movdicc): New expand.
6305         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
6306         no_new_pseudos.
6307         (addsi3_media): Match `S' constraint.
6308         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
6309         (negdi2): Expand for SHmedia.
6310         (one_cmpldi2): New expand.
6311         (zero_extendsidi2): Change from expand to insn.
6312         (extendsidi2): Add constraints.
6313         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
6314         LD/ST address.  Fix SI immediate loading split.
6315         (movhi_media, movqi_media, lduw, ldub): New insns.
6316         (movhi, movqi): Accept SHmedia.
6317         (shori_media, movdi_media): Relax input constraints.  Split
6318         symbolic constants.
6319         (movdf_media, movsf_media): New insn.  New split to movdi.
6320         (movdf, movsf): Match on SHmedia.
6321         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
6322         bgeu_media): New insns and splits.  New insns with `_i' suffix.
6323         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
6324         (bunordered): New expand.
6325         (jump_compact): Renamed from `jump'.
6326         (jump_media): New insn.
6327         (jump): New expand.
6328         (call_media, call_value_media): New insns.
6329         (call, call_value): Adjust.
6330         (indirect_jump_compact): Renamed from `indirect_jump'.
6331         (indirect_jump_media): New insn.
6332         (indirect_jump): New expand.
6333         (untyped_call, return): Accept SHmedia.
6334         (return_media): New insn.
6335         (prologue, epilogue, blockage): Accept SHmedia.
6336         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
6337         (sunordered): New expand.
6338         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
6339         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
6340         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
6341         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
6342         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
6343         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
6344         abssf2_media): New insns.
6345         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
6346         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
6347         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
6348         floatdidf2, floatsidf2_media, fix_truncdfdi2,
6349         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
6350         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
6351         absdf2_media): New insns.
6352         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
6353         (extendsfdf2_media, truncdfsf2_media): New insns.
6354         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
6355         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
6356         * config/sh/sh.h (CONST_OK_FOR_J): Document.
6357         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
6358         * config/sh/sh.md (adddi3): New expand.
6359         (adddi3_media, adddi3z_media): New insns.
6360         (adddi3_compact): Renamed from adddi3.
6361         (addsi3_media): Use add.l r63 to add constant zero.
6362         (subdi3): New expand.
6363         (subdi3_media): New insn.
6364         (subdi3_compact): Renamed from subdi3.
6365         (mulsidi3): New expand.
6366         (mulsidi3_media): New insn.
6367         (mulsidi3_compact): Renamed from mulsidi3.
6368         (umulsidi3): New expand.
6369         (umulsidi3_media): New insn.
6370         (umulsidi3_compact): Renamed from umulsidi3.
6371         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
6372         (ashlsi3, ashrsi3, lshrsi3): Use them.
6373         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
6374         (ashldi3, ashrdi3, lshrdi3): Use them.
6375         (zero_extendsidi2): New expand.
6376         (extendsidi2): New insn.
6377         (movsi_media): New insn.  Split to movdi to load constants.
6378         (movsi): Enable for shmedia.
6379         (movdi_media): New insn.  Use shori_media to load wide constants.
6380         (short_media): New insn.
6381         (movdi): Enable for shmedia.
6382         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
6383         * config/sh/sh.h (CPP_SPEC): Added `m5'.
6384         (SUBTARGET_CPP_SPEC): Added `!m5'.
6385         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
6386         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
6387         to all other SH variants.
6388         (TARGET_DEFAULT): Set to SH1_BIT.
6389         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
6390         (BITS_PER_WORD): Raise to 64 on shmedia.
6391         (MAX_BITS_PER_WORD): Change to 64.
6392         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
6393         (INT_TYPE_SIZE): Keep as 32.
6394         (UNITS_PER_WORD): Raise to 8 on shmedia.
6395         (MIN_UNITS_PER_WORD): Keep as 4.
6396         (POINTER_SIZE): Raise to 64 on shmedia.
6397         (CONST_OK_FOR_J): New macro.
6398         (CONST_OK_FOR_LETTER_P): Use it.
6399         (processor_type): Add PROCESSOR_SH5.
6400         * config/sh/sh.md: Conditionalize all expands, insns and
6401         splits to TARGET_SH1.
6402         (cpu): Added sh5.
6403         (addsi3_compact): Renamed from...
6404         (addsi3): Now an expand.
6405         (addsi3_media, subsi3_media): New insns.
6406         (subsi3): Don't negate constants with SHmedia.
6407
6408         * hooks.c: New file.
6409         * hooks.h: New file.
6410         * Makefile.in (HOOKS_H): New.
6411         (TARGET_DEF_H): Added $(HOOKS_H).
6412         (OBJS): Added hooks.o.
6413         (cfgcleanup.o, bb-reorder.o): Added target.h.
6414         (hooks.o): Added dependencies.
6415         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
6416         (TARGET_INITIALIZER): this.
6417         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
6418         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
6419         * bb-reorder.c: Include target.h.
6420         (reorder_basic_blocks): Skip if cannot modify jumps.
6421         * cfgcleanup.c: Include target.h.
6422         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
6423
6424 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
6425
6426         * config/mips/mips.md (casesi_internal, casesi_internal_di):
6427         Protect jump delay slot instructions with .set noreorder and
6428         .set nomacro.
6429
6430 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
6431
6432         * config/mips/mips.md (casesi_internal_di): Calculate
6433         the index into the target offset table correctly.
6434
6435 2002-02-08  Richard Henderson  <rth@redhat.com>
6436
6437         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
6438         * final.c (output_addr_const): Accept and discard SUBREG.
6439         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
6440         mark them unknown instead.
6441         (simplify_subtraction): Handle RTX_UNKNOWN.
6442         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
6443
6444 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
6445
6446         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
6447
6448 2002-02-08  Richard Henderson  <rth@redhat.com>
6449
6450         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
6451
6452 2002-02-08  Andreas Jaeger  <aj@suse.de>
6453
6454         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
6455         * config/i386/t-linux64: New file.
6456
6457 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
6458
6459         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
6460         * c-parse.in (compstmt): Clear last_expr_type.
6461
6462 2002-02-07  Richard Henderson  <rth@redhat.com>
6463
6464         * loop.c (strength_reduce): Sink final_value when not
6465         eliminating a biv.
6466
6467 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
6468
6469         * config/sparc/freebsd.h: Fix mismatched spec {.
6470
6471 2002-02-07  Richard Henderson  <rth@redhat.com>
6472
6473         * cfgrtl.c: Include recog.h and insn-config.h.
6474         (keep_with_call_p): Fix general_operand invocation.
6475         * Makefile.in (cfgrtl.o): Update dependencies.
6476
6477 2002-02-07  Kazu Hirata  <kazu@hxi.com>
6478
6479         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
6480         comment.  Accept HImode only if TARGET_H8300.
6481
6482 2002-02-07  Eric Christopher  <echristo@redhat.com>
6483
6484         * config/mips/crtn.asm: Cleanup #ifdefs.
6485
6486 2002-02-07  Eric Christopher  <echristo@redhat.com>
6487
6488         * config/mips/crti.asm: Add changes for mips16. mips16 uses
6489         register 7 as RA instead of $31.
6490         * config/mips/crtn.asm: Ditto.
6491         * config/mips/mips.c (mips_move_2words): Add case for
6492         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
6493         (compute_frame_size): Fix typo.
6494         (save_restore_insns): Ditto.  Make documentation about using
6495         register $7 as return register more precise.
6496         (mips_expand_epilogue): Fix comment. Add code to work around not
6497         being able to add to the stack pointer directly.
6498         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
6499         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
6500         epilogue.
6501
6502 2002-02-07  Tom Rix  <trix@redhat.com>
6503
6504         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
6505         immediates in ldu and stdu DS opcode field.
6506         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
6507         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
6508         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
6509
6510 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
6511
6512         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
6513         offset for stack bias.
6514
6515 2002-02-07  H.J. Lu <hjl@gnu.org>
6516
6517         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
6518
6519 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
6520
6521         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
6522
6523 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
6524
6525         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
6526         * i386.c (x86_order_regs_for_local_alloc): New global function.
6527         * i386.h (REG_ALLOC_ORDER): CLeanup.
6528         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
6529
6530 2002-02-07  Richard Henderson  <rth@redhat.com>
6531
6532         PR optimization/2463
6533         * alias.c (find_base_value): Recall base values for fixed hard regs.
6534         * loop.c (loop_regs_update): Don't use single_set on non-insns.
6535
6536 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
6537
6538         * config/mips/mips.md (define_delay) [mips16]: Adjust required
6539         length.
6540
6541 2002-02-06  Richard Henderson  <rth@redhat.com>
6542
6543         PR c/5609
6544         * stmt.c (resolve_operand_name_1): Take more care with mixed
6545         named and unnamed operands.
6546
6547 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
6548             Jan Hubicka  <jh@suse.cz>
6549
6550         * loop.c (remove_constant_addition): Avoid clobbering a shared
6551         CONST expression.
6552
6553 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6554
6555         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
6556         * config/s390/t-linux64: New file.
6557         * config/s390/libgcc-glibc.ver: New file.
6558
6559 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
6560
6561         * config/s390/linux64.h: Delete file.
6562         * config/s390/s390x.h: New file.
6563         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
6564         as target header file.
6565         * config/s390/linux.h (TARGET_VERSION): Define depending on
6566         DEFAULT_TARGET_64BIT.
6567         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
6568         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
6569         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
6570         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
6571         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
6572         (EXTRA_SPEC): New define.
6573         * config/s390/s390.h (TARGET_VERSION): Define depending on
6574         DEFAULT_TARGET_64BIT.
6575         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
6576
6577 2002-02-06  Jason Merrill  <jason@redhat.com>
6578
6579         * c-decl.c (finish_function): Warn about a non-void function with
6580         no return statement and no abnormal exit.
6581         (current_function_returns_abnormally): New variable.
6582         (start_function): Clear it.
6583         (struct c_language_function): Add returns_abnormally.
6584         (push_c_function_context): Save it.
6585         (pop_c_function_context): Restore it.
6586         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
6587         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
6588         an explicit return type.
6589         * c-tree.h: Declare current_function_returns_abnormally.
6590         (C_FUNCTION_IMPLICIT_INT): New macro.
6591         * c-typeck.c (build_function_call): Set it.
6592         (c_expand_return): Set current_function_returns_value even if the
6593         value is erroneous.
6594
6595 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
6596
6597         PR c/5420:
6598         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
6599         unsafe for reevaluation.
6600
6601 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
6602
6603         PR c/5482:
6604         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
6605         EXPR_STMT, but COMPOUND_STMT, recurse into it.
6606
6607 2002-02-06  Richard Henderson  <rth@redhat.com>
6608
6609         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
6610         be a general_operand.  Dest for function value must be a pseudo.
6611
6612 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
6613
6614         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
6615         as SYMBOL_REFs from the constant pool.
6616
6617 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
6618
6619         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
6620         passed by invisible reference.
6621
6622 2002-02-05  Richard Henderson  <rth@redhat.com>
6623
6624         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
6625
6626 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
6627
6628         Implement using "base addresses" in insn operands as default.
6629         * config/mmix/mmix.c (mmix_conditional_register_usage): if
6630         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
6631         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
6632         used to read the rtx value.
6633         (mmix_target_asm_function_epilogue): Fix spacing.
6634         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
6635         (mmix_legitimate_address): Ditto.
6636         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
6637         should be loaded with a GETA insn.  Don't allocate needless extra
6638         char for nul termination and fix misleading comment.
6639         (mmix_print_operand_address): Handle constants if
6640         TARGET_BASE_ADDRESSES.
6641         (mmix_output_register_setting): Use base addressing if
6642         TARGET_BASE_ADDRESSES and the number of insns is 3.
6643         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
6644         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
6645         to use R as constraint, add LDA to match s.
6646         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
6647         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
6648         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
6649         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
6650         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
6651         order with other fixed registers.
6652         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
6653         other parameter/call-clobbered registers.
6654         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
6655         -mbase-addresses, -mno-base-addresses.
6656         (MMIX Options): Ditto.
6657
6658 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6659
6660         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
6661
6662 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
6663
6664         * config/rs6000/altivec.h: Change elem to _S_elem.
6665
6666 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
6667
6668         * config/netbsd.h (WCHAR_TYPE): Define.
6669         (WCHAR_TYPE_SIZE): Ditto.
6670         (WINT_TYPE): Ditto.
6671         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
6672         (WCHAR_UNSIGNED): Ditto.
6673         (WCHAR_TYPE_SIZE): Ditto.
6674         (WINT_TYPE): Ditto.
6675         * config/arm/netbsd.h: Likewise.
6676         * config/i386/netbsd-elf.h: Likewise.
6677         * config/i386/netbsd.h: Likewise.
6678         * config/m68k/netbsd-elf.h: Likewise.
6679         * config/m68k/netbsd.h: Likewise.
6680         * config/ns32k/netbsd.h: Likewise.
6681         * config/sparc/netbsd.h: Likewise.
6682         * config/vax/netbsd.: Likewise.
6683
6684 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
6685
6686         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
6687         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
6688         (TARGET_INITIALIZER): this.
6689         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
6690         (BITFIELD_NBYTES_LIMITED): Markup fix.
6691         * tree.h (default_ms_bitfield_layout_p): Declare.
6692         (record_layout_info): Added prev_field.
6693         * tree.c (default_ms_bitfield_layout_p): New fn.
6694         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
6695         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
6696         * stor-layout.c: Include target.h.
6697         (start_record_layout): Initialize prev_field.
6698         (place_field): Handle MS bit-field layout, and disregard
6699         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
6700         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
6701         * Makefile.in (stor-layout.o): Adjust dependencies.
6702
6703 2002-02-05  Jason Merrill  <jason@redhat.com>
6704
6705         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
6706
6707 2002-02-05  Andreas Jaeger  <aj@suse.de>
6708
6709         * crtstuff.c: Fix comments.
6710
6711 2002-02-05  Richard Henderson  <rth@redhat.com>
6712
6713         PR fortran/3393
6714         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
6715         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
6716
6717         PR fortran/3392
6718         * config/mips/mips.c (function_arg): Handle TImode.
6719         (function_arg_advance): Likewise.
6720
6721 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
6722
6723         * config/rs6000/altivec.h (vec_step_help): Rename to
6724         __vec_step_help.
6725
6726 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
6727
6728         * config/rs6000/altivec.h: Fix typos.
6729
6730 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
6731
6732         * config/arm/netbsd.h: Correct a comment.
6733
6734 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
6735
6736         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
6737         building void typed builtins.
6738
6739         * config/rs6000/altivec.h (vec_ld*): Fix typos.
6740         (vec_step): Implement for C++.
6741
6742 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6743
6744         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
6745
6746 2002-02-04  Richard Henderson  <rth@redhat.com>
6747
6748         * combine.c (nonzero_bits): Re-introduce special case for
6749         sp/fp/ap wrt REGNO_POINTER_ALIGN.
6750
6751 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
6752
6753         * doc/extend.texi: Warn about unsupported usage of altivec
6754         builtins.
6755
6756         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
6757         (altivec_predicate_*): New.
6758
6759         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
6760         Add C++ version of vec_*() functions.
6761
6762         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
6763         (bdesc_2arg): Remove altivec predicates.
6764         (altivec_expand_builtin): Handle predicates.
6765         (altivec_init_builtins): Handle predicates.
6766         (altivec_expand_predicate_builtin): New.
6767
6768 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6769
6770         * pa.c (DO_FRAME_NOTES): Move forward.
6771         (store_reg): Revise handling of frame notes.
6772         (load_reg): Likewise.
6773         (set_reg_plus_d): Likewise.
6774         (hppa_expand_prologue): Likewise.
6775         (hppa_expand_epilogue): Likewise.
6776
6777 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6778
6779         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
6780
6781 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
6782
6783         PR c/4475, c++/3780:
6784         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
6785         * c-common.h (SWITCH_TYPE): Define.
6786         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
6787         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
6788         Rename spareness variable to sparseness.
6789         (expand_end_case_type): Renamed from expand_end_case, use orig_type
6790         if non-NULL instead of TREE_TYPE (orig_index).
6791         * tree.h (expand_end_case_type): Renamed from expand_end_case.
6792         (expand_end_case): Define using expand_end_case_type.
6793         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
6794         to expand_end_case_type.
6795         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
6796
6797 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6798
6799         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
6800         (BIGGEST_ALIGNMENT): Change to 128.
6801
6802 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6803
6804         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
6805
6806 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6807
6808         * pa.md (call_internal_reg_64bit): Remove unused variable.
6809
6810 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
6811
6812         * config/arm/arm.h (machine_function): Add uses_anonymous_args
6813         field.
6814         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
6815         * config/arm/arm.c (current_function_anonymous_args): Delete,
6816         replace uses with cfun->machine->uses_anonymous_args.
6817         (arm_reorg): Do not reset uses_anonymous_args.
6818
6819         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
6820         any geenral register.
6821
6822 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
6823
6824         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
6825         the entry block.
6826
6827 2002-02-04  Richard Henderson  <rth@redhat.com>
6828
6829         * combine.c (force_to_mode): Remove STACK_BIAS code.
6830         (nonzero_bits): Likewise.  Replace sp/fp special case with
6831         REGNO_POINTER_ALIGN.
6832
6833         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
6834         (HARD_FRAME_POINTER_REGNUM): New.
6835         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
6836         (FIXED_REGS, CALL_USED_REGS): Update.
6837         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
6838         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
6839         (HARD_REGNO_NREGS): Update for SFP.
6840         (STACK_POINTER_OFFSET): Include bias here ...
6841         (FIRST_PARM_OFFSET): ... not here.
6842         (STACK_BIAS): Remove.
6843         (INIT_EXPANDERS): New.
6844         (STARTING_FRAME_OFFSET): Do not include bias.
6845         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
6846         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
6847         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
6848         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
6849         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
6850         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
6851         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
6852         (MUST_SAVE_REGISTER): Likewise.
6853         (sparc_flat_function_prologue): Likewise.
6854         (sparc_flat_function_epilogue): Likewise.
6855         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
6856         (sparc_init_modes): SFP is GENERAL_REGS.
6857         (sparc_builtin_saveregs): SFP does not have bias applied.
6858
6859 2002-02-04  Richard Henderson  <rth@redhat.com>
6860
6861         * config/alpha/alpha.c (current_function_is_thunk): Don't check
6862         current_function_is_thunk.
6863         (alpha_sa_mask): Distinguish between current_function_is_thunk
6864         called from ASM_OUTPUT_MI_THUNK and not.
6865         (alpha_does_function_need_gp): Thunks always need gp.
6866         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
6867         (alpha_output_mi_thunk_osf): New.
6868         * config/alpha/alpha-protos.h: Update.
6869         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
6870
6871 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
6872
6873         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
6874         function types, not when they're taken away.
6875
6876 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
6877
6878         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
6879         CODE_LABEL and jump table when replacing a table jump with a
6880         simple jump.
6881
6882 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6883
6884         * config/s390/s390-protos.h (legitimize_la_operand,
6885         s390_secondary_input_reload_class, s390_plus_operand,
6886         s390_expand_plus_operand): Add prototypes.
6887
6888         config/s390/s390.c (s390_secondary_input_reload_class,
6889         s390_plus_operand, s390_expand_plus_operand): New functions.
6890
6891         (struct s390_address): New member 'pointer'.
6892         (s390_decompose_address): Compute it.
6893         (legitimate_la_operand_p): Use it.
6894         (legitimize_la_operand): New function.
6895         (movti, movdi, movdf splitters): Call it.
6896
6897         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
6898         (PREDICATE_CODES): Add s390_plus_operand.
6899
6900         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
6901         (la_ccclobber): Allow GENERAL_REGS as output operand.
6902
6903         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
6904         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
6905         (*la_64, *la_31, reload_indi, reload_insi): ... these.
6906
6907 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6908
6909         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
6910         register names for regular asm () construct.
6911
6912 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
6913
6914         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
6915         registers.
6916
6917 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
6918
6919         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
6920         pat for recog.
6921
6922 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
6923
6924         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
6925         constant pool to be identical by string address and index.
6926
6927 2002-02-04  Anthony Green  <green@redhat.com>
6928
6929         * output.h (SECTION_OVERRIDE): Define.
6930         * varasm.c (named_section): Obey SECTION_OVERRIDE.
6931
6932 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
6933
6934         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
6935         by existing arm*-*-netbsd* (a.out) target.
6936         (ns32k-*-netbsdelf*): Likewise.
6937         (sparc-*-netbsdelf*): Likewise.
6938         (vax-*-netbsdelf*): Likewise.
6939
6940 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
6941
6942         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
6943         headers and libobjc headers.
6944
6945 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
6946
6947         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
6948         (_mingw.h): Remove duplicate include.
6949
6950 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
6951
6952         * config.gcc: Set cpu_type to m68k for 68010, as well.
6953         (m68010-*-netbsdelf*): New...
6954         (m68k*-*-netbsdelf*): ...targets.
6955         * config/m68k/netbsd-elf.h: New file.
6956
6957 2002-02-02  Kazu Hirata  <kazu@hxi.com>
6958
6959         * config/h8300/h8300.c (hand_list): Move inside function_arg.
6960
6961 2002-02-02  Kazu Hirata  <kazu@hxi.com>
6962
6963         * config/h8300/h8300.c (h8_push_ops): Move inside
6964         h8300_init_once.
6965         (h8_pop_ops): Likewise.
6966         (h8_move_ops): Likewise.
6967
6968 2002-02-02  Kazu Hirata  <kazu@hxi.com>
6969
6970         * config/h8300/h8300.c (os_task): Make it static.
6971         (monitor): Likewise.
6972         (pragma_saveall): Likewise.
6973
6974 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
6975
6976         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
6977         constant is a valid sign-extension for Pmode.
6978
6979 2002-02-02  Kazu Hirata  <kazu@hxi.com>
6980
6981         * config/h8300/h8300.c: Fix formatting.
6982
6983 2002-02-02  Kazu Hirata  <kazu@hxi.com>
6984
6985         * config/h8300/h8300.md: Fix formatting.
6986
6987 2002-02-02  Kazu Hirata  <kazu@hxi.com>
6988
6989         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
6990         predicates of operands[1].  Split the patterns for each
6991         processor variant.
6992
6993 2002-02-02  Kazu Hirata  <kazu@hxi.com>
6994
6995         * config/h8300/h8300.md (xor patterns): Tighten the predicates
6996         of operands[1] to register_operand.
6997
6998 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
6999
7000         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
7001         * cpphash.c (_cpp_init_hashtable): Similarly.
7002         * cppinit.c (cpp_create_reader): Default the signed_char flag.
7003         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
7004         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
7005         (cpp_handle_option): Handle the new options.
7006         * cpplex.c (cpp_interpret_charconst): Use new flag.
7007         * cpplib.h (struct cpp_options): New member signed_char.
7008         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
7009         (cpp_options): Handle -fsigned-char and -funsigned-char.
7010         (static_specs): Remove signed_char_spec.
7011         (do_spec1): Don't handle %c.
7012         * system.h: Poison SIGNED_CHAR_SPEC.
7013         * tradcif.y (yylex): Use flag_signed_char.
7014         * tradcpp.h (flag_signed_char): New.
7015         * tradcpp.c (flag_signed_char): New.
7016         (main): Handle new command-line options.
7017         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
7018 config:
7019         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
7020         * avr/avr.h: Remove old comments.
7021         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
7022         (CC1_SPEC): Pass -fsigned-char if -mic*.
7023         (SIGNED_CHAR_SPEC): Remove.
7024 doc:
7025         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
7026
7027 2002-02-01  Eric Christopher  <echristo@redhat.com>
7028
7029         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
7030         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
7031         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
7032         (ASM_OUTPUT_REG_POP): Ditto.
7033
7034 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7035
7036         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
7037         patch.
7038
7039 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7040
7041         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
7042
7043 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
7044
7045         PR c/5304:
7046         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
7047         unconditionally.
7048
7049 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7050
7051         * cfganal.c: Include tm_p.h.
7052         (keep_with_call_p): Fix the test that determines if a register holds
7053         the return value of a call.
7054
7055 2002-02-01  DJ Delorie  <dj@redhat.com>
7056
7057         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
7058         we are given conflicting registers, switch to the other one we
7059         had allocated for us.
7060         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
7061         as TImode so we know when the "other" register is available.
7062
7063 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
7064
7065         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
7066         sparc/sparc_bi.h.
7067
7068 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
7069
7070         * cfganal.c (keep_with_call_p): New function.
7071         (flow_call_edges_add): Prevent splitting a block between a call and
7072         a single-set instruction that should be kept in the same block.
7073
7074 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7075
7076         * doc/install.texi (avr): Update outdated URL.
7077
7078 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
7079
7080         * config/stormy16/stormy16.md (pushqi): New.
7081         (popqi): New.
7082         (pushhi): New.
7083         (pophi): New.
7084         (movhi): Remove stack operands.
7085         (movqi): Likewise.
7086         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
7087         nonimmediate_nonstack_operand.
7088         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
7089         New.
7090         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
7091         New.
7092
7093 2002-01-31  Jason Merrill  <jason@redhat.com>
7094
7095         * Makefile.in (c-parse.c): Handle .output file.
7096         * objc/Make-lang.in (objc-parse.c): Likewise.
7097
7098 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
7099
7100         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
7101         the -me[lb] option is given.  Don't output the default flag
7102         twice.
7103
7104 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
7105
7106         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
7107         the primary source file; this has not been done yet.
7108         * c-decl.c (c_expand_body): Reset input_filename from
7109         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
7110
7111 2002-01-31  Kazu Hirata  <kazu@hxi.com>
7112
7113         * rtlanal.c (subreg_regno_offset): Do not use
7114         SUBREG_REGNO_OFFSET.
7115         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
7116         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
7117
7118 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7119
7120         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
7121         version rather than GNATS version in --version output.
7122
7123 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
7124
7125         * ifcvt.c (noce_process_if_block): Make a copy of the destination
7126         when copying back from a temporary.
7127
7128 2002-01-30  Richard Henderson  <rth@redhat.com>
7129
7130         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
7131         and new_dest are the same.
7132
7133 2002-01-30  Richard Henderson  <rth@redhat.com>
7134
7135         PR opt/5076
7136         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
7137         * rtl.c (note_insn_name): Update.
7138         * emit-rtl.c (remove_unnecessary_notes): Kill it.
7139         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
7140         to perform loop rotation.
7141         (expand_exit_loop_top_cond): New.
7142         * tree.h (expand_exit_loop_top_cond): Declare it.
7143         * c-semantics.c (genrtl_while_stmt): Use it.
7144         (genrtl_for_stmt): Likewise.
7145
7146 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
7147
7148         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
7149         arguments to 64-bit boundaries on 64-bit ABIs.
7150
7151 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
7152
7153         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
7154
7155 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7156
7157         * c-decl.c (grokdeclarator): Handle type being a typedef for an
7158         invalid type.
7159
7160 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
7161
7162         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
7163         * config/sparc/sparc_bi.h: Remove file.
7164         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
7165
7166 2002-01-30  Richard Henderson  <rth@redhat.com>
7167
7168         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
7169
7170 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
7171
7172         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
7173
7174 2002-01-30  Jason Merrill  <jason@redhat.com>
7175
7176         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
7177         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
7178         (reg_save): Use DW_CFA_offset_extended_sf instead.
7179
7180         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
7181
7182 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7183
7184         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
7185         in cselib_lookup.
7186
7187 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
7188
7189         * rs6000.md ("*call_value_local32"): Remove constraints.
7190         ("*call_value_local64"): Same.
7191         ("*call_value_indirect_nonlocal_aix32"): Same.
7192         ("*call_value_nonlocal_aix32"): Same.
7193         ("*call_value_indirect_nonlocal_aix64"): Same.
7194         ("*call_value_nonlocal_aix64"): Same.
7195         ("*call_value_nonlocal_sysv"): Same.
7196
7197 2002-01-29  Richard Henderson  <rth@redhat.com>
7198
7199         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
7200
7201 2002-01-29  Richard Henderson  <rth@redhat.com>
7202
7203         * expr.c (force_operand): Ignore flag_pic for detecting pic
7204         address loads.
7205         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
7206         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
7207         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
7208         instead of open-coded loop.
7209         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
7210         be fixed when in use.
7211
7212 2002-01-29  Richard Henderson  <rth@redhat.com>
7213
7214         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
7215         * sched-rgn.c (propagate_deps): Update them.
7216         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
7217         clobbers list when either gets too long.
7218
7219 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7220
7221         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
7222         and INDEX_REGS the same as GENERAL_REGS.
7223         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
7224
7225 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7226
7227         * tree.c (build_nonstandard_integer_type): Correct prototype.
7228
7229 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
7230
7231         * config/s390/s390.md (movstrsico, movstrdix_64,
7232         movstrsix_31): Remove, replace by ...
7233         (movstrdi_short, movstrsi_short, movstrdi_long,
7234         movstrsi_long): ... these.  New.
7235         (movstrdi, movstrsi): Adapt.
7236
7237         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
7238         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
7239         Remove unnecessary CC clobber.
7240         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
7241         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
7242
7243         (divmoddi4): Don't partially initialize TImode register.
7244
7245 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
7246
7247         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
7248
7249 2002-01-29  Richard Henderson  <rth@redhat.com>
7250
7251         * flow.c (print_rtl_and_abort): Remove.
7252         (print_rtl_and_abort_fcn): Remove.
7253         (verify_local_live_at_start): Use dump_bb instead.
7254         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
7255         (verify_wide_reg_1): Return 2 on mode test failure.
7256
7257 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7258
7259         PR c/3325, c/3326, c/2511, c/3347
7260         * c-decl.c (enum_decl_context): Remove BITFIELD.
7261         (grokdeclarator): Take bitfield width as an input.
7262         Ensure bitfields are given the correct type.  Perform
7263         bitfield width validation with build_bitfield_integer_type
7264         rather than waiting for finish_struct.
7265         (grok_typename, grok_typename_in_parm_context, start_decl,
7266         push_parmdecl, grokfield, start_function): Update calls to
7267         grokdeclarator.
7268         (build_bitfield_integer_type): New function.
7269         (finish_struct): Move bitfield validation to grokdeclarator
7270         and build_bitfield_integer_type.
7271         * tree.c (build_nonstandard_integer_type): New function.
7272         * tree.h (build_nonstandard_integer_type): New prototype.
7273 objc:
7274         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
7275
7276 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
7277
7278         PR other/1502:
7279         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
7280         don't ignore unrecognized -W* options.
7281         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
7282         * cpplib.h (cpp_handle_option): Adjust prototype.
7283         * c-decl.c (c_decode_options): Pass 0 as last argument to
7284         cpp_handle_option.
7285
7286         PR c/2896:
7287         * gcc.c (cpp_unique_options): Split from cpp_options.
7288         (cpp_options): Source cpp_unique_options.
7289         (default_compilers): Use cpp_unique_options instead of cpp_options
7290         when used together with cc1_options.
7291         (static_specs): Add cpp_unique_options.
7292         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
7293         when used together with cc1_options.
7294
7295 2002-01-29  Kazu Hirata  <kazu@hxi.com>
7296
7297         * config/h8300/h8300-protos.h: Update the prototype of
7298         output_a_shift.
7299         * config/h8300/h8300.c (output_a_shift): Remove an unused
7300         argument 'insn'.  Remove redundant code.
7301         * config/h8300/h8300.md: Adust to the new prototype of
7302         output_a_shift.
7303
7304 2002-01-29  Kazu Hirata  <kazu@hxi.com>
7305
7306         * config/h8300/h8300-protos.h: Update the prototypes of
7307         emit_a_rotate and expand_a_rotate.
7308         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
7309         first argument to 'enum rtx_code'.
7310         (expand_a_rotate): Likewise.
7311
7312 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7313
7314         * config/h8300/h8300-protos.h: Update the prototype of
7315         output_simode_bld.
7316         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
7317         'log2'.
7318         * config/h8300/h8300.md: Adjust to the new prototype.
7319
7320 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7321
7322         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
7323         redundant code.
7324
7325 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7326
7327         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
7328         is a fixed register before returning pic_offset_table_rtx.
7329         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
7330         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
7331
7332 2002-01-28  Jason Merrill  <jason@redhat.com>
7333
7334         * dwarf2.h: Sync with src version.
7335
7336 2002-01-28  Paul Koning  <pkoning@equallogic.com>
7337
7338         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
7339         BT_FN_VOID_PTR_VAR.
7340         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
7341         * doc/extend.texi (__builtin_prefetch): Update documentation:
7342         first argument is now const void ptr.
7343
7344 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7345
7346         * config/h8300/h8300-protos.h: Remove an unused prototype.
7347
7348 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
7349
7350         * toplev.c (lang_independent_init): Round up identifier size.
7351
7352 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
7353
7354         * config.gcc: Revert previous change.
7355
7356 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
7357
7358         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
7359
7360 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
7361
7362         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
7363         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
7364         other non-elf netbsd config frags.
7365         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
7366         collect2 will does that.
7367         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
7368         shared-lib frobbing will work.
7369
7370 2002-01-28  Kazu Hirata  <kazu@hxi.com>
7371
7372         * config/h8300/h8300.h: Fix formatting.
7373         * config/h8300/h8300.md: Likewise.
7374
7375 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
7376
7377         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
7378         the old, removed AAA_standards fix.
7379         * fixinc/fixincl.x: Rebuilt.
7380
7381 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
7382
7383         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
7384         atexit call in crtbegin, hooked in after call to frame_dummy;
7385         register EH before registering __fini__start.
7386
7387 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
7388
7389         * config/rs6000/altivec.h: Remove spurious semicolons.
7390
7391 2002-01-27  Kazu Hirata  <kazu@hxi.com>
7392
7393         * config/h8300/h8300.md: Replace dead bit extraction patterns
7394         with ones that work.
7395
7396 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7397
7398         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
7399         if not STRICT_ALIGNMENT.
7400         * rtl.h (MEM_ALIGN): Likewise.
7401
7402 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7403
7404         * doc/invoke.texi (-fdump-translation-unit): Revert this
7405         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7406
7407 2002-01-27  Kazu Hirata  <kazu@hxi.com>
7408
7409         * config/h8300/h8300.md (define_constants): New.
7410         (anonymous patterns) Use defined constants appropriately.
7411
7412 2002-01-27  Kazu Hirata  <kazu@hxi.com>
7413
7414         * config/h8300/h8300.c (function_arg): Remove redundant code.
7415
7416 2002-01-26  Richard Henderson  <rth@redhat.com>
7417
7418         * sched-deps.c (reg_pending_uses_head): New.
7419         (reg_pending_barrier): Rename from reg_pending_sets_all.
7420         (find_insn_list): Don't mark inline.
7421         (find_insn_mem_list): Remove.
7422         (add_dependence_list, add_dependence_list_and_free): New.
7423         (flush_pending_lists): Replace only_write param with separate
7424         for_read and for_write parameters.  Update all callers.  Use
7425         add_dependence_list_and_free.
7426         (sched_analyze_1): Do not add reg dependencies here; just set
7427         the pending bits.  Use add_dependence_list.
7428         (sched_analyze_2): Likewise.
7429         (sched_analyze_insn): Replace schedule_barrier_found with
7430         reg_pending_barrier.  Add all dependencies for pending reg
7431         uses, sets, and clobbers.
7432         (sched_analyze): Don't add reg dependencies for calls, just
7433         set pending bits.  Use regs_invalidated_by_call.  Treat
7434         sched_before_next_call as a normal list, not a fake insn.
7435         (init_deps): No funny init for sched_before_next_call.
7436         (free_deps): Free pending mems lists.  Don't zero reg_last.
7437         (init_deps_global): Init reg_pending_uses.
7438         (finish_deps_global): Free it.
7439         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
7440         (find_insn_mem_list): Remove.
7441         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
7442         (propagate_deps): Use them.  Zero temp mem lists.
7443
7444 2002-01-26  Richard Henderson  <rth@redhat.com>
7445
7446         * Makefile.in (CRTSTUFF_CFLAGS): New.
7447         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
7448         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
7449         crtstuff.c instead of alpha assembly version.
7450         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
7451         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
7452         not FORCE_{INIT,FINI}_SECTION_ALIGN.
7453         (__do_global_dtors_aux): Mark used.
7454         (frame_dummy, __do_global_ctors_aux): Mark used.
7455         (fini_dummy, init_dummy): Remove.
7456
7457         * config/alpha/crtbegin.asm: Remove file.
7458         * config/alpha/crtend.asm: Remove file.
7459         * config/alpha/t-crtbe: Remove file.
7460         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
7461         (LINK_EH_SPEC): New.
7462
7463         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
7464         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
7465         calling constructors.
7466         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
7467
7468         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
7469         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
7470         CRT_END_INIT_DUMMY hack.
7471         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
7472         FORCE_{INIT,FINI}_SECTION_ALIGN.
7473
7474         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
7475         FORCE_{INIT,FINI}_SECTION_ALIGN.
7476
7477         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
7478         invocation sequence.
7479         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
7480
7481         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
7482         (FORCE_CODE_SECTION_ALIGN): New.
7483
7484 2002-01-26  Richard Henderson  <rth@redhat.com>
7485
7486         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
7487
7488 2002-01-26  Richard Henderson  <rth@redhat.com>
7489
7490         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
7491         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
7492
7493 2002-01-26  Kazu Hirata  <kazu@hxi.com>
7494
7495         * config/h8300/h8300.md: Remove bit extraction patterns that
7496         cannot be triggered.
7497         Restrict each bit extraction pattern to a variant on which the
7498         pattern is tested.
7499
7500 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
7501
7502         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
7503
7504 2002-01-26  Kazu Hirata  <kazu@hxi.com>
7505
7506         * config/h8300/h8300.md: Remove bit test patterns that cannot
7507         be triggered.
7508         Restrict each bit test pattern to a variant on which the
7509         pattern is tested.
7510
7511 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7512
7513         * builtins.c (expand_builtin_strncat): Remove redundant check for
7514         INTEGER_CST.
7515
7516 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
7517
7518         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
7519         default setting.
7520         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
7521         existing setting.
7522
7523 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
7524
7525         * dbxout.c (dbxout_init): Use assemble_name rather than just
7526         stripping off the first character.
7527         (dbxout_source_file): Likewise.
7528
7529 2002-01-25  DJ Delorie  <dj@redhat.com>
7530
7531         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
7532         using rtx_equal_p, not by comparing pointers.
7533
7534 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
7535
7536         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
7537         for PIC_OFFSET_TABLE_REGNUM.
7538         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
7539
7540 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
7541
7542         * config.gcc (x86_64-*-freebsd*): New target.
7543         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
7544         value.
7545         (i[34567]86-*-freebsd*): Don't include svr4.h.
7546         * config/i386/freebsd64.h: New file.
7547
7548 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
7549
7550         * config/alpha/x-vms (version): Make static.
7551
7552         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
7553         in previous checkin.
7554
7555         * Makefile.in (install-headers-cp): New target.
7556         * config.gcc (alpha-dec-*vms*): Install headers with
7557         install-headers-cp
7558
7559 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
7560
7561         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
7562         avoid it's copies.
7563
7564 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7565
7566         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
7567         of compare_tree_int.
7568         (expand_builtin_strncat): Likewise.
7569         * c-decl.c (finish_struct): Use tree_low_cst.
7570         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
7571         * tree.c (compare_tree_int): Likewise.
7572
7573 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
7574
7575         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
7576         adjustments even if they are implemented by more than two insns.
7577
7578 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
7579
7580         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
7581         * df.h (struct ref): Kill B.
7582         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
7583
7584         * basic-block.h (PROP_EQUAL_NOTES): New flag.
7585         * flow.c (propagate_one_insn): Use it.
7586         (mark_used_regs): Handle NIL.
7587
7588 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
7589
7590         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
7591         to help folding.
7592
7593 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
7594
7595         * rs6000.md (prefetch): Make address V4SI mode so that the address
7596         is restricted to legitimate form for instruction.
7597
7598 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
7599
7600         * doc/install.texi (xtensa-*-elf): New target.
7601         (xtensa-*-linux*): New target.
7602         * doc/contrib.texi: Add myself.
7603
7604 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
7605
7606         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
7607         purpose register to hold an SImode (or smaller) value.
7608
7609 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
7610
7611         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
7612         registry only.
7613         * crtstuff.c: Likewise.
7614
7615 2002-01-25  Kazu Hirata  <kazu@hxi.com>
7616
7617         * config/h8300/h8300.md (negation patterns): Tighten
7618         predicates to register_operand.
7619
7620 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
7621
7622         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
7623         mode, not Pmode.
7624
7625         * builtins.c (expand_builtin_prefetch): Same.
7626
7627 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7628
7629         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
7630         modes.
7631
7632 2002-01-24  Kazu Hirata  <kazu@hxi.com>
7633
7634         * config/h8300/h8300.c (print_operand): Remove support for
7635         operand character 'A'.
7636         * config/h8300/h8300.md (three anonymous patterns): Replace
7637         operand character 'A' with either 'T' or 'S'.
7638
7639 2002-01-24  Kazu Hirata  <kazu@hxi.com>
7640
7641         * config/h8300/h8300.c (print_operand): Remove support for
7642         operand character 'U'.
7643
7644 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
7645
7646         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
7647
7648 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
7649
7650         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
7651         values to be assigned to the stack pointer.
7652
7653 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
7654
7655         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
7656         to const_double needs to be done right for big-endian systems.
7657
7658 2002-01-24  Jason Merrill  <jason@redhat.com>
7659
7660         PR c++/2432
7661         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
7662         to can_throw_internal.
7663
7664 2002-01-23  Richard Henderson  <rth@redhat.com>
7665
7666         * fold-const.c (fold): Change UINT_MAX test to check vs precision
7667         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
7668
7669 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7670
7671         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
7672         (symGOT2reg): Use them, then set as GOT value as unchanging.
7673         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
7674         as a temporary, if possible.
7675         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
7676         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
7677
7678 2002-01-23  Kazu Hirata  <kazu@hxi.com>
7679
7680         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
7681         accept to accept 0x80 as operands[2].
7682
7683 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
7684
7685         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
7686
7687 2002-01-23  Richard Henderson  <rth@redhat.com>
7688
7689         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
7690
7691 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
7692
7693         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
7694         (parmlist_or_identifiers_1): Verify that only a parmlist follows
7695         an attribute.
7696
7697 2002-01-23  Richard Henderson  <rth@redhat.com>
7698
7699         * expr.c (move_by_pieces_1): Extend size before negation.
7700
7701         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
7702         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
7703         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
7704         * config/m68k/t-m68kelf: Likewise.
7705
7706 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
7707
7708         * config/xtensa/elf.h: New file.
7709         * config/xtensa/lib1funcs.asm: New file.
7710         * config/xtensa/lib2funcs.S: New file.
7711         * config/xtensa/linux.h: New file.
7712         * config/xtensa/t-xtensa: New file.
7713         * config/xtensa/xtensa-config.h: New file.
7714         * config/xtensa/xtensa-protos.h: New file.
7715         * config/xtensa/xtensa.c: New file.
7716         * config/xtensa/xtensa.h: New file.
7717         * config/xtensa/xtensa.md: New file.
7718         * config.gcc (xtensa-*-elf*): New target.
7719         (xtensa-*-linux*): New target.
7720         * cse.c (canon_hash): Compare rtx pointers instead of register
7721         numbers.  This is required for the Xtensa port.
7722         * integrate.c (copy_insn_list): Handle case where the static
7723         chain is in memory and the memory address has to be copied to
7724         a register.
7725         * doc/invoke.texi (Option Summary): Add Xtensa options.
7726         (Xtensa Options): New node.
7727         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
7728
7729 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
7730
7731         * diagnostic.c (internal_error): Do ICE suppression only
7732         when ENABLE_CHECKING is not defined.
7733
7734         * c-typeck.c (require_complete_type): Return error_mark_node
7735         if type is error_mark_node.
7736
7737 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
7738
7739         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
7740         -Os and issue a warning.
7741
7742 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
7743
7744         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
7745         current (lack of) need for host configuration by hand.
7746
7747         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
7748         references.  Documentation of some target macros moved from
7749         hostconfig.texi to tm.texi.
7750
7751 2002-01-23  Will Cohen  <wcohen@redhat.com>
7752
7753         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
7754         defined.
7755
7756 2002-01-23  Kazu Hirata  <kazu@hxi.com>
7757
7758         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
7759         operand[3].
7760
7761 2002-01-23  Jason Merrill  <jason@redhat.com>
7762
7763         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
7764
7765         * function.c (assign_parms): Don't put args of inline functions
7766         into registers when not optimizing.
7767
7768 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
7769
7770         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
7771         (prologue_use): New pattern.
7772         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
7773         preference to gen_rtx_USE.
7774         (thumb_expand_prologue): Use gen_prologue_use in preference to
7775         gen_rtx_USE.
7776         (thumb_expand_epilogue): Use gen_prologue_use in preference to
7777         gen_rtx_USE.
7778
7779 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
7780
7781         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
7782
7783 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7784
7785         PR c/3504
7786         * doc/extend.texi: Correct documentation of __alignof__.
7787
7788 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
7789
7790         * params.h: Rename arguments of DEFPARAM so that it will be
7791         recognized as a translation keyword.
7792
7793 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
7794
7795         * extend.texi: Document altivec functions.
7796         Fix N-bit adjectives in X86 builtin documentation.
7797
7798 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
7799
7800         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
7801         auto_inc_dec values.
7802
7803 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
7804
7805         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
7806         after backslash.
7807         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
7808
7809 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
7810
7811         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
7812
7813 2002-01-22  Richard Henderson  <rth@redhat.com>
7814
7815         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
7816         copy_insn not copy_rtx.
7817
7818 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
7819
7820         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
7821         "nonzero" as that might add "1" bits.  Ensure "constop" is
7822         properly sign extened.
7823         (force_to_mode): Tweak for sign extended constop.
7824
7825 2002-01-22  Richard Henderson  <rth@redhat.com>
7826
7827         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
7828         for_each_rtx instead of assuming we're already looking at the MEM.
7829         (split_small_symbolic_mem_operand): Likewise.
7830         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7831         * config/alpha/alpha.md (small symbolic memory splitters): Update.
7832
7833 2002-01-22  Richard Henderson  <rth@redhat.com>
7834
7835         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
7836         sequence number for the literal.
7837         (divmoddi_internal_er): Likewise.
7838
7839 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7840
7841         PR java/4972
7842         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
7843         in LIBICONV variable.
7844         * configure: Regenerated.
7845
7846 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
7847
7848         * dependence.c (build_def_use): Remove array_idx.
7849
7850         * dwarfout.c (last_filename): Remove.
7851         (output_compile_unit_die): Remove last_filename.
7852
7853 2002-01-22  Roger Sayle  <roger@eyesopen.com>
7854             Richard Henderson  <rth@redhat.com>
7855
7856         PR opt/3640
7857         * fold-const.c (fold): Optimize unsigned comparisons against
7858         UINT_MAX (and similar unsigned constants).
7859
7860 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
7861
7862         * Makefile.in (loop.o): Depend on OPTABS_H.
7863         * loop.c (emit_prefetch_instructions): Check the prefetch operand
7864         against the predicate.
7865
7866         PR target/5379
7867         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
7868         for the address operand.
7869
7870 2002-01-22  Richard Henderson  <rth@redhat.com>
7871
7872         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
7873
7874 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7875
7876         PR other/5450
7877         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
7878         preprocessor flags.
7879
7880 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
7881
7882         * config.gcc (x86_64-*-netbsd*): New target.
7883         * config/i386/netbsd64.h: New file.
7884
7885 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
7886
7887         * regrename.c (kill_value): Fix typo.
7888
7889 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
7890
7891         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
7892
7893         * config/rs6000/rs6000.h: Same.
7894
7895         * function.c (instantiate_virtual_regs): Remove
7896         STARTING_FRAME_PHASE.
7897         (assign_stack_local_1): Same.
7898         Calculate frame phase.
7899
7900 2002-01-22  Nick Clifton  <nickc@redhat.com>
7901
7902         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
7903         variable declaration to outer scope in order to simplify
7904         future extensions.
7905         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
7906         arm_hard_regno_mode_ok.
7907         * config/arm/arm-protos.h: Add a prototype for
7908         arm_hard_regno_mode_ok.
7909         * config/arm/arm.c (soft_df_operand): Remove now redundant
7910         check for DImode values using IP_REGNUM.
7911         (nonimmediate_soft_df_operand): Remove now redundant check for
7912         DImode values using IP_REGNUM.
7913         (arm_hard_regno_mode_ok): New function. New check: make sure
7914         that DImode values are not stored in IP_REGNUM.
7915
7916         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
7917         note with a USE.
7918         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
7919
7920 2002-01-22  Jason Merrill  <jason@redhat.com>
7921
7922         * c-semantics.c (genrtl_compound_stmt): Only check nesting
7923         consistency if this COMPOUND_STMT is scoped.
7924
7925 2002-01-22  Kazu Hirata  <kazu@hxi.com>
7926
7927         * predict.c: Fix formatting.
7928         * print-tree.c: Likewise.
7929         * protoize.c: Likewise.
7930         * real.h: Likewise.
7931         * rtl.h: Likewise.
7932         * sbitmap.h: Likewise.
7933         * scan.c: Likewise.
7934         * sched-deps.c: Likewise.
7935         * sched-vis.c: Likewise.
7936         * sdbout.c: Likewise.
7937         * sibcall.c: Likewise.
7938         * ssa.c: Likewise.
7939         * ssa-ccp.c: Likewise.
7940         * ssa-dce.c: Likewise.
7941         * stmt.c: Likewise.
7942         * stor-layout.c: Likewise.
7943         * system.h: Likewise.
7944
7945 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7946
7947         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
7948         if fits in bounds of base type.
7949
7950         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
7951         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
7952         (add_bound_info, default): If can't find a context, make a
7953         SAVE_EXPR.
7954         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
7955
7956 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
7957
7958         * c-typeck.c (parser_build_binary_op): If result from
7959         build_binary_op is ERROR_MARK just return error_mark_node without
7960         further processing.
7961
7962 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
7963
7964         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
7965         Split a.out-specific bits into...
7966         * config/netbsd-aout.h: ...this.
7967         * config/netbsd-elf.h: New file.
7968         * config/alpha/netbsd-elf.h: Remove.
7969         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
7970         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
7971         (STARTFILE_SPEC): Remove redundant definition.
7972         (ENDFILE_SPEC): Likewise.
7973         (LINK_SPEC): Likewise.
7974         (CPP_SPEC): Likewise.
7975         (ASM_SPEC): Likewise.
7976         (LIB_SPEC): Likewise.
7977         (SWITCH_TAKES_ARG): Likewise.
7978         (TARGET_MEM_FUNCTIONS): Likewise.
7979         (CPP_PREDEFINES): Redefine.
7980         (ASM_FINAL_SPEC): Remove redefinition.
7981         (ASM_COMMENT_START): Redefine.
7982         (FUNCTION_PROFILER): Define.
7983         (TARGET_VERSION): Redefine.
7984         Comment and formatting cleanup.
7985         * config/i386/netbsd.h: Include <netbsd-aout.h>.
7986         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
7987         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
7988         big- or little-endian.
7989         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
7990         * config.gcc (*-*-netbsd*): Add definitions common to all
7991         NetBSD configs.
7992         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
7993         gnu_ld definitions.  Add netbsd-elf.h to and remove
7994         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
7995         tmake_file, and don't lose previous tmake_file contents.
7996         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
7997         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
7998         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
7999         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
8000         (mipsel-*-netbsd*): Rename this to...
8001         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
8002         mips/little.h to tm_file for mips*el-*.
8003         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
8004         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
8005         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
8006
8007 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8008
8009         * pa-protos.h (reg_before_reload_operand): New function prototype.
8010         * pa.c (reg_before_reload_operand): New function implementation.
8011         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
8012         contraints to "*m".
8013
8014 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8015
8016         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
8017
8018 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8019
8020         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
8021         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
8022         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
8023         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
8024         (ENDFILE_SPEC): Undefine.
8025         (STARTFILE_SPEC): Redefine for PA.
8026
8027 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8028
8029         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
8030
8031 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
8032
8033         * config.gcc: Add entries to supported PowerPC --with-cpu
8034         types.
8035
8036 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
8037
8038         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
8039         true for 64-bit mode only SSE registers in 32-bit mode.
8040
8041 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8042
8043         * unwind-dw2.c: Fix formatting.
8044         * unwind-dw2-fde.c: Likewise.
8045         * unwind-dw2-fde.h: Likewise.
8046         * unwind-pe.h: Likewise.
8047         * varasm.c: Likewise.
8048         * varray.h: Likewise.
8049
8050 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
8051
8052         Remove workaround for register stack overwrite bug in mmix.
8053         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
8054         support for TARGET_REG_STACK_FILL_BUG.
8055         * config/mmix/mmix.h: Remove member has_call_without_parameters.
8056         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
8057         Delete.
8058         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
8059         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
8060         -mno-reg-stack-fill-bug-workaround.
8061         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
8062         machine member has_call_without_parameters.
8063         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
8064         -mreg-stack-fill-bug-workaround and
8065         -mno-reg-stack-fill-bug-workaround.
8066         (MMIX Options): Ditto.
8067
8068 2002-01-21  Kazu Hirata  <kazu@hxi.com>
8069
8070         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
8071         as appropriate.
8072         Remove redundant code.
8073
8074 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
8075
8076         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
8077         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8078         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8079         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
8080         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
8081         out target macro definitions and non-target-specific comments
8082         mostly taken from old versions of the manual.
8083
8084 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8085
8086         * config/h8300/h8300.h: Fix comment formatting.
8087         * config/ia64/aix.h: Likewise.
8088         * config/ia64/ia64-protos.h: Likewise.
8089         * config/ia64/ia64.c: Likewise.
8090         * config/ia64/ia64.h: Likewise.
8091         * config/ia64/ia64intrin.h: Likewise.
8092         * config/ia64/linux.h: Likewise.
8093         * config/ia64/unwind-aix.c: Likewise.
8094         * config/ia64/unwind-ia64.c: Likewise.
8095
8096 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8097
8098         * config/h8300/h8300.c: Revise comments about shift code.
8099
8100 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8101
8102         * config/h8300/h8300.c (function_arg): Update a comment.
8103
8104 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8105
8106         * config/h8300/h8300.md: Update the comments at the beginning
8107         of the file.
8108
8109 2002-01-20  Kazu Hirata  <kazu@hxi.com>
8110
8111         * config/i370/i370.c: Fix comment formatting.
8112         * config/i370/i370.h: Likewise.
8113         * config/i370/i370.md: Likewise.
8114         * config/i370/linux.h: Likewise.
8115
8116 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8117
8118         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
8119
8120         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
8121         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
8122         in incomplete case.
8123
8124 2002-01-20  Graham Stott  <grahams@redhat.com>
8125
8126         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
8127
8128 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8129
8130         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
8131
8132 2002-01-19  Tom Rix  <trix@redhat.com>
8133
8134         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
8135
8136 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
8137
8138         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
8139
8140         * function.c (assign_stack_local_1): Adjust x_frame_offset with
8141         STARTING_FRAME_PHASE.
8142         (STARTING_FRAME_PHASE): New.
8143         (instantiate_virtual_regs): Check saneness of
8144         STARTING_FRAME_PHASE.
8145
8146         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
8147
8148 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
8149
8150         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
8151
8152 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8153
8154         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
8155         be used for bootstrapping GCC 3.0.
8156
8157 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8158
8159         * config/h8300/h8300.md: Fix an insn length.
8160
8161 2002-01-18  Kazu Hirata  <kazu@hxi.com>
8162
8163         * bitmap.h: Fix comment formatting.
8164         * combine.c: Likewise.
8165         * cppfiles.c: Likewise.
8166         * c-pragma.h: Likewise.
8167         * c-typeck.c: Likewise.
8168         * df.c: Likewise.
8169         * dwarf2out.c: Likewise.
8170         * function.c: Likewise.
8171         * gcc.c: Likewise.
8172         * genattrtab.c: Likewise.
8173         * gthr-win32.h: Likewise.
8174         * haifa-sched.c: Likewise.
8175         * predict.c: Likewise.
8176         * rtlanal.c: Likewise.
8177         * rtl.h: Likewise.
8178         * unwind-dw2-fde.h: Likewise.
8179         * unwind-pe.h: Likewise.
8180         * vmsdbgout.c: Likewise.
8181
8182 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8183
8184         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
8185         if type_required and passed decl.
8186
8187 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
8188
8189         * config.gcc (cpu_type): Include altivec.h in powerpc
8190         extra_headers.
8191         Same for darwin.
8192
8193         * config/rs6000/altivec.h: New.
8194
8195 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
8196
8197         * doc/install.texi (*-ibm-aix*): Update assembler and exception
8198         handling information.
8199         * doc/trouble.texi (Interoperation): Add libstdc++ information
8200         for AIX.
8201         (Misunderstandings): Add template instantiation and static template
8202         member information for AIX.
8203
8204 2002-01-17  Jason Merrill  <jason@redhat.com>
8205
8206         * dbxout.c (dbxout_type): Support const and volatile.
8207
8208         * except.c (add_partial_entry): Remove backwards compatibility code.
8209         (end_protect_partials): Likewise.
8210
8211 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
8212
8213         * config/ia64/ia64.md (prologue_use): New.
8214         * config/ia64/ia64.c (ia64_expand_prologue): Use
8215         gen_prologue_use instead of gen_rtx_USE.
8216         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
8217         as CODE_FOR_pred_rel_mutex.
8218         (ia64_sched_reorder2): Likewise.
8219
8220 2002-01-16  Eric Christopher  <echristo@redhat.com>
8221
8222         * config/mips/r3900.h: Reformat.
8223         (SUBTARGET_CPP_SIZE_SPEC): Remove.
8224         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
8225         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
8226         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
8227         * config/mips/t-elf: Remove mips3 multilib.
8228
8229 2002-01-16  H.J. Lu <hjl@gnu.org>
8230
8231         * config/mips/linux.h: Include "mips/abi64.h".
8232
8233 2002-01-16  H.J. Lu <hjl@gnu.org>
8234
8235         * config/mips/t-linux: New.
8236
8237         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
8238
8239         * config/mips/linux.h: Don't include "gofast.h".
8240         (INIT_SUBTARGET_OPTABS): Removed.
8241
8242 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8243
8244         * config/h8300/h8300-protos.h: Replace emit_a_shift with
8245         output_a_shift.
8246         * config/h8300/h8300.c: Likewise.
8247         * config/h8300/h8300.md: Likewise.
8248
8249 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8250
8251         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
8252         spaces after an opcode name.
8253         (pushqi1_h8300hs): Likewise.
8254         (pushhi1_h8300hs): Likewise.
8255
8256 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8257
8258         * doc/extend.texi: Replace "option" with "attribute"
8259         appropriately.
8260
8261 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8262
8263         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
8264         (and:DI () (const_int -8)).
8265         (split_small_symbolic_mem_operand): Split
8266         (mem (and:DI () (const_int -8)).
8267
8268 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8269
8270         PR target/5309:
8271         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
8272         same way as TYPE_IMUL.
8273         (ultrasparc_sched_reorder): Likewise.
8274         * config/sparc/sparc.md (type): Add comment to update
8275         ultrasparc_sched_reorder when making changes.
8276
8277 2002-01-16  Kazu Hirata  <kazu@hxi.com>
8278
8279         * doc/invoke.texi: Change the dump file name of block
8280         reordering pass from 28.bbro to 29.bbro.
8281         Mention -dk option.
8282
8283 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
8284
8285         * i386.md (minsf splitter): Fix pasto.
8286
8287 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
8288
8289         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
8290         to frame pointer initialisation instruction.
8291         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
8292         initialisation instruction.
8293         (soft_df_operand): Do not accept the IP register.
8294         (nonimmediate_soft_df_operand): Do not accept the IP register.
8295
8296 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
8297
8298         PR target/5357:
8299         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
8300         MASK_V8 being both set.
8301
8302 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
8303
8304         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
8305         insn for GOT register; add REG_MAYBE_DEAD notes instead.
8306         config/s390/s390.md (call, call_value): Add GOT register to
8307         CALL_INSN_FUNCTION_USAGE where needed.
8308         (call_exp, call_value_exp): New.
8309
8310 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
8311
8312         * config/arm/arm.c: General formatting tidy up.
8313
8314 2002-01-16  Graham Stott  <grahams@redhat.com>
8315
8316         * calls.c (try_to_integrate): Use "(size_t)" intermediate
8317         cast and when casting an integer literal to "rtx" pointer.
8318         (expand_call): Likewise.
8319         * flow.c (try_pre_increment): Likewise.
8320         (find_use_as_address): Likewise.
8321         * integrate.c (expand_iline_function): Likewise.
8322         * regmove.c (try_auto_increment): Likewise.
8323
8324 2002-01-16  Graham Stott  <grahams@redhat.com>
8325
8326         * sched-rgn.c (passed): Use sbitmap_free.
8327         (header): Likewise.
8328         (inner): Likewise.
8329         (in_queue): Likewise.
8330         (in_stack): Likewise.
8331
8332 2002-01-15  Eric Christopher  <echristo@redhat.com>
8333
8334         * flow.c (propagate_one_insn): Change to use fatal_insn.
8335
8336 2002-01-15  Kazu Hirata  <kazu@hxi.com>
8337
8338         * expmed.c (extract_fixed_bit_field): Remove unused code.
8339         * system.h: Poison SLOW_ZERO_EXTEND.
8340         * doc/tm.texi: Remove.
8341         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
8342         * config/arm/arm.h: Likewise.
8343         * config/avr/avr.h: Likewise.
8344         * config/clipper/clipper.h: Likewise.
8345         * config/convex/convex.h: Likewise.
8346         * config/d30v/d30v.h: Likewise.
8347         * config/dsp16xx/dsp16xx.h: Likewise.
8348         * config/elxsi/elxsi.h: Likewise.
8349         * config/fr30/fr30.h: Likewise.
8350         * config/h8300/h8300.h: Likewise.
8351         * config/i370/i370.h: Likewise.
8352         * config/i386/i386.h: Likewise.
8353         * config/m68k/m68k.h: Likewise.
8354         * config/mips/mips.h: Likewise.
8355         * config/ns32k/ns32k.h: Likewise.
8356         * config/pdp11/pdp11.h: Likewise.
8357         * config/pj/pj.h: Likewise.
8358         * config/s390/s390.h: Likewise.
8359         * config/sh/sh.h: Likewise.
8360         * config/stormy16/stormy16.h: Likewise.
8361         * config/v850/v850.h: Likewise.
8362         * config/vax/vax.h: Likewise.
8363         * config/we32k/we32k.h: Likewise.
8364
8365 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
8366
8367         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
8368         (altivec_lvsl): Change constraint to b.
8369         (altivec_lvsr): Same.
8370         (altivec_lvebx): Same.
8371         (altivec_lvehx): Same.
8372         (altivec_lvewx): Same.
8373         (altivec_lvxl): Same.
8374         (altivec_lvx): Same.
8375         (altivec_stvx): Add parallel.
8376         (altivec_stvxl): Same.
8377         (altivec_stvehx): Same.
8378         (altivec_stvebx): Same.
8379         (altivec_stvebx): Same.
8380
8381 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
8382
8383         * config.gcc: Change altivec.h to altivec-defs.h.
8384
8385         * config/rs6000/altivec.h: Delete.
8386
8387         * config/rs6000/altivec-defs.h: Add.
8388
8389 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8390
8391         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
8392         and UMOD modes.
8393
8394         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
8395         less than or equal to eight bytes.
8396
8397         * vax.md (andsi3): Remove constraints and change SET destination
8398         operand type to nonimmediate_operand.
8399         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
8400         when it is a CONST_INT.
8401
8402 2002-01-15  Jason Merrill  <jason@redhat.com>
8403
8404         * c-common.def (FILE_STMT): New code.
8405         * c-common.c (statement_code_p): It's a statement.
8406         * c-common.h (stmt_tree_s): Add x_last_filename.
8407         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
8408         (last_expr_filename): New macro.
8409         * c-semantics.c (begin_stmt_tree): Initialize it.
8410         (add_stmt): If the filename changed, also insert a
8411         FILE_STMT.
8412         (expand_stmt): Handle seeing one.
8413
8414 2002-01-15  Eric Christopher  <echristo@redhat.com>
8415
8416         * flow.c (propagate_one_insn): Add error message and print out
8417         insn for debugging.
8418
8419 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
8420
8421         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
8422         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
8423         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
8424         TRAMPOLINE_ALIGNMENT.
8425         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
8426         to be in bits.
8427         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
8428         PCC_BITFIELD_TYPE_MATTERS.
8429         * config/interix.h (STDC_VALUE): Remove.  Use
8430         STDC_0_IN_SYSTEM_HEADERS.
8431         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
8432         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
8433         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
8434
8435 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8436
8437         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
8438         not work on this platform currently.
8439
8440 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
8441
8442         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
8443         readonly_warning in _().
8444
8445 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
8446
8447         * gcc.c (delete_if_ordinary): Backout previous change.
8448
8449 2002-01-15  Kazu Hirata  <kazu@hxi.com>
8450
8451         * config/h8300/h8300.c (print_operand): Remove support for
8452         unused operand characters.
8453
8454         * read-rtl.c: Fix formatting.
8455         * real.c: Likewise.
8456         * recog.c: Likewise.
8457         * regclass.c: Likewise.
8458         * regmove.c: Likewise.
8459         * reg-stack.c: Likewise.
8460         * reload1.c: Likewise.
8461         * rtlanal.c: Likewise.
8462
8463 2002-01-15  Kazu Hirata  <kazu@hxi.com>
8464
8465         * config/i386/i386.c: Fix formatting.
8466
8467 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
8468
8469         * c-typeck.c (process_init_element): Don't save_expr
8470         COMPOUND_LITERAL_EXPR if just its initializer will be used.
8471
8472 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
8473
8474         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
8475         emit optional traceback table if optimize_size or TARGET_ELF.
8476         * config/rs6000/rs6000.md (prefetch): New.
8477
8478 2002-01-15  Andreas Jaeger  <aj@suse.de>
8479
8480         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
8481
8482 2002-01-15  Kazu Hirata  <kazu@hxi.com>
8483
8484         * mips-tfile.c: Fix formatting.
8485
8486 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
8487
8488         * unroll.c (final_reg_note_copy): Fix previous commit.
8489
8490 2002-01-14  Kazu Hirata  <kazu@hxi.com>
8491
8492         * config/h8300/h8300-protos.h: Remove the prototype for
8493         eq_operator.
8494         * config/h8300/h8300.c (eq_operator): Remove.
8495
8496 2002-01-14  Richard Henderson  <rth@redhat.com>
8497
8498         * config/i386/i386.md (prefetch): Tidy.
8499         (prefetch_3dnow): Fix locality operand.
8500
8501 2002-01-14  Richard Henderson  <rth@redhat.com>
8502
8503         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
8504         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
8505
8506 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
8507
8508         * reload1.c (reload_combine): Pass reg_sum replacement through
8509         copy_rtx in loop performing multiple changes.
8510
8511 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
8512
8513         * except.c (remove_unreachable_regions): New.
8514         (free_eh_status): Clear exception_handler_labels.
8515         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
8516         (find_exception_handler_labels): Don't add the same label more than
8517         once.
8518         (remove_exception_handler_label): Don't die if
8519         find_exception_handler_labels hasn't been called for the current
8520         function yet.
8521
8522 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
8523
8524         * toplev.c (rest_of_compilation): Rebuild jump labels after
8525         gcse.
8526
8527 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
8528
8529         * doc/extend.texi: Move documentation of X86 built-in functions
8530         here.
8531         * doc/invoke.texi: From here.
8532         * doc/sourcebuild.texi: Document location of documentation for
8533         machine built-in functions.
8534
8535 2002-01-13  Christopher Faylor  <cgf@redhat.com>
8536
8537         * cppfiles.c (TEST_THRESHOLD): New macro.
8538         (SHOULD_MMAP): Ditto.
8539         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
8540         be used.
8541
8542 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
8543
8544         * unroll.c (final_reg_note_copy): Properly handle
8545         REG_LABEL
8546         (unroll_loops): Fix LOOP_CONDITION heuristics.
8547
8548 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
8549
8550         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
8551         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
8552
8553 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8554
8555         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
8556         threaded loop.
8557
8558 2002-01-14  Tom Rix  <trix@redhat.com>
8559
8560         * config/rs6000/rs6000.md: Fix typo with sradi.
8561
8562 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
8563
8564         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
8565         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
8566         (clrstrdi, clrstrsi): Adapt callers.
8567
8568         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
8569
8570         (movti splitter): Never use register 0 as base register.
8571
8572 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
8573
8574         * combine.c (simplify_shift_const): Always generate new rtx
8575         for shift expression instead of reusing given expression.
8576
8577 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8578
8579         * config/alpha/alpha.c (alpha_expand_mov): Don't call
8580         alpha_legitimize_address unless mode is Pmode.
8581
8582 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
8583
8584         * doc/md.texi (Modifiers): Document the '*' constraint for the
8585         user.
8586
8587         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
8588         * doc/extend.texi (Function Attributes): 'interrupt' is valid
8589         for xstormy16 too.
8590
8591 2002-01-13  Richard Henderson  <rth@redhat.com>
8592
8593         * reload.c (find_reloads): Use a hard reg destination as reload reg
8594         for an input reload of the source.
8595
8596 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8597
8598         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
8599         more generic.
8600
8601 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
8602
8603         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8604         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
8605
8606         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
8607
8608 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8609
8610         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
8611
8612 2002-01-12  Tom Rix  <trix@redhat.com>
8613
8614         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
8615         TARGET_POWERPC64.
8616
8617 2002-01-12  Richard Henderson  <rth@redhat.com>
8618
8619         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
8620
8621         * doc/invoke.texi: Update Alpha options.
8622
8623         * doc/invoke.texi: Update i386 built-in function lists.
8624
8625 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
8626
8627         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
8628         referencing outside.
8629
8630 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8631
8632         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
8633         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
8634         offsets, and change line folding.
8635         * optabs.c (expand_binop): Remove warnings.
8636         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
8637
8638 2002-01-12  Graham Stott <grahams@redhat.com>
8639
8640         * attribs.c (handle_deprecated_attribute): constify WHAT.
8641         * diagnostic.c (warn_deprecated_use): Add braces, fixes
8642         dangling else warning and constify WHAT.
8643         * except.h (struct function, struct inline_remap): Move
8644         struct tag forward defs before all prototypes.
8645         (duplicate_eh_regions): Whitespace.
8646
8647 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
8648
8649         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
8650         MODE_BASE_REG_CLASS.
8651         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
8652
8653 2002-01-12  Richard Henderson  <rth@redhat.com>
8654
8655         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
8656         (ix86_expand_vector_move): New.
8657         (bdesc_2arg): Remove andps, andnps, orps, xorps.
8658         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
8659         Remove old prefetch builtins.  Special case the logicals removed above.
8660         (ix86_expand_builtin): Likewise.
8661         (safe_vector_operand): Use V4SFmode, not TImode.
8662         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
8663         (ix86_expand_timode_binop_builtin): New.
8664         * config/i386/i386-protos.h: Update.
8665         * config/i386/i386.h (enum ix86_builtins): Update.
8666         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
8667         Use ix86_expand_vector_move in vector move expanders.
8668         (movti_internal, movti_rex64): Add xorps alternative.
8669         (sse_clrv4sf): Rename and adjust from sse_clrti.
8670         (prefetch): Don't work so hard.
8671         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
8672         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
8673         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
8674
8675 2002-01-11  Richard Henderson  <rth@redhat.com>
8676
8677         * config/i386/mmintrin.h: New file.
8678         * config/i386/xmmintrin.h: New file.
8679         * config.gcc (i?86-*-*): Add extra_headers.
8680         * simplify-rtx.c (simplify_unary_operation): Handle saturating
8681         truncation codes.
8682         (simplify_binary_operation): Handle saturating arithmetic codes.
8683         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
8684         not the lowpart subreg.
8685         (ix86_expand_builtin): Return a TImode dummy register instead of 0
8686         on error.
8687         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
8688
8689 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8690
8691         * conflict.c (conflict_graph_compute): Free regsets when finished.
8692         * ssa.c (compute_coalesced_reg_partition): Likewise.
8693
8694 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8695
8696         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
8697         every where we allocate a register.
8698
8699 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8700
8701         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
8702         * lcm.c (compute_earliest, compute_farthest): Likewise.
8703
8704 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
8705
8706         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
8707
8708 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
8709
8710         * doc/rtl.texi (Insns): Fix 2 typos.
8711
8712 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
8713
8714         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
8715         options.  Use @table @gcctabopt for MMIX options.  Add index
8716         entries for MMIX options.  Start new paragraph with first
8717         heading of the machine-dependent options.
8718
8719 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
8720
8721         PR other/5299
8722         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
8723         * combine.c (force_to_mode): Same.
8724         * reload1.c (clear_reload_reg_in_use): Same.
8725
8726 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
8727
8728         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
8729         and 'subtargets'.
8730
8731 2002-01-11  Andreas Jaeger  <aj@suse.de>,
8732             Brad Lucier <lucier@math.purdue.edu>
8733
8734         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
8735         mcpu.
8736
8737 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
8738
8739         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
8740         Protect with IN_LIBGCC.
8741         (LINK_EH_SPEC): Add required trailing space.
8742
8743 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
8744
8745         * c-tree.h: Move function declarations so that they are listed
8746         under the filename which contains them.
8747         (check_identifier, finish_decl_top_level,
8748         lookup_name_current_level_global, shadow_record_fields): Remove.
8749
8750 2002-01-11  Andreas Jaeger  <aj@suse.de>
8751
8752         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
8753         march.
8754
8755 2002-01-10  Richard Henderson  <rth@redhat.com>
8756
8757         * config/alpha/alpha.c (print_operand): Add 'J'.
8758         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
8759         new operand with the sequence number for the lituse.  When splitting
8760         the insns, use gen_movdi_er_high_g and generate a sequence number.
8761         (gen_movdi_er_high_g): Print the sequence number if non-zero.
8762
8763 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
8764
8765         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
8766         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
8767         stvxl.
8768         (altivec_expand_builtin): Same.
8769         (altivec_expand_stv_builtin): New.
8770
8771         * config/rs6000/rs6000.h (rs6000_builtins): Same.
8772
8773         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
8774         ("altivec_lvehx"): New.
8775         ("altivec_lvewx"): New.
8776         ("altivec_lvxl"): New.
8777         ("altivec_lvx"): New.
8778         ("altivec_stvx"): New.
8779         ("altivec_stvebx"): New.
8780         ("altivec_stvehx"): New.
8781         ("altivec_stvewx"): New.
8782         ("altivec_stvxl"): New.
8783
8784 2002-01-10  Richard Henderson  <rth@redhat.com>
8785
8786         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
8787         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
8788         care not to delete instructions twice.
8789
8790 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
8791
8792         * toplev.c: Don't declare environ (it's not used anywhere).
8793         * configure.in: Don't check for declaration of environ.
8794         * config/i386/xm-mingw32.h: Don't #define environ.
8795         * config.in, configure: Regenerate.
8796
8797 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
8798
8799         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
8800         * configure: Regenerate.
8801
8802         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
8803         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
8804         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
8805         alpha/xm-vms.h.
8806         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
8807         LIMITS_H_TEST here, not in m68k/x-next.
8808         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
8809         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
8810
8811         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
8812         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
8813         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
8814
8815         * config/i386/x-djgpp: Renamed i386/t-djgpp.
8816         * config/m88k/x-dolph: Renamed m88k/t-dolph.
8817         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
8818         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
8819         replacement of quadlib.asm with quadlib.c.
8820
8821         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
8822         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
8823         config/rs6000/xm-beos.h: Delete file.
8824
8825         * config.gcc: Update to match above changes.
8826
8827 2002-01-10  Kazu Hirata  <kazu@hxi.com>
8828
8829         * config/h8300/h8300.h: Fix comment typos.
8830         * config/h8300/h8300.md: Likewise.
8831         * config/h8300/lib1funcs.asm: Likewise.
8832
8833 2002-01-10  Dale Johannesen  <dalej@apple.com>
8834
8835         PR optimization/5269
8836         * unroll.c (precondition_loop_p): Make *increment be the correct
8837         sign when n_iterations known, to avoid confusing caller.
8838
8839 2002-01-10  Kazu Hirata  <kazu@hxi.com>
8840
8841         * doc/extend.texi (deprecated): Fix a typo.
8842
8843 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
8844
8845         * basic-block.h (update_br_prob_note): Declare.
8846         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
8847         (try_forward_edges): Care negative frequencies and update note.
8848         (outgoing_edges_match): Tweek conditional merging heuristics.
8849         (try_crossjump_to_edge): use update_br_prob_note.
8850         * cfglayout.c (fixup_reorder_chain): Likewise.
8851         * cfrtl.c (update_br_prob_note): New.
8852         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
8853
8854         * i386.c (ix86_decompose_address): Return -1 if address contains
8855         shift.
8856         (legitimate_address_p): Require ix86_decompose_address to return 1.
8857
8858         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
8859         (cprop_insn): Likewise.
8860
8861 2002-01-10  Kazu Hirata  <kazu@hxi.com>
8862
8863         * toplev.c: Fix formatting.
8864         * tree.c: Likewise.
8865         * tree-dump.c: Likewise.
8866         * unroll.c: Likewise.
8867         * unwind-dw2.c: Likewise.
8868         * unwind-dw2-fde.c: Likewise.
8869         * unwind-dw2-fde-glibc.c: Likewise.
8870         * unwind-sjlj.c: Likewise.
8871
8872 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
8873
8874         * doc/invoke.texi: Document PDP-11 options.
8875
8876 2002-01-10  Kazu Hirata  <kazu@hxi.com>
8877
8878         * config/h8300/h8300.h: Fix formatting.
8879
8880 2002-01-10  Ira Ruben   <ira@apple.com>
8881
8882         Add __attribute__ ((deprecated)).
8883         * extend.texi: Document __attribute__ ((deprecated)).
8884         * invoke.texi: Document -Wno-deprecated-declarations.
8885         * testsuite/g++.dg/other/deprecated.C: New C++ test.
8886         * testsuite/gcc.dg/deprecated.c: New C test.
8887         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
8888         (c_common_attribute_table): Add "deprecated" entry.
8889         (handle_deprecated_attribute): New function.
8890         * c-decl.c (deprecated_states): New enum.
8891         deprecated_state: State of "deprecated" handling.
8892         (start_decl): Set deprecated_state based on attributes.
8893         (grokdeclarator): Test for deprecated uses, propagate attribute.
8894         * c-typeck.c (build_component_ref): Test for deprecated fields.
8895         (build_external_ref): Test for deprecated primaries.
8896         * diagnostic.c (warn_deprecated_use) New function to issue
8897         warnings about __attribute__ ((depricated)) references.
8898         * flags.h (warn_deprecated_decl): Extern declared for
8899         -W[no-]deprecated-declarations option.
8900         * print-tree.c (print_node): Show deprecated flag status.
8901         * toplev.c (warn_deprecated_decl): Defined.
8902         (W_options): Added "deprecated-declaration".
8903         * toplev.h (warn_deprecated_use): Extern declared.
8904         * tree.h (struct tree_common): Define deprecated_flag.
8905         (TREE_DEPRECATED): New macro to access flag.
8906         * cp/call.c (build_call): Test for deprecated calls.
8907         * cp/class.c (add_implicitly_declared_members): Set global
8908         flag to tell grokdeclarator to not issue deprecated warnings.
8909         * cp/cp-tree.h: Add extern for adding_implicit_members.
8910         * cp/decl.c (deprecated_states): New enum.
8911         (start_decl): Set deprecated_state based on attributes.
8912         (grokdeclarator): Test for deprecated uses, propagate attribute.
8913         * cp/lex.c (do_identifier): Test for deprecated primaries.
8914         * cp/typeck.c (build_component_ref): Test for deprecated fields.
8915
8916 2002-01-10  Ira Ruben   <ira@apple.com>
8917
8918         Fix to assign attributes to inline member functions.
8919         * cp/decl.c (start_method): Handle attrlist.
8920
8921 2002-01-10  Kazu Hirata  <kazu@hxi.com>
8922
8923         * combine.c (expand_field_assignment): Use subreg_lsb().
8924
8925 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
8926
8927         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
8928         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
8929         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
8930         Recurse for any operand of AND as long as constant is non-zero.
8931
8932 2002-01-10  Kazu Hirata  <kazu@hxi.com>
8933
8934         * config/h8300/h8300.md: Remove constraints from expanders.
8935
8936 2002-01-10  Kazu Hirata  <kazu@hxi.com>
8937
8938         * varasm.c: Fix formatting.
8939         * varray.c: Likewise.
8940         * vmsdbgout.c: Likewise.
8941         * xcoffout.c: Likewise.
8942
8943 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
8944
8945         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
8946         update edge probabilities to match.
8947
8948 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
8949
8950         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
8951         dependencies.
8952         * doc/languages.texi, doc/sourcebuild.texi: New files.
8953         * doc/configfiles.texi: Make a subsubsection.  Update.
8954         * doc/configterms.texi: Add @node.  Remove warning that this isn't
8955         instructions for building GCC.
8956         * doc/makefile.texi: Make a subsection.
8957         * doc/gccint.texi: Update.
8958
8959 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
8960
8961         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
8962
8963 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
8964
8965         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
8966
8967 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
8968
8969         * optabs.c (expand_fix): Look for wider integer modes first.
8970
8971         * i386.md (mov?f): Avoid the fake const double trick for medium
8972         memory model.
8973         (min?f*/max?f*): Prohibit memory operands for i387 variant.
8974         (fop_df_4): Disable for SSE compilation.
8975
8976 2002-01-10  Graham Stott  <grahams@redhat.com>
8977
8978         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
8979         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
8980
8981 2002-01-10  Richard Henderson  <rth@redhat.com>
8982
8983         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
8984
8985 2002-01-10  Richard Henderson  <rth@redhat.com>
8986
8987         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
8988         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
8989
8990 2002-01-10  Kazu Hirata  <kazu@hxi.com>
8991
8992         * combine.c (can_combine_p): Fix a comment typo.
8993
8994 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
8995
8996         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
8997         empty list correctly.  Change loop index $t to $f for
8998         consistency with rest of Makefile.
8999
9000 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
9001
9002         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
9003         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9004
9005         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
9006         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
9007         (altivec_init_builtins): Same.
9008         (altivec_expand_unop_builtin): Return NULL_RTX on error.
9009         (altivec_expand_binop_builtin): Same.
9010         (altivec_expand_ternop_builtin): Same.
9011         (bdesc_dst): New.
9012
9013         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
9014         ("altivec_vctuxs"): Fix typo.
9015         ("altivec_vnmsubfp"): Same.
9016         ("altivec_dssall"): New.
9017         ("altivec_mfvscr"): New.
9018         ("altivec_dss"): New.
9019         ("altivec_lvsl"): New.
9020         ("altivec_lvsr"): New.
9021         ("altivec_dstt"): New.
9022         ("altivec_dstst"): New.
9023         ("altivec_dststt"): New.
9024         ("altivec_dst"): New.
9025
9026         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
9027         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
9028
9029 2002-01-09  Richard Henderson  <rth@redhat.com>
9030
9031         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
9032
9033 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
9034
9035         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
9036         function.
9037         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
9038         prototype.
9039         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
9040
9041 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9042
9043         * read-rtl.c: Fix formatting.
9044         * real.c: Likewise.
9045         * regclass.c: Likewise.
9046         * regrename.c: Likewise.
9047         * reg-stack.c: Likewise.
9048         * reload1.c: Likewise.
9049         * reload.c: Likewise.
9050         * rtl.c: Likewise.
9051
9052 2002-01-09  Kazu Hirata  <kazu@hxi.com>
9053
9054         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
9055         to extract items in the expr_list chain.
9056
9057 2002-01-09  Richard Henderson  <rth@redhat.com>
9058
9059         * config/vax/vax.c (vax_rtx_cost): Never abort.
9060
9061         * config/vax/vax.h (REAL_ARITHMETIC): Define.
9062
9063 2002-01-09  Jan Hubicka  <jh@suse.cz>
9064
9065         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
9066
9067 2002-01-09  Richard Henderson  <rth@redhat.com>
9068
9069         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
9070         Unify code from various alternatives.
9071
9072 2002-01-09  Richard Henderson  <rth@redhat.com>
9073
9074         * regrename.c (copy_value): Ignore the copy if the source register
9075         is present in the value chain with a narrower mode.
9076
9077 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9078
9079         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
9080         for the c4x target. Also improve layout.
9081
9082 2002-01-09  Richard Henderson  <rth@redhat.com>
9083
9084         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
9085         * config/m32r/m32r.md (and ior xor splitters): Swap operands
9086         to match insn patterns.
9087
9088 2002-01-09  Richard Henderson  <rth@redhat.com>
9089
9090         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
9091         (copyprop_hardreg_forward_1): Likewise.
9092
9093 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9094
9095         * pa.md (decrement_and_branch_until_zero): Change predicate for
9096         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
9097
9098 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9099
9100         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
9101         gets undefined. For Darwin.
9102
9103 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
9104
9105         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
9106
9107 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9108
9109         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
9110
9111 2002-01-08  Richard Henderson  <rth@redhat.com>
9112
9113         * regrename.c (copy_value): Ignore overlapping copies.
9114
9115 2002-01-08  Richard Henderson  <rth@redhat.com>
9116
9117         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
9118         as needed to avoid shared structure.
9119
9120 2002-01-08  Kazu Hirata  <kazu@hxi.com>
9121
9122         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
9123         H8/300H and H8/S.
9124
9125 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9126
9127         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
9128         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
9129         documentation of obsolete macros.
9130         * system.h: Poison these macros.
9131         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
9132         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
9133         config/c4x/c4x.h, config/clipper/clipper.h,
9134         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
9135         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
9136         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
9137         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
9138         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
9139         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
9140         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
9141         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
9142         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
9143         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
9144         config/sparc/sparc.h, config/stormy16/stormy16.h,
9145         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
9146         definitions and commented out definitions of obsolete macros.
9147         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
9148         of MAX_INT_TYPE_SIZE.
9149
9150 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9151
9152         * config/s390/s390.c (s390_preferred_reload_class): Never
9153         return ADDR_REGS if it isn't a subset of the given class.
9154         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
9155         FP_REGS, but all superclasses as well.
9156
9157         * config/s390/s390.c (s390_function_profiler): Fix thinko.
9158
9159         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
9160         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
9161         must not be a const_int.
9162
9163 2002-01-08  Richard Henderson  <rth@redhat.com>
9164
9165         * Makefile.in (toplev.o): Depend on options.h.
9166         (gcc.o): Depend on specs.h.
9167
9168 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
9169
9170         * expr.c (store_expr): Convert VOIDmode constants back to target's
9171         mode.
9172
9173 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9174
9175         * doc/invoke.texi: Markup gcc as @command.  Refer to
9176         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
9177         of http://gcc.gnu.org/thanks.html.
9178
9179 2002-01-08  Dale Johannesen  <dalej@apple.com>
9180
9181         * config/rs6000/rs6000.md: Add missing int register
9182         target case to movdf_low.
9183
9184 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
9185
9186         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
9187         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
9188         (cppinit.o): Depend on except.h.
9189         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
9190         s-specs): New rules.
9191
9192         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
9193         Don't create specs.h/options.h/gencheck.h here.  Remove
9194         unnecessary variable settings from last argument of AC_OUTPUT.
9195         * config.in, configure: Regenerate.
9196         * intl.c: Hardcode package name as "gcc".
9197
9198         * cppinit.c: Include except.h.
9199         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
9200         appropriate.
9201         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
9202         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
9203         (!)USING_SJLJ_EXCEPTIONS.
9204         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
9205
9206 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9207
9208         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
9209         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
9210         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
9211         documentation of obsolete macros.
9212         * system.h: Poison these macros.
9213         * config/d30v/d30v.h, config/ns32k/encore.h,
9214         config/stormy16/stormy16.h: Remove definitions and commented out
9215         definitions of obsolete macros.
9216
9217 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
9218
9219         * objc/objc-act.c (handle_class_ref): Mark the declaration of
9220         %sobjc_class_ref_%s as used - to prevent unwanted compiler
9221         warnings.
9222
9223 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
9224
9225         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
9226         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
9227         to insn adjusting stack/frame pointer.
9228         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
9229         accept operands that cause the insn to be non-splittable.
9230
9231 2002-01-08  Graham Stott  <grahams@redhat.com>
9232
9233         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
9234         (C_TYPE_FIELDS_VOLATILE): Likewise.
9235         (C_TYPE_BEING_DEFINED): Likewise.
9236         (C_IS_RESERVED_WORD): Likewise.
9237         (C_TYPE_VARIABLE_SIZE): Likewise.
9238         (C_DECL_VARIABLE_SIZE): Likewise.
9239         (C_MISSING_PROTOTYPE_WARNED): Likewise.
9240         (C_SET_EXP_ORIGINAL_CODE): Likewise.
9241         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
9242         parenthesis.
9243         (C_DECL_ANTICIPATED): Likewise.
9244         (c_build_type_variant): Add parenthesis.
9245
9246 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
9247
9248         * gcc.c (option_map): Remove --version.
9249         (process_command): Handle -fversion following the GNU Coding
9250         Standards.  Partially addresses PR other/704.
9251
9252 2002-01-08  Graham Stott  <grahams@redhat.com>
9253
9254         * combine.c (combine_instructions): Fix typo.
9255
9256 2002-01-08  Graham Stott  <grahams@redhat.com>
9257
9258         * debug.h: Use "tree" and "rtx" throughout.
9259
9260         * debug.c: Likewise.
9261
9262 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
9263
9264         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
9265         constant pool, use the pool's version of the symbol instead.
9266
9267 2002-01-07  Richard Henderson  <rth@redhat.com>
9268
9269         * regrename.c (find_oldest_value_reg): Ignore the value chain if
9270         the original register was copied in a mode with a fewer number of
9271         hard registers than the desired mode.
9272         (copyprop_hardreg_forward_1): Likewise.
9273         (debug_value_data): Fix loop test.
9274         * toplev.c (parse_options_and_default_flags): Reenable
9275         -fcprop-registers at -O1.
9276
9277 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9278
9279         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
9280         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
9281
9282         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
9283         predicates.
9284
9285         * config/rs6000/rs6000.md: Add altivec predicate patterns.
9286
9287 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9288
9289         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
9290         (pa_output_function_prologue): Output local label at the beginning of
9291         the prologue when profiling.
9292         (hppa_profile_hook): Use the local label rather than the function label.
9293         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
9294
9295 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9296
9297         * config/rs6000/rs6000.c (print_operand): Remove extra space.
9298         (altivec_expand_unop_builtin): Fix thinko.
9299         (altivec_expand_binop_builtin): Same.
9300         (altivec_expand_ternop_builtin): Same.
9301         (altivec_expand_builtin): Same.
9302
9303 2002-01-07  Richard Henderson  <rth@redhat.com>
9304
9305         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
9306
9307 2002-01-07  Jason Merrill  <jason@redhat.com>
9308
9309         * unwind-dw2.c (execute_cfa_program): Use < again.
9310
9311 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
9312
9313         * predict.c (combine_predictions_for_insn): Avoid division by zero.
9314
9315 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
9316
9317         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
9318         Don't allow -1 - x -> ~x simplifications in the first pass.
9319
9320 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
9321
9322         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
9323         arguments.
9324         (altivec_expand_binop_builtin): Same.
9325         (altivec_expand_unop_builtin): Same.
9326         (print_operand): Fix typo.
9327         (bdesc_1arg): Add vupk* variants.
9328
9329         * rs6000.h (rs6000_builtins): Add vupk* enums.
9330
9331         * rs6000.md: Add altivec_vupk* variants.
9332
9333 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
9334
9335         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
9336         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
9337         and last update dates.
9338
9339 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
9340
9341         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
9342
9343 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9344
9345         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
9346         * config/avr/avr.h (CPP_SPEC): Likewise.
9347         (LINK_SPEC): Likewise.
9348         (CRT_BINUTILS_SPECS): Likewise.
9349         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
9350         * doc/invoke.texi (AVR Options): Document them.
9351
9352 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
9353
9354         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
9355         LABEL_NUSES.
9356
9357 2002-01-07  Graham Stott  <grahams@redhat.com>
9358
9359         * config/i386/i386.h: Update copyright date.
9360         (HALF_PIC_PTR): Add parenthesis.
9361         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
9362         (CONSTANT_ALIGNMENT): Add parenthesis.
9363         (DATA_ALIGNMENT): Likewise.
9364         (LOCAL_ALIGNMENT): Likewise.
9365         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
9366         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
9367         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
9368         (HARD_REGNO_NREGS): Add paranethesis.
9369         (VALID_SSE_REG_MODE): Whitespace.
9370         (VALID_MMX_REG_MODE): Whitespace.
9371         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
9372         (ix86_hard_regno_mode_ok): Add parenthesis.
9373         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
9374         (RETURN_IN_MEMORY): Whitespace.
9375         (N_REG_CLASSES): Add parenthesis.
9376         (INTEGER_CLASS_P): Add parenthesis and wrap.
9377         (FLOAT_CLASS_P): Likewise.
9378         (SSE_CLASS_P): Likewise.
9379         (MMX_CLASS_P): Likewise.
9380         (MAYBE_INTEGER_CLASS_P): Likewise.
9381         (MAYBE_FLOAT_CLASS_P): Likewise.
9382         (MAYBE_SSE_CLASS_P): Likewise.
9383         (MAYBE_MMX_CLASS_P): Likewise.
9384         (Q_CLASS_P): Likewise.
9385         (GENERAL_REGNO_P): Uppercase macro parameter.
9386         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
9387         (FP_REGNO_P): Likewise.
9388         (ANY_FP_REGNO_P): Uppercase macro parameter.
9389         (SSE_REGNO_P): Likewise.
9390         (SSE_REGNO): Likewise.
9391         (SSE_REG_P): Likewise.
9392         (SSE_FLOAT_MODE_P): Likewise.
9393         (MMX_REGNO_P): Likewise.
9394         (MMX_REG_P):Likewise.
9395         (STACK_REG_P): Likewise.
9396         (NON_STACK_REG_P): Likewise.
9397         (STACK_TOP_P): Likewise.
9398         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
9399         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
9400         (SECONDARY_MEMORY_NEEDED): Likewise.
9401         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
9402         (MD_ASM_CLOBBERS): Whitespace and wrap.
9403         (MUST_PASS_IN_STACK): Whitespace and wrap.
9404         (RETURN_POPS_ARGS): Add parenthesis.
9405         (INIT_CUMULATIVE_ARGS): Likewise.
9406         (FUNCTION_ARG): Likewise.
9407         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
9408         (SETUP_INCOMING_VARARGS): Likewise.
9409         (BUILD_VA_LIST_TYPE):  Add parenthesis.
9410         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
9411         parenthsis.
9412         (EXPAND_BUILTIN_VA_ARG): Likewise.
9413         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
9414         (INITIALIZE_TRAMPOLINE): Add parenthesis.
9415         (INITIAL_ELIMINATION_OFFSET): Likewise.
9416         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
9417         (REGNO_OK_FOR_BASE_P): Likewise.
9418         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
9419         (REGNO_OK_FOR_DIREG_P): Likewise.
9420         (REG_OK_FOR_INDEX_P): Whitespace.
9421         (REG_OK_FOR_BASE_P): Whitespace.
9422         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
9423         parenthesis.
9424         (FIND_BASE_TERM): Fix typo.
9425         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
9426         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
9427         (SYMBOLIC_CONST; Whitespace.
9428         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
9429         (ENCODE_SECTION_INFO): Whitespace.
9430         (FINALIZE_PIC): Remove do { ... } while (0).
9431         (PROMOTE_MODE): Wrap in do { ... } while (0).
9432         (CONST_COSTS): Whitespace.
9433         (RTX_COSTS): Add paramethesis, whitespace and wrap.
9434         (REGISTER_MOVE_COST): Add parenthesis.
9435         (MEMORY_MOVE_COST): Likewise.
9436         (EXTRA_CC_MODES): Whitespace.
9437         (SELECT_CC_MODE): Add parenthesis and whitespace.
9438         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
9439         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
9440         (ASM_OUTPUT_LABEL): Add paramethesis.
9441         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
9442         (ASM_OUTPUT_REG_POP): Likewise.
9443         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
9444         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9445
9446         * config/i386/i386.c: Update copyright.
9447         (CHECK_STACK_LIMIT): Add parenthesis.
9448         (AT_BP): Uppercase macro parameter.
9449         (x86_64_int_parameter_registers): Constify.
9450         (x86_64_int_return_registers): Likewise.
9451         (ix86_compare_op0): Use rtx.
9452         (construct_container): Constify INTREG parameter.
9453         (function_arg): Use rtx.
9454
9455         * diagnostic.h: Update copyright date.
9456         (output_buffer_state): Add parenthesis.
9457         (output_buffer_format_args): Likewise.
9458
9459         * combine.c (combine_instructions): Replace XEXP (links, 0)
9460         with link.
9461
9462 2002-01-06  H.J. Lu <hjl@gnu.org>
9463
9464         * cfgcleanup.c (thread_jump): Fix 2 typos.
9465
9466 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
9467
9468         * config.gcc: Add support for --enable-altivec.
9469
9470 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9471
9472         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
9473
9474 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
9475
9476         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
9477         __objc_class_name_*.
9478
9479 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9480
9481         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
9482
9483 2002-01-06  Richard Henderson  <rth@redhat.com>
9484
9485         * reorg.c (emit_delay_sequence): Remove death notes, not merely
9486         nop them out.  Increment label reference count for REG_LABEL.
9487         (fill_slots_from_thread): Frob label reference count around
9488         delete_related_insns.
9489
9490 2002-01-05  Richard Henderson  <rth@redhat.com>
9491
9492         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
9493         jump threading.
9494
9495 2002-01-05  Richard Henderson  <rth@redhat.com>
9496
9497         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
9498         * integrate.c (output_inline_function): Likewise.
9499         * toplev.c (rest_of_compilation): Do it here instead.  Move call
9500         to remove_unnecessary_notes after emitting abstract instance.
9501         Force an emitted nested function to have its parent emited as well.
9502         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
9503         for null.
9504         (rtl_for_decl_location): Do not look at reload data structures
9505         before reload has run.
9506
9507 2002-01-05  Kazu Hirata  <kazu@hxi.com>
9508
9509         * cse.c: Fix formatting.
9510         * dwarf2asm.c: Likewise.
9511         * dwarf2out.c: Likewise.
9512         * explow.c: Likewise.
9513         * expmed.c: Likewise.
9514         * function.c: Likewise.
9515         * gcov.c: Likewise.
9516         * gencheck.c: Likewise.
9517         * genrecog.c: Likewise.
9518         * ggc-common.c: Likewise.
9519         * ggc-page.c: Likewise.
9520         * global.c: Likewise.
9521
9522 2002-01-05  Kazu Hirata  <kazu@hxi.com>
9523
9524         * combine.c: Fix formatting.
9525
9526 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
9527
9528         PR middle-end/1557
9529         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
9530
9531 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
9532
9533         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
9534         as 1 for __powerpc64__ as well.
9535
9536         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
9537
9538         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
9539         return it.
9540
9541 2002-01-05  Daniel Berlin  <dan@dberlin.org>
9542
9543         * lcm.c: Revert change, due to performance regression it causes on
9544         SPEC because it's slightly more conservative (sigh, I hate
9545         edge-based LCM).
9546
9547 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
9548
9549         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
9550
9551 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9552
9553         * doc/cppinternals.texi: Update.
9554
9555 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
9556
9557         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
9558         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
9559         negatives.
9560         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
9561         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
9562         kludge for pre-october-14th mmix versions to handle new-found bug
9563         with PUSHJ/PUSHGO and the register stack.
9564         * config/mmix/mmix.h (struct machine_function): Rename member
9565         has_call_value_without_parameters to has_call_without_parameters.
9566         All referers changed.
9567         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
9568         TARGET_MASK_BRANCH_PREDICT): New macros.
9569         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
9570         -mno-reg-stack-fill-bug-workaround.
9571         * config/mmix/mmix.md ("call"): Set struct machine member
9572         has_call_without_parameters.
9573
9574 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
9575
9576         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
9577
9578 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
9579
9580         * cfgcleanup.c: Include tm_p.h
9581         (mark_effect): Fix handling of hard register; fix handling of SET
9582
9583 2002-01-04  Kazu Hirata  <kazu@hxi.com>
9584
9585         * config/h8300/h8300.md (anonymous patterns): Check that
9586         operands are registers before using REGNO on them.
9587
9588 2002-01-03  Roland McGrath  <roland@frob.com>
9589
9590         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
9591
9592 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
9593
9594         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
9595         * c-common.h (genrtl_expr_stmt_value): Likewise.
9596         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
9597         (expand_expr_stmt_value): Add maybe_last argument.
9598         Don't warn about statement with no effect if it is the last statement
9599         in expression statement.
9600         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
9601         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
9602         expand_expr_stmt_value.
9603         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
9604         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
9605         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
9606         as maybe_last to expand_expr_stmt_value.
9607
9608 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
9609
9610         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
9611         be passed in, do not build it.
9612         (c_begin_if_stmt): New function.
9613         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9614         * c-common.h (c_expand_start_cond): Update prototype.
9615         (c_begin_if_stmt): Prototype new function.
9616         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
9617         * c-parse.in (if_prefix): Use c_begin_if_stmt,
9618         c_begin_while_stmt and c_finish_while_stmt_cond.
9619
9620 2002-01-04  William Cohen  <wcohen@redhat.com>
9621
9622         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
9623         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
9624         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
9625         * config/pa/som.h (ASM_FILE_START): Likewise.
9626
9627 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
9628
9629         * lcm.c: Include df.h.
9630         Add available_transfer_function prototype.
9631         (compute_available): Rework to use iterative dataflow framework.
9632         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
9633         with bb_info in df.h
9634         (available_transfer_function): New function.
9635
9636         * Makefile.in (lcm.o): add df.h to dependencies.
9637
9638 2002-01-04  Richard Henderson  <rth@redhat.com>
9639
9640         * config/alpha/alpha.c (some_operand): Accept HIGH.
9641         (input_operand): Likewise; accept simple references to globals.
9642         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
9643         (alpha_const_double_ok_for_letter_p): Likewise.
9644         (alpha_extra_constraint): Likewise.
9645         (alpha_preferred_reload_class): Likewise.  Do not force
9646         symbolic constants to memory.
9647         (alpha_legitimate_address_p): Accept simple references
9648         to small_symbolic_operand.
9649         (alpha_legitimize_address): New arg scratch.  Be prepared to be
9650         called when no_new_pseudos.  Emit simple symbolic references.
9651         Split integers into low, high, and rest.
9652         (alpha_expand_mov): Use alpha_legitimize_address.
9653         (some_small_symbolic_mem_operand): New.
9654         (split_small_symbolic_mem_operand): New.
9655         * config/alpha/alpha-protos.h: Update.
9656         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
9657         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
9658         (EXTRA_CONSTRAINT): Likewise.
9659         (PREFERRED_RELOAD_CLASS): Likewise.
9660         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
9661         (PREDICATE_CODES): Update.
9662         * config/alpha/alpha.md: New post-reload splitters to convert
9663         simplfied symbolic operands to the form that references $29.
9664         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
9665         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
9666
9667 2002-01-03  Richard Henderson  <rth@redhat.com>
9668
9669         * local-alloc.c (function_invariant_p): Update commentary.
9670
9671 2002-01-04  H.J. Lu <hjl@gnu.org>
9672
9673         * toplev.c (rest_of_compilation): Fix a typo when calling
9674         cleanup_cfg.
9675
9676 2002-01-03  Kazu Hirata  <kazu@hxi.com>
9677
9678         * c-common.c: Fix formatting.
9679         * diagnostic.c: Likewise.
9680         * doloop.c: Likewise.
9681         * dwarf2out.c: Likewise.
9682
9683 2002-01-03  Kazu Hirata  <kazu@hxi.com>
9684
9685         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
9686         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
9687
9688 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
9689
9690         * cpperror.c: Update comments and copyright.
9691         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
9692         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
9693
9694 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9695
9696         * collect2.c (main): Use strcmp when testing for "-shared".
9697
9698 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
9699
9700         * cppmacro.c: Don't include intl.h.  Update comments.
9701         (new_number_token): Allocate enough buffer for 64-bit unsigned
9702         integers; update prototype.
9703         * cppmain.c: Update comments.
9704
9705 2002-01-03  William Cohen  <wcohen@redhat.com>
9706
9707         * function.h (struct function): Add profile.
9708         (current_function_profile): New.
9709         doc/extend.texi: Update documentation.
9710         * final.c (final_start_function): Use current_function_profile
9711         instead of profile_flag.
9712         (profile_after_prologue): Likewise.
9713         * function.c (expand_function_start): Likewise.
9714         (expand_function_start): Likewise.
9715         * config/alpha/alpha.c (direct_call_operand):
9716         (alpha_does_function_need_gp): Likewise.
9717         (alpha_expand_prologue): Likewise.
9718         * config/arm/arm.c (arm_expand_prologue): Likewise.
9719         thumb_expand_prologue: Likewise.
9720         * config/d30v/d30v.c (d30v_stack_info): Likewise.
9721         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
9722         (fr30_expand_prologue): Likewise.
9723         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
9724         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
9725         * config/i386/i386.h (FINALIZE_PIC): Likewise.
9726         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
9727         * config/i960/i960.c (i960_output_function_prologue): Likewise.
9728         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
9729         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
9730         (m32r_expand_prologue): Likewise.
9731         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
9732         (m88k_expand_prologue): Likewise.
9733         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
9734         * config/mips/mips.c (compute_frame_size): Likewise.
9735         (mips_expand_prologue): Likewise.
9736         (mips_can_use_return_insn): Likewise.
9737         * config/pa/elf.h (ASM_FILE_START): Likewise.
9738         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
9739         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
9740         * config/pa/som.h (ASM_FILE_START): Likewise.
9741         * config/romp/romp.c (romp_using_r14): Likewise.
9742         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
9743         (rs6000_stack_info): Likewise.
9744         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9745         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
9746         * config/v850/v850.c (compute_register_save_size): Likewise.
9747
9748 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
9749
9750         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
9751         gen_lowpart_common fails, use gen_lowpart_SUBREG.
9752
9753 2002-01-03  Turly O'Connor  <turly@apple.com>
9754
9755         * darwin.c (machopic_output_possible_stub_label): Don't generate
9756         stub routines for pseudo-stubs which we've just defined.
9757
9758 2002-01-03  Kazu Hirata  <kazu@hxi.com>
9759
9760         * builtins.c: Fix formatting.
9761         * c-typeck.c: Likewise.
9762         * combine.c: Likewise.
9763         * expr.c: Likewise.
9764         * loop.c: Likewise.
9765
9766 2002-01-03  Andreas Schwab  <schwab@suse.de>
9767
9768         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
9769         and return true if _cpp_push_next_buffer pushed a new include
9770         file.
9771         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
9772         _cpp_pop_file_buffer did not push a new file.
9773         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
9774
9775 2002-01-02  Eric Christopher  <echristo@redhat.com>
9776
9777         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
9778         FIND_REG_INC_NOTE call. Update copyright.
9779         * loop.c (canonicalize_condition): Ditto.
9780         * reorg.c (delete_scheduled_jump): Ditto.
9781
9782 2002-01-03  Kazu Hirata  <kazu@hxi.com>
9783
9784         * gcse.c: Fix formatting.
9785
9786 2002-01-03  Graham Stott  <grahams@redhat.com>
9787
9788         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
9789         forward defs for struct tags rtx_def, union_tree, rtvec_def
9790         also output corresponding typedefs for rtx, tree, and rtvec.
9791
9792         * system.h: Move forward defs for struct tags rtx_def, union_tree,
9793         rtvec_def along with corresponding typedefs for rtx, tree, and
9794         rtvec to config.h, hconfig.h, tconfig.h.
9795
9796 2002-01-03  Graham Stott  <grahams@redhat.com>
9797
9798         * tree.h: Update copyright date.
9799         (IS_EXPR_CODE_CLASS): Add parenthesis.
9800         (TREE_SET_CODE): Add whitespace.
9801         (TREE_CHECK): Add parenthesis.
9802         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
9803         (CST_OR_CONSTRUCTOR_CHECK):
9804         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
9805         (TREE_SYMBOL_REFERENCED): Whitespace.
9806         (INT_CST_LT): Likewise.
9807         (INT_CST_LT_UNSIGNED): Likewise.
9808         (tree_real_cst): Unwrap comment.
9809         (tree_string): Likewise.
9810         (tree_complex): Likewise.
9811         (IDENTIFIER_POINTER): correct cast.
9812         (SAVE_EXPR_CONTEXT): Whitespace.
9813         (EXPR_WFL_FILENAME_NODE): Likewise.
9814         (EXPR_WFL_FILENAME): Remove parenthesis.
9815         (DECL_ORIGIN): Add parenthesis.
9816         (DECL_FROM_INLINE): Use NULL_TREE.
9817         (build_int_2): Whitespace.
9818         (build_type_variant): Add parenthesis.
9819
9820         * gcc/jcf-parse.c: Update copyright date.
9821         (yyparse): Constify resource_filename.
9822
9823 2002-01-03  Graham Stott  <grahams@redhat.com>
9824
9825         * rtl.h: Update copyright date.
9826         (RTL_CHECK1): Wrap long line.
9827         (RTL_CHECK2): Likewise.
9828         (RTL_CHECKC1): Wrap long line and whitespace.
9829         (RTL_CHECKC2): Likewise.
9830         (XWINT): Whitespace.
9831         (XINT): Likewise.
9832         (XSTR): Likewise.
9833         (XEXP): Likewise.
9834         (XVEC): Likewise.
9835         (XMODE): Likewise.
9836         (XBITMAP): Likewise.
9837         (XTREE): Likewise.
9838         (XBBDEF): Likewise.
9839         (XTMPL): Likewise.
9840         (X0WINT): Likewise.
9841         (X0INT):Likewise.
9842         (X0UINT): Likewise.
9843         (X0STR): Likewise.
9844         (X0EXP): Likewise.
9845         (X0VEC): Likewise.
9846         (X0MODE): Likewise.
9847         (X0BITMAP): Likewise.
9848         (X0TREE): Likewise.
9849         (X0BBDEF): Likewise.
9850         (X0ADVFLAGS): Likewise.
9851         (X0CSELIB): Likewise.
9852         (X0MEMATTR): Likewise.
9853         (XCWINT): Likewise.
9854         (XCINT): Likewise.
9855         (XCUINT): Likewise.
9856         (XCSTR): Likewise.
9857         (XCEXP): Likewise.
9858         (XCVEC): Likewise.
9859         (XCMODE): Likewise.
9860         (XCBITMAP): Likewise.
9861         (XCTREE): Likewise.
9862         (XCBBDEF): Likewise.
9863         (XCADVFLAGS): Likewise.
9864         (XCCSELIB): Likewise.
9865         (XC2EXP): Likewise.
9866         (INSN_UID): Likewise.
9867         (PREV_INSN): Likewise.
9868         (PATTERN): Likewise.
9869         (INSN_CODE): Likewise.
9870         (PUT_REG_NOTE_KIND): Likewise.
9871         (CODE_LABEL_NUMBER): Likewise.
9872         (NOTE_SOURCE_FILE): Likewise.
9873         (NOTE_BLOCK): Likewise.
9874         (NOTE_EH_HANDLER): Likewise.
9875         (NOTE_RANGE_INFO): Likewise.
9876         (NOTE_LIVE_INFO): Likewise.
9877         (NOTE_BASIC_BLOCK): Likewise.
9878         (NOTE_EXPECTED_VALUE): Likewise.
9879         (NOTE_LINE_NUMBER): Likewise.
9880         (LABEL_NAME): Likewise.
9881         (LABEL_NUSES): Likewise.
9882         (LABEL_ALTERNATE_NAME): Likewise.
9883         (ADDRESSOF_DECL): Likewise.
9884         (JUMP_LABEL): Likewise.
9885         (LABEL_NEXTREF): Likewise.
9886         (REGNO): Likewise.
9887         (ORIGINAL_REGNO: Likewise.
9888         (HARD_REGISTER_NUM_P): Add parenthesis.
9889         (SUBREG_REG): Whitespace.
9890         (SUBREG_BYTE): Likewise.
9891         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
9892         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
9893         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
9894         (ASM_OPERANDS_INPUT_VEC): Likewise.
9895         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
9896         (ASM_OPERANDS_INPUT): Likewise.
9897         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
9898         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
9899         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
9900         (ASM_OPERANDS_INPUT_MODE): Likewise.
9901         (ASM_OPERANDS_SOURCE_FILE): Likewise.
9902         (ASM_OPERANDS_SOURCE_LINE): Likewise.
9903         (MEM_SET_IN_STRUCT_P): Minor reformat.
9904         (TRAP_CONDITION): Whitespace.
9905         (TRAP_CODE): Likewise.
9906         (COND_EXEC_TEST): Likewise.
9907         (COND_EXEC_CODE): Likewise.
9908         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
9909         (PHI_NODE_P): Add parenthesis.
9910         (plus_constant): Whitespace and add parenthesis.
9911
9912 2002-01-03  Kazu Hirata  <kazu@hxi.com>
9913
9914         * config/avr/avr.c: Fix comment typos.
9915         * config/c4x/c4x.md: Likewise.
9916         * config/dsp16xx/dsp16xx.h: Likewise.
9917         * config/dsp16xx/dsp16xx.md: Likewise.
9918         * config/i386/i386.md: Likewise.
9919         * config/ia64/ia64.c: Likewise.
9920         * config/m32r/m32r.h: Likewise.
9921         * config/m68hc11/m68hc11.md: Likewise.
9922         * config/mmix/mmix.c: Likewise.
9923         * config/mn10200/mn10200.c: Likewise.
9924         * config/romp/romp.c: Likewise.
9925         * config/sh/sh.c: Likewise.
9926         * config/stormy16/stormy16.c: Likewise.
9927         * config/stormy16/stormy16.h: Likewise.
9928         * config/stormy16/stormy16.md: Likewise.
9929
9930 2002-01-03  Graham Stott  <grahams@redhat.com>
9931
9932         * loop.h: Update copyright date.
9933         (LOOP_MOVABLES): Fix typo.
9934         (LOOP_REGS): Likewise.
9935         (LOOP_IVS): Likewise.
9936
9937 2002-01-03  Graham Stott  <grahams@redhat.com>
9938
9939         * cppinit.c: Update copyright date.
9940         Don't include output.h
9941         * Makefile.in: Update copyright date.
9942         Update dependency.
9943
9944 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9945
9946         PR c/5226
9947         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
9948         (-pthread) Add to RS/6000 options.
9949
9950 2002-01-02  Kazu Hirata  <kazu@hxi.com>
9951
9952         * except.c: Fix comment typos.
9953         * loop.c: Likewise.
9954         * varasm.c: Likewise.
9955         * doc/tm.texi: Fix a typo.
9956
9957 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
9958
9959         * c-typeck.c (output_init_element): Allow initializing static storage
9960         duration objects with compound literals.
9961
9962 2002-01-02  Richard Henderson  <rth@redhat.com>
9963
9964         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
9965         after abusing it.
9966
9967 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9968
9969         * gcc.c (default_compilers): Const-ify.
9970         * mips-tdump.c (stab_names): Likewise.
9971         * mips-tfile.c (map_coff_types, map_coff_storage,
9972         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
9973         pseudo_ops_t, pseudo_ops): Likewise.
9974         * protoize.c (default_include): Likewise
9975
9976         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
9977         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
9978         Add array size in declaration.
9979         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
9980         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
9981         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
9982         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
9983         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
9984         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
9985         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
9986         emtens, make_nan): Const-ify.
9987         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
9988         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
9989
9990 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
9991
9992         * config.gcc (ia64-*-*): Set extra_headers.
9993         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
9994         * config/alpha/t-osf: Remove.
9995         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
9996
9997 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
9998
9999         * config/rs6000/t-aix43: Revert previous change.
10000
10001 2002-01-02  Jason Merrill  <jason@redhat.com>
10002
10003         * c-decl.c (c_expand_body): Call outlining_inline_function when
10004         emitting an inline function out of line.
10005
10006 2002-01-02  Richard Henderson  <rth@redhat.com>
10007
10008         * dwarf2out.c (limbo_die_node): Add created_for member.
10009         (new_die): New argument created_for.  Update all callers.
10010         (mark_limbo_die_list): New.
10011         (dwarf2out_init): Register limbo_die_list as a root.
10012         (dwarf2out_finish): Force insert limbo dies into their function
10013         context.
10014
10015 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
10016
10017         PR c++/5089
10018         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
10019
10020 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10021
10022         * config/h8300/fixunssfsi.c: Update copyright.
10023         Fix comment typos.
10024         Fix formatting.
10025         * config/h8300/h8300.c: Update copyright.
10026         Eliminate warnings.
10027
10028 2002-01-02  Kazu Hirata  <kazu@hxi.com>
10029
10030         * config/romp/romp.c: Fix comment formatting.
10031         * config/romp/romp.h: Likewise.
10032         * config/romp/romp.md: Likewise.
10033         * config/s390/s390.c: Likewise.
10034         * config/stormy16/stormy16.c: Likewise.
10035         * config/stormy16/stormy16.h: Likewise.
10036
10037 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
10038
10039         * c-common.h (genrtl_expr_stmt_value): Declare.
10040         * c-semantics.c (genrtl_goto_stmt): Redirect to...
10041         (genrtl_goto_stmt_value): ... this new function.  Pass new
10042         argument down to expand_expr_stmt_value, taking
10043         TREE_ADDRESSABLE into account.
10044         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
10045         STMT_EXPR as addressable, i.e., one whose result we want.
10046         * expr.c (expand_expr): Don't save expression statement value
10047         of labeled_blocks or loop_exprs.
10048         * stmt.c (expand_expr_stmt): Redirect to...
10049         (expand_expr_stmt_value): ... this new function.  Use new
10050         argument to tell whether to save expression value.
10051         (expand_end_stmt_expr): Reset last_expr_type and
10052         last_expr_value if we don't have either.
10053         * tree-inline.c (declare_return_variable): Mark its use
10054         statement as addressable.
10055         * tree.h: Document new use of TREE_ADDRESSABLE.
10056         (expand_expr_stmt_value): Declare.
10057
10058 2002-01-01  Tom Rix  <trix@redhat.com>
10059
10060         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
10061         rs6000_emit_allocate_stack.
10062
10063 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
10064
10065         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
10066         ${srcdir}/ginclude/ to every entry in extra_headers.
10067         * configure: Regenerate.
10068         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
10069         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
10070         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
10071         * ginclude/proto.h: Rename to config/convex/proto.h.
10072
10073 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10074
10075         * attribs.c (handle_vector_size_attribute): Use host_integerp
10076         and tree_int_cst; remove warnings.
10077         * caller-save.c (insert_restore): Add cast to get rid of warning.
10078         (insert_save): Likewise.
10079         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
10080         * regmove.c (find_matches): Add temporary var to kill a warning.
10081
10082 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
10083
10084         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
10085         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
10086         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
10087         (vms-dwarf2eh.o): Add Makefile rule.
10088         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
10089         * config/alpha/vms-dwarf2eh.asm: New file.
10090
10091         * gcc.c (delete_if_ordinary): Delete all versions.
10092
10093 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
10094
10095         * config/mmix/mmix.md: Update FIXME to not mention
10096         define_constants.
10097         (MMIX_rJ_REGNUM): New define_constants constant.
10098         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
10099         "*movdicc_real"): Adjust contraints formatting.
10100         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
10101         for branch prediction.
10102         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
10103         output template.
10104         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
10105         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
10106         number.  Delete related FIXMEs.
10107         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
10108         from number to MMIX_rJ_REGNUM.
10109         (TARGET_MASK_BRANCH_PREDICT): New.
10110         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
10111         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
10112         value.  Add -mbranch-predict and -mno-branch-predict.
10113         (TARGET_VERSION): Drop date.
10114         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
10115         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
10116         for finding out global symbols.
10117         (mmix_asm_output_labelref): Revert condition for global symbol.
10118         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
10119         (mmix_print_operand_punct_valid_p): A '+' is valid.
10120
10121 See ChangeLog.6 for earlier changes.