OSDN Git Service

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