OSDN Git Service

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