OSDN Git Service

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