OSDN Git Service

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