* doc/passes.texi: Mention the other register allocator.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2002-11-28  Michael Matz  <matz@suse.de>
2
3         * doc/passes.texi: Mention the other register allocator.
4
5 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
6
7         * config/h8300/h8300.md (6 new peephole2 patterns): New.
8
9 2002-11-28  Jakub Jelinek  <jakub@redhat.com>
10
11         * config.gcc (x86_64-*-linux*) [tmake_file]: Remove i386/t-crtstuff.
12         * config/t-linux (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
13         * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Define.
14
15 2002-11-28  Kazu Hirata  <kazu@cs.umass.edu>
16
17         * config/h8300/h8300.c (h8300_and_costs): New.
18         * config/h8300/h8300.h (RTX_COSTS): Use h8300_and_costs.
19         * config/h8300/h8300-protos.h: Add a prototype for
20         h8300_and_costs.
21
22 2002-11-27  Zack Weinberg  <zack@codesourcery.com>
23
24         * config/rs6000/rs6000.c (altivec_init_builtins): Make the
25         pointer argument in the prototypes of the following builtins
26         be (const TYPE *) rather than (TYPE *):
27          + __builtin_altivec_ld_internal_4sf
28          + __builtin_altivec_ld_internal_4si
29          + __builtin_altivec_ld_internal_8hi
30          + __builtin_altivec_ld_internal_16qi
31          + __builtin_altivec_lvsl
32          + __builtin_altivec_lvsr
33          + __builtin_altivec_lvebx
34          + __builtin_altivec_lvehx
35          + __builtin_altivec_lvewx
36          + __builtin_altivec_lvxl
37          + __builtin_altivec_lvx
38          + __builtin_altivec_dst
39          + __builtin_altivec_dstt
40          + __builtin_altivec_dstst
41          + __builtin_altivec_dststt
42
43 2002-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
44
45         * except.c (default_exception_section): Move variable into the
46         scope where it is used.
47
48 2002-11-27  Krister Walfridsson  <cato@df.lth.se>
49
50         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Test for
51         correct version.
52
53 2002-11-27  Kazu Hirata  <kazu@cs.umass.edu>
54
55         * config/h8300/h8300.h (OK_FOR_U): Remove extra parentheses.
56
57 2002-11-27  Kazu Hirata  <kazu@cs.umass.edu>
58
59         * config/h8300/h8300.c (h8300_shift_costs): New.
60         * config/h8300/h8300.h (RTX_COSTS): Use h8300_shift_costs.
61         * config/h8300/h8300-protos.h: Add a prototype for
62         h8300_shift_costs.
63
64 2002-11-27  Jim Wilson  <wilson@redhat.com>
65
66         * config/rs6000/spe.md (spu_evsplatfi, spu_evsplati): Swap operands
67         in output template.
68
69 2002-11-27  Casper S. Hornstrup  <chorns@users.sourceforge.net>
70
71         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Define.
72         * config/i386/winnt.c (i386_pe_dllexport_name_p): Use
73         DLL_IMPORT_EXPORT_PREFIX, not '@'.
74         (i386_pe_dllimport_name_p): Likewise.
75         (i386_pe_mark_dllexport): Likewise.
76         (i386_pe_mark_dllimport): Likewise.
77         (i386_pe_encode_section_info): Likewise.
78         (i386_pe_strip_name_encoding): Likewise.
79
80 2002-11-27  Richard Henderson  <rth@redhat.com>
81
82         * mkmap-symver.awk (BEGIN): Set sawsymbol false.
83         (nm && NF == 3): Set sawsymbol true.
84         (END): Exit if no symbols seen.
85         (output): Fix map syntax error if no globals for the version.
86
87 Wed Nov 27 14:45:46 CET 2002  Jan Hubicka  <jh@suse.cz>
88
89         * builtins.def (DEF_C99_BUILTIN): Fix.
90
91 2002-11-26  Andrew Haley  <aph@redhat.com>
92
93         * unwind-sjlj.c (_Unwind_FindEnclosingFunction): Rename
94         from_Unwind_Find_Enclosing_Function.
95         * unwind-dw2.c (_Unwind_FindEnclosingFunction): Likewise.
96         * config/ia64/unwind-ia64.c (_Unwind_FindEnclosingFunction): Likewise.
97         * libgcc-std.ver (_Unwind_FindEnclosingFunction): Rename from
98         _Unwind_Find_Enclosing_Function, export @@GCC_3.3.
99         * unwind.h (_Unwind_FindEnclosingFunction): Add.
100
101 2002-11-26  Hartmut Penner  <hpenner@de.ibm.com>
102
103         * config/s390/s390.c (390_output_constant_pool): Set alignment
104         before label in 64 bit mode, behind otherwise.
105
106 2002-11-26  Richard Henderson  <rth@redhat.com>
107
108         * c-common.c (handle_visibility_attribute): Accept "default".
109         * tree.h (enum symbol_visibility): New.
110         (decl_visibility): Declare.
111         * target.h (gcc_target.visibility): Take visibility arg as integer.
112         * varasm.c (default_assemble_visibility): Likewise.
113         (decl_visibility): New.
114         (maybe_assemble_visibility): Use it.
115         * output.h (default_assemble_visibility): Update prototype.
116         * config/rs6000/rs6000.c (rs6000_assemble_visibility): Take
117         visibility arg as integer.
118         * doc/extend.texi: Document default visibility.
119
120 2002-11-26  Kazu Hirata  <kazu@cs.umass.edu>
121
122         * config/h8300/h8300.c: Adjust spacing.
123         * config/h8300/h8300.h: Likewise.
124
125 2002-11-26  Richard Henderson  <rth@redhat.com>
126
127         * hooks.c (hook_bool_void_false, hook_void_tree_int,
128         hook_void_FILEptr_constcharptr): Rename so that the return
129         type is first.
130         (hook_int_tree_tree_1, hook_void_tree, hook_void_tree_treeptr,
131         hook_bool_tree_false): New.
132         * hooks.h: Update.
133         * langhooks-def.h: Update for renames.
134         * target-def.h: Likewise.
135         * tree.c (default_comp_type_attributes,
136         default_set_default_type_attributes, default_insert_attributes,
137         default_function_attribute_inlinable_p,
138         default_ms_bitfield_layout_p): Remove.
139         * tree.h: Update.
140
141 2002-11-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
142
143         * pa-protos.h (function_value): New prototype.
144         * pa.c (function_value): Use a PARALLEL to return small aggregates on
145         TARGET_64BIT.
146         * pa.h (FUNCTION_VALUE): Use function_value.
147         * pa.md (call_value_internal_symref, call_value_internal_reg_64bit,
148         call_value_internal_reg, sibcall_value_internal_symref,
149         sibcall_value_internal_symref_64bit): Remove =rf constraint on return
150         value.
151
152 2002-11-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
153
154         * expr.c (gen_group_rtx, emit_group_move): New functions.
155         * expr.h (gen_group_rtx, emit_group_move): Prototype.
156         * function.c (expand_function_start): Use gen_group_rtx to create a
157         PARALLEL rtx to hold the return value when the real return rtx is a
158         PARALLEL.
159         (expand_function_end): Use emit_group_move to move the return value
160         from a PARALLEL to the real return registers.
161         * rtl.h (REG_FUNCTION_VALUE_P): Allow function values to be returned
162         in PARALLELs.
163
164 2002-11-26  Jason Thorpe  <thorpej@wasabisystems.com>
165
166         * config/t-libc-ok: Fix typo.
167
168 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
169
170         * configure.in: Move AC_CANONICAL_SYSTEM and AC_ARG_PROGRAM back
171         before AC_PROG_CC.
172         * configure: Rebuilt.
173
174 2002-11-26  Nathan Sidwell  <nathan@codesourcery.com>
175
176         * c-decl.c: (start_struct): Commonize flag setting.
177
178 2002-11-26  Jason Thorpe  <thorpej@wasabisystems.com>
179
180         * config/rs6000/rs6000.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): New.
181         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Use
182         RS6000_CPU_CPP_ENDIAN_BUILTINS.
183         * config/rs6000/netbsd.h (RS6000_CPU_CPP_ENDIAN_BUILTINS): Redefine.
184
185 2002-11-26  Hartmut Penner  <hpenner@de.ibm.com>
186
187         * config/s390/s390.md (literal_pool_64, literal_pool_31 ): New
188         insns.
189         * config/s390/s390.c (struct machine_function): Introduction of
190         struct machine_function.
191         (s390_output_symbolic_const): Use of cfun.
192         (s390_optimize_prolog): Likewise.
193         (s390_fixup_clobbered_return_reg): Likewise.
194         (s390_frame_info): Likewise.
195         (s390_emit_prologue, s390_emit_epilogue): Likewise.
196         (s390_init_machine_status): New function.
197         (override_options): call s390_init_machine_status.
198         * config/s390/s390-protos.h (s390_output_constant_pool): Changed
199         prototype.
200
201 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
202
203         * varasm.c (output_constant_pool): For pool constants in mergeable
204         section ensure each constant is padded to multiple of entity size.
205
206 2002-11-26  Jakub Jelinek  <jakub@redhat.com>
207
208         * varasm.c (default_exception_section): Move to...
209         * except.c (default_exception_section): ... here. Make
210         .gcc_except_table read-only if it is not expected to have any
211         dynamic relocations and linker handles it.
212         * dwarf2out.c (default_eh_frame_section): Make .eh_frame read-only
213         if it is not expected to have any dynamic relocations and linker
214         handles it.
215         * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Check what ld does
216         when linking read-only and read-write sections together.
217         * configure, config.in: Rebuilt.
218         * crtstuff.c (EH_FRAME_SECTION_CONST): Define.
219         (__EH_FRAME_BEGIN__, __FRAME_END__): Add it.
220
221 2002-11-25  Aldy Hernandez  <aldyh@redhat.com>
222
223         * config/rs6000/spe.h (__ev_create_sfix32_fs): Change macro into
224         new function.
225         (__ev_create_ufix32_fs): Same.
226         (__ev_get_sfix32_fs_internal): New.
227         (__ev_get_sfix32_fs): Define to use function.
228         (__ev_get_ufix32_fs_internal): New.
229         (__ev_get_ufix32_fs): Define to use function.
230         (__ev_get_upper_ufix32_fs): Call __ev_get_ufix32_fs.
231         (__ev_get_lower_ufix32_fs): Same.
232         (__ev_get_upper_sfix32_fs): Call __ev_get_sfix32_fs.
233         (__ev_get_lower_sfix32_fs): Same.
234         (__ev_set_sfix32_fs_internal): New.
235         (__ev_set_ufix32_fs_internal): New.
236         (__ev_set_sfix32_fs): Call __ev_set_sfix32_fs_internal.
237         (__ev_set_ufix32_fs): Call __ev_set_ufix32_fs_internal.
238         (__ev_set_upper_sfix32_fs): Call function.
239         (__ev_set_lower_sfix32_fs): Same.
240         (__ev_set_upper_ufix32_fs): Same.
241         (__ev_set_lower_ufix32_fs): Same.
242
243 2002-11-25  Douglas B Rupp  <rupp@gnat.com>
244
245         * gcc.c (do_spec_1): Reset delete_this_arg to zero.
246
247 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
248
249         * config/elfos.h (HANDLE_SYSV_PRAGMA): Define as 1.
250         * config/interix.h (HANDLE_SYSV_PRAGMA): Likewise.
251         * config/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
252         * config/lynx-ng.h (HANDLE_SYSV_PRAGMA): Likewise.
253         * config/lynx.h (HANDLE_SYSV_PRAGMA): Likewise.
254         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
255         * config/openbsd.h (HANDLE_SYSV_PRAGMA: Likewise.
256         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Likewise.
257         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Likewise.
258         * config/cris/aout.h (HANDLE_SYSV_PRAGMA): Likewise.
259         * config/d30v/d30v.h (HANDLE_SYSV_PRAGMA): Likewise.
260         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Likewise.
261         * config/i386/djgpp.h (HANDLE_SYSV_PRAGMA): Likewise.
262         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Likewise.
263         * config/i386/vxi386.h (HANDLE_SYSV_PRAGMA): Likewise.
264         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Likewise.
265         * config/m88k/m88k.h (HANDLE_SYSV_PRAGMA): Likewise.
266         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Likewise.
267         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Likewise.
268         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Likewise.
269         * config/sparc/linux-aout.h (HANDLE_SYSV_PRAGMA): Likewise.
270         * config/sparc/vxsparc64.h (HANDLE_SYSV_PRAGMA): Likewise.
271         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Likewise.
272         * config/alpha/osf.h (HANDLE_SYSV_PRAGMA): Don't undef before
273         defining.
274         * config/i386/sco5.h (HANDLE_SYSV_PRAGMA): Likewise.
275         * config/mips/iris5.h (HANDLE_SYSV_PRAGMA): Likewise.
276
277 2002-11-25  Dave Pitts  <dpitts@cozx.com>
278
279         * gcc/fixinc/mkfixinc.sh: add i370-*-openedition to bypass fixinc list
280
281 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
282
283         * config/h8300/h8300.md (an anonymous pattern): New.
284
285 2002-11-25  Richard Henderson  <rth@redhat.com>
286
287         * alias.c (find_base_value): Use new_reg_base_value if it's live.
288         (copying_arguments): Make boolean.
289
290 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
291
292         * gcc.c (static_spec_functions): Add if-exists-else spec
293         function.
294         (if_exists_else_spec_function): New function.
295         * doc/invoke.texi: Document the if-exists-else spec function.
296
297         * config/netbsd-elf.h (NETBSD_STARTFILE_SPEC): For -static, use
298         "%:if-exists-else(crtbeginT%O%s crtbegin%O%s)".
299
300 2002-11-25  Jason Thorpe  <thorpej@wasabisystems.com>
301
302         * config.gcc (powerpc-*-netbsd*): Replace "svr4.h" with
303         "netbsd.h netbsd-elf.h" in tm_file.  Set tmake_file to
304         "${tmake_file} rs6000/t-netbsd".
305         * config/rs6000/netbsd.h: Rewrite.
306         * config/rs6000/t-netbsd: New file.
307
308 2002-11-25  Kazu Hirata  <kazu@cs.umass.edu>
309
310         * config/h8300/h8300.md (an anonymous pattern): Relax the
311         condition for the pattern.
312
313 2002-11-25  Aldy Hernandez  <aldyh@redhat.com>
314
315         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove evmwlssf,
316         evmwlsmf, evmwlssfa, evmwlsmfa, evmwlssfaaw, evmwlsmfaaw,
317         evmwlssfanw, evmwlsmfanw.
318
319         * config/rs6000/rs6000.c (bdesc_2arg): Same.
320
321         * config/rs6000/spe.md: Same for patterns.
322
323 2002-11-25  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
324
325         PR c/8639
326         * fold-const.c (extract_muldiv): Don't propagate division unless
327         both arguments are multiples of C.
328
329 2002-11-25  Andrew Haley  <aph@redhat.com>
330
331         * libgcc-std.ver (_Unwind_Find_Enclosing_Function): Add.
332         * config/ia64/unwind-ia64.c (_Unwind_Find_Enclosing_Function): New.
333         * unwind-sjlj.c (_Unwind_Find_Enclosing_Function): Likewise.
334         * unwind-dw2.c (_Unwind_Find_Enclosing_Function): Likewise.
335
336 2002-11-24  Kazu Hirata  <kazu@cs.umass.edu>
337
338         * config/h8300/h8300.c (h8300_init_once): Fix a typo in the
339         target help message.
340
341 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
342
343         * config.gcc (*-*-netbsd*1.[7-9]*, *-*-netbsd*[2-9]*): Set
344         extra_parts to "crtbegin.o crtend.o crtbeginS.o crtendS.o
345         crtbeginT.o".
346         (arm*-*-netbsd*, i[34567]86-*-netbsd*, m68k*-*-netbsd*)
347         (ns32k-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Set extra_parts
348         to "" for a.out configurations.
349         * config/t-netbsd (CRTSTUFF_T_CFLAGS): Set to "-fPIC".
350
351 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
352
353         * config/alpha/netbsd.h (CPP_SUBTARGET_SPEC): Just use
354         NETBSD_CPP_SPEC directly.
355         (SUBTARGET_EXTRA_SPECS): Remove netbsd_cpp_spec.  Add
356         netbsd_endfile_spec.
357         (ENDFILE_SPEC): Use %(netbsd_endfile_spec).
358
359 2002-11-24  Jason Thorpe  <thorpej@wasabisystems.com>
360
361         * config/netbsd-elf.h (STARTFILE_SPEC): Rename to
362         NETBSD_STARTFILE_SPEC.
363         (STARTFILE_SPEC): Redefine in terms of NETBSD_STARTFILE_SPEC.
364         (ENDFILE_SPEC): Likewise.
365         * config/netbsd.h (LIB_SPEC, LIBGCC_SPEC): Likewise.
366
367 2002-11-24  Andreas Schwab  <schwab@suse.de>
368
369         * Makefile.in (install-driver): Remove versioned link before
370         trying to create it.
371
372         * config/m68k/m68k.c: Fix typo in last change defining
373         TARGET_ASM_CAN_OUTPUT_MI_THUNK.
374
375 2002-11-23  Kazu Hirata  <kazu@cs.umass.edu>
376
377         * config/h8300/h8300.c (print_operand): Update the use of
378         h8300_tiny_constant_address_p.
379         (h8300_adjust_insn_length): Likewise.
380         (h8300_tiny_constant_address_p): Check if the given rtx is a
381         variable declared with __attribute__ ((tiny_data)).
382
383 2002-11-22  Dale Johannesen  <dalej@apple.com>
384
385         * toplev.c (rest_of_compilation):  Fix comments.
386
387 2002-11-22  Geoffrey Keating  <geoffk@apple.com>
388
389         * aclocal.m4 (ac_cv_func_mmap_dev_zero): Darwin does not
390         allow mmap from /dev/zero.  Don't make decisions for the host
391         based on presence or absence of /dev/zero on the build machine.
392         (ac_cv_func_mmap_anon): Darwin does have working MMAP_ANON.
393         (AC_FUNC_MMAP_FILE): Darwin does have mmap of a file.
394         * configure: Regenerate.
395
396 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
397
398         * gcc.c (make_relative_prefix, split_directories)
399         (free_split_directories): Removed.
400
401 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
402
403         * configure.in: Set insn=nop for DWARF-2 tests on ARM.
404         * configure: Regenerated.
405
406 2002-11-22  Kazu Hirata  <kazu@cs.umass.edu>
407
408         * config/h8300/h8300.c (compute_a_shift_length): Fix the insn
409         length computation when xor.l is output.
410
411 2002-11-21  Jim Wilson  <wilson@redhat.com>
412
413         * config/rs6000/rs6000.c (function_arg): Set inner mode of SPE
414         vectors to SI.
415
416 2002-11-21  Bob Wilson  <bob.wilson@acm.org>
417
418         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Declare.
419         * config/xtensa/xtensa.c (struct machine_function): Add
420         incoming_a7_copied flag.
421         (xtensa_copy_incoming_a7): Define.
422         (xtensa_emit_move_sequence): Use xtensa_copy_incoming_a7.
423         * config/xtensa/xtensa.md (movdi, movsf, movdf): Ditto.
424
425 Thu Nov 21 23:52:04 CET 2002  Jan Hubicka  <jH@suse.cz>
426
427         * i386-protos.h (x86_64_sign_extended_value): Fix prototype.
428         * i386.c (x86_64_general_operand, x86_64_szext_general_operand,
429         x86_64_nonmemory_operand, x86_64_movabs_operand,
430         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
431         ix86_expand_int_movcc): Update call of x86_64_sign_extended_value.
432         (local_symbolic_operand): Do not care the 64bit limits.
433         (x86_64_sign_extended_value): Remove allow_rip support.
434         (legitimate_pic_address_disp_p): Handle all cases allowed
435         with RIP addressing.
436         (legitimate_address_p): Use legitimate_pic_address_disp_p for PIC.
437         (legitimize_pic_address): Reorganize.
438         * i386.h (EXTRA_CONSTRAINT): Update call of x86_64_sign_extended_value.
439
440 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
441
442         * config.gcc (arm*-*-netbsdelf*): Enable configuration.
443         * config/arm/netbsd-elf.h: New file.
444
445 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
446
447         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
448         subtarget_asm_float_spec.
449         (SUBTARGET_ASM_FLOAT_SPEC): Define, moving the
450         defaults from...
451         (ASM_SPEC): ...here.  Use subtarget_asm_float_spec.
452
453 2002-11-21  Nick Clifton  <nickc@redhat.com>
454
455         * config/fr30/fr30.md (movsf_constant_store): Move code to
456         detect 0.0 into fr30.c.
457         * config/fr30/fr30-protos.h (fr30_const_double_is_zero):
458         Prototype.
459         * config/fr30/fr30.c (fr30_const_double_is_zero): New
460         function.  Return true if the rtx is 0.0.
461
462 2002-11-21  Jason Thorpe  <thorpej@wasabisystems.com>
463
464         * config/arm/elf.h (ASM_SPEC, LINK_SPEC): Pass -EL
465         if -mlittle-endian is specified.
466
467 2002-11-21  Richard Earnshaw  <rearnsha@arm.com>
468
469         PR optimization/2903
470         * arm.md (anddi_notzesidi_di): Operand 2 is inverted not operand 1.
471         (anddi_notsesidi_di): Likewise.
472
473 2002-11-21  Kazu Hirata  <kazu@cs.umass.edu>
474
475         * config/h8300/h8300.c (print_operand): Use
476         h8300_eightbit_constant_address_p and
477         h8300_tiny_constant_address_p.
478         (h8300_adjust_insn_length): Likewise.
479         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Remove.
480         (TINY_CONSTANT_ADDRESS_P): Likewise.
481         (OK_FOR_U): Use eightbit_constant_address_p.
482
483 2002-11-21  Ulrich Weigand  <uweigand@de.ibm.com>
484
485         * config/s390/libgcc-libc.ver: Add multilib support.
486         * config/s390/linux.h (MULTILIB_DEFAULT): Define.
487         * config/s390/t-linux64 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
488         MULTILIB_OSDIRNAMES, LIBGCC, INSTALL_LIBGCC,
489         EXTRA_MULTILIB_PARTS): Define.
490
491 2002-11-21  Richard Earnshaw  <rearnsha@arm.com>
492
493         * arm.c (arm_get_frame_size): A leaf function does not need its
494         stack padding to an aligned boundary if it has no frame.
495         (thumb_get_frame_size): Likewise.
496
497 2002-11-20  Steve Ellcey  <sje@cup.hp.com>
498
499         * emit-rtl.c (gen_reg_rtx): Simplify mapping of Complex type
500         to component type using GET_MODE_INNER.
501         * expr.c (emit_move_insn_1): Ditto.
502         * optabs.c (expand_binop): Ditto.
503         (expand_unop): Ditto.
504         (expand_complex_abs): Ditto.
505
506 2002-11-20  Douglas B Rupp  <rupp@gnat.com>
507
508         * hwint.h (HAVE___INT64): Fix typo (was HAVE__INT64).
509
510 2002-11-20  DJ Delorie  <dj@redhat.com>
511
512         * config/stormy16/stormy16.c (s16builtins,
513         xstormy16_init_builtins, xstormy16_expand_builtin): New.
514         * config/stormy16/stormy16.md (divmodhi4, sdivlh, udivlh): New.
515
516 2002-11-20  Hans-Peter Nilsson  <hp@bitrange.com>
517
518         * Makefile.in (RUN_GEN, VALGRIND_DRIVER_DEFINES): New variables.
519         (DRIVER_DEFINES): Add $(VALGRIND_DRIVER_DEFINES).
520         (executing gencheck, genconfigs, genconditions, genflags,
521         gencodes, genconstants, genemit, genrecog, genopinit, genextract,
522         genpeep, genattr, genattrtab, genoutput, gengenrtl, genpreds,
523         gengtype, genprotos): Prepend $(RUN_GEN).
524         * configure.in: Move host compiler tests before --enable-checking
525         tests.
526         (--enable-checking=valgrind): New.
527         * config.in, configure: Regenerate.
528         * cppfiles.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
529         Define as empty.
530         (read_include_file): When doing the mmap+1 trick,
531         valgrind-annotate the byte after the mmap:ed area as readable.
532         (purge_cache): Remove above annotation.
533         * gcc.c (execute) [ENABLE_VALGRIND_CHECKING]: Arrange to prepend
534         VALGRIND_PATH -q to each command.
535
536         * ggc-common.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
537         Define as empty.
538         (ggc_realloc): Update valgrind annotations.
539         * ggc-page.c [!ENABLE_VALGRIND_CHECKING] (VALGRIND_DISCARD):
540         Define as empty.
541         (alloc_anon, free_page, ggc_alloc, poison_pages): Add machinery to
542         valgrind-annotate memory.
543
544 2002-11-20  Ulrich Weigand  <uweigand@de.ibm.com>
545
546         * recog.c (constrain_operands): Prefer exact match over reloadable
547         EXTRA_MEMORY_CONSTRAINT or EXTRA_ADDRESS_CONSTRAINT.
548
549         * reload.c (find_reloads): Always reload EXTRA_ADDRESS_CONSTRAINT
550         operands in Pmode.
551
552 2002-11-20 Â Eric Botcazou Â <ebotcazou@libertysurf.fr>
553
554         PR c/8518
555         * c-decl.c (duplicate_decls): Outline the second definition
556         of an extern inline function in all cases.
557
558 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
559
560         * stor-layout.c (place_field): Update rli->offset as well as
561         rli->bitpos.
562
563 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
564
565         * sched-deps.c (sched_analyze): Check HARD_REGNO_CALL_PART_CLOBBERED.
566
567 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
568
569         * config/sh/sh.md (udivsi3): Don't put udivsi3_i4_media instructions
570         into a libcall block.
571         (divsi3): Likewise divsi3_i4_media.
572
573 2002-11-20  Richard Sandiford  <rsandifo@redhat.com>
574
575         * global.c (find_reg): Check HARD_REGNO_NREGS before kicking
576         out another register.
577
578 2002-11-20  Jakub Jelinek  <jakub@redhat.com>
579
580         * combine.c (force_to_mode): Only replace with (not Y) if all bits in fuller_mask
581         (not just mask) are set in C.
582
583 2002-11-19  Andreas Jaeger  <aj@suse.de>
584
585         * loop.c (record_giv): Initialize not_replaceable.
586         (check_final_value): Likewise.
587
588 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
589
590         * config/h8300/h8300.c (h8300_init_once): Replace 1 with
591         MASK_H8300S.
592
593 2002-11-19  Vijay L. Khuspe  <vijayk1@kpit.com>
594
595         * config/h8300/h8300.c (h8300_init_once): Allow -mn switch
596         only if -mh or -ms present.
597         (h8300_eightbit_constant_address_p): Support the normal mode.
598         (h8300_tiny_constant_address_p): Likewise.
599         * config/h8300/h8300.h (TARGET_NORMAL_MODE): New.
600         (POINTER_SIZE): Add 16 bit pointer for the normal mode.
601         (Pmode): Evaluate to HImode for the normal mode.
602         (SIZE_TYPE): Evaluate to unsigned int for normal mode.
603         (PTRDIFF_TYPE): Evaluate to int for the normal mode.
604         (ASM_WORD_OP): Evaluate to word for the normal mode.
605         * config/h8300/h8300.md (tablejump_normal_mode): New.
606         (indirect_jump_normal_mode): New.
607         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Pass -mn option to
608         directory.
609         (MULTILIB_DIRNAMES): Create target dependent directory
610         'normal'.
611         (MULTILIB_EXCEPTIONS): Don't turn on -mn on H8/300.
612         * doc/invoke.texi (gccoptlist): Describe the new switch -mn.
613
614 Tue Nov 19 23:50:56 CET 2002  Jan Hubicka  <jh@suse.cz>
615
616         * i386.md (length_immediate): Do not refer to insn address.
617         (jcc*, jmp patterns):  Compute length explicitly.
618
619 2002-11-19 Eric Botcazou <ebotcazou@libertysurf.fr>
620
621         PR c/8588
622         * optabs.c (expand_binop): Convert CONST_INTs in shift
623         operations too.
624
625 2002-11-19  Roger Sayle  <roger@eyesopen.com>
626
627         * gcse.c (gcse_emit_move_after): Correct typo in REG_EQUAL note.
628
629 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
630
631         * config/h8300/h8300.md (an anonymous pattern): Relax the
632         condition to accept the same operands and/or subregs.
633
634 2002-11-19  Daniel Jacobowitz  <drow@mvista.com>
635
636         * config/sh/sh.c (gen_shl_and): Revert previous patch.
637         * config/sh/sh.md (ashrdi3+1, ashrdi3+2): Predicate on
638         reload_completed.
639
640 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
641
642         * config/h8300/h8300.c (print_operand): Update the use of
643         EIGHTBIT_CONSTANT_ADDRESS_P.
644         (h8300_adjust_insn_length): Likewise.
645         (h8300_eightbit_constant_address_p): Check if the given rtx is
646         a variable with __attribute__((eightbit_data)).
647         * config/h8300/h8300.h (OK_FOR_U): Update the use of
648         EIGHTBIT_CONSTANT_ADDRESS_P.
649
650 2002-11-19  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
651
652         * doc/contrib.texi (Contributors): Add self as second contact in
653         addition to Jeff Law.
654
655 2002-11-19  Andreas Jaeger  <aj@suse.de>
656
657         * tree-inline.c: Move prototpyes of find_alloca_call_1 and
658         find_alloca_call to right place.
659
660 2002-11-19  Kazu Hirata  <kazu@cs.umass.edu>
661
662         * cppfiles.c: Fix formatting.
663
664 2002-11-19  Jason Thorpe  <thorpej@wasabisystems.com>
665
666         * gcc.c (The Specs Language): Document spec functions.
667         (static_spec_functions, lookup_spec_function)
668         (eval_spec_function, handle_spec_function)
669         (if_exists_spec_function, alloc_args): New.
670         (execute): Abort if processing_spec_function is true.
671         (do_spec_1): Hand off spec to handle_spec_function if %:
672         is encountered.  If processing_spec_function is true,
673         end any pending argument when the end of the string is reached.
674         (main): Use alloc_args to allocate the initial argument vector.
675         * gcc.h (struct spec_function): New.
676         (lang_specific_spec_functions): New extern.
677
678         * config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s).
679         (ENDFILE_SPEC): Add if-exists(crtn%O%s).
680         * config/alpha/netbsd.h (ENDFILE_SPEC): Likewise.
681
682         * doc/invoke.texi: Document spec functions.
683
684         * cppspec.c (lang_specific_spec_functions): New.
685         * gccspec.c: Likewise.
686
687 2002-11-18  Steve Ellcey  <sje@cup.hp.com>
688
689         * config/ia64/hpux_longdouble.h (FIXUNS_TRUNCTFSI2_LIBCALL): New.
690         (FIXUNS_TRUNCTFDI2_LIBCALL): New.
691         (fixunstfsi_libfunc): Change.
692         (fixunstfdi_libfunc): Change.
693         (sdiv_optab): Don't zero out SImode handler.
694         (udiv_optab): Don't zero out SImode handler.
695         (smod_optab): Don't zero out SImode handler.
696         (umod_optab): Don't zero out SImode handler.
697
698 2002-11-18  Neil Booth  <neil@daikokuya.co.uk>
699
700         PR preprocessor/8524
701         * cpplib.c (run_directive): Remove previous kludge to _Pragma.
702         Add a new one in its place, which hopefully works.
703         (skip_rest_of_line): Change test for bottom-of-context-stack.
704
705 Mon Nov 18 21:29:03 CET 2002  Jan Hubicka  <jh@suse.cz>
706
707         * i386.md (addqi_1_slp): Fix output template.
708         (subqi_1_slp): Fix type.
709
710 Sun Nov 17 00:01:28 CET 2002  Jan Hubicka  <jh@suse.cz>
711
712         * calls.c (alloca_call_p): New global function.
713         * tree.h (alloca_call_p): New.
714         * tree-inline.c (inlinable_function_p):  Do not inline when
715         function calls alloca.
716         (find_alloca_call, find_alloca_call_1): New functions.
717
718 2002-11-18  Kazu Hirata  <kazu@cs.umass.edu>
719
720         * config/h8300/h8300.md (*andorqi3): Use bor between bld and
721         bst.  Update the insn length.
722         (*andorhi3): Likewise.
723         (*andorsi3): Likewise.
724
725 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
726
727         * config/sh/sh-protos.h (sh_mark_label): Declare.
728         * config/sh/sh.c (sh_mark_label): New function, taken from
729         movdi_const, but fixing the case when the address has an addend.
730         * config/sh/sh.md (movdi_const, movdi_const_32bit): Use it.
731
732 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
733
734         * config/sh/sh.c (pool_node): New field: part_of_sequence_p.
735         (add_constant): Set it.
736         (dump_table): Don't reorder a constant if part_of_sequence_p.
737         (machine_dependent_reorg): Assume that float constants will
738         stay in their original order if used as a sequence.
739
740 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
741
742         * config/sh/sh.c (calc_live_regs): Update check for PIC liveness
743         in compact code.
744
745 2002-11-18  Richard Sandiford  <rsandifo@redhat.com>
746
747         * config/sh/sh.md (initialize_trampoline): Do not force the
748         trampoline address into R0_REGS here.
749
750 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
751
752         * df.c: Fix formatting.
753
754 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
755
756         * config/h8300/h8300.md (two anonymous patterns): Fix insn
757         lengths.
758
759 2002-11-17  Daniel Jacobowitz  <drow@mvista.com>
760
761         * sh.c (gen_shl_and): Don't create a zero_extend if the operand
762         is not an arith_reg_operand.
763
764 2002-11-17  Graham Stott  <graham.stott@btinternet.com>
765
766         * real.c (real_to_decimal): Fix buffer overrun when buffer size
767         is smaller than representation.
768
769 2002-11-17  Kazu Hirata  <kazu@cs.umass.edu>
770
771         * builtins.c: Fix formatting.
772
773 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
774
775         * config/h8300/h8300.md (two anonymous patterns): Fix typos.
776
777 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
778
779         * config/h8300/h8300.md: Fix formatting.
780
781 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
782
783         * config/h8300/h8300.md: Replace spaces with tabs.
784         * config/h8300/t-h8300: Remove a trailing empty line.
785
786 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
787
788         * tlink.c: Fix formatting.
789
790 2002-11-16  David Edelsohn  <edelsohn@gnu.org>
791
792         PR 8362
793         * config/rs6000/rs6000.c (rs6000_outout_load_multiple): New function.
794         * config/rs6000/rs6000.md (movti_string): Remove output modifier
795         when scratch register never needed.
796         (ldmsi[3-8]): New patterns.
797
798 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
799
800         * hard-reg-set.h: Follow spelling conventions.
801         * real.c: Likewise.
802         * target.h: Likewise.
803
804 2002-11-16  Jakub Jelinek  <jakub@redhat.com>
805
806         * config/i386/x86-64.h (MCOUNT_NAME): Change into string literal.
807
808 2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>
809
810         * optabs.c: Fix formatting.
811
812 Sat Nov 16 02:06:02 CET 2002  Jan Hubicka  <jh@suse.cz>
813
814         * athlon.md, k6.md, pentium.md, ppro.md: Handle shift1, rotate1
815         * i386.md (attribute type): Add type shift1 and rotate1.
816         (*_slp): Rewrite to have just two operands to avoid reload problems.
817
818 2002-11-15  Kazu Hirata  <kazu@cs.umass.edu>
819
820         * config/h8300/h8300.md (4 anonymous patterns): New.
821
822 2002-11-15  Geoffrey Keating  <geoffk@apple.com>
823
824         * params.def (GGC_MIN_HEAPSIZE): Fix GGC_ALWAYS_COLLECT problem.
825         * doc/invoke.texi: Correct description of what needs to be done to
826         force collection at every ggc_collect call.
827
828 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
829
830         * config/s390/s390.c (optimization_options): Set
831         flag_asynchronous_unwind_tables to 1 by default.
832
833 2002-11-15  Ulrich Weigand  <uweigand@de.ibm.com>
834
835         * config/s390/s390.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
836
837 Fri Nov 15 14:54:19 CET 2002  Jan Hubicka  <jh@suse.cz>
838
839         * i386-protos.h (x86_function_profiler): New function
840         * i386.h (MCOUNT_NAME): New.
841         (PROFILE_COUNT_REGISTER): New.
842         (FUNCTION_PROFILER): Move offline to ...
843         * i386.c (x86_function_profiler) ... here; fix 64bit support
844         * beos-elf.h (FUNCTION_PROFILER): Kill.
845         (MCOUNT_NAME): New.
846         * freebsd-aout.h (FUNCTION_PROFILER): Kill.
847         (MCOUNT_NAME): New.
848         (PROFILE_COUNT_REGISTER): New.
849         * linux.h (FUNCTION_PROFILER): Kill.
850         (MCOUNT_NAME): New.
851         * x86-64.h (FUNCTION_PROFILER): Kill.
852         (MCOUNT_NAME): New.
853         * freebsd.h (FUNCTION_PROFILER): Kill.
854         (MCOUNT_NAME): New.
855
856 2002-11-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
857
858         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG,
859         FUNCTION_ARG_PASS_BY_REFERENCE): Define.
860         * config/arm/arm.c (arm_va_arg,
861         arm_function_arg_pass_by_reference): New.
862         * config/arm/arm-protos.h: Add prototypes.
863
864 2002-11-14  Kazu Hirata  <kazu@cs.umass.edu>
865
866         * gthr-single.h: Fix formatting.
867
868 2002-11-14  Zack Weinberg  <zack@codesourcery.com>
869
870         * tree.c (tree_vec_elt_check_failed): New function.
871         * tree.h (TREE_VEC_ELT_CHECK): New checking macro.
872         (TREE_VEC_ELT): Use it.
873
874         * tree-inline.c (optimize_inline_calls): Don't copy a
875         zero-length vector.
876
877 2002-11-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
878
879         * diagnostic.c (sorry): Don't repeat "sorry, unimplemented" text.
880
881 2002-11-14  Jakub Jelinek  <jakub@redhat.com>
882
883         * varasm.c (output_addressed_constants) [MINUS_EXPR]: Clear reloc if
884         both operands contain local relocations.
885         (categorize_decl_for_section): Don't use mergeable sections if
886         initializer has any relocations.
887
888 2002-11-14  Kazu Hirata  <kazu@cs.umass.edu>
889
890         * gthr-vxworks.h: Fix formatting.
891
892 2002-11-13  Janis Johnson  <janis187@us.ibm.com>
893
894         * doc/install.texi (Testing): Document extra Java testing.
895         * doc/sourcebuild.texi (Test Suites): Document libgcj testing.
896
897 2002-11-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
898
899         * pa64-hpux.h (LINK_SPEC): Move "+Accept TypeMismatch" switch to the
900         beginning of the spec.
901         (LDD_SUFFIX, PARSE_LDD_OUTPUT): Delete.
902         (LD_INIT_SWITCH, LD_FINI_SWITCH): Define but don't enable.  Add comment
903         regarding problems with global constructors when using GNU ld.
904
905 2002-11-13  Kazu Hirata  <kazu@cs.umass.edu>
906
907         * gthr-solaris.h: Fix formatting.
908
909 2002-11-13  Kazu Hirata  <kazu@cs.umass.edu>
910
911         * gthr-posix.h: Fix formatting.
912
913 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
914
915         * config/h8300/h8300.md (*andorsi3): New.
916
917 2002-11-12  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
918
919         * doc/install.texi (powerpc-*-linux-gnu*): Update binutils requirement.
920
921 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
922
923         * config/h8300/h8300.c (tiny_constant_address_p): Parenthesize
924         expressions appropriately.
925
926 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
927
928         * gthr-win32.h: Fix formatting.
929
930 2002-11-12  Kazu Hirata  <kazu@cs.umass.edu>
931
932         * config/h8300/h8300.c (single_one_operand): Correctly compute
933         mask when mode is SImode.
934         (single_zero_operand): Likewise.
935         * config/h8300/h8300.md (two new anonymous insns): New.
936
937 2002-11-12  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
938
939         * doc/contrib.texi (Contributors): Use GCJ instead of gcj to refer
940         to that entire project.
941
942 2002-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
943
944         * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Restore old
945         directories.
946
947 2002-11-11  Zack Weinberg  <zack@codesourcery.com>
948
949         * params.def (ggc-min-expand, ggc-min-heapsize): New parameters.
950         * doc/invoke.texi: Document them.
951
952         * ggc-page.c: Include params.h.  Remove definitions of
953         GGC_MIN_EXPAND_FOR_GC, GGC_MIN_LAST_ALLOCATED.  Replace
954         GGC_POISON with ENABLE_GC_CHECKING in ifdefs, delete #define.
955         (init_gcc): Don't set G.allocated_last_gc here.
956         (ggc_collect): Use PARAM_VALUE (GGC_MIN_HEAPSIZE) and
957         PARAM_VALUE (GGC_MIN_EXPAND) to decide whether or not to
958         perform collection.
959         * ggc-simple.c: Similarly.
960         * Makefile.in (ggc-common.o, ggc-simple.o): Add $(PARAMS_H) to
961         dependencies.
962
963 2002-11-11  Kazu Hirata  <kazu@cs.umass.edu>
964
965         * gthr-dce.h: Fix formatting.
966
967 2002-11-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
968
969         PR c/8467
970         * stmt.c (tail_recursion_args): Handle DECL_MODE differing from the
971         mode of DECL_RTL case.
972
973 2002-11-11  Janis Johnson  <janis187@us.ibm.com>
974
975         * doc/contrib.texi: Merge in the list from the libstdc++ web pages.
976
977 Mon Nov 11 12:06:08 CET 2002  Jan Hubicka  <jh@suse.cz>
978
979         * i386.c (construct_container): Fix handling of SSE_CLASS.
980
981 2002-11-10  Joel Sherrill <joel@gcc.gnu.org>
982
983         * config/m68k/t-crtstuff (crti.o): Use this...
984         ($(T)crti.o): ... instead.
985         (crtn.o): Use this...
986         ($(T)crtn.o): ... instead.
987
988 2002-11-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
989
990         PR c/8439
991         * recog.c (validate_replace_rtx_1) [PLUS]: Simplify only
992         if there is something new to be simplified.
993
994 2002-11-10  H.J. Lu <hjl@gnu.org>
995
996         * calls.c (PUSH_ARGS_REVERSED): Define only if not defined.
997         * expr.c (PUSH_ARGS_REVERSED): Likewise.
998
999         * config/i386/i386.h (PUSH_ARGS_REVERSED): Set to 1.
1000
1001 2002-11-10  Zack Weinberg  <zack@codesourcery.com>
1002
1003         * config/rs6000/sysv4.h: Define NO_IMPLICIT_EXTERN_C here...
1004         * config/rs6000/linux.h, config/rs6000/linux64.h,
1005         config/rs6000/windiss.h: ... not here.
1006
1007 2002-11-10  Jason Thorpe  <thorpej@wasabisystems.com>
1008
1009         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define
1010         __ABICALLS__ if TARGET_ABICALLS.
1011
1012 Sun Nov 10 18:49:21 CET 2002  Jan Hubicka  <jh@suse.cz>
1013
1014         * i386.h (MIN_UNITS_PER_WORD): Define to 8 for x86-64 libgcc.
1015
1016 2002-11-10  Joseph S. Myers  <jsm@polyomino.org.uk>
1017
1018         * c-decl.c (grokdeclarator): Make error for duplicate type
1019         qualifiers into a pedwarn, disabled for C99.
1020
1021 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
1022
1023         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Define the same
1024         as FUNCTION_ARG_PASS_BY_REFERENCE.
1025
1026 2002-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1027
1028         * pa.h (STARTING_FRAME_OFFSET): Change offset for TARGET_64BIT to 16.
1029
1030         * config.gcc (hppa*64*-*-linux*): Shorten lines in tm_file define.
1031         (hppa*64*-*-hpux11*): Likewise.  Use elfos.h with gas.
1032         * pa.c (output_millicode_call): Use symbol difference rather than
1033         $PIC_pcrel$0 when using HP assembler.
1034         * pa64-hpux.h (TARGET_GAS): Define to 1 or 0 depending on whether or
1035         not elfos.h (i.e., gas) is being used.
1036         (ASM_FILE_START, STRING_ASM_OP, TEXT_SECTION_ASM_OP,
1037         DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_COMMON,
1038         ASM_OUTPUT_ALIGNED_LOCAL, GLOBAL_ASM_OP, ASM_DECLARE_FUNCTION_NAME,
1039         ASM_OUTPUT_EXTERNAL, ASM_OUTPUT_EXTERNAL_LIBCALL,
1040         ASM_OUTPUT_INTERNAL_LABEL, ASM_GENERATE_INTERNAL_LABEL): Define when
1041         using elfos.h.
1042         (TARGET_ASM_GLOBALIZE_LABEL): Undefine when using elfos.h.
1043         (DWARF2_ASM_LINE_DEBUG_INFO): Delete.
1044         (ASM_FILE_START): Add standard .SPACE and .SUBSPA defines when not
1045         using elfos.h.
1046         (TEXT_SECTION_ASM_OP, READONLY_DATA_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
1047         BSS_SECTION_ASM_OP): New HP style defines when not using elfos.h.
1048         (TARGET_ASM_NAMED_SECTION, MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL):
1049         Don't define when not using elfos.h.
1050         (ASM_DECLARE_RESULT): Don't define.
1051         * doc/install.texi (hppa*-hp-hpux*): Remove statement that HP assembler
1052         doesn't work on hppa64-hp-hpux11.
1053         (hppa*-hp-hpux11): Update.
1054
1055 2002-11-09  Jason Thorpe  <thorpej@wasabisystems.com>
1056
1057         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Don't pass -KPIC
1058         to the assembler if -mno-abicalls was specified.
1059
1060 2002-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1061
1062         * pa-linux.h (PREFERRED_DEBUGGING_TYPE, DWARF2_ASM_LINE_DEBUG_INFO,
1063         ASM_OUTPUT_DEF): Delete.
1064
1065 2002-11-09  Neil Booth  <neil@daikokuya.co.uk>
1066
1067         * c-opts.c (COMMAND_LINE_OPTIONS): Fix -Wimplicit.
1068
1069 2002-11-08  Dale Johannesen  <dalej@apple.com>
1070
1071         * dbxout.c (dbxout_type):  Fix stabs info for vector types.
1072
1073 2002-11-08  Neil Booth  <neil@daikokuya.co.uk>
1074
1075         PR preprocessor/8497
1076         PR preprocessor/8501
1077         * cpptrad.c (scan_out_logical_line): A '#' from a macro doesn't
1078         start a directive.  In assembler, #NUM is not a line directive.
1079
1080 2002-11-08  Neil Booth  <neil@daikokuya.co.uk>
1081
1082         * cppmain.c (cpp_preprocess_file): Loop to pop any -included
1083         buffers.
1084
1085 2002-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1086
1087         * config/h8300/h8300.md (two anonymous test insns): New.
1088
1089 Fri Nov  8 11:20:19 CET 2002  Jan Hubicka  <jh@suse.cz>
1090
1091         * jump.c (mark_jump_label): Handle subregs of label_refs.
1092
1093 2002-11-07  David Mosberger  <davidm@hpl.hp.com>
1094
1095         * config/ia64/crtend.asm: Include "auto-host.h".
1096         [HAVE_INITFINI_ARRAY]: Invoke __do_global_ctors_aux via .init_array.
1097         * config/ia64/crtbegin.asm: Similarly.
1098         * config/ia64/t-ia64 (crtbegin.o): Include from current directory.
1099         (crtend.o, crtbeginS.o, crtendS.o): Likewise.
1100
1101         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): New.
1102         * configure.in: Use it if --enable-initfini-array not specified.
1103         * doc/install.texi (Configuration): Document --enable-initfini-array.
1104         * configure, config.in: Rebuild.
1105
1106 2002-11-07  Jason Thorpe  <thorpej@wasabisystems.com>
1107
1108         * config/arm/arm-protos.h (arm_get_frame_size)
1109         (thumb_get_frame_size): New prototypes.
1110         * config/arm/arm.c (arm_get_frame_size)
1111         (thumb_get_frame_size): New functions.
1112         (use_return_insn, arm_output_epilogue, arm_output_function_epilogue)
1113         (arm_compute_initial_elimination_offset, arm_expand_prologue): Use
1114         arm_get_frame_size.
1115         (thumb_expand_prologue, thumb_expand_epilogue): Use
1116         thumb_get_frame_size.
1117         * config/arm/arm.h (PREFERRED_STACK_BOUNDARY): Define.
1118         (machine_function): Add frame_size member.
1119         (THUMB_INITIAL_ELIMINATION_OFFSET): Use thumb_get_frame_size.
1120
1121 2002-11-07  Richard Earnshaw  <rearnsha@arm.com>
1122
1123         * arm.c (bit_count): Make argument unsigned long.  Return unsigned.
1124         Adjust code to use portable unsigned bit manipulation.
1125         (insn_flags, tune_flags): Change type to unsigned.
1126         (struct processors): Make flags unsigned long.
1127         (arm_override_options): Change type of count and current_bit_count
1128         to unsigned.
1129
1130 2002-11-07  Richard Earnshaw  <rearnsha@arm.com>
1131
1132         * arm/elf.h (TYPE_OPERAND_FMT): Prefix type with %.
1133
1134 Thu Nov  7 15:50:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
1135
1136         * sh.h (DWARF_FRAME_RETURN_COLUMN): Use DWARF_FRAME_REGNUM.
1137
1138 Thu Nov  7 11:18:01 CET 2002  Jan Hubicka  <jh@suse.cz>
1139
1140         * reg-stack.c (compensate_edge): Fix sanity check.
1141
1142 2002-11-05  Geoffrey Keating  <geoffk@apple.com>
1143
1144         * config.gcc: Don't create crtbegin, crtend on Darwin; do create
1145         crt2.o.  Rearrange t-darwin makefiles.
1146         * crtstuff.c [OBJECT_FORMAT_MACHO]: Delete.
1147         * unwind-dw2-fde-darwin.c: New.
1148         * unwind-dw2-fde-glibc.c: Correct comment.
1149         * unwind-dw2-fde.c (__register_frame_info_bases)
1150         [DWARF2_OBJECT_END_PTR_EXTENSION]: Clear fde_end.
1151         (classify_object_over_fdes): Use last_fde.
1152         (add_fdes): Likewise.
1153         (linear_search_fdes): Likewise.
1154         * unwind-dw2-fde.h (struct object)
1155         [DWARF2_OBJECT_END_PTR_EXTENSION]: Add fde_end field.
1156         (last_fde): New.
1157         * config/darwin.h (STARTFILE_SPEC): Include crt2.o not crtbegin.o.
1158         (ENDFILE_SPEC): No crtend.o.
1159         * config/t-darwin: New.
1160         * config/i386/t-darwin: Delete.
1161         * config/darwin-crt2.c: New.
1162         * config/rs6000/t-darwin: Delete contents duplicated in t-rs6000
1163         or config/t-darwin.
1164
1165 2002-11-06  David Edelsohn  <edelsohn@gnu.org>
1166
1167         PR target/8480
1168         * config/rs6000/rs6000.md (movdi_internal64): Discourage
1169         FPR to FPR moves.
1170
1171 2002-11-06  Janis Johnson  <janis187@us.ibm.com>
1172
1173         * doc/contrib.texi: Merge in the list from the Java web pages.
1174
1175 2002-11-06  David O'Brien  <obrien@FreeBSD.org>
1176
1177         * config/sparc/freebsd: Fix typo.
1178
1179 2002-11-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1180
1181         * pa64-hpux.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Define.
1182
1183 2002-11-06  Alexandre Oliva  <aoliva@redhat.com>
1184
1185         * config/mips/mips.md (call_value_multiple_internal2): Use dla for
1186         non-SImode addresses.
1187
1188 2002-11-05  Bob Wilson  <bob.wilson@acm.org>
1189
1190         * config/xtensa/elf.h (LIB_SPEC): Add "-lhal".
1191
1192 2002-11-05  John David Anglin  <dave2hiauly1.hia.nrc.ca>
1193
1194         * pa64-hpux.h (LIB_SPEC): Fix p and pg options.
1195         (STARTFILE_SPEC): Remove p and pg options.
1196
1197 2002-11-05  Andrew Haley  <aph@redhat.com>
1198
1199         * fold-const.c (fold): Don't transform (a0 op compound(a1,a2))
1200         to (compound(a1,a0 op a2)) if a0 or a1 have side effects.
1201
1202 2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
1203
1204         * config/mips/mips.h (CANNOT_CHANGE_MODE_CLASS): Move comment to...
1205         * config/mips/mips.c (mips_cannot_change_mode_class): ...here.
1206
1207 2002-11-04  Dale Johannesen  <dalej@apple.com>
1208
1209         * doloop.c (doloop_modify_runtime):  Fix loop count computation
1210         for unrolled loops.
1211         * loop.c (loop_invariant_p):  Support calling from unroller.
1212
1213 2002-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
1214
1215         * config/s390/s390.c (s390_decompose_address): Use arg_pointer_rtx
1216         for comparison.
1217
1218 2002-11-04  Aldy Hernandez  <aldyh@redhat.com>
1219
1220         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): New.
1221
1222         * config/rs6000/rs6000.h (CLASS_CANNOT_CHANGE_MODE_P): Remove.
1223         (CLASS_CANNOT_CHANGE_MODE): Remove.
1224         (CANNOT_CHANGE_MODE_CLASS): New.
1225
1226         * config/alpha/alpha.h: Same.
1227
1228         * config/ia64/ia64.h: Same.
1229
1230         * config/mips/mips.h: Same.
1231
1232         * config/s390/s390.h: Same.
1233
1234         * config/sh/sh.h: Same.
1235
1236         * config/pa/pa64-regs.h: Same.
1237
1238         * config/sh/sh-protos.h (sh_cannot_change_mode_class): Add prototype.
1239
1240         * config/sh/sh.c (sh_cannot_change_mode_class): New.
1241
1242         * config/mips/mips-protos.h (mips_cannot_change_mode_class): Add
1243         prototype.
1244
1245         * config/mips/mips.c (mips_cannot_change_mode_class): New.
1246
1247         * doc/tm.texi (Register Classes): Remove
1248         CLASS_CANNOT_CHANGE_MODE and CLASS_CANNOT_CHANGE_MODE_P.
1249         Document CANNOT_CHANGE_MODE_CLASS.
1250
1251         * reload.c (push_reload): Use CANNOT_CHANGE_MODE_CLASS.
1252         (push_reload): Same.
1253
1254         * simplify-rtx.c (simplify_subreg): Same.
1255
1256         * reload1.c (choose_reload_regs): Same.
1257
1258         * recog.c (register_operand): Same.
1259
1260         * regrename.c (mode_change_ok): Change to use new
1261         CANNOT_CHANGE_MODE_CLASS infrastructure.
1262
1263         * regclass.c (cannot_change_mode_set_regs): New.
1264         Declare subregs_of_mode.
1265         (regclass): Use subregs_of_mode.
1266         Remove references to reg_changes_mode.
1267         (init_reg_sets_1): Remove class_can_change_mode and
1268         reg_changes_mode code.
1269         (invalid_mode_change_p): New.
1270         (dump_regclass): Use invalid_mode_change_p instead of
1271         class_can_change_mode.
1272         (regclass): Same.
1273         (record_operand_costs): Do not set reg_changes_mode.
1274
1275         * local-alloc.c (struct qty): Remove changes_mode field.
1276         (alloc_qty): Remove changes_mode initialization.
1277         (update_qty_class): Remove set of changes_mode.
1278         (find_free_reg): Use subregs_of_mode.
1279
1280         * global.c (find_reg): Use subregs_of_mode info.
1281
1282         * rtl.h (cannot_change_mode_set_regs): New prototype.
1283         (invalid_mode_change_p): Same.
1284         (REG_CANNOT_CHANGE_MODE_P): New macro.
1285
1286         * flow.c (mark_used_regs): Calculate subregs_of_mode.  Remove
1287         REG_CHANGES_MODE.
1288         (life_analysis): Clear subregs_of_mode.
1289
1290         * combine.c (subst): Pass class to CLASS_CANNOT_CHANGE_MODE_P.
1291         Remove use of CLASS_CANNOT_CHANGE_MODE.
1292         (simplify_set): Same.
1293         (gen_lowpart_for_combine): Calculate subregs_of_mode.  Remove
1294         REG_CHANGES_MODE.
1295
1296         * regs.h: Add extern for subregs_of_mode;
1297         Include hard-reg-set and basic-block.
1298         (REG_CHANGES_MODE): Delete.
1299
1300 2002-11-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1301
1302         * jump.c (never_reached_warning): Don't set contains_insn until the
1303         first line note is seen.
1304
1305 2002-11-03  David Edelsohn  <edelsohn@gnu.org>
1306
1307         * config/rs6000/rs6000.md (movti_string): Use string instructions.
1308
1309 2002-11-03  Roger Sayle  <roger@eyesopen.com>
1310
1311         PR c/7128
1312         * c-typeck.c (c_expand_asm_operands): Defend against
1313         error_mark_nodes in the output argument to avoid ICE.
1314
1315 2002-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1316
1317         PR middle-end/8408
1318         * genrecog.c (preds): Handle ADDRESSOF.
1319         (validate_pattern): Mark it as an lvalue.
1320
1321 2002-11-02  David Edelsohn  <edelsohn@gnu.org>
1322
1323         * config/rs6000/rs6000.c (rs6000_override_options): Use string
1324         instructions when optimizing for size.
1325
1326 2002-11-02  Kazu Hirata  <kazu@cs.umass.edu>
1327
1328         * config/h8300/h8300.h: Fix comment typos.
1329         * config/h8300/h8300.md: Likewise.
1330         * config/h8300/lib1funcs.asm: Likewise.
1331
1332 2002-11-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1333
1334         Revert this change:
1335
1336         *doc/install.texi (Installing GCC: Configuration): Clarify
1337         the only supported ways to configure gcc.
1338
1339 2002-11-01  Kazu Hirata  <kazu@cs.umass.edu>
1340
1341         * config/h8300/h8300.md (anonymous and:QI pattern): Use 'n'
1342         instead of 'O' for the constraint for the second operand.
1343
1344 2002-11-01  Mark Mitchell  <mark@codesourcery.com>
1345
1346         PR c++/8391
1347         * toplev.c (rest_of_compilation): Do not refuse to output code for
1348         an inline function in a local class.
1349
1350 2002-11-01  David O'Brien  <obrien@FreeBSD.org>
1351
1352         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Define __arch64__.
1353         (TRANSFER_FROM_TRAMPOLINE): Reformat.
1354         Add comment.
1355
1356 2002-11-01  Kazu Hirata  <kazu@cs.umass.edu>
1357
1358         * config/h8300/h8300.h (CAN_ELIMINATE): Simplify.
1359
1360 2002-11-01  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1361
1362         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): New.
1363
1364 2002-11-01  Steve Ellcey  <sje@cup.hp.com>
1365
1366         * config/ia64/ia64.h (MASK_INLINE_DIV_LAT): Remove.
1367         (MASK_INLINE_DIV_THR): Remove.
1368         (TARGET_INLINE_DIV_LAT): Remove.
1369         (TARGET_INLINE_DIV_THR): Remove.
1370         (TARGET_INLINE_DIV): Remove.
1371         (MASK_INLINE_FLOAT_DIV_LAT): New macro.
1372         (MASK_INLINE_FLOAT_DIV_THR): New macro.
1373         (MASK_INLINE_INT_DIV_LAT): New macro.
1374         (MASK_INLINE_INT_DIV_THR): New macro.
1375         (TARGET_INLINE_FLOAT_DIV_LAT): New macro.
1376         (TARGET_INLINE_FLOAT_DIV_THR): New macro.
1377         (TARGET_INLINE_INT_DIV_LAT): New macro.
1378         (TARGET_INLINE_INT_DIV_THR): New macro.
1379         (TARGET_INLINE_FLOAT_DIV): New macro.
1380         (TARGET_INLINE_INT_DIV): New macro.
1381         * config/ia64/ia64.md (divsi3): Change to use new macros.
1382         (modsi3): Ditto.
1383         (udivsi3): Ditto.
1384         (umodsi3): Ditto.
1385         (divsi3_internal): Ditto.
1386         (divdi3): Ditto.
1387         (moddi3): Ditto.
1388         (udivdi3): Ditto.
1389         (umoddi3): Ditto.
1390         (divdi3_internal_lat): Ditto.
1391         (divdi3_internal_thr): Ditto.
1392         (divsf3): Ditto.
1393         (divsf3_internal_lat): Ditto.
1394         (divsf3_internal_thr): Ditto.
1395         (divdf3): Ditto.
1396         (divdf3_internal_lat): Ditto.
1397         (divdf3_internal_thr): Ditto.
1398         (divtf3): Ditto.
1399         (divtf3_internal_lat): Ditto.
1400         (divtf3_internal_thr): Ditto.
1401         * config/ia64/ia64.c (ia64_override_options): Change
1402         to check new macros for conflicts in settings.
1403         * doc/invoke.texi (-minline-divide-min-latency): Remove.
1404         (-minline-divide-max-throughput): Remove.
1405         (-minline-float-divide-min-latency): New.
1406         (-minline-float-divide-max-throughput): New.
1407         (-minline-int-divide-min-latency): New.
1408         (-minline-int-divide-max-throughput): New.
1409
1410 2002-11-01  Richard Earnshaw  (rearnsha@arm.com)
1411
1412         PR target/7856
1413         * arm.c (use_return_insn): Don't use a return insn if there are
1414         saved integer regs, but LR is not one of them.
1415
1416 Fri Nov  1 10:33:15 CET 2002  Jan Hubicka  <jh@suse.cz>
1417
1418         * expr.c (emit_move_insn):  Use SCALAR_FLOAT_MODE_P
1419         * machmode.h (SCALAR_FLOAT_MODE_P): New macro.
1420
1421 2002-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
1422
1423         PR optimization/6162
1424         * doc/md.texi: Document restriction on commutative operand
1425         specification.
1426
1427 2002-10-31  Eric Christopher  <echristo@redhat.com>
1428
1429         * explow.c (convert_memory_address): Use shallow_copy_rtx.
1430
1431 2002-10-31  Steve Ellcey  <sje@cup.hp.com>
1432
1433         * expmed.c (store_bit_field): Check FUNCTION_ARG_REG_LITTLE_ENDIAN.
1434
1435 2002-10-31  Steve Ellcey  <sje@cup.hp.com>
1436
1437         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Set for non-floats.
1438
1439 Thu Oct 31  Dale Johannesen  <dalej@apple.com>
1440
1441         * config/rs6000/darwin.h:  Correct formatting in previous.
1442
1443 Thu Oct 31  Dale Johannesen  <dalej@apple.com>
1444
1445         * config/rs6000/darwin.h:  Enable -falign-xxx options.
1446
1447 Thu Oct 31 18:08:00 CET 2002  Jan Hubicka  <jh@suse.cz>
1448
1449         * i386.c (override_options): Set defaults for flag_omit_frame_pointer,
1450         flag_asynchronous_unwind_tables, flag_pcc_struct_return.
1451         * i386.c (optimization_options): Set flag_omit_frame_pointer,
1452         flag_asynchronous_unwind_tables, flag_pcc_struct_return to 2.
1453         Do not clear -momit-leaf-frame-pointer when profiling.
1454         (ix86_frame_pointer_required): Frame pointer is always required when
1455         profiling.
1456
1457 Thu Oct 31 16:09:44 CET 2002  Jan Hubicka  <jh@suse.cz>
1458
1459         * i386.md (negdf2_ifs_rex64): Don't allow GPR operand.
1460
1461 Thu Oct 31 12:45:55 2002  J"orn Rennecke <joern.rennecke@superh.com>
1462
1463         * sh.h (binary_logical_operator): Declare.
1464         * sh.c (binary_logical_operator): New function.
1465         * sh.md (xordi3+1): New combiner splitter pattern.
1466
1467 2002-10-31  David O'Brien  <obrien@FreeBSD.org>
1468
1469         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Define
1470         __enable_execute_stack function.
1471
1472 2002-10-30  Aldy Hernandez  <aldyh@redhat.com>
1473
1474         * c-common.c: Add GTY to vector_type_node_list.
1475
1476 2002-10-30  John David Anglin  <dave@hiauly.hia.nrc.ca>
1477
1478         * pa-linux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
1479         * pa-protos.h (attr_length_millicode_call, attr_length_call,
1480         pa_init_machine_status): Declare new global functions.
1481         * pa.c (void copy_fp_args, length_fp_args, get_plabel): Declare and
1482         implement new functions.
1483         (attr_length_millicode_call, attr_length_call): Implement.
1484         (total_code_bytes): Change type to long.
1485         (pa_output_function_prologue): Compute total_code_bytes on TARGET_64BIT.
1486         Reset counter if flag_function_sections.
1487         (output_deferred_plabels): Set output alignment to 3 for TARGET_64BIT.
1488         (output_cbranch): Move call to gen_label_rtx.
1489         (output_millicode_call): Rewrite adding long TARGET_64BIT call, expose
1490         delay slot in all variants, shorten pc-relative calls.
1491         (output_call): Rewrite adding long TARGET_64BIT call, improved delay
1492         slot usage and exposure, various new call variants, and shortened
1493         sequences for some variants on TARGET_PA_20.
1494         Miscellaneous format changes.
1495         * pa.h (total_code_bytes): Change type to long.
1496         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_LONG_ABS_CALL,
1497         TARGET_LONG_PIC_SDIFF_CALL, TARGET_LONG_PIC_PCREL_CALL): Define.
1498         (TARGET_SWITCHES): Add "-mlong-calls" and "-mno-long-calls" options.
1499         (EXTRA_CONSTRAINT, GO_IF_LEGITIMATE_ADDRESS,
1500         LEGITIMIZE_RELOAD_ADDRESS): Don't use long floating point loads and
1501         stores on TARGET_ELF32.
1502         *pa.md (define_delay): Allow insns in delay on TARGET_PORTABLE_RUNTIME.
1503         (unnamed patterns for mulsi3, divsi3, udivsi3, modsi3, umodsi3 and
1504         canonicalize_funcptr_for_compare expanders): Calculate attribute length
1505         attr_length_millicode_call().
1506         (call_internal_symref, call_value_internal_symref): Clobber register 1.
1507         Calculate attribute length using attr_length_call().
1508         (call_internal_reg_64bit, call_value_internal_reg_64bit): Move gp load
1509         to delay slot.
1510         (sibcall, sibcall_value): Rewrite.
1511         (sibcall_internal_symref, sibcall_value_internal_symref): Clobber
1512         register 1.  Use attr_length_call().
1513         (sibcall_internal_symref_64bit, sibcall_value_internal_symref_64bit):
1514         New patterns.
1515         (unamed pattern for canonicalize_funcptr_for_compare): Rewrite.
1516         * som.h (MEMBER_TYPE_FORCES_BLK): Define.
1517         * t-pa64 (TARGET_LIBGCC2_CFLAGS): Add "-mlong-calls".
1518         * doc/invoke.texi (mlong-calls): Document.
1519
1520 2002-10-30  Roger Sayle  <roger@eyesopen.com>
1521
1522         * fold-const.c (fold_binary_op_with_conditional_arg):  Improve
1523         handling of cases where one or both branches of the conditional
1524         have void type, i.e. throw an exception or don't return.
1525         (fold): Only apply (and undo) type conversion to the non-void
1526         branches of a COND_EXPR.
1527
1528 2002-10-30  Mark Mitchell  <mark@codesourcery.com>
1529
1530         PR c++/8333
1531         * varasm.c (asm_output_aligned_bss): Do not call
1532         ASM_GLOBALIZE_LABEL.
1533
1534 2002-10-30  David Edelsohn  <edelsohn@gnu.org>
1535             Torbjorn Granlund  <tege@swox.com>
1536
1537         * config/rs6000/rs6000.md (load_toc_v4_PIC_1): Use preferred form
1538         for addressibility.
1539         (load_toc_v4_PIC_1b): Same.
1540
1541 2002-10-30  Kazu Hirata  <kazu@cs.umass.edu>
1542
1543         * config/h8300/h8300.c (h8300_eightbit_constant_address_p):
1544         Truncate the addresses for H8/300 using HImode.
1545
1546 2002-10-29  Hans-Peter Nilsson  <hp@bitrange.com>
1547
1548         * toplev.c (rest_of_type_compilation): Return early in case of
1549         errors.
1550         (check_global_declarations): Don't call debug_hooks->global_decl
1551         in case of errors.
1552
1553 2002-10-28  Andreas Bauer  <baueran@in.tum.de>
1554
1555         * doc/c-tree.texi (Tree overview): Fix typos.
1556
1557 2002-10-29  Phil Edwards  <pme@gcc.gnu.org>
1558
1559         * Makefile.in (gnucompare*):  Only record bad comparisons
1560         if there really was a bad comparison.
1561
1562 Tue Oct 29 19:32:16 CET 2002  Jan Hubicka  <jh@suse.cz>
1563
1564         * i386.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'H'
1565         * i386.md (movsf*, movdf*): Use 'C' instead of 'H'
1566         * md.texi (machine dependent constraints): Document 'C'
1567
1568         * simplify-rtx.c (simplify_subreg): Fix const_int->vector subregging.
1569
1570         * i386.c (ix86_expand_vector_move): Fix.
1571
1572         * i386.c (ix86_expand_builtin): Use sse2_maskmovdqu_rex64.
1573         * i386.md (sse2_maskmovdqu_rex64): New pattern
1574
1575         PR target/8322
1576         * xmmintrin.h (_mm_stream_pi, _mm_stream_pd): Fix cast.
1577         (ix86_init_mmx_sse_builtins): Fix type.
1578
1579 2002-10-29  Jason Thorpe  <thorpej@wasabisystems.com>
1580
1581         * gthr-posix.h: Include <unistd.h> for feature tests.
1582         (sched_get_priority_max, sched_get_priority_min)
1583         (pthread_getschedparam, pthread_setschedparam): Only use
1584         if _POSIX_THREAD_PRIORITY_SCHEDULING is defined.
1585         (__gthread_objc_thread_set_priority): Don't treat all non-zero
1586         returns from sched_get_priority_max and sched_get_priority_min
1587         as an error.
1588
1589 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
1590
1591         * config/h8300/h8300.h (TARGET_DEFAULT): Make it
1592         MASK_QUICKCALL.
1593
1594 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
1595
1596         * config/h8300/h8300.c (h8300_eightbit_constant_address_p): New.
1597         (h8300_tiny_constant_address_p): Likewise.
1598         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Use
1599         h8300_eightbit_constant_address_p.
1600         (TINY_CONSTANT_ADDRESS_P): Use h8300_tiny_constant_address_p.
1601         * config/h8300/h8300-protos.h: Add the prototypes for the two
1602         new functions.
1603
1604 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
1605
1606         * reload1.c (update_eliminables): Unconditionally check if
1607         frame_pointer_needed has changed.
1608
1609 Tue Oct 29 15:37:39 CET 2002  Jan Hubicka  <jh@suse.cz>
1610
1611         * toplev.c (rest_of_compilation): Reorganize way reg_scan is called
1612         before final pass.
1613
1614 2002-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
1615
1616         * expr.c (expand_expr) [PLUS]: Don't use simplify_binary_operation;
1617         check for zero operands explicitly.
1618
1619 2002-10-29  Richard Sandiford  <rsandifo@redhat.com>
1620
1621         * config/mips/mips.md (extv, extzv, insv): Set size of referenced
1622         memory after adjusting to BLKmode.
1623
1624 2002-10-29  Kazu Hirata  <kazu@cs.umass.edu>
1625
1626         * config/h8300/h8300.h (MASK_*): New.
1627         (TARGET_*): Use MASK_*.
1628
1629 2002-10-28  Jason Thorpe  <thorpej@wasabisystems.com>
1630
1631         * config.gcc (*-*-netbsd*): Add NETBSD_ENABLE_PTHREADS to
1632         tm_defines if pthreads are enabled.
1633         * config/netbsd.h (LIB_SPEC): Only support the -pthread option
1634         if NETBSD_ENABLE_PTHREADS is defined.
1635
1636 2002-10-28  Kazu Hirata  <kazu@cs.umass.edu>
1637
1638         * ChangeLog.1: Fix typos.
1639         * cse.c: Fix a comment typo.
1640         * reload1.c: Likewise.
1641
1642 2002-10-27  Hans-Peter Nilsson  <hp@bitrange.com>
1643
1644         * fixinc/inclhack.def (libc1_G_va_list): Correct test_text.
1645         * fixinc/tests/base/_G_config.h: New file.
1646
1647 2002-10-27  Kazu Hirata  <kazu@cs.umass.edu>
1648
1649         * combine.c: Fix comment formatting.
1650         * loop.c: Likewise.
1651         * real.c: Likewise.
1652         * regclass.c: Likewise.
1653         * regmove.c: Likewise.
1654         * regrename.c: Likewise.
1655         * reg-stack.c: Likewise.
1656         * reload1.c: Likewise.
1657         * reload.c: Likewise.
1658         * reload.h: Likewise.
1659         * unroll.c: Likewise.
1660
1661 2002-10-27  Kazu Hirata  <kazu@cs.umass.edu>
1662
1663         * reload1.c (reload): Fix a comment typo.
1664
1665 Sun Oct 27 10:15:24 CET 2002  Jan Hubicka  <jh@suse.cz>
1666
1667         * linux64.h (DEFAULT_PCC_STRUCT_RETURN):  Define.
1668
1669 2002-10-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1670
1671         * Makefile.in (dwarf2out.o): Add dependendcy on hashtab.h.
1672         * dwarf2out.c: Include hashtab.h.
1673         (is_main_source): New static variable.
1674         (attr_checksum, die_checksum): Modified to handle die references.
1675         (same_loc_p, same_dw_val_p, same_attr_p, same_die_p, same_die_p_wrap,
1676         unmark_all_dies, htab_cu_hash, htab_cu_eq, htab_cu_del, check_duplicate_cu,
1677         record_comdat_symbol_number): New static functions.
1678         (output_comp_unit, compute_section_prefix, is_type_die, break_out_includes,
1679         mark_dies, unmark_dies, dwarf2out_start_source_file): Modified.
1680         * toplev.c (rest_of_decl_compilation): Call of dwarf2out_decl for type
1681         declarations added.
1682
1683 2002-10-26  Kazu Hirata  <kazu@cs.umass.edu>
1684
1685         * config/h8300/h8300.c (initial_offset): Change to
1686         h8300_initial_elimination_offset.
1687         * config/h8300/h8300.h (INITIAL_ELIMINATION_OFFSET): Use
1688         h8300_initial_elimination_offset.
1689         * config/h8300/h8300-protos.h: Update the prototype.
1690
1691 2002-10-26  Hans-Peter Nilsson  <hp@bitrange.com>
1692
1693         * config/mmix/mmix.h (LIBCALL_VALUE): Use
1694         MMIX_RETURN_VALUE_REGNUM, not MMIX_OUTGOING_RETURN_VALUE_REGNUM.
1695         (FUNCTION_VALUE_REGNO_P): Similar, but move code to...
1696         * config/mmix/mmix.c (mmix_function_value_regno_p): New.
1697         * config/mmix/mmix-protos.h: Remove needless ifdefs on TREE_CODE
1698         and RTX_CODE.
1699         (mmix_function_value_regno_p): Declare.
1700
1701         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Replace unsigned_fix,
1702         invalid for floating point mode result, with fix.
1703
1704 2002-10-25  Mike Stump  <mrs@apple.com>
1705
1706         Fixes gcc.dg/warn-1.c.
1707         * c-typeck.c (warn_for_assignment): Don't print argument number, if zero.
1708
1709 Sat Oct 26 01:44:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
1710
1711         * toplev.c (dump_file_index): Add DFI_ce3.
1712         (dump_file_info): Likewise.
1713         (rest_of_compilation): Run first ifcvt pass before tracer.
1714
1715 2002-10-25  Steve Ellcey  <sje@cup.hp.com>
1716
1717         * config/ia64/hpux.h (BITS_BIG_ENDIAN): Remove.
1718
1719 2002-10-25  Richard Henderson  <rth@redhat.com>
1720
1721         * real.c (real_to_decimal): If the >1 tens reduction loop results
1722         in a negative exponent, fall into the <1 pten computation.
1723
1724 2002-10-25  Zack Weinberg  <zack@codesourcery.com>
1725
1726         PR middle-end/6994
1727         * c-objc-common.c (inline_forbidden_p): Can not inline
1728         functions containing structures or unions containing VLAs.
1729         * tree-inline.c (walk_tree): For all class 't' nodes, walk
1730         TYPE_SIZE and TYPE_SIZE_UNIT.
1731         (copy_tree_r): Copy types if they are variably modified.
1732
1733 2002-10-25  Ulrich Weigand  <uweigand@de.ibm.com>
1734
1735         * config/s390/s390.md: Remove old-style peepholes.
1736
1737 2002-10-25  Ulrich Weigand  <uweigand@de.ibm.com>
1738
1739         * config/s390/s390.c (s390_decompose_address): Do not range check the
1740         displacement if base or index is the argument pointer register.
1741
1742 2002-10-24  Hans-Peter Nilsson  <hp@bitrange.com>
1743
1744         PR other/3337
1745         PR bootstrap/6763
1746         PR bootstrap/8122
1747         * fixinc/inclhack.def (libc1_G_va_list): New fix.
1748         * fixinc/fixincl.x: Regenerate.
1749         * config/i386/linux.h: Move MD_FALLBACK_FRAME_STATE_FOR inside
1750         ifndef IN_LIBGCC2.  Wrap it together with signal.h and
1751         sys/ucontext.h inclusion in ifndef USE_GNULIBC_1.
1752         * configure.in (gcc_AC_CHECK_DECLS): Check vasprintf too.
1753         * config.in, configure: Regenerate.
1754
1755 2002-10-24  Igor Shevlyakov <igor@microunity.com>
1756
1757         * varasm.c (struct rtx_const): Array size 16 for V16QImode.
1758
1759 2002-10-24  Richard Henderson  <rth@redhat.com>
1760
1761         * config/i386/i386.c (x86_output_mi_thunk): Fix x86_64 pic jump.
1762
1763 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
1764
1765         * config/h8300/h8300.c (initial_offset): Simplify by using
1766         round_frame_size.
1767
1768 2002-10-24  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1769
1770         * doc/install.texi (avr): Update required binutils version.
1771
1772 2002-10-24  Theodore A. Roth  <troth@openavr.org>
1773
1774         * doc/install.texi: Point avr users at more up-to-date information.
1775
1776 2002-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1777
1778         * config/s390/s390.md (movdi, movsi, movhi, movqi): Add peepholes2
1779         to pull operands out of the literal pool where possible.
1780
1781 2002-10-24  Denis Chertykov  <denisc@overta.ru>
1782
1783         * config/avr/avr.c (init_cumulative_args): Test fntype for zero.
1784
1785 2002-10-24  Steve Ellcey  <sje@cup.hp.com>
1786
1787         * expr.c (convert_move): If unsignedp is less then zero there
1788         is no equivalent code.
1789
1790 2002-10-24  Zack Weinberg  <zack@codesourcery.com>
1791
1792         * tree.def: Delete mention of nonexistent ARRAY_TYPE fields.
1793
1794 2002-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
1795
1796         * config/s390/s390.h: Rework comments; re-sort target macro definitions
1797         according to the sequence they are defined in the manual.
1798         (POINTER_BOUNDARY): Remove.
1799
1800 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
1801
1802         * config/h8300/h8300.c (round_frame_size): Replace 8 with
1803         BITS_PER_UNIT.
1804
1805 2002-10-24  Kazu Hirata  <kazu@cs.umass.edu>
1806
1807         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Make it
1808         64-bit safe.
1809         (TINY_CONSTANT_ADDRESS_P): Likewise.
1810
1811 2002-10-24  Richard Henderson  <rth@redhat.com>
1812
1813         * config/ia64/ia64.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
1814         (ia64_output_mi_thunk): Rewrite to use rtl, and to handle the
1815         vcall offset.
1816
1817 2002-10-24  Richard Henderson  <rth@redhat.com>
1818
1819         PR opt/7944
1820         * reload.c (find_reloads_toplev): Mode of X is not important
1821         when simplifying subregs of constants.
1822
1823 2002-10-24  Richard Sandiford  <rsandifo@redhat.com>
1824
1825         * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Add
1826         MIPS_MARCH_CONTROLS_SOFT_FLOAT=1 to $tm_defines.
1827         * config/mips/mips.c (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Default to 0.
1828         (override_options): Base default setting of MASK_SOFT_FLOAT on -march
1829         if MIPS_MARCH_CONTROLS_SOFT_FLOAT.
1830
1831 2002-10-24  Richard Sandiford  <rsandifo@redhat.com>
1832
1833         * optabs.c (expand_binop): Don't reuse the shift target in the
1834         middle of shift sequences.
1835
1836 2002-10-23  Ziemowit Laski <zlaski@apple.com>
1837
1838         * objc/objc-act.c (get_static_reference): Remove unneeded
1839         TYPE_BINFO initialization.
1840         (get_object-reference): Likewise.
1841         (build_constructor): Tighten precondition check.
1842         (finish_message_expr): Likewise.
1843
1844 2002-10-23  Jakub Jelinek  <jakub@redhat.com>
1845
1846         * config/i386/i386.c (local_symbolic_operand): Move LABEL_REF test
1847         after CONST test.
1848
1849 2002-10-23  Steve Ellcey  <sje@cup.hp.com>
1850
1851         * config/ia64/ia64.c (hfa_element_mode): Don't allow 128 bit floats
1852         in HFAs.
1853
1854 2002-10-23  Richard Henderson  <rth@redhat.com>
1855
1856         * config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): True.
1857         (alpha_output_mi_thunk_osf): Handle vcall_offset.
1858
1859 2002-10-23  Zack Weinberg  <zack@codesourcery.com>
1860
1861         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
1862         var_mod_type_p.
1863         * langhooks-def.h: Default for tree_inlining.var_mod_type_p is
1864         hook_tree_bool_false.
1865
1866         * tree.c (variably_modified_type_p): Moved here from
1867         cp/tree.c.  Use lang_hooks.tree_inlining.var_mod_type_p for
1868         language-specific cases.  Due to this, must weaken some 'if
1869         and only if' checks to merely 'if'.
1870         * tree.h: Prototype variably_modified_type_p.
1871
1872         * tree-inline.c (walk_tree): #undef WALK_SUBTREE_TAIL at end.
1873
1874 2002-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
1875
1876         * config/s390/linux.h (CC1_SPEC, CC1PLUS_SPEC): Remove.
1877         * config/s390/s390.c (optimization_options): Disable -fcaller-saves.
1878
1879         * config/s390/s390-protos.h (fp_operand): Remove.
1880         * config/s390/s390.c (fp_operand): Remove.
1881         * config/s390/s390.md ("movdi"): Replace fp_operand by FP_REG_P.
1882         ("*movdi_lhi", "*movdi_lli", "*movdi_larl"): Likewise.
1883         ("movsi", "*movsi_lhi", "*movsi_lli"): Likewise.
1884         (movdi_31, movdf_31 splitters): Likewise.
1885
1886         * config/s390/s390.h (IEEE_FLOAT): Remove.
1887         (TARGET_FLOAT_FORMAT): Define in terms of TARGET_IEEE_FLOAT.
1888         (INT_REGNO_P): Rename to ...
1889         (GENERAL_REGNO_P): ... this.
1890         (FLOAT_REGNO_P): Rename to ...
1891         (FP_REGNO_P): ... this.
1892         (ADDR_REGNO_P): New macro.
1893         (GENERAL_REG_P, ADDR_REG_P, FP_REG_P, CC_REG_P): New macros.
1894         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
1895         (DATA_REG_P, FP_REG_P, ADDRESS_REG_P): Likewise.
1896         (HARD_REGNO_NREGS): Adapt to macro renaming.
1897         (HARD_REGNO_MODE_OK): Likewise.
1898
1899 2002-10-23  David Edelsohn  <edelsohn@gnu.org>
1900             Geoff Keating  <geoffk@apple.com>
1901
1902         * config/rs6000/rs6000.c (rs6000_register_move_cost): New function.
1903         (rs6000_memory_move_cost): New function.
1904         * config/rs6000/rs6000-protos.h: Declare them.
1905         * config/rs6000/rs6000.h: Use them.
1906
1907 2002-10-23  Ulrich Weigand  <uweigand@de.ibm.com>
1908
1909         * libgcc2.c (__udiv_w_sdiv): Use attribute ((always_inline)) when
1910         inlining it into other libgcc2 routines.
1911         (__udivmoddi4): Likewise.
1912
1913 2002-10-22  Nathanael Nerode  <neroden@gcc.gnu.org>
1914
1915         * doc/sourcebuild.texi (Test Suites): Improve.
1916
1917 2002-10-22  Stan Shebs  <shebs@apple.com>
1918
1919         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Add missing
1920         case for Darwin.
1921
1922 2002-10-22  Jim Wilson  <wilson@redhat.com>
1923
1924         * config/i386/i386.md (subdi3_1): Add call to ix86_binary_operator_ok.
1925
1926 Wed Oct 23 01:52:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
1927
1928         PR other/8289
1929         * xmmintrin.h: Add const to the argument of loads.
1930
1931         * i386.md (pushv2di): New pattern.
1932         PR target/6890
1933         * xmmintrin.h (_MM_TRANSPOSE4_PS): New.
1934
1935 2002-10-22  Richard Henderson  <rth@redhat.com>
1936
1937         * target.h (gcc_target.asm_out): Merge output_mi_thunk and
1938         output_mi_vcall_thunk into a single hook.  Add can_output_mi_thunk.
1939         * target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Don't conditionalize.
1940         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
1941         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
1942         (TARGET_ASM_OUT): Update.
1943         * hooks.c (hook_bool_tree_hwi_hwi_tree_false): New.
1944         (hook_bool_tree_hwi_hwi_tree_true): New.
1945         (default_can_output_mi_thunk_no_vcall): New.
1946         * hooks.h: Declare them.
1947         * system.h (ASM_OUTPUT_MI_THUNK): Poison.
1948
1949         * config/alpha/alpha.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
1950         (alpha_output_mi_thunk_osf): Add VCALL_OFFSET parameter.
1951         * config/arm/arm.c, config/cris/cris.c, config/frv/frv.c,
1952         config/i960/i960.c, config/ia64/ia64.c, config/m68k/m68k.c,
1953         config/mmix/mmix.c, config/pa/pa.c, config/sparc/sparc.c,
1954         config/stormy16/stormy16.c: Similarly.
1955
1956         * config/i386/i386.c (x86_output_mi_thunk): Merge vcall_offset code.
1957         Handle 64-bit properly.  Streamline.
1958         (x86_output_mi_vcall_thunk): Remove.
1959         (x86_this_parameter): Rename from ia32_this_parameter; handle 64-bit.
1960         (x86_can_output_mi_thunk): New.
1961         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Remove.
1962         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
1963         (override_options): Don't zap targetm.asm_out.output_mi_vcall_thunk.
1964
1965         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Rename from
1966         output_mi_thunk; make static; always use function_section.
1967         (TARGET_ASM_OUTPUT_MI_THUNK): New.
1968         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
1969         (rs6000_ra_ever_killed): Test no_new_pseudos not
1970         targetm.asm_out.output_mi_thunk in conjunction with thunks.
1971         * config/rs6000/rs6000-protos.h: Update.
1972         * config/rs6000/sysv4.h (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
1973         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't call
1974         xcoffout_declare_function when using rs6000_output_mi_thunk.
1975
1976         * config/s390/s390.c (s390_output_mi_thunk): Rename from
1977         s390_output_mi_vcall_thunk.
1978         (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
1979         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
1980
1981         * config/vax/vax.c (vax_output_mi_thunk): Static; add vcall_offset.
1982         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): New.
1983         * config/vax/vax-protos.h: Update.
1984         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.
1985
1986 Wed Oct 23 00:33:11 CEST 2002  Jan Hubicka  <jh@suse,cz>
1987
1988         * i386.c (standard_sse_constant_p): Accept vector and integer zeros too.
1989         * i386.h (EXTRA_CONSTRAINT): Recognize 'C'
1990         * i386.md (movti_internal): Use 'C'
1991
1992         * xmmintrin.h (_mm_cmplt_epi*): New.
1993
1994 2002-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
1995
1996         * config/s390/s390.md ("*movdi_64"): Fix op_type attribute.
1997         ("*movdf_64"): Likewise.
1998         ("*lshrdi3_64"): Likewise.
1999         ("blockage"): Add length attribute.
2000         ("lit"): Likewise.
2001
2002 Tue Oct 22 23:51:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
2003
2004         * i386.md: FIx typo.
2005         (sse2_cvtsi2sd, sse2_pslrdq): Fix template.
2006         (sse2_umulv2siv2di3): Fix predicate.
2007         (sse2_psadbw, ashrv8hi3, ashrv4si3, lshrv8hi3 lshrv4si3,
2008         lshrv2di3, ashlv8hi3, ashlv4si3, ashlv2di3): Likewise.
2009         * xmmintrin.h (_mm_mul_epu16): Rename to...
2010         (_mm_mul_epu32): This one.
2011         (_mm_cvtsi32_si128, _mm_cvtsi128_si32): New.
2012
2013         (contains_128bit_aligned_vector_p): Undo accidental checkin.
2014
2015 2002-10-22  Eric Christopher  <echristo@redhat.com>
2016
2017         * config/sparc/sparc.h: Add #error.
2018
2019 2002-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
2020
2021         * config.gcc [s390-*-linux]: Remove s390/t-linux from tmake_file.
2022         [s390x-*-linux*]: Likewise.
2023         * config/s390/t-linux: Remove.
2024         * config/s390/s390.h: Include fixdfdi.h when building libgcc2.
2025
2026 Tue Oct 22 19:07:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
2027
2028         * i386.c (builtin_description): Add IX86_BUILTIN_PUNPCKHQDQ128.
2029         (ix86_expand_builtin): Fix MASKMOVDQU expasion.
2030         * i386.h (ix86_builtins): Add IX86_BUILTIN_PUNPCKHQDQ128.
2031         * i386.md (mmx_punpck?dq): Simplify.
2032         (sse2_pubpcklqdq): Fix.
2033         (sse2_pubpckhqdq): New.
2034         * xmmintrin.h (_mm_unpackhi_epi32): New.
2035
2036         * xmmintrin.h (_mm_cvt*, _mm_stream_pd): Fix prototypes.
2037         (_mm_shufflehi_epi16, _mm_shufflelo_epi16): Fix typo.
2038
2039 2002-10-22  Nathan Sidwell  <nathan@codesourcery.com>
2040
2041         PR c++/7209
2042         * fold_const.c (fold_binary_op_with_conditional_arg): Always
2043         build compound_expr if we used save_expr.
2044
2045 2002-10-22  Alan Modra  <amodra@bigpond.net.au>
2046
2047         * output.h (SECTION_NOTYPE): Define.
2048         * varasm.c (default_section_type_flags_1): Set SECTION_NOTYPE for
2049         init array sections.
2050         (default_elf_asm_named_section): Mind SECTION_NOTYPE.
2051         * config/arm/arm.c (arm_elf_asm_named_section): Likewise.  Also
2052         merge TLS support.
2053
2054 2002-10-21  Richard Henderson  <rth@redhat.com>
2055
2056         * real.c (sticky_rshift_significand): Return inexact, don't
2057         or it in immediately.
2058         (sub_significands): Accept incomming carry.
2059         (div_significands, rtd_divmod): Update for sub_significands change.
2060         (round_for_format): Update for sticky_rshift_significand change.
2061         (do_add): Don't involve the inexact bit in addition, do give the
2062         inexact bit as the subtraction carry-in.
2063         (encode_internal, decode_internal, real_internal_format): New.
2064         * real.h (real_internal_format): Declare.
2065
2066 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
2067
2068         * libgcc2.c: Fix __udiv_w_sdiv breakage on platforms that
2069         don't define sdiv_qrnnd.
2070
2071 2002-10-21  Kazu Hirata  <kazu@cs.umass.edu>
2072
2073         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Simplify
2074         using IN_RANGE.
2075         (TINY_CONSTANT_ADDRESS_P): Likewise.
2076
2077 Tue Oct 22 00:04:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
2078
2079         * i386.c (builtin_description): Add punpcklqdq and movdq2q
2080         (ix86_init_mmx_sse_builtins): Add v2di_ftype_void, di_ftype_v2di,
2081         v16qi_ftype_pchar, void_ftype_pchar_v16qi, v4si_ftype_pchar,
2082         void_ftype_pchar_v4si; Initialize __builtin_ia32_movdq2q,
2083         __builtin_ia32_loaddqa, __builtin_ia32_loaddqu, __builtin_ia32_loadd
2084         __builtin_ia32_storedqa, __builtin_ia32_storedqu, __builtin_ia32_stored
2085         __builtin_ia32_setzero128.
2086         (ix86_expand_builtin): Handle IX86_BUILTIN_CLRTI, IX86_BUILTIN_LOADDQA,
2087         IX86_BUILTIN_LOADDQU, IX86_BUILTIN_LOADD, IX86_BUILTIN_STOREDQA,
2088         IX86_BUILTIN_STOREDQU, IX86_BUILTIN_STORED, Ix86_BUILTIN_MOVQ.
2089         * i386.h (ix86_builtins): Add IX86_BUILTIN_LOADDQA, IX86_BUILTIN_LOADDQU,
2090         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_STOREDQU, IX86_BUILTIN_LOADD,
2091         IX86_BUILTIN_STORED, IX86_BUILTIN_CLRTI, IX86_BUILTIN_MOVDQ2Q,
2092         IX86_BUILTIN_PUNPCKLQDQ128, Ix86_BUILTIN_MOVQ.
2093         * i386.md (sse2_punpcklqdq, sse2_movqsse2_loadd, sse2_stored,
2094         sse2_movq): New patterns.
2095         (sse2_movdqa, sse2_movdqu, sse2_movdq2q): Fix.
2096         * xmmintrin.h (_mm_load_si128, _mm_loadu_si128, _mm_loadl_epi64,
2097         _mm_store_si128, _mm_storeu_si128, _mm_storel_epi64,
2098         _mm_setzero_si128, _mm_set_epi64, _mm_set_epi32, _mm_set_epi16,
2099         _mm_set_epi8, _mm_set1_epi64, _mm_set1_epi32, _mm_set1_epi16,
2100         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
2101         _mm_setr_epi8, _mm_unpacklo_epi64,_mm_set_moveq): New functions.
2102         (_mm_insert_epi16): Fix.
2103
2104 2002-10-21  Dale Johannesen  <dalej@apple.com>
2105
2106         * config/rs6000/rs6000.c (rs6000_reverse_condition): Handle
2107             unsafe math reversals correctly for RTL generation.
2108           (output_cbranch):  Replace rs6000_reverse_condition call
2109             by its former definition.
2110
2111 2002-10-21  Jakub Jelinek  <jakub@redhat.com>
2112
2113         * config/i386/i386.c (x86_64_sign_extended_value): Add allow_rip
2114         argument.  In CM_SMALL_PIC model consider SYMBOL_REFs binding locally or
2115         from constant pool or LABEL_REFs as sign extended if allow_rip.
2116         Change all +-1GB limits to +-16MB.
2117         (x86_64_general_operand, x86_64_szext_general_operand,
2118         x86_64_nonmemory_operand, x86_64_movabs_operand,
2119         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
2120         legitimate_address_p, ix86_expand_int_movcc): Update callers.
2121         (local_symbolic_operand): Don't allow offsets bigger than +-16MB
2122         in CM_SMALL_PIC model.
2123         (legitimate_pic_address_disp_p): Don't check offsets before
2124         calling local_symbolic_operand.
2125         (legitimize_pic_address): Force offsets bigger than +-16MB into
2126         register.
2127         * config/i386/i386.h (EXTRA_CONSTRAINT, CONST_COSTS): Likewise.
2128         * config/i386/i386-protos.h (x86_64_sign_extended_value): Update
2129         prototype.
2130
2131         * configure.in: Test for @GOTNTPOFF and @INDNTPOFF on IA-32 too.
2132         Add x86-64 test.  Set tls_first_minor to 14 on IA-32 and x86-64.
2133         * configure: Rebuilt.
2134         * config/i386/i386.c (x86_64_sign_extended_value): Don't allow TLS
2135         SYMBOL_REFs unless enclosed in UNSPEC.  Handle UNSPEC_DTPOFF,
2136         UNSPEC_GOTNTPOFF and UNSPEC_NTPOFF.
2137         (legitimate_address_p): Allow foo@dtpoff(base) even on TARGET_64BIT
2138         -fpic.
2139         (ix86_encode_section_info): Don't ever generate TLSGD or TLSLD for
2140         non-pic code if TARGET_64BIT.
2141         (legitimize_address): Generate 64-bit TLS sequences.
2142         (output_pic_addr_const): Support x86-64 TLS operators.
2143         (i386_output_dwarf_dtprel): Output 64-bit DTPOFF as .long f@DTPOFF, 0.
2144         (print_operand_address): Use %fs instead of %gs on TARGET_64BIT.
2145         Don't append (%rip) in 64-bit TLSGD and TLSLD sequences.
2146         (output_addr_const_extra): Support x86-64 TLS operators.
2147         (maybe_get_pool_constant): Handle TARGET_64BIT -fpic.
2148         (ix86_tls_get_addr): Use __tls_get_addr on TARGET_64BIT
2149         unconditionally.
2150         * config/i386/i386.md (*tls_global_dynamic_gnu): Renamed to...
2151         (*tls_global_dynamic_32_gnu): ..., add !TARGET_64BIT.
2152         (*tls_global_dynamic_sun): Renamed to...
2153         (*tls_global_dynamic_32_sun): ..., add !TARGET_64BIT.
2154         (tls_global_dynamic): Renamed to...
2155         (tls_global_dynamic_32): ... this.
2156         (tls_global_dynamic_64, *tls_global_dynamic_64): New.
2157         (*tls_local_dynamic_base_dynamic_gnu): Renamed to...
2158         (*tls_local_dynamic_base_dynamic_32_gnu): ..., add !TARGET_64BIT.
2159         (*tls_local_dynamic_base_dynamic_sun): Renamed to...
2160         (*tls_local_dynamic_base_dynamic_32_sun): ..., add !TARGET_64BIT.
2161         (tls_local_dynamic_base_dynamic): Renamed to...
2162         (tls_local_dynamic_base_dynamic_32): ... this.
2163         (tls_local_dynamic_base_dynamic_64,
2164         *tls_local_dynamic_base_dynamic_64): New.
2165         (*tls_local_dynamic_once): Renamed to...
2166         (*tls_local_dynamic_32_once): ... this.
2167
2168 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
2169
2170         * libgcc2.c: Inline __udiv_w_sdiv when compiling __udivdi3,
2171         __divdi3, __umoddi3, or __moddi3.
2172
2173 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
2174
2175         * c-opts.c (missing_arg): Use cl_options[opt_index].opt_code
2176         instead of just opt_index as switch expression.
2177
2178         * calls.c (store_one_arg): Change type of 'excess_align'
2179         to unsigned int.
2180
2181         * profile.c (output_gcov_string): Change type of 'temp'
2182         to size_t.
2183
2184 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
2185
2186         * config/s390/fixdfdi.h (__fixunsdfdi, __fixdfdi): Add prototypes.
2187         (__fixunssfdi, __fixsfdi): Likewise.
2188         * config/s390/s390.c (s390_single_hi): Initialize 'value'.
2189         (s390_single_qi): Likewise.
2190         (s390_emit_epilogue): Initialize 'offset'.  Remove signed vs.
2191         unsigned comparison warning.
2192         (s390_return_addr_rtx): New function.
2193         * config/s390/s390-protos.h (s390_return_addr_rtx): Declare it.
2194         * config/s390/s390.h (RETURN_ADDR_RTX): Use it.
2195         (HARD_REGNO_MODE_OK): Rewrite condition to silence warnings.
2196
2197 2002-10-21  Ulrich Weigand  <uweigand@de.ibm.com>
2198
2199         * config/s390/s390.c (s390_output_mi_vcall_thunk): New function.
2200         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Define target hook.
2201         (s390_output_mi_thunk): Remove.
2202         (TARGET_ASM_OUTPUT_MI_THUNK): Remove.
2203
2204 2002-10-21  Kazu Hirata  <kazu@cs.umass.edu>
2205
2206         * config/h8300/h8300.h (N_REG_CLASSES): Parenthesize.
2207
2208 2002-10-20  Richard Henderson  <rth@redhat.com>
2209
2210         * target.h (struct gcc_target): Line wrap.
2211
2212         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Static.
2213         (TARGET_ASM_OUTPUT_MI_THUNK): Define here...
2214         * config/alpha/alpha.h: ... not here.
2215         * config/alpha/alpha-protos.h: Update.
2216
2217         * config/arm/arm.c, config/arm/arm.h, config/arm/arm-protos.h
2218         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
2219         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
2220         config/i386/i386-protos.h, config/i386/i386.c, config/i386/openbsd.h,
2221         config/i386/unix.h, config/i960/i960-protos.h, config/i960/i960.c,
2222         config/i960/i960.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2223         config/ia64/ia64.h, config/m68k/linux.h, config/m68k/m68k-protos.h,
2224         config/m68k/m68k.c, config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
2225         config/mmix/mmix-protos.h, config/mmix/mmix.c, config/mmix/mmix.h,
2226         config/pa/pa-protos.h, config/pa/pa.c, config/pa/pa.h,
2227         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
2228         config/sparc/openbsd.h, config/sparc/sparc-protos.h,
2229         config/sparc/sparc.c, config/sparc/sparc.h,
2230         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
2231         config/stormy16/stormy16.h: Similarly.
2232
2233         * config/m68k/m68k.c (m68k_output_mi_thunk): Replicate mnemonic
2234         selection logic from call patterns.
2235
2236 2002-10-20  Mark Mitchell  <mark@codesourcery.com>
2237
2238         * config/m68k/m68k.c (m68k_output_mi_thunk): Fix typo.
2239
2240 2002-10-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2241
2242         PR other/8202
2243         * i386.c (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Define and
2244         expand __builtin_ia32_pslldqi128 and __builtin_ia32_psrldqi128.
2245         * i386.h (IX86_BUILTIN_PSLLDQI128, IX86_BUILTIN_PSRLDQI128): New.
2246         * xmmintrin.h (_mm_srli_si128, _mm_slli_si128): New.
2247
2248 2002-10-20  Roger Sayle  <roger@eyesopen.com>
2249
2250         PR c/761
2251         * toplev.c (flag_unsafe_profile_arcs): Remove.
2252         (flag_bounded_pointers): Remove.
2253         (flag_bounds_check): Correct comments.
2254         (lang_independent_options): Remove -funsafe-profile-arcs and
2255         -fbounded-pointers.  Correct -fbounds-check comments.
2256
2257         * flags.h: Correct flag_schedule_interblock comments.
2258         (flag_bounded_pointers): Remove prototype.
2259         (flag_bounds_check): Correct comments.
2260
2261         * c-opts.c (c_common_init_options): No need to mark
2262         flag_bounds_check as unspecified.
2263         (c_common_post_options): And no need to set it from
2264         flag_bounded_pointers if its still unspecified.
2265
2266         * doc/invoke.texi: Fix some overfull hboxes in "make dvi".
2267         Document --version, -feliminate-dwarf-2-dups, -fno-sched-interblock,
2268         -fno-sched-spec, -fsched-spec-load, -fsched-spec-load-dangerous,
2269         -fsched-verbose=n, -fno-branch-count-reg and -fbounds-check.
2270
2271 2002-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2272             Mark Mitchell  <mark@codesourcery.com>
2273
2274         * alpha-protos.h (alpha_output_mi_thunk_osf): Update signature to
2275         match target.h.
2276         * arm-protos.h, arm.c (arm_output_mi_thunk): Likewise.
2277         * cris-protos.h, cris.c (cris_asm_output_mi_thunk): Likewise.
2278         * frv-protos.h, frv.c (frv_asm_output_mi_thunk): Likewise.
2279         * i386-protos.h, i386.c (x86_output_mi_vcall_thunk,
2280         x86_output_mi_thunk): Likewise.
2281         * i960-protos.h, i960.c (i960_output_mi_thunk): Likewise.
2282         * ia64-protos.h, ia64.c (ia64_output_mi_thunk): Likewise.
2283         * m68k-protos.h, m68k.c (m68k_output_mi_thunk): Likewise.
2284         * mmix-protos.h, mmix.c (mmix_asm_output_mi_thunk): Likewise.
2285         * rs6000-protos.h, rs6000.c (output_mi_thunk): Likewise.
2286         * s390-protos.h, s390.c (s390_output_mi_thunk): Likewise.
2287         * stormy16-protos.h, stormy16.c (xstormy16_asm_output_mi_thunk):
2288         Likewise.
2289         * vax-protos.h, vax.c (vax_output_mi_thunk): Likewise.
2290
2291         * target.h (gcc_target): Update output_mi_thunk and
2292         output_mi_vcall_thunk to take a HOST_WIDE_INT delta and
2293         vcall_index.
2294
2295         * config/alpha/alpha.c: Replace ASM_OUTPUT_MI_THUNK with
2296         TARGET_ASM_OUTPUT_MI_THUNK in comments.
2297         * config/alpha/vms.h (ASM_OUTPUT_MI_THUNK): Don't #undef it.
2298         (TARGET_ASM_OUTPUT_MI_THUNK): #undef it.
2299         * config/frv/frv.h (DEFAULT_VTABLE_THUNKS): Remove definition.
2300         * config/i386/i386-protos.h (x86_output_mi_vcall_thunk): Update
2301         signature.
2302         * config/i386/i386.c (x86_output_mi_vcall_thunk): Likewise.
2303         * config/i386/openbsd.h: Replace ASM_OUTPUT_MI_THUNK with
2304         TARGET_ASM_OUTPUT_MI_THUNK in comments.
2305         * config/i960/i960.h (ASM_OUTPUT_MI_THUNK): Don't define.
2306         (TARGET_ASM_OUTPUT_MI_THUNK): Do define.
2307         * config/m68k/openbsd.h: Replace ASM_OUTPUT_MI_THUNK with
2308         TARGET_ASM_OUTPUT_MI_THUNK in comments.
2309         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Remove #ifdef
2310         ASM_OUTPUT_MI_THUNK and replace with check of targetm.
2311
2312         * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Update signature.
2313         (TARGET_ASM_OUTPU_MI_VCALL_THUNK): Likewise.
2314
2315 2002-10-19  Brad Lucier  <lucier@math.purdue.edu>
2316
2317         * real.c (do_add): Fix 0+0 sign corner case.
2318         (do_divide): Fix Inf/0 corner case.
2319
2320 Sun Oct 20 00:31:31 CEST 2002  Jan Hubicka  <jh@suse.cz>
2321
2322         * i386.c (classify_argument): Pass MMX arguments in memory
2323         (ix86_expand_builtin): Expand proper address mode for cflush.
2324         * i386.md (movdqa): Fix typo.
2325         (sse2_cflush): Accept DImode addresses.
2326
2327         * xmmintrin.h (_mm_sqrt_sd): Accept two arguments.
2328         (_mm_max_sd): Fix pasto.
2329         (_mm_storeh_pd, _mm_storel_pd): Fix.
2330
2331         * i386.c (bdesc_comi): Fix to match specification.
2332         (ix86_expand_sse_comi): Emit the comparison properly.
2333         * i386.md (sse_comi, sse2_comi, sse_ucomi, sse2_ucomi):
2334         Do not use comparison operator.
2335         (vnmaskcmp): Fix template.
2336
2337         * xmmintrin.h (_mm_cvtps_pi16): Fix.
2338
2339 2002-10-19  Sebastian Pop  <s.pop@laposte.net>
2340
2341         * dependence.c : Removed.
2342         * Makefile.in : Remove dependence.o.
2343
2344 Sat Oct 19 10:46:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
2345
2346         * mmintrin.h (__m64): typedef it to v2si.
2347         (_mm_cvtsi32_si64, _mm_cvtsi32_si64_mm_sll_pi16,
2348         _mm_sll_pi32, _mm_sll_pi64, _mm_slli_pi64, _mm_sra_pi16,
2349         _mm_sra_pi32, _mm_srl_pi16, _mm_srl_pi32, _mm_srl_pi64,
2350         _mm_srli_pi64, _mm_and_si64, _mm_andnot_si64,
2351         _mm_or_si64, _mm_xor_si64): Add neccesary casts.
2352         * xmmintrin.h (_mm_setzero_si64): Likewise.
2353
2354         * i386.h (ALIGN_MODE_128): Update comment; add missing modes
2355         (SSE_REG_MODE_P, MMX_REG_MODE_P): New macros.
2356
2357         PR target/7693
2358         Patch by Shawn Wagner
2359         * mmintrin.h: Replace pi64 by si64.
2360
2361 2002-10-18  David Edelsohn  <edelsohn@gnu.org>
2362
2363         * rs6000.md (movdf_hardfloat32): Order alternatives consistently.
2364         Use length of 4 not *.
2365         (movdf_hardfloat64): Same.  Support DFmode moves to/from CTR/LR.
2366         (movdf_softfloat64): Likewise.
2367         (movdi_internal32): Use length of 4 not *.
2368         (movti_power): Same.
2369         (ctrsi, ctrdi): Same.
2370
2371 2002-10-18  Zack Weinberg  <zack@codesourcery.com>
2372
2373         * c-decl.c (start_decl): Point users of the old initialized-
2374         typedef extension at __typeof__.
2375
2376 2002-10-18  Richard Henderson  <rth@redhat.com>
2377
2378         * real.c (cmp_significand_0, rtd_divmod, ten_to_mptwo): New.
2379         (real_to_decimal): Re-implement using the logic from the
2380         gcc 3.2 etoasc.  Comment heavily.
2381         (div_significands): Simplify loop startup and comparison logic.
2382
2383 2002-10-18  Mark Mitchell  <mark@codesourcery.com>
2384
2385         * target-def.h (TARGET_ASM_OUTPUT_MI_THUNK): Default to NULL.
2386         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Likewise.
2387         (TARGET_ASM_OUT): Add them.
2388         * target.h (asm_out): Add output_mi_thunk and
2389         output_mi_vcall_thunk.
2390         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2391         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2392         * config/arm/arm-protos.h (arm_output_mi_thunk): Declare.
2393         * config/arm/arm.c (arm_output_mi_thunk): Define.
2394         * config/arm/arm.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2395         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2396         * config/cris/cris.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2397         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2398         * config/frv/frv.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2399         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2400         * config/i386/i386-protos.h (x86_output_mi_thunk): Adjust
2401         prototype.
2402         (x86_output_mi_vcall_thunk): Declare.
2403         * config/i386/i386.c (override_options): Clear
2404         output_mi_vcall_thunk in 64-bit mode.
2405         (ix86_fntype_regparm): New function.
2406         (ix86_return_pops_args): Use it.
2407         (ia32_this_parameter): New function.
2408         (x86_output_mi_vcall_thunk): New function.
2409         (x86_output_mi_thunk): Use it
2410         * config/i386/unix.h (TARGET_ASM_OUTPUT_MI_THUNK): Adjust.
2411         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Define.
2412         * config/i960/i960-protos.h (i960_output_mi_thunk): Declare.
2413         * config/i960/i960.c (i960_output_mi_thunk): New function.
2414         * config/i960/i960.h (ASM_OUTPUT_MI_THUNK): Adjust.
2415         * config/ia64/ia64-protos.h (ia64_output_mi_thunk): Declare.
2416         * config/ia64/ia64.c (ia64_output_mi_thunk): Define.
2417         * config/ia64/ia64.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2418         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2419         * config/m68k/m68k-protos.h (m68k_output_mi_thunk): New function.
2420         * config/m68k/linux.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2421         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2422         * config/m68k/netbsd-elf.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2423         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2424         * config/mmix/mmix.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2425         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2426         * config/pa/pa.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2427         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2428         * config/rs6000/sysv4.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2429         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2430         * config/s390/s390-protos.h (s390_output_mi_thunk): Declare.
2431         * config/s390/s390.c (s390_output_mi_thunk): Define.
2432         * config/s390/s390.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2433         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2434         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2435         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2436         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2437         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2438         * config/vax/vax-protos.h (vax_output_mi_thunk): Declare.
2439         * config/vax/vax.c (vax_output_mi_thunk): Define.
2440         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Rename to ...
2441         (TARGET_ASM_OUTPUT_MI_THUNK): ... this.
2442         * doc/tm.texi: Adjust documentation.
2443
2444 2002-10-18  Jason Thorpe  <thorpej@wasabisystems.com>
2445
2446         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define
2447         __enable_execute_stack function.
2448         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Define
2449         as NETBSD_ENABLE_EXECUTE_STACK.
2450         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
2451         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
2452         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
2453         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
2454         * config/sparc/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
2455
2456 2002-10-18  Jason Thorpe  <thorpej@wasabisystems.com>
2457
2458         * config/i386/i386.c (x86_initialize_trampoline): Emit a call
2459         to __enable_execute_stack with the address of the trampoline
2460         if TRANSFER_FROM_TRAMPOLINE is defined.
2461         * config/i386/i386.h (TARGET_64BIT): Expand to a compile-time
2462         constant if building libgcc2.
2463
2464 2002-10-17  Roger Sayle  <roger@eyesopen.com>
2465
2466         * doc/c-tree.texi: Update description of COND_EXPR tree nodes.
2467
2468 2002-10-17  Geoffrey Keating  <geoffk@apple.com>
2469
2470         * config/rs6000/rs6000.h (HARD_REGNO_MODE_OK): Allow arbitrary modes
2471         in CTR/LR/MQ.
2472         * config/rs6000/rs6000.md (movcc_internal1): Support CCmode moves
2473         to/from CTR/LR/MQ.
2474         (movsf_hardfloat): Support SFmode moves to/from CTR/LR/MQ.
2475         (movsf_softfloat): Likewise.
2476
2477 2002-10-17  Janis Johnson  <janis187@us.ibm.com>
2478
2479         * Makefile.in (site.exp): Add ALT_CXX_UNDER_TEST and COMPAT_OPTIONS.
2480
2481 2002-10-17  Jason Thorpe  <thorpej@wasabisystems.com>
2482
2483         * config/alpha/alpha.c (alpha_initialize_trampoline): Use
2484         tramp, not addr, to pass the trampoline address to
2485         __enable_execute_stack.
2486
2487 Thu Oct 17 18:40:47 CEST 2002  Jan Hubicka  <jh@suse.cz>
2488
2489         * mmintrin.h: Guard by __MMX__
2490         * xmmintrin.h: Guard by __SSE__
2491
2492         PR other/8062
2493         * xmmintrin.h (_MM_SHUFFLE2): New macro.
2494         (_mm_load*_?d): New functions.
2495         (_mm_set*_?d): New functions.
2496         (_mm_store*_?d): New functions.
2497
2498 Wed Oct 16 15:01:29 CEST 2002  Jan Hubicka  <jh@suse.cz>
2499
2500         Really commit patch announced at Oct 14
2501         PR c/7344
2502         * predict.c (can_predict_insn_p): New function.
2503         (estimate_probability): Avoid unnecesary work.
2504         (process_note_prediction): Likewise.
2505         * toplev.c (rest_of_compilation): Account early branch prediction pass
2506         as TV_BRANCH_PROB.
2507
2508         PR other/8048
2509         Found by Ian Ollmann
2510         * xmmintrin.h (_mm_shuffle_pd): Fix typo.
2511         (_mm_load?_pd): Likewise.
2512         (_mm_store?_pd): Likewise.
2513
2514         PR target/7386
2515         * i386.c (builtin_description):Drop cmpg[te]s[sd].
2516         * xmmintrin.h (__mm_cmpg[te]_s[sd]): Rewrite using
2517         swapped alternative.
2518
2519         PR opt/7630
2520         * reload1.c (reload_inner_reg_of_subreg): New argument output;
2521         (push_reload): Update call.
2522
2523 2002-10-17  Richard Sandiford  <rsandifo@redhat.com>
2524
2525         * config.gcc (mips*-*-*): Add OBJECT_FORMAT_ELF to $tm_defines
2526         if using mips/elf.h or mips/elf64.h.
2527         * config/mips/elf.h (OBJECT_FORMAT_ELF): Remove.
2528         * config/mips/elf64.h (OBJECT_FORMAT_ELF): Remove.
2529
2530 2002-10-16  Aldy Hernandez  <aldyh@redhat.com>
2531
2532         * config/rs6000/rs6000.c (function_arg): Set inner mode of V1DI to
2533         SI.
2534
2535 2002-10-16  Ulrich Weigand  <uweigand@de.ibm.com>
2536
2537         * config/s390/linux.h (ASM_DOUBLE, _ASM_OUTPUT_LONG): Remove.
2538         (LPREFIX): Likewise.
2539         (ASM_COMMENT_START, LOCAL_LABEL_PREFIX, ASM_FORMAT_PRIVATE_NAME,
2540         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT,
2541         ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_BSS,
2542         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP,
2543         GLOBAL_ASM_OP, ASM_OUTPUT_MI_THUNK): Move to s390.h.
2544
2545         * config/s390/s390.h (ASM_COMMENT_START, LOCAL_LABEL_PREFIX,
2546         ASM_FORMAT_PRIVATE_NAME, ASM_OUTPUT_ALIGN, ASM_OUTPUT_SKIP,
2547         ASM_OUTPUT_ALIGNED_BSS, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2548         BSS_SECTION_ASM_OP): Move from linux.h.
2549         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2550         Also, use ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
2551
2552         * config/s390/s390.c (s390_function_profiler): Use
2553         ASM_GENERATE_INTERNAL_LABEL instead of LPREFIX.
2554
2555 2002-10-15  Richard Henderson  <rth@redhat.com>
2556
2557         * real.c (real_to_decimal): Accept BUF_SIZE and CROP_TRAILING_ZEROS
2558         as arguments.  Bound DIGITS by the available buffer size.
2559         (real_to_hexadecimal): Likewise.
2560         * real.h (real_to_decimal, real_to_hexadecimal): Update prototypes.
2561         (REAL_VALUE_TO_DECIMAL): Remove.
2562         * c-common.c, c-pretty-print.c, print-rtl.c, print-tree.c,
2563         sched-vis.c, config/arc/arc.c, config/c4x/c4x.c, config/fr30/fr30.c,
2564         config/i370/i370.h, config/i386/i386.c, config/i960/i960.c,
2565         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
2566         config/m68k/hp320.h, config/m68k/m68k.h, config/m68k/sun2o4.h,
2567         config/m68k/sun3.h, config/mips/mips.c, config/ns32k/ns32k.c,
2568         config/pdp11/pdp11.h, config/vax/vax.h: Update all callers to
2569         use real_to_decimal directly, and with the proper arguments.
2570         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Remove.
2571
2572 2002-10-15  Jim Wilson  <wilson@redhat.com>
2573
2574         * reload1.c (merge_assigned_reloads): After converting overlapping
2575         reloads to RELOAD_OTHER, abort if there are now conflicting reloads.
2576
2577         * config/i386/i386.md (adddi3_1): Add call to ix86_binary_operator_ok.
2578
2579 Tue Oct 15 22:08:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
2580
2581         * expr.c (do_tablejump): Fix typo in my previous commit.
2582
2583 2002-10-15  Richard Sandiford  <rsandifo@redhat.com>
2584
2585         * config/mips/vr.h (DRIVER_SELF_SPECS): Change %<mgp32 to %{<mgp32}.
2586
2587 2002-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
2588
2589         * config/s390/s390.c (s390_split_branches): Add return
2590         value.  Add parameters TEMP_REG and TEMP_USED.  Use unspec 104.
2591
2592         (find_base_register_in_addr): New function.
2593         (find_base_register_ref): New function.
2594         (replace_base_register_ref): New function.
2595
2596         (struct constant_pool): Add members pool_insn, insns, and anchor.
2597         Remove member last_insn.
2598         (s390_start_pool): Initialize them.
2599         (s390_end_pool): Emit pool placeholder insn.
2600         (s390_add_pool_insn): New function.
2601         (s390_find_pool): Use insns bitmap instead of addresses.
2602         (s390_dump_pool): Replace placeholder insn.  Emit anchor.
2603         Replace unspec 104 by local-pool-relative references.
2604         (s390_output_constant_pool): Output anchor label if required.
2605         (s390_output_symbolic_const): Handle unspec 104 and 105.
2606         (s390_add_pool): Remove, replace by ...
2607         (s390_add_constant, s390_find_constant): ... these new functions.
2608         (s390_add_anchor): New function.
2609
2610         (s390_chunkify_pool): Delete, replace by ...
2611         (s390_chunkify_start, s390_chunkify_finish,
2612         s390_chunkify_cancel): ... these new functions.
2613         (s390_optimize_prolog): Add parameter TEMP_REGNO.
2614         Recompute register live data for special registers.
2615         (s390_fixup_clobbered_return_reg): New function.
2616         (s390_machine_dependent_reorg): Rewrite to use new
2617         s390_chunkify_... routines.
2618
2619         config/s390/s390.md ("reload_base"): Rename to ...
2620         ("reload_base_31"): ... this.
2621         ("reload_base_64"): New insn.
2622         ("reload_base2"): Remove.
2623         ("reload_anchor"): New insn.
2624         ("pool"): New insn.
2625
2626         s390.c (s390_pool_overflow): Remove.
2627         s390.h (s390_pool_overflow): Likewise.
2628         s390.md ("cjump", "icjump", "doloop_si"): Remove s390_pool_overflow.
2629
2630 Tue Oct 15 16:51:04 2002  J"orn Rennecke <joern.rennecke@superh.com>
2631
2632         * sh.md (movv8qi_i+2): Don't split if source is -1.
2633
2634 2002-10-15  Janis Johnson  <janis187@us.ibm.com>
2635
2636         * doc/install.texi: Formatting changes for conformance to HTML 4.01.
2637
2638 2002-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
2639
2640         PR opt/7409
2641         * loop.c (loop_regs_scan): Mark registers used for function
2642         argument passing as MAY_NOT_OPTIMIZE.
2643
2644 Mon Oct 14 20:33:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
2645
2646         * i386.md (movv2di_internal): New pattern.
2647         (movv2df_internal, movv8hi_internal, movv16qi_internal): Fix predicate.
2648         (movv2di): New expander.
2649         * i386.c (ix86_preferred_reload_class): Return NO_REGS for vector operands.
2650
2651         * i386.c (ix86_expand_timode_binop_builtin): Delete.
2652         (builtin_description): Add SSE1 logicals; rename SSE2 logicals.
2653         (ix86_init_mmx_sse_builtins): Kill SSE1 logicals.
2654         (ix86_expand_builtin): Likewise.
2655         * i386.h (sse_andti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
2656         sse_andti3,
2657         sse_andnti4_df_1, sse_andti3_df_2, sse_andti3_sf_1, sse_andti3_sf_2,
2658         sse_andnti3,
2659         sse_orti4_df_1, sse_orti3_df_2, sse_orti3_sf_1, sse_orti3_sf_2,
2660         sse_orti3,
2661         sse_xorti4_df_1, sse_xorti3_df_2, sse_xorti3_sf_1, sse_xorti3_sf_2,
2662         sse_xorti3): Kill.
2663         (sse_andv4sf3, sse_andnv4sf3, sse_orv2df3, sse_xorv2df3, sse_andv2df3,
2664          sse_andnv2df3, sse_orv2df3, sse_xorv2df3): New expanders.
2665         (*sse_andv4sf3, *sse_andnv2df3, *sse_orv4sf3, *sse_xorv4sf3, *sse_andv2df3,
2666          *sse_andnv2df3, *sse_orv2df3, *sse_xorv2df3): New patterns.
2667         (*sse_andsf3, *sse_andndf3, *sse_ordf3, *sse_xordf3, *sse_anddf3,
2668          *sse_andndf3, *sse_orv2df3, *sse_xorv2df3): New patterns.
2669
2670         * xmmintrin.h (__m128i): Define as __v2di.
2671
2672         PR c++/6419
2673         (expand_expr): Use DECL_RTL_SET_P.
2674
2675 2002-10-14  Roger Sayle  <roger@eyesopen.com>
2676
2677         * combine.c (simplify_set):  Treat MODE_CC registers like cc0.
2678
2679 2002-10-14  Roger Sayle  <roger@eyesopen.com>
2680             Zack Weinberg <zack@codesourcery.com>
2681
2682         * config/i386/i386.c (k6_cost): Correct typo.
2683
2684 2002-10-14  Mark Mitchell  <mark@codesourcery.com>
2685
2686         PR optimization/6631
2687         * alias.c (objects_must_conflict_p): Check honor_readonly when
2688         examining TYPE_READONLY.
2689         * function.c (assign_stack_temp_for_type): Likewise.
2690
2691 2002-10-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2692
2693         * config/alpha/alpha.md (extendsidi2_nofix, extendsidi2_fix):
2694         Swap zero extension arguments.
2695         (umaxhi3): Fix instruction class.
2696         PR target/7211
2697         (prefetch): Fix prefetch instructions.
2698         PR target/7238
2699         (pkwb): Fix output constraint.
2700
2701 2002-10-14  Alexandre Oliva  <aoliva@redhat.com>
2702
2703         * config/mips/mips.c (print_operand): Increase buffer size for
2704         real numbers.
2705
2706 2002-10-14  Richard Henderson  <rth@redhat.com>
2707
2708         PR opt/8165
2709         * gcse.c (adjust_libcall_notes): Revert last change.
2710         * simplify-rtx.c (simplify_replace_rtx): Handle LO_SUM.
2711
2712 2002-10-14  Andrew Haley  <aph@redhat.com>
2713
2714         * tree-inline.c (remap_block): All local class initialization
2715         flags go in the outermost scope.
2716         (expand_call_inline): Call java_inlining_map_static_initializers.
2717         (expand_call_inline): Call java_inlining_merge_static_initializers.
2718         * java/lang.c (merge_init_test_initialization): New.
2719         (java_inlining_merge_static_initializers): New.
2720         (inline_init_test_initialization): New.
2721         (java_inlining_map_static_initializers): New.
2722
2723         * tree-inline.c (expand_call_inline): Convert retvar to expected
2724         type.
2725
2726 2002-10-14  Graham Stott  <graham.stott@btinternet.com>
2727
2728         * stmt.c (decl_conflicts_with_clobbers_p): Add REG_P check.
2729
2730 2002-10-14  Aldy Hernandez  <aldyh@redhat.com>
2731
2732         * stmt.c: Fix typo in comment.
2733
2734 Mon Oct 14 11:35:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
2735
2736         * c-common.c (c_common_type_for_mode): Add V2HImode case.
2737         * tree.c (build_common_tree_nodes_2): Initialize
2738         unsigned_V2HI_type_node and V2HI_type_node.
2739         * tree.h (enum tree_index): Add TI_UV2HI_TYPE and TI_V2HI_TYPE.
2740         (unsigned_V2HI_type_node, V2HI_type_node): Define.
2741
2742 2002-10-14  Jakub Jelinek  <jakub@redhat.com>
2743
2744         * config/i386/i386.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
2745         Handle TARGET_64BIT.
2746
2747 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
2748
2749         * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
2750         * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
2751         (MULTILIB_DIRNAMES): Remove long32.
2752         (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
2753         (MULTILIB_REDUNDANT_DIRS): Remove.
2754
2755 2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
2756
2757         * doc/tm.texi (DRIVER_SELF_SPECS): Document.
2758         * gcc.c (driver_self_specs): New variable.
2759         (do_self_spec): New function.
2760         (main): Use it to process driver_self_specs.
2761
2762 2002-10-13  Richard Henderson  <rth@redhat.com>
2763
2764         * rtl.c (shallow_copy_rtx): Use memcpy for the entire node.
2765
2766 2002-10-12  Neil Booth  <neil@daikokuya.co.uk>
2767
2768         PR preprocessor/7862
2769         PR preprocessor/8190
2770         * gcc.c (cpp_unique_options): Don't delete .d files.
2771         Remove stray whitespace.
2772
2773 2002-10-12  Naohiko Shimizu  <pshimizu@fa2.so-net.ne.jp>
2774
2775         * pdp11.h (ASM_OUTPUT_SKIP): Add preceding 0 for octal constant.
2776         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
2777         * pdp11.c (pdp11_output_function_prologue): 0%o -> %#o.
2778         (pdp11_output_function_epilogue, output_ascii): Likewise.
2779         (output_addr_const_pdp11): Likewise.
2780         * pdp11.md (movdi): Use offsetable memory for floating store.
2781         (lshrsi3, negsi2): Delete irrelevant comment.
2782
2783 2002-10-11  Geoffrey Keating  <geoffk@apple.com>
2784
2785         * cse.c (mention_regs): Set SUBREG_TICKED to the register number,
2786         not the address of the REG.
2787         (struct cse_reg_info): Make subreg_ticked unsigned.
2788
2789 2002-10-11  Janis Johnson  <janis187@us.ibm.com>
2790
2791         * doc/compat.texi: Add info about C++ libraries.
2792
2793 2002-10-11  Richard Henderson  <rth@redhat.com>
2794
2795         PR opt/8165
2796         * gcse.c (adjust_libcall_notes): Also adjust notes for INSN.
2797
2798 2002-10-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2799
2800         * cfganal.c (dfs_enumerate_from): Use PARAMS.
2801         * genautomata.c (output_insn_code_cases): Likewise.
2802         * real.c (real_format): Likewise.
2803         * tree.c (tree_size): Revise expressions using TREE_CODE_LENGTH to
2804         ensure value is promoted before doing subtraction.
2805
2806 Fri Oct 11 22:22:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
2807
2808         * calls.c (expand_call): Simplify noreturn call.
2809
2810         PR c/7344
2811         * cfgbuild.c (make_edges): Create edge cache when we do have
2812         large jumptable.
2813         * expr.c (do_tablejump): Note size of maximal jumptable.
2814         * function.c (prepare_function_start): Zero out size.
2815         * function.h (function): Add max_jumptable_ents.
2816
2817         * cfgcleanup.c (insn_match_p): Verify sibcall flag for calls to.
2818
2819 Fri Oct 11 12:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
2820
2821         * sh.md (movv8qi_i+2): For V8QI destinations, generate V4HI
2822         register for mperm_w operation.
2823
2824 Fri Oct 11 10:56:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
2825
2826         * emit-rtl.c (gen_lowpart_common): When asked to make a vector from
2827         an integer, use simplify_gen_subreg.
2828
2829 2002-10-10  Aldy Hernandez  <aldyh@redhat.com>
2830
2831         * extend.texi (Vector Extensions): Remove comment about single
2832         element vectors.
2833
2834 2002-10-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2835
2836         * fold-const.c (size_htab_hash): Use htab_hash_pointer.
2837         * function.c (insns_for_mem_hash): Likewise.
2838         * varasm.c (STRHASH): Likewise.
2839
2840 2002-10-10  Stuart Hastings  <stuart@apple.com>
2841
2842         * cse.c (struct cse_reg_info): Add subreg_ticked.
2843         (SUBREG_TICKED): New.
2844         (get_cse_reg_info): Initialize SUBREG_TICKED.
2845         (mention_regs): Use it.
2846         (invalidate): Set SUBREG_TICKED.
2847         (invalidate_for_call): Likewise.
2848         (addr_affects_sp_p): Likewise.
2849
2850 2002-10-10  Jakub Jelinek  <jakub@redhat.com>
2851
2852         * config/i386/i386.md (tls_local_dynamic_base): Put pic reg
2853         into proper operand.
2854
2855 2002-10-10  Denis Chertykov  <denisc@overta.ru>
2856
2857         * config/ip2k/ip2k.c (function_epilogue): Optimize stack
2858         deallocation.
2859         * config/ip2k/libgcc.S: Combine routines used by function
2860         epilogue.
2861
2862 2002-10-10  Jim Wilson  <wilson@redhat.com>
2863
2864         * cse.c (fold_rtx): Don't perform associative optimization for DIV and
2865         UDIV.
2866
2867 2002-10-10  David Edelsohn  <edelsohn@gnu.org>
2868
2869         * config/rs6000/aix52.h: New file.
2870         * config/rs6000/t-aix52: New File.
2871         * config.gcc (rs6000-ibm-aix5.1.*): New entry.
2872         (rs6000-ibm-aix[56789].*): Default to AIX 5.2.
2873
2874 Thu Oct 10 19:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2875
2876         PR target/5610
2877         * invoke.texi (-msse-math): Kill
2878         (-msse): Add note to mfpmath=sse.
2879
2880 Thu Oct 10 17:08:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
2881
2882         PR target/7723
2883         * i386.c (ix86_expand_vector_move): Do not generate const0->mem moves.
2884
2885 2002-10-10  Neil Booth  <neil@daikokuya.co.uk>
2886
2887         PR preprocessor/8179
2888         * gcc.c (cpp_options): Add {ansi}, move %{m*} to same location
2889         as cc1_options.
2890         (default_compilers): Pass debug options when preprocessing
2891         stdin.
2892
2893 2002-10-06  Richard Henderson  <rth@redhat.com>
2894
2895         * toplev.c (rest_of_compilation): Revert opt/2960 change.
2896
2897 2002-10-09  Zack Weinberg  <zack@codesourcery.com>
2898
2899         PR c/7353
2900         * c-decl.c (start_decl): Unconditionally issue error for
2901         'typedef foo = bar'.
2902         (finish_decl): Remove special case for TYPE_DECL with initializer.
2903
2904         * doc/extend.texi: Delete "Naming Types" section.  Change all
2905         cross-references to that section to refer to "Typeof" instead.
2906         Add the useful safe-max()-macro example from "Naming Types" to
2907         "Typeof", rewritten using that extension.  Add some compatibility
2908         notes to "Typeof."
2909
2910 2002-10-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2911
2912         * loop.c: Revert 2002-08-15 change.
2913         (LOOP_REGNO_NREGS): Ensure type is int.
2914
2915 2002-10-09  David Edelsohn  <edelsohn@gnu.org>
2916
2917         * config/rs6000/rs6000.md (extenddftf2): Change to define_insn
2918         which copies first FPR and clears second.
2919         (extendsftf2): Same.
2920         (floatditf2): Fix typo.
2921         (floatsitf2): Same.
2922         (fix_trunctfdi2): Same.
2923         (fix_trunctfsi2): Same.
2924
2925 2002-10-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2926
2927         * conflict.c (arc_hash): Change return type to hashval_t.
2928         * cselib.c (get_value_hash): Likewise.
2929         * genautomata.c (automaton_decl_hash, insn_decl_hash, decl_hash,
2930         state_hash, automata_list_hash): Likewise.
2931         * read-rtl.c (def_hash): Likewise.
2932         * tree.c (type_hash_hash): Likewise.
2933
2934 2002-10-08  Aldy Hernandez  <aldyh@redhat.com>
2935
2936         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Call
2937         prologue_epilogue_contains instead of using REG_MAYBE_DEAD notes.
2938
2939 Wed Oct  9 15:54:49 2002  J"orn Rennecke <joern.rennecke@superh.com>
2940
2941         * sh.md (ffssi2): Fix emitted code.
2942
2943 2002-10-09  Ulrich Weigand  <uweigand@de.ibm.com>
2944
2945         * cse.c (insn_live_p): Pass insn pattern, not full insn
2946         to may_trap_p.
2947
2948 2002-10-09  Neil Booth  <neil@daikokuya.co.uk>
2949
2950         * cppmacro.c (paste_tokens): Only allow / to paste with =.
2951
2952 2002-10-09  David Edelsohn  <edelsohn@gnu.org>
2953
2954         * config/rs6000/rs6000.md (movdf splitter): Use gen_int_mode on
2955         64-bit hosts.
2956         (movtf_internal): Reference correct displacement for second value
2957         in memory.
2958         (movtf splitter): Correct generation of constants in 64-bit mode.
2959
2960 2002-10-09  Alan Modra  <amodra@bigpond.net.au>
2961
2962         * libgcc2.c (__floatdisf): Properly cure double rounding.
2963
2964 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2965
2966         * c-common.c (cb_register_builtins): Define __WCHAR_MAX__.
2967         * doc/cpp.texi (Common Predefined Macros): Document.
2968
2969 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2970
2971         PR doc/7484
2972         * doc/invoke.texi (Option Summary): List
2973         -Wmissing-declarations as a C only option.
2974
2975 2002-10-08  Jakub Jelinek  <jakub@redhat.com>
2976
2977         * config/sparc/t-linux64 (MULTILIB_OPTIONS): Remove
2978         mno-app-regs|mcmodel=medany.
2979         (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES): Remove alt.
2980         (MULTILIB_EXCEPTIONS, MULTILIB_EXCLUSIONS, MULTILIB_MATCHES): Remove.
2981         (CRTSTUFF_T_CFLAGS): Define.
2982
2983 2002-10-08  Roger Sayle  <roger@eyesopen.com>
2984
2985         PR target/8087
2986         * simplify-rtx.c (avoid_constant_pool_reference):  Allow constant
2987         pool references that are constructed using LO_SUM.
2988
2989 2002-10-08  Nathan Sidwell  <nathan@codesourcery.com>
2990
2991         * c-opts.c (c_common_decode_option): Add warn_strict_aliasing to
2992         -Wall.
2993         * c-typeck.c (build_c_cast): Use warn_strict_aliasing, tweak
2994         message.
2995         * flags.h (warn_strict_aliasing): Declare.
2996         * toplev.c (warn_strict_aliasing): Define.
2997         (lang_independent_options): Add it.
2998         * doc/invoke.texi (-Wstrict-aliasing): Document it.
2999
3000 2002-10-08  Zack Weinberg  <zack@codesourcery.com>
3001
3002         * system.h (GCCBUGURL): Delete.
3003         * version.c (bug_report_url): New.  Add commentary about
3004         modifying both these strings in modified distributions.
3005         * version.h: Declare bug_report_url.
3006
3007         * diagnostic.c, gcc.c, gcov.c: Globally replace GCCBUGURL with
3008         bug_report_url.
3009
3010 2002-10-08  Nick Clifton  <nickc@redhat.com>
3011
3012         * config/rs6000/spe.h (__ev_set_acc_u64): Use __ev_create_u64 to
3013         convert uint64_t into __ev64_opaque__.
3014         (__ev_set_acc_s64): Likewise, but using signed types.
3015
3016 2002-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
3017
3018         * config/s390/s390.md ("*doloop_si_long"): Add missing operand.
3019         ("*doloop_di_long"): Likewise.
3020
3021 Tue Oct  8 16:50:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
3022
3023         * print-rtl.c (print_rtx): Increase buffer size for real numbers.
3024
3025 2002-10-08  Richard Sandiford  <rsandifo@redhat.com>
3026
3027         * config/mips/mips.md (define_attr cpu): Add r4111.
3028
3029 2002-10-08  Anthony Green  <green@redhat.com>
3030
3031         * bitmap.c (bitmap_equal_p): Clear all bitmap_head fields.
3032
3033 2002-10-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3034
3035         * config/c4x/c4x.c (c4x_print_operand): Enlarge buffer
3036         for REAL_VALUE_TO_DECIMAL output.
3037
3038 2002-10-07  David Edelsohn  <edelsohn@gnu.org>
3039
3040         * config/rs6000/rs6000.c (rs6000_override_options): Set
3041         real_format_for_mode for IBM extended format, if enabled.
3042         (easy_fp_constant): Add TFmode.
3043         (rs6000_legitimize_address): Add TFmode.
3044         (rs6000_legitimate_address): Same.
3045         (function_arg_advance): TFmode uses two FPRs.
3046         (rs6000_emit_prologue): Fix warning.
3047         (rs6000_output_function_epilogue): Add TFmode.
3048         (output_toc): Add TFmode.
3049         * rs6000.h (SLOW_UNALIGNED_ACCESS): Add TFmode.
3050         (LEGITIMATE_OFFSET_ADDRESS_P): Add TFmode.
3051         * rs6000.md (movtf splitter): Load TFmode constant.
3052
3053 2002-10-07  Dale Johannesen  <dalej@apple.com>
3054
3055         * rtl.h:  Add NOTE_PRECONDITIONED.
3056         * unroll.c:  Set it.
3057         * loop.c:  Set loop_info->preconditioned from it.
3058         * doloop.c:  Permit doloop treatment when loop_info->preconditoned.
3059
3060 2002-10-07  Richard Henderson  <rth@redhat.com>
3061
3062         * config/i960/i960.c (i960_setup_incoming_varargs): Create a
3063         new rtx for comparing the argument pointer against zero.
3064         (i960_va_start): Similarly.
3065
3066 2002-10-07  Richard Henderson  <rth@redhat.com>
3067
3068         * config/i960/i960.md (*): Use TFmode, not XFmode.
3069         * config/i960/i960.c (*): Likewise.
3070         (i960_arg_size_and_align): Remove XFmode alignment hack.
3071         (i960_round_align): Merge code from ROUND_TYPE_ALIGN.
3072         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Use 128, not 96.
3073         (MAX_LONG_DOUBLE_TYPE_SIZE): Likewise.
3074         (DATA_ALIGNMENT, ROUND_TYPE_SIZE): Remove.
3075
3076 2002-10-07  Richard Henderson  <rth@redhat.com>
3077
3078         * config/fp-bit.c (EXTENDED_FLOAT_STUBS): Flush out all XF/TFmode
3079         entry points; use void return value and argument list.
3080
3081 2002-10-05  Naohiko Shimizu <nshimizu@keyaki.cc.u-tokai.ac.jp>
3082
3083         * t-pdp11: Add MULTILIB support for msoft-float.
3084         * pdp11.h (LEGITIMATE_CONSTANT_P): Fix soft-float case.
3085
3086         * t-pdp11: Add LIB2FUNCS_EXTRA.
3087         * pdp11.c (pdp11_output_function_prologue): Restrict offset to 16bit,
3088         add preceding 0 to the octal constant, rename 'fp' to 'r5', rename
3089         'fldd' to 'ldd', rename 'fstd' to 'std'.
3090         (pdp11_output_function_epilogue): Likewise.
3091         (output_move_quad): Make the comment gas compatible.
3092         (output_ascii): Add preceding 0 to the octal constant.
3093         (print_operand_address): Add pre_modify, post_modify.
3094         (output_addr_const_pdp11): Add preceding 0 to the octal constant.
3095         * pdp11.h (GO_IF_LEGITIMATE_ADDRESS) : Add 'movb' pre_modify case
3096         with the indication of Paul Koning.
3097         (PRINT_OPERAND): Fix floating constant.
3098         * pdp11.md (movdi): Restrict matching pattern.
3099         (movqi): Generalize the matching pattern.
3100         (movdf): Restrict matching pattern.
3101         (zero_extendqihi2): Change constant representation.
3102         (floatsidf2): Fix wrong operands.
3103         (addqi3): Fix wrong instruction name.
3104         (subqi3): Fix wrong instruction name.
3105         (andsi3, andhi3, andqi3): Simplify and fix to use 'bic'.
3106         (xorsi3): Fix wrong insn.
3107         (one_cmplqi2): Add two operand pattern.
3108         (lsrsi3): New.
3109         (negsi2): New.
3110         (call): Add register indirect case.
3111         (mod): Fix wrong subreg.
3112
3113 2002-09-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
3114             Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3115
3116         PR c/7411
3117         * expr.c (expand_expr) [PLUS]: Simplify after the operands
3118         have been expanded in EXPAND_NORMAL mode.
3119
3120 2002-10-06  Richard Henderson  <rth@redhat.com>
3121
3122         * config/rs6000/rs6000.md (load_toc_v4_PIC_2): Fix base constraint.
3123
3124 2002-10-06  Richard Henderson  <rth@redhat.com>
3125
3126         PR optimization/2960
3127         * toplev.c (rest_of_compilation): Don't copy_loop_headers if
3128         optimize_size.
3129
3130 2002-10-06  Alexandre Oliva  <aoliva@redhat.com>
3131
3132         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Override
3133         previously definitions.
3134
3135 2002-10-06  Frank Ch. Eigler  <fche@redhat.com>
3136
3137         * cppinit.c (init_standard_includes, parse_option): Use strncmp.
3138         * c-opts.c (find_opt): Similarly.
3139
3140 2002-10-05  Jakub Jelinek  <jakub@redhat.com>
3141
3142         * gcc.c (set_multilib_dir): Don't access *end.
3143         Use memcpy instead of strncpy.  Don't write beyond malloced buffer.
3144         (print_multilib_info): Don't show paths starting with ".:".
3145         * genmultilib: Add new option, "yes" if multilibs are enabled.
3146         Update comments.  If multilibs not enabled, print .:${osdirout}
3147         for each directory.  If multilibs are enabled, always print
3148         ${dirout}:${osdirout}, even if the two are the same.
3149         * Makefile.in (s-mlib): Pass @enable_multilib@ to genmultilib.
3150         Pass all MULTILIB_* variables to genmultilib even if
3151         --disable-multilib but MULTILIB_OSDIRNAMES is not empty.
3152
3153 2002-10-04  Bruce Korb  <bkorb@gnu.org>
3154
3155         * fixinc/inclhack.def(hpux11_abs):  use format fix
3156         * fixinc/fixincl.x: regenerate
3157         * fixinc/tests/base/stdlib.h: accommodate new fix test
3158
3159 Sat Oct  5 19:42:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3160
3161         * c-common.c (cb_register_builtins):  Use really_no_inline.
3162
3163 2002-10-04  David Edelsohn  <edelsohn@gnu.org>
3164
3165         * unroll.c (copy_loop_body): Remove REG_EQUAL note attached to
3166         copied instruction if the note is not loop invariant.
3167
3168 2002-10-04  Loren J. Rittle  <ljrittle@acm.org>
3169
3170         * gcc/ginclude/stddef.h: Support the FreeBSD 5 typedef system.
3171
3172 2002-10-04  Steve Ellcey  <sje@cup.hp.com>
3173
3174         * doc/invoke.texi (HPPA):  Add -mlinker-opt, -mgnu-ld,
3175         and -mhp-ld options to list of options.  Add -mgnu-ld
3176         and -mhp-ld option descriptions.
3177
3178 2002-10-04  Steve Ellcey  <sje@cup.hp.com>
3179
3180         * fixinc/inclhack.def (hpux11_abs):  New.
3181         (stdio_va_list): change __va_list__ to __gnuc_va_list.
3182         * fixinc/fixincl.x: Rebuild.
3183
3184 2002-10-04  Roger Sayle  <roger@eyesopen.com>
3185
3186         * config/i386/i386.h (processor_costs): Add new fields fadd,
3187         fmul, fdiv, fabs, fchs and fsqrt to costs structure.
3188         (RTX_COSTS): Use these fields to determine the RTX costs
3189         of floating point addition/subtraction, multiplication,
3190         division, fabs, negation and square root respectively.
3191         * config/i386/i386.c (size_cost): Provide instruction sizes
3192         for these new fields.
3193         (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
3194         k6_cost, athlon_cost, pentium4_cost): Provide typical cycle
3195         counts for these new fields for all x86 processor variants.
3196
3197 2002-10-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3198
3199         * mips.c (mips_const_double_ok): Delete unused variable.
3200
3201         * gengtype.c (rtx_next): Change type to int.
3202
3203 2002-10-04  Andreas Jaeger  <aj@suse.de>
3204
3205         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Fix value.
3206
3207 2002-10-04  Richard Henderson  <rth@redhat.com>
3208
3209         * real.h (SIGNIFICAND_BITS): Add one more word.
3210         (CONST_DOUBLE_FORMAT): Accomodate 6 words.
3211         * real.c (times_pten): New.
3212         (real_to_decimal, real_from_string): Use it.
3213         (sticky_rshift_significand): Use & to find modulus.
3214         (rshift_significand, lshift_significand): Likewise.
3215         (do_divide): Apply sticky bit after normalization.
3216         (real_to_decimal, real_to_hexadecimal): Fix sign of Inf and NaN.
3217
3218 2002-10-03  Andreas Jaeger  <aj@suse.de>
3219
3220         * gengtype.c (adjust_field_rtx_def): Cast variables of type size_t
3221         to unsigned long, adjust printf format string.
3222         (output_mangled_typename): Likewise.
3223
3224 2002-10-03  Jason Thorpe  <thorpej@wasabisystems.com>
3225
3226         * config/vax/vax.c (vax_output_function_prologue): Use asm_fprintf.
3227         * config/vax/vax.h (VAX_FUNCTION_PROFILER_NAME): New.
3228         (FUNCTION_PROFILER): Rewrite to use ASM_GENERATE_INTERNAL_LABEL,
3229         assemble_name, asm_fprintf, and VAX_FUNCTION_PROFILER_NAME.
3230         (ASM_OUTPUT_MI_THUNK): Use asm_fprintf instead of REGISTER_PREFIX.
3231         (PRINT_OPERAND_PUNCT_VALID_P): Fix comment.
3232         * config/vax/elf.h (FUNCTION_PROFILER): Remove.
3233         (VAX_FUNCTION_PROFILER_NAME): Redefine as "__mcount".
3234
3235 2002-10-03  Mark Mitchell  <mark@codesourcery.com>
3236
3237         * doc/invoke.texi (-Wabi): Document mangling bug.
3238
3239 2002-10-04  Alan Modra  <amodra@bigpond.net.au>
3240
3241         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use a
3242         name for the tbtab label that depends on the function asm name.
3243         Don't output tbtab label unless optional_tbtab.
3244         (output_mi_thunk): Formatting.
3245
3246 2002-10-03  Richard Henderson  <rth@redhat.com>
3247
3248         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Move additional code ...
3249         * config/m68k/m68k.c (override_options): ... here.
3250         * config/m68k/m68kelf.h (OVERRIDE_OPTIONS): Remove.
3251         * config/m68k/m68kv4.h (OVERRIDE_OPTIONS): Remove.
3252         * config/m68k/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3253         * config/m68k/netbsd-elf.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3254
3255 2002-10-03  Richard Henderson  <rth@redhat.com>
3256
3257         * real.h (struct real_value): Use ENUM_BITFIELD.
3258
3259 2002-10-03  Richard Henderson  <rth@redhat.com>
3260
3261         * config/i960/i960.md (call, call_value): Use emit_call_insn.
3262
3263 2002-10-03  Steve Ellcey  <sje@cup.hp.com>
3264
3265         * config/pa/pa64-hpux.h (INIT_ENVIRONMENT): New.
3266
3267 2002-10-03  Steve Ellcey  <sje@cup.hp.com>
3268
3269         * config.gcc (hppa*64*-*-hpux11*): Check gnu_ld.
3270         * config/pa/pa.h (MASK_GNU_LD): New.
3271         (TARGET_GNU_LD): New.
3272         * config/pa/pa64-hpux.h (LINK_SPEC): Set based
3273         on gnu-ld and MASK_GNU_LD.
3274         (SUBTARGET_SWITCHES): New gnu-ld & hp-ld flags.
3275
3276 Thu Oct  3 23:35:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
3277
3278         * i386.c (athlon_cost): Fix the move costs.
3279
3280 Thu Oct  3 23:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
3281
3282         * final.c (final): Use symbol name as function name for profiling.
3283         * profile.c (get_exec_counts): Likewise.
3284         (branch_prob): Likewise.
3285
3286 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
3287
3288         * longlong.h (__udiv_qrnnd): Remove PARAMS from prototype.
3289
3290 2002-10-03  Jakub Jelinek  <jakub@redhat.com>
3291
3292         * gcc.c (print_multi_os_directory): New variable.
3293         (option_map): Support --print-multi-os-directory.
3294         (struct prefix_list): Add os_multilib field.
3295         (multilib_os_dir): New variable.
3296         (static_specs): Add multilib_options.
3297         (find_a_file): Add multilib argument.  Search in GCC or OS multilib
3298         subdirs if non-zero.
3299         (read_specs, execute): Update callers.
3300         (find_file): Likewise.  Don't prefix name with multilib_dir, instead
3301         pass 1 as multilib option.
3302         (display_help): Include --print-multi-os-directory.
3303         (add_prefix): Add os_multilib argument.  Initialize pl->os_multilib.
3304         (process_command): Update callers.  Handle --print-multi-os-directory.
3305         (do_spec_1) ['D']: Use multilib_os_directory if pl->os_multilib is
3306         set.
3307         (main): Update find_a_file and add_prefix callers.
3308         Handle print_multi_os_directory.
3309         (struct mdswitchstr): New.
3310         (mdswitches, n_mdswitches): New variables.
3311         (used_arg): Add MULTILIB_DEFAULT switches too if they are not
3312         present on the command line nor their mutually incompatible
3313         switches.
3314         (default_arg): Optimize.
3315         (set_multilib_dir): Compute multilib_os_dir.  Initialize mdswitches
3316         array.
3317         (print_multilib_info): Only print GCC multilib dir name, not OS
3318         multilib dirname.
3319         * genmultilib: Add osdirnames parameter.  Output multilib_options
3320         variable.  If osdirnames is specified, output dirnames as
3321         dirname:osdirname.
3322         * mklibgcc.in: Use MULTILIB_OSDIRNAMES, --print-multi-directory
3323         and --print-multi-os-directory instead of SHLIB_SLIBDIR_SUFFIXES
3324         to compute libgcc_s soname and install path.
3325         * Makefile.in (libgcc.mk): Pass MULTILIB_OSDIRNAMES instead of
3326         SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3327         (s_mlib): Pass MULTILIB_OSDIRNAMES or nothing as last genmultilib
3328         argument.
3329
3330         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Set.
3331         (SHLIB_SLIBDIR_SUFFIXES): Remove.
3332         * config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64,
3333         ENDFILE_SPEC32, ENDFILE_SPEC64, ENDFILE_COMMON): Remove.
3334         (STARTFILE_SPEC, ENDFILE_SPEC): Don't distinguish between -m32
3335         and -m64.
3336         * config/sparc/t-sol2-64 (MULTILIB_OSDIRNAMES): Set.
3337         (SHLIB_SLIBDIR_SUFFIXES): Remove.
3338         * config/sparc/sol2-bi.h (STARTFILE_ARCH64_SPEC): Remove.
3339         (STARTFILE_ARCH_SPEC): Remove.
3340         * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Set.
3341         (SHLIB_SLIBDIR_SUFFIXES): Remove.
3342         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
3343         * config/mips/t-iris6 (MULTILIB_OSDIRNAMES): Set.
3344         (SHLIB_SLIBDIR_SUFFIXES): Remove.
3345
3346 Thu Oct  3 21:42:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
3347
3348         * predict.c (choose_function_section): Avoid choice for linkonce functions.
3349
3350 Thu Oct  3 15:15:00 CEST 2002  Jan Hubicka  <jh@suse.cz>
3351
3352         * i386.md (lea to mul peep2): Fix condition.
3353
3354 2002-10-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3355
3356         * pa-linux.h (FUNCTION_OK_FOR_SIBCALL): Delete macro.
3357         * pa32-linux.h (FUNCTION_OK_FOR_SIBCALL): Define.
3358
3359 2002-10-02  Richard Henderson  <rth@redhat.com>
3360
3361         PR opt/7124
3362         * config/i386/i386.c (ix86_register_move_cost): Increase cost
3363         for secondary_memory_needed pairs.
3364
3365 2002-10-02  Nathanael Nerode  <neroden@gcc.gnu.org>
3366
3367         * doc/vms.texi: Blow away false include file section.
3368
3369 2002-10-02  Roger Sayle  <roger@eyesopen.com>
3370
3371         PR optimization/6627
3372         * toplev.c (force_align_functions_log): New global variable.
3373         * flags.h (force_align_functions_log): Add extern prototype.
3374         * varasm.c (assemble_start_function): Use it to force minimum
3375         function alignment.
3376         * config/i386/i386.h (FUNCTION_BOUNDARY): Set the correct
3377         minimum function alignment to one byte.
3378         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Store the virtual bit in
3379         the least significant bit of vtable member function pointers.
3380         * tree.h (enum ptrmemfunc_vbit_where_t): Move definition to
3381         here from cp/cp-tree.h.
3382
3383 Wed Oct  2 17:01:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
3384
3385         * i386.c (print_operand_address): Use RIP addressing for offsetted
3386         label refs too.
3387
3388 2002-09-30  David S. Miller  <davem@redhat.com>
3389
3390         PR middle-end/7151
3391         * config/sparc/sparc.md (movdi_insn_sp32_v9): Accept 'e' regs.
3392         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
3393
3394 2002-10-01  Roger Sayle  <roger@eyesopen.com>
3395
3396         * unroll.c (loop_iterations): Revert 2002-09-08 change.
3397
3398 2002-10-01  Richard Henderson  <rth@redhat.com>
3399
3400         * real.c (real_to_decimal): Crop trailing zeros for DIGITS < 0.
3401         (real_to_hexadecimal): Likewise.
3402         * print-rtl.c (print_rtx): If we are linked with real.c, don't
3403         dump the XWINT fields of a floating point CONST_DOUBLE.
3404
3405 2002-10-01  Jason Thorpe  <thorpej@wasabisystems.com>
3406
3407         * config/vax/elf.h (FUNCTION_PROFILER): Fix __mcount call.
3408
3409 2002-10-01  Richard Henderson  <rth@redhat.com>
3410
3411         * calls.c (precompute_register_parameters): Force non-legitimate
3412         constants into pseudos.
3413
3414 2002-10-01  Nick Clifton  <nickc@redhat.com>
3415
3416         * config/rs6000/spe.md (spe_evrlwi): Add missing third operand
3417         to assembler template.
3418
3419 2002-10-01  Richard Henderson  <rth@redhat.com>
3420
3421         * dwarf2out.c (loc_descriptor_from_tree): Relax requirement
3422         for TLS debug info to !DECL_EXTERNAL.
3423
3424 2002-10-01  Matt Thomas  <matt@3am-software.com>
3425             Jason Thorpe  <thorpej@wasabisystems.com>
3426
3427         * config.gcc (vax-*-netbsdelf*): Enable configuration.
3428         * config/elfos.h (PCC_BITFIELD_TYPE_MATTERS): Define only
3429         if not already defined.
3430         * config/vax/elf.h: New file.
3431         * config/vax/netbsd-elf.h: New file.
3432         * config/vax/vax.c: Include "debug.h".
3433         (vax_output_function_prologue): Add dwarf2 support.  Use
3434         MAIN_NAME_P when checking for VMS_TARGET stack adjust.
3435         * config/vax/vax.h (CONST_OK_FOR_LETTER_P): Add cases for
3436         'J' [0..63], 'K' [-128..127], 'L' [-32768..32767],
3437         'M' [0..255], 'N' [0..65535], and, 'O' [-63..-1].
3438         (VAX_ISTREAM_SYNC): Remove.
3439         (INITIALIZE_TRAMPOLINE): Use gen_sync_istream.
3440         (JUMP_TABLES_IN_TEXT_SECTION): Define.
3441         (ASM_OUTPUT_REG_POP): Use reg_names for the stack pointer.
3442         (ASM_OUTPUT_ADDR_VEC_ELT): Use ASM_GENERATE_INTERNAL_LABEL
3443         and assemble_name.
3444         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3445         (PRINT_OPERAND_PUNCT_VALID_P): Accept '|'.
3446         (PRINT_OPERAND): Output REGISTER_PREFIX for '|'.
3447         (INCOMING_RETURN_ADDR_RTX): Define.
3448         * config/vax/vax.md (VUNSPEC_BLOCKAGE)
3449         (VUNSPEC_SYNC_ISTREAM): Define.
3450         (blockage): Use VUNSPEC_BLOCKAGE.
3451         (sync_istream): New insn.
3452
3453 2002-10-01  Richard Henderson  <rth@redhat.com>
3454
3455         * config/vax/vax.md (call_pop, *call_pop, call_value_pop)
3456         (*call_value_pop, call, call_value): Add dwarf2 EH support.
3457         (*call): New insn.
3458
3459 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
3460
3461         PR c/8083
3462         * c-typeck.c (build_c_cast): Warn about type punning which breaks
3463         type based aliasing.
3464
3465 2002-10-01  Mark Mitchell  <mark@codesourcery.com>
3466
3467         * stor-layout.c (update_alignment_for_field): New function.
3468         (place_union_field): Use it.
3469         (place_field): Likewise.
3470
3471 2002-10-01  Nathan Sidwell  <nathan@codesourcery.com>
3472
3473         PR other/8077
3474         * gcc.c (cc1_options): Add space on -auxbase-strip.
3475
3476 2002-10-01  Jim Wilson  <wilson@redhat.com>
3477
3478         * config/v850/v850.h (EPILOGUE_USES): Define.
3479
3480 2002-09-30  Andrew Haley  <aph@redhat.com>
3481
3482         * flow.c (insn_dead_p): When using non-call-exceptions, don't
3483         eliminate insns that may trap.
3484         * cse.c (insn_live_p): Likewise.
3485
3486 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3487
3488         * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
3489         (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
3490         * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
3491         * config/mips/mips.md: Apply same renaming here.
3492
3493 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3494
3495         * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
3496         (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
3497         * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
3498         * config/mips/mips.md (define_attr cpu): Remove r4320.
3499         Remove vr4320 scheduler and uses of TARGET_MIPS4320.
3500
3501 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3502
3503         * config/mips/mips.c (mips16_strings): New variable.
3504         (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
3505         symbol in mips16_strings.  Free the list.
3506         (mips_encode_section_info): Keep track of local strings.
3507
3508 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3509
3510         * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
3511         (sordered_df, sordered_sf): Remove.
3512         * config/mips/mips.c (get_float_compare_codes): New fn.
3513         (gen_int_relational, gen_conditional_move): Use it.
3514
3515 2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3516
3517         * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
3518         * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
3519         * config/mips/mips.c (fcc_register_operand): New function.
3520         (mips_emit_fcc_reload): New function, extracted from reload_incc.
3521         (override_options): Allow TFmode values in float registers
3522         if ISA_HAS_8CC.
3523         * cnfig/mips/mips.md (reload_incc): Change destination prediate
3524         to fcc_register_operand.  Remove misleading source constraint.
3525         Use mips_emit_fcc_reload.
3526         (reload_outcc): Duplicate reload_incc.
3527
3528 2002-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
3529
3530         * longlong.h: Partially synchronize with GMP-4.1 version:
3531         Use i370 definitions also for s390.
3532         Add generic definition of umul_ppmm in terms of smul_ppmm.
3533         [s390] (umul_ppmm): Remove.
3534         [s390] (smul_ppmm): Fix incorrect assembler constraints.
3535         [s390] (smul_ppmm, sdiv_qrnnd): Rename __xx to __x.
3536
3537 2002-09-30  Bob Wilson  <bob.wilson@acm.org>
3538
3539         * config/xtensa/xtensa.h (REG_CLASS_NAMES, REG_CLASS_CONTENTS):
3540         Add new RL_REGS register class.
3541         (PREFERRED_RELOAD_CLASS, PREFERRED_OUTPUT_RELOAD_CLASS):
3542         Call xtensa_preferred_reload_class for both input and output reloads.
3543         * config/xtensa/xtensa.c (xtensa_regno_to_class): Use new RL_REGS class.
3544         (xtensa_preferred_reload_class): Handle output reloads; use RL_REGS
3545         instead of either AR_REGS or GR_REGS classes.
3546         (xtensa_secondary_reload_class): Use new RL_REGS class.
3547         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class): Update.
3548
3549 2002-09-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3550
3551         * pa.c (hppa_encode_label): Don't drop '*' from function labels.
3552         (pa_strip_name_encoding): Strip '@' and '*', in that order.
3553         * pa.h (ASM_OUTPUT_LABELREF): Output user_label_prefix except when
3554         there is a '*' prefix in NAME.
3555
3556 Mon Sep 30 21:33:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
3557
3558         * reload.c (push_reload): Handle subregs and secondary memory.
3559         * reload1.c (gen_reload): Likewise.
3560
3561         * jump.c (reg_or_subregno): New function.
3562         * rtl.h (reg_or_subregno): Declare
3563         * unroll.c (find_splittable_givs): Handle subregs.
3564
3565 2002-09-30  Mark Mitchell  <mark@codesourcery.com>
3566
3567         * store-layout.c (finish_record_layout): Add free_p parameter.
3568         (layout_type): Pass it.
3569         * tree.h (finish_record_layout): Update prototype.
3570
3571 Mon Sep 30 14:57:18 CEST 2002  Jan Hubicka  <jh@suse.cz>
3572
3573         * i386.h (TARGET_CPP_CPU_BUILTINS): Define __SSE_MATH__.
3574
3575         * gcse.c (cprop_jump): Check that the register has not
3576         been modified
3577         (cprop_jump): Likewise.
3578
3579 2002-09-30  Richard Earnshaw  <rearnsha@arm.com>
3580
3581         * arm.h (BASE_REG_CLASS): Always return LO_REGS for Thumb.
3582         (MODE_BASE_REG_CLASS, case Thumb): Only return BASE_REGS if we know
3583         that we have a SImode access, and only then if reload hasn't completed;
3584         for all other cases, use LO_REGS.
3585
3586 2002-09-29  Richard Henderson  <rth@redhat.com>
3587
3588         * real.c (real_from_string): Apply sign last.  Tidy exponent handling.
3589
3590 2002-09-29  Richard Henderson  <rth@redhat.com>
3591
3592         PR c/8002
3593         * combine.c (force_to_mode): Handle FLOAT_MODE destinations
3594         for CONST_INT.
3595
3596 2002-09-29  David Edelsohn  <edelsohn@gnu.org>
3597
3598         * real.h (ibm_extended_format): Declare.
3599         * real.c (encode_ibm_extended, decode_ibm_extended): New
3600         functions.
3601
3602 2002-09-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3603
3604         * darwin-protos.h (darwin_asm_output_dwarf_delta): Prototype.
3605
3606         * ia64.c (ia64_hpux_asm_file_end): Const-ify.
3607
3608 2002-09-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3609
3610         * expmed.c (extract_bit_field): Fix bit-field extraction from SUBREGs.
3611
3612 2002-09-29  Kazu Hirata  <kazu@cs.umass.edu>
3613
3614         * builtins.def: Fix comment formatting.
3615         * c-common.def: Likewise.
3616         * cfgcleanup.c: Likewise.
3617         * combine.c: Likewise.
3618         * gengtype.c: Likewise.
3619         * params.def: Likewise.
3620         * predict.def: Likewise.
3621         * rtl.def: Likewise.
3622         * stab.def: Likewise.
3623         * stor-layout.c: Likewise.
3624         * tree.def: Likewise.
3625         * config/darwin.c: Likewise.
3626         * config/darwin.h: Likewise.
3627         * config/dbxcoff.h: Likewise.
3628         * config/elfos.h: Likewise.
3629         * config/fp-bit.c: Likewise.
3630         * config/freebsd-spec.h: Likewise.
3631         * config/interix.h: Likewise.
3632         * config/libgloss.h: Likewise.
3633         * config/linux-aout.h: Likewise.
3634         * config/linux.h: Likewise.
3635         * config/lynx-ng.h: Likewise.
3636         * config/lynx.h: Likewise.
3637         * config/netbsd-aout.h: Likewise.
3638         * config/netbsd.h: Likewise.
3639         * config/netware.h: Likewise.
3640         * config/psos.h: Likewise.
3641         * config/ptx4.h: Likewise.
3642
3643 2002-09-28  Kazu Hirata  <kazu@cs.umass.edu>
3644
3645         * ChangeLog.4: Fix typos.
3646         * ChangeLog.6: Likewise.
3647         * FSFChangeLog.10: Likewise.
3648         * genattrtab.c: Fix comment typos.
3649         * haifa-sched.c: Likewise.
3650         * real.c: Likewise.
3651         * tree.h: Likewise.
3652         * config/arm/arm.c: Likewise.
3653         * config/arm/crti.asm: Likewise.
3654         * config/arm/crtn.asm: Likewise.
3655         * config/frv/frv.c: Likewise.
3656         * config/frv/frv.md: Likewise.
3657         * config/h8300/h8300.md: Likewise.
3658         * config/i386/rtemself.h: Likewise.
3659         * config/ia64/unwind-ia64.c: Likewise.
3660         * config/ip2k/ip2k.h: Likewise.
3661         * config/m88k/m88k.c: Likewise.
3662         * config/m88k/m88k.md: Likewise.
3663         * config/mips/sr71k.md: Likewise.
3664         * config/mmix/mmix.c: Likewise.
3665         * config/rs6000/rs6000.c: Likewise.
3666         * config/sh/sh.md: Likewise.
3667
3668 2002-09-26  Theodore A. Roth  <troth@verinet.com>
3669
3670         * config/avr/avr.c: Eliminate use of _PC_ in pc relative insns.
3671         * config/avr/avr.md: Ditto.
3672
3673 2002-09-27  Alexander N. Kabaev <ak03@gte.com>
3674
3675         PR preprocessor/8055
3676         * cppmacro.c (stringify_arg): Do not overflow the buffer
3677         with the terminating NUL when the argument to be stringified
3678         has no tokens.
3679
3680 2002-09-27  Richard Henderson  <rth@redhat.com>
3681
3682         * unroll.c (simplify_cmp_and_jump_insns): New.
3683         (unroll_loop): Use it.  Use simplify_gen_foo+force_operand
3684         instead of expand_simple_foo.
3685
3686 2002-09-27  Richard Henderson  <rth@redhat.com>
3687
3688         PR optimization/7520
3689         * cfganal.c (flow_active_insn_p): New.
3690         (forwarder_block_p): Use it.
3691
3692 2002-09-27  Richard Henderson  <rth@redhat.com>
3693
3694         * emit-rtl.c (active_insn_p): Revert last change.
3695
3696 2002-09-27  Jakub Jelinek  <jakub@redhat.com>
3697
3698         * doc/extend.texi (tls_model): Document.
3699         * varasm.c (decl_tls_model): New.
3700         * c-common.c (handle_tls_model_attribute): New.
3701         (c_common_attribute_table): Add tls_model.
3702         * config/alpha/alpha.c (alpha_encode_section_info): Use
3703         decl_tls_model.
3704         * flags.h (enum tls_model, flag_tls_default): Move...
3705         * tree.h (enum tls_model, flag_tls_default): ...here.
3706         (decl_tls_model): New prototype.
3707         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
3708         * config/i386/i386.c (ix86_encode_section_info): Likewise.
3709         * config/i386/i386.md (tls_global_dynamic, tls_local_dynamic_base):
3710         Allow !flag_pic.
3711
3712 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
3713
3714         * LANGUAGES: Follow spelling conventions.
3715         * rtl.def: Likewise.
3716         * sbitmap.c: Likewise.
3717         * sched-int.h: Likewise.
3718         * sched-rgn.c: Likewise.
3719         * sibcall.c: Likewise.
3720         * simplify-rtx.c: Likewise.
3721         * ssa.c: Likewise.
3722         * stab.def: Likewise.
3723         * stmt.c: Likewise.
3724         * stor-layout.c: Likewise.
3725         * target.h: Likewise.
3726         * timevar.c: Likewise.
3727         * toplev.c: Likewise.
3728         * tree-dump.c: Likewise.
3729         * tree-inline.c: Likewise.
3730         * tree.c: Likewise.
3731         * tree.def: Likewise.
3732         * tree.h: Likewise.
3733         * unroll.c: Likewise.
3734         * varasm.c: Likewise.
3735         * vmsdbgout.c: Likewise.
3736         * treelang/treelang.texi: Likewise.
3737         * treelang/treetree.c: Likewise.
3738
3739 2002-09-27  Kazu Hirata  <kazu@cs.umass.edu>
3740
3741         * config/h8300/h8300.c (compute_saved_regs): Use a macro
3742         instead of a hard register number.
3743         (get_shift_alg): Use an enumerated type instead of numbers.
3744         (h8300_shift_needs_scratch_p): Likewise.
3745
3746 2002-09-26  David S. Miller  <davem@redhat.com>
3747
3748         PR optimization/7335
3749         * calls.c (emit_library_call_value_1): Passing args by reference
3750         converts a CONST function into a PURE one.
3751
3752 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
3753
3754         * dbxout.c (FORCE_TEXT): Switch to current_function_decl, not
3755         text_section.
3756         * xcoffout.h (DBX_STATIC_BLOCK_START): Remove explicit change to
3757         text section.
3758         * config/rs6000/rs6000.c (rs6000_override_options): Allow
3759         function-sections and data-sections functionality on AIX.
3760
3761 2002-09-26  David Edelsohn  <edelsohn@gnu.org>
3762             Dale Johannesen  <dalej@apple.com>
3763
3764         * config/rs6000/rs6000.c (rs6000_emit_move): Insert zero-extend
3765         in RTL for sub-word loads from memory.
3766
3767 2002-09-26  Richard Henderson  <rth@redhat.com>
3768
3769         PR c/7160
3770         * sched-deps.c (sched_analyze_insn): Make clobber insns depend
3771         on call insns.
3772
3773 2002-09-26  Richard Henderson  <rth@redhat.com>
3774
3775         * emit-rtl.c (const_double_htab_eq): Remove unused variable.
3776
3777 2002-09-26  Chris Lattner  <sabre@nondot.org>
3778
3779         * ssa.c (rename_insn_1): Handle RENAME_NO_RTX correctly when
3780         handling undefined values.
3781
3782 2002-09-26  Richard Henderson  <rth@redhat.com>
3783
3784         PR opt/7520
3785         * emit-rtl.c (active_insn_p): Consider a clobber of the
3786         function return value to be active even after reload.
3787
3788 2002-09-27  Alan Modra  <amodra@bigpond.net.au>
3789
3790         * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
3791         by absolute loop increment, not loop increment.
3792
3793 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
3794
3795         * c-common.h: Follow spelling conventions.
3796         * cpplex.c: Likewise.
3797         * cpplib.h: Likewise.
3798         * gthr-dce.h: Likewise.
3799         * gthr-posix.h: Likewise.
3800         * optabs.c: Likewise.
3801         * output.h: Likewise.
3802         * profile.c: Likewise.
3803         * protoize.c: Likewise.
3804         * ra-rewrite.c: Likewise.
3805         * real.c: Likewise.
3806         * recog.c: Likewise.
3807         * reg-stack.c: Likewise.
3808         * regclass.c: Likewise.
3809         * regmove.c: Likewise.
3810         * reload.c: Likewise.
3811         * reload.h: Likewise.
3812         * reload1.c: Likewise.
3813         * reorg.c: Likewise.
3814         * resource.c: Likewise.
3815         * rtl.h: Likewise.
3816         * rtlanal.c: Likewise.
3817
3818 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
3819
3820         * config/ia64/ia64.c (ia64_expand_load_address): Ensure correct mode
3821         for symbol address.
3822
3823 2002-09-24  Eric Christopher  <echristo@redhat.com>
3824
3825         * config/mips/elf.h: Add HANDLE_SYSV_PRAGMA.
3826         * config/mips/elf64.h: Ditto.
3827
3828 2002-09-24  Eric Christopher  <echristo@redhat.com>
3829
3830         * except.c (expand_builtin_extract_return_address): Handle case
3831         where Pmode != ptr_mode.
3832
3833 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
3834
3835         * config/ia64/hpux.h (ASM_OUTPUT_EXTERNAL_LIBCALL): New
3836
3837 2002-09-26  Steve Ellcey  <sje@cup.hp.com>
3838
3839         * config/ia64/hpux.h (TARGET_DEFAULT): Include TARGET_ILP32.
3840
3841 2002-09-26  Igor Shevlyakov <igor@microunity.com>
3842
3843         * combine.c (simplify_set): Don't call to force_to_mode if size
3844         of integer type is larger than HOST_BITS_PER_WIDE_INT.
3845
3846 2002-09-26  Janis Johnson  <janis187@us.ibm.com>
3847
3848         * Makefile.in (qmtest-g++): Fix file path.
3849
3850 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
3851
3852         * expr.c (expand_expr) [MINUS_EXPR]: Convert A - const to
3853         A + (-const) on RTX level, even for unsigned types.
3854
3855 2002-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
3856
3857         * reload.c (dup_replacements): New function.
3858         (find_reloads): Use it to duplicate replacements at the top level
3859         of match_dup operands.
3860
3861 2002-09-26  Miles Bader  <miles@gnu.org>
3862
3863         * v850.md ("length"): Change default value to 4.
3864
3865 2002-09-26  Kazu Hirata  <kazu@cs.umass.edu>
3866
3867         * ChangeLog.1: Follow spelling conventions.
3868         * ChangeLog.4: Likewise.
3869         * ChangeLog.6: Likewise.
3870         * FSFChangeLog.11: Likewise.
3871         * doc/cpp.texi: Likewise.
3872         * doc/invoke.texi: Likewise.
3873         * doc/tm.texi: Likewise.
3874
3875 2002-09-26  Nick Clifton  <nickc@redhat.com>
3876
3877         * config.gcc: Add x prefix to v850e case for handling
3878         --with-cpu=v850e.
3879
3880 2002-09-25  David S. Miller  <davem@redhat.com>
3881
3882         PR target/7842
3883         * config/sparc/sparc.c (set_extends): SImode ASHIFT does not
3884         extend.
3885
3886 2002-09-25  Richard Henderson  <rth@redhat.com>
3887
3888         * emit-rtl.c (const_double_htab_eq): Distinguish integer and
3889         fp CONST_DOUBLE; use real_identical.
3890
3891 2002-09-25  Mark Mitchell  <mark@codesourcery.com>
3892
3893         * doc/invoke.texi: Add more -Wabi examples.
3894
3895 2002-09-25  Richard Sandiford  <rsandifo@redhat.com>
3896
3897         * config/mips/mips.h (TARGET_MIPS4100): Add missing bracket.
3898
3899 2002-09-24  Denis Chertykov  <denisc@overta.ru>
3900
3901         * config/ip2k/ip2k.c (function_epilogue): Fix wrong numbers in
3902         cases of optimizing "add sp,w" to "inc sp".
3903
3904 2002-09-24  Adam Nemet  <anemet@lnxw.com>
3905
3906         * config/arm/arm.c (thumb_unexpanded_epilogue): Don't generate
3907         epilogue for naked functions.
3908
3909 2002-09-24  Adam Nemet  <anemet@lnxw.com>
3910             Nick Clifton  <nickc@redhat.com>
3911
3912         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Remove.
3913         (FUNCTION_PROFILER): Only invoke THUMB_FUNCTION_PROFILER if it
3914         is defined.
3915
3916 2002-09-24  Ulrich Weigand  <uweigand@de.ibm.com>
3917
3918         * config/s390/s390.c (preferred_la_operand_p): New function.
3919         * config/s390/s390-protos.h (preferred_la_operand_p): Declare it.
3920         * config/s390/s390.md ("addaddr_esame", "*la_ccclobber"): Replace by ...
3921         ("*la_64_cc", "*la_31_cc", splitters): ... these.
3922         ("*la_31"): Deactivate for TARGET_64BIT.
3923         ("*la_31_and", "*la_31_and_cc"): New.
3924
3925 2002-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3926
3927         * real.h (real_value): Make `exp' explicitly signed.
3928
3929 2002-09-24  Kazu Hirata  <kazu@cs.umass.edu>
3930
3931         * config/elfos.h: Follow spelling conventions.
3932         * config/alpha/alpha.h: Likewise.
3933         * config/arc/arc.h: Likewise.
3934         * config/arm/arm.md: Likewise.
3935         * config/avr/avr.h: Likewise.
3936         * config/cris/cris.md: Likewise.
3937         * config/d30v/d30v.h: Likewise.
3938         * config/frv/frv.c: Likewise.
3939         * config/frv/frv.h: Likewise.
3940         * config/h8300/h8300.c: Likewise.
3941         * config/h8300/h8300.h: Likewise.
3942         * config/h8300/h8300.md: Likewise.
3943         * config/i386/cygwin.h: Likewise.
3944         * config/i386/i386.h: Likewise.
3945         * config/i386/sysv3.h: Likewise.
3946         * config/i960/i960.h: Likewise.
3947         * config/ia64/ia64.h: Likewise.
3948         * config/ia64/ia64.md: Likewise.
3949         * config/ip2k/ip2k.h: Likewise.
3950         * config/m32r/m32r.h: Likewise.
3951         * config/m68k/m68k.h: Likewise.
3952         * config/m88k/m88k.h: Likewise.
3953         * config/mcore/mcore.c: Likewise.
3954         * config/mcore/mcore.h: Likewise.
3955         * config/mcore/mcore.md: Likewise.
3956         * config/mips/mips.h: Likewise.
3957         * config/mmix/mmix.h: Likewise.
3958         * config/mmix/mmix.md: Likewise.
3959         * config/ns32k/netbsd.h: Likewise.
3960         * config/ns32k/ns32k.h: Likewise.
3961         * config/ns32k/ns32k.md: Likewise.
3962         * config/pa/pa.h: Likewise.
3963         * config/romp/romp.h: Likewise.
3964         * config/rs6000/rs6000.h: Likewise.
3965         * config/rs6000/rs6000.md: Likewise.
3966         * config/sparc/sparc.h: Likewise.
3967         * config/stormy16/stormy-abi: Likewise.
3968         * config/stormy16/stormy16.h: Likewise.
3969         * config/vax/vax.h: Likewise.
3970
3971 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
3972
3973         * version.c (version_string): Now const char[].
3974         * version.h: Update to match.
3975
3976 2002-09-23  Richard Henderson  <rth@redhat.com>
3977
3978         * config/i386/i386.h (MASK_ACCUMULATE_OUTGOING_ARGS_SET, MASK_MMX_SET,
3979         MASK_SSE_SET, MASK_SSE2_SET, MASK_3DNOW_SET, MASK_3DNOW_A_SET): Kill.
3980         (TARGET_SWITCHES): Don't reference them.
3981         * config/i386/i386.c (override_options): Use target_flags_explicit
3982         to examine bits set by the user.
3983
3984 2002-09-23  Dale Johannesen  <dalej@apple.com>
3985
3986         * dbxout.c (dbxout_parms):  Set current_sym_code for params
3987         passed on stack by invisible reference.
3988
3989 2002-09-23  Richard Earnshaw  <rearnsha@arm.com>
3990
3991         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Always allocate
3992         at least one byte of space.
3993
3994 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
3995
3996         * c-common.h (flag_abi_version): Fix typo in comment.
3997         * doc/invoke.texi (flag_abi_version): Document default value.
3998
3999 2002-09-23  Hans-Peter Nilsson  <hp@axis.com>
4000
4001         * doc/extend.texi (Extended Asm): Clarify that overlap between
4002         asm-declared register variables used in an asm and the asm clobber
4003         list is not allowed.
4004         * stmt.c (decl_conflicts_with_clobbers_p): New function.
4005         (expand_asm_operands): Keep track of clobbered registers.  Call
4006         decl_conflicts_with_clobbers_p for each input and output operand.
4007         If no conflicts found before, also do conflict sanity check when
4008         emitting clobbers.
4009
4010 2002-09-23  Richard Henderson  <rth@redhat.com>
4011
4012         * c-common.c (cpp_define_data_format): Remove.
4013         (cb_register_builtins): Don't define __WCHAR_BIT__, __SHRT_BIT__,
4014         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
4015         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
4016         * doc/cpp.texi: Don't document them either.
4017         (__SCHAR_MAX__, __SHRT_MAX__, __INT_MAX__, __LONG_MAX__,
4018         __LONG_LONG_MAX__): Document.
4019         (__TARGET_FLOAT_FORMAT__): Remove.
4020
4021 2002-09-23  Richard Henderson  <rth@redhat.com>
4022
4023         * real.c (do_multiply): Normalize U before addition.
4024
4025 2002-09-23  Mark Mitchell  <mark@codesourcery.com>
4026
4027         * c-common.c (flag_abi_version): New variable.
4028         * c-common.h (flag_abi_version): Declare it.
4029         * c-opts.c (missing_arg): Add -fabi-version.
4030         (c_common_decode_option): Process -fabi-version.
4031         * doc/invoke.texi (-fabi-version): Document it.
4032         (-Wabi): Add information about bit-fields in unions.
4033
4034 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
4035
4036         * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
4037         unless -fno-pic or -fno-PIC is specified.
4038
4039 2002-09-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4040
4041         * c-common.c (preprocessing_trad_p): Define.
4042         * pa-hiux.h, pa-hpux.h, pa-hpux7.h (CPP_PREDEFINES): Delete.
4043         (TARGET_OS_CPP_BUILTINS, SUBTARGET_SWITCHES): Define.
4044         * pa-hpux10.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
4045         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define.
4046         * pa-linux.h (CPP_PREDEFINES): Delete.
4047         (TARGET_OS_CPP_BUILTINS, CPP_SPEC): Define.
4048         * pa32-linux.h, pa64-linux.h (CPP_SPEC): Delete.
4049         * pa-osf.h, pa-pro-end.h, rtems.h (CPP_PREDEFINES): Delete.
4050         (TARGET_OS_CPP_BUILTINS): Define.
4051         * pa.h (MASK_SIO, TARGET_SIO, TARGET_PA_10): Define.
4052         (TARGET_SWITCHES): Reformat.  Use N_() macro.  Add SUBTARGET_SWITCHES.
4053         (SUBTARGET_SWITCHES): Provide default definition.
4054         (TARGET_OPTIONS): Reformat.  Use N_() macro.
4055         (CPP_PA10_SPEC, CPP_PA11_SPEC, CPP_PA20_SPEC, CPP_64BIT_SPEC,
4056         CPP_CPU_DEFAULT_SPEC, CPP_64BIT_DEFAULT_SPEC, SUBTARGET_EXTRA_SPECS,
4057         EXTRA_SPECS, CPP_SPEC, CPLUSPLUS_CPP_SPEC, CPP_PREDEFINES): Delete.
4058         (TARGET_CPU_CPP_BUILTINS): Define.
4059         (TARGET_OS_CPP_BUILTINS): Define for BSD-like systems.
4060         * doc/invoke.texi (msio, mwsio): Document new hppa options.
4061         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Document macro
4062         preprocessing_trad_p().
4063
4064 2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>
4065
4066         * doc/install.texi: Document behavior of --with-headers and
4067         --with-libs when arguments are omitted.
4068
4069 2002-09-22  Kazu Hirata  <kazu@cs.umass.edu>
4070
4071         * dbxout.c: Follow spelling conventions.
4072         * defaults.h: Likewise.
4073         * df.c: Likewise.
4074         * diagnostic.h: Likewise.
4075         * doloop.c: Likewise.
4076         * dwarf2out.c: Likewise.
4077         * dwarfout.c: Likewise.
4078         * emit-rtl.c: Likewise.
4079         * except.c: Likewise.
4080         * explow.c: Likewise.
4081         * expmed.c: Likewise.
4082         * expr.c: Likewise.
4083         * expr.h: Likewise.
4084         * flags.h: Likewise.
4085         * flow.c: Likewise.
4086         * fold-const.c: Likewise.
4087         * function.c: Likewise.
4088         * function.h: Likewise.
4089         * gcc.c: Likewise.
4090         * gcov-io.h: Likewise.
4091         * gcov.c: Likewise.
4092         * gcse.c: Likewise.
4093         * genattrtab.c: Likewise.
4094         * genconfig.c: Likewise.
4095         * genrecog.c: Likewise.
4096         * ggc-page.c: Likewise.
4097         * ggc.h: Likewise.
4098         * global.c: Likewise.
4099         * gthr-win32.h: Likewise.
4100         * integrate.c: Likewise.
4101         * jump.c: Likewise.
4102         * langhooks.c: Likewise.
4103         * langhooks.h: Likewise.
4104         * line-map.h: Likewise.
4105         * local-alloc.c: Likewise.
4106         * longlong.h: Likewise.
4107         * loop.c: Likewise.
4108         * loop.h: Likewise.
4109
4110 Tue Aug 27 22:26:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
4111
4112         * i386.h (BIGGEST_FIELD_ALIGNMENT): Set proper default for x86_64.
4113
4114 Tue Aug 27 20:07:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
4115
4116         * i386.c (overwrite_options): Set -mpreferred-stack-boundary to 128
4117         for -Os/TARGET_64BIT too.
4118
4119 2002-09-21  Kazu Hirata  <kazu@cs.umass.edu>
4120
4121         * ChangeLog: Follow spelling conventions.
4122         * ChangeLog.0: Likewise.
4123         * ChangeLog.1: Likewise.
4124         * ChangeLog.2: Likewise.
4125         * ChangeLog.3: Likewise.
4126         * ChangeLog.4: Likewise.
4127         * ChangeLog.5: Likewise.
4128         * ChangeLog.6: Likewise.
4129         * FSFChangeLog.10: Likewise.
4130         * FSFChangeLog.11: Likewise.
4131         * alias.c: Likewise.
4132         * basic-block.h: Likewise.
4133         * c-aux-info.c: Likewise.
4134         * c-common.c: Likewise.
4135         * c-common.h: Likewise.
4136         * c-decl.c: Likewise.
4137         * c-format.c: Likewise.
4138         * c-semantics.c: Likewise.
4139         * c-typeck.c: Likewise.
4140         * calls.c: Likewise.
4141         * cfganal.c: Likewise.
4142         * cfgloop.c: Likewise.
4143         * collect2.c: Likewise.
4144         * combine.c: Likewise.
4145         * conflict.c: Likewise.
4146         * cppexp.c: Likewise.
4147         * cppfiles.c: Likewise.
4148         * cpphash.h: Likewise.
4149         * cppinit.c: Likewise.
4150         * cpplex.c: Likewise.
4151         * cpplib.c: Likewise.
4152         * cpplib.h: Likewise.
4153         * cppmacro.c: Likewise.
4154         * cse.c: Likewise.
4155
4156 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
4157
4158         * netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): New, takes old definition of
4159         LINK_SPEC.
4160         (LINK_SPEC): Define to NETBSD_LINK_SPEC_AOUT.
4161         * arm/netbsd.h (SUBTARGET_EXTRA_SEPCS): Add NETBSD_LINK_SPEC_AOUT.
4162         (LINK_SPEC): Rework to use NETBSD_LINK_SPEC_AOUT).
4163
4164 2002-09-21  Richard Earnshaw  <rearnsha@arm.com>
4165
4166         PR opt/7930
4167         * cse.c (fold_rtx): Calculate old_cost before we fold each
4168         operand.
4169
4170 2002-09-21  Richard Henderson  <rth@redhat.com>
4171
4172         * c-common.c (cpp_define_data_format): Remove __GCC_LITTLE_ENDIAN__,
4173         __GCC_BIG_ENDIAN__, __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
4174         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
4175         __TARGET_USES_VAX_F_FLOAT__, __TARGET_USES_VAX_D_FLOAT__,
4176         __TARGET_USES_VAX_G_FLOAT__, __TARGET_USES_VAX_H_FLOAT__.
4177         * doc/cpp.texi: Don't document them.
4178
4179 2002-09-21  Richard Henderson  <rth@redhat.com>
4180
4181         * c-common.c (builtin_define_float_constants): Use real_format
4182         to get the floating-point parameters.
4183
4184 2002-09-21  Richard Henderson  <rth@redhat.com>
4185
4186         * real.c (struct real_format): Move to real.h.
4187         (real_format_for_mode): Rename from fmt_for_mode; update all users;
4188         initialize with ieee defaults.
4189         (real_to_target_fmt, real_from_target_fmt): New.
4190         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
4191         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4192         ieee_quad_format, i370_single_format, i370_double_format,
4193         c4x_single_format, c4x_extended_format): Rename from s/_format//.
4194         (ieee_quad_format): Fix emin.
4195         (format_for_size, init_real_once): Remove.
4196         * real.h (struct real_format): Move from real.c.
4197         (real_format_for_mode): Declare.
4198         (real_to_target_fmt, real_from_target_fmt): Declare.
4199         (ieee_single_format, ieee_double_format, ieee_extended_motorola_format,
4200         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4201         ieee_quad_format, vax_f_format, vax_d_format, vax_g_format,
4202         i370_single_format, i370_double_format, c4x_single_format,
4203         c4x_extended_format): Declare.
4204         * toplev.c (do_compile): Don't call init_real_once.
4205
4206         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
4207         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Remove.
4208
4209         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Define.
4210         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): 64, if vax mode.
4211         * config/alpha/alpha.c (override_options): Set real_format_for_mode
4212         for VAX, if enabled.
4213
4214         * config/c4x/c4x.c (c4x_override_options): Set real_format_for_mode
4215         for C4X.
4216
4217         * config/i370/i370.h (OVERRIDE_OPTIONS): New.
4218         * config/i370/i370.c (override_options): New.
4219         * config/i370/i370-protos.h: Update.
4220
4221         * config/i386/i386.c (override_options): Set real_format_for_mode
4222         for Intel 80-bit extended.
4223         * config/i386/i386.h (INTEL_EXTENDED_IEEE_FORMAT): Remove.
4224
4225         * config/i960/i960.h (LONG_DOUBLE_TYPE_SIZE): Mind -mlong-double-64.
4226         (OVERRIDE_OPTIONS): Move code...
4227         * config/i960/i960.c (i960_initialize): ... here.  Set
4228         real_format_for_mode for Intel 80-bit extended.
4229
4230         * config/ia64/ia64.c (ia64_override_options): Set real_format_for_mode
4231         for Intel 80-bit extended, if enabled.
4232
4233         * config/m68k/m68k.c (override_options): Set real_format_for_mode
4234         for Motorola 96-bit extended.
4235
4236         * config/vax/vax.h (OVERRIDE_OPTIONS): New.
4237         * config/vax/vax.c (override_options): New.
4238         * config/vax/vax-protos.h: Update.
4239
4240 2002-09-21  Alan Modra  <amodra@bigpond.net.au>
4241
4242         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Add
4243         #if TARGET_MACHO.
4244
4245         * config/rs6000/rs6000.md (floatdisf2_internal2): Combine
4246         insns.  Supply missing clobber of scratch reg.
4247
4248 2002-09-20  Kazu Hirata  <kazu@cs.umass.edu>
4249
4250         * config/m32r/m32r.c: Follow spelling conventions.
4251         * config/m32r/m32r.h: Likewise.
4252         * config/m32r/m32r.md: Likewise.
4253         * config/m68k/m68k.c: Likewise.
4254         * config/m88k/m88k.c: Likewise.
4255         * config/mcore/mcore.c: Likewise.
4256         * config/mips/mips.c: Likewise.
4257         * config/mips/mips.h: Likewise.
4258         * config/mmix/mmix.c: Likewise.
4259         * config/mn10200/mn10200.c: Likewise.
4260         * config/ns32k/ns32k.h: Likewise.
4261         * config/pa/pa.c: Likewise.
4262         * config/pa/pa64-linux.h: Likewise.
4263         * config/pdp11/pdp11.h: Likewise.
4264         * config/romp/romp.c: Likewise.
4265         * config/romp/romp.h: Likewise.
4266         * config/rs6000/eabi.asm: Likewise.
4267         * config/rs6000/linux64.h: Likewise.
4268         * config/rs6000/rs6000.c: Likewise.
4269         * config/rs6000/rs6000.h: Likewise.
4270         * config/rs6000/rs6000.md: Likewise.
4271         * config/rs6000/sysv4.h: Likewise.
4272         * config/rs6000/xcoff.h: Likewise.
4273
4274 2002-09-20  Jim Wilson  <wilson@redhat.com>
4275
4276         * config/v850/v850/lib1funcs.asm (__muldi3): Change r5 to r28.
4277
4278 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
4279
4280         * config/i386/i386.md (UNSPEC_GOTNTPOFF, UNSPEC_INDNTPOFF): New.
4281         * config/i386/i386.c (legitimate_pic_address_disp_p): Handle
4282         UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF like UNSPEC_GOTTPOFF.
4283         (legitimate_address_p): Likewise.
4284         (legitimize_address): Use @gotntpoff and @indntpoff.
4285         (output_pic_addr_const): Handle UNSPEC_GOTNTPOFF and UNSPEC_INDNTPOFF.
4286         (output_addr_const_extra): Likewise.
4287
4288 2002-09-20  Jim Wilson  <wilson@redhat.com>
4289
4290         * combine.c (try_combine): When split an instruction pair, where the
4291         first has a sign_extend src, verify that the src and dest modes match.
4292
4293 2002-09-20  Richard Henderson  <rth@redhat.com>
4294
4295         * config/mips/mips.c (dfhigh, dflow, sfhigh, sflow): Remove.
4296         (override_options): Do not initialize them.
4297         (mips_const_double_ok): Allow no fp constants except zero,
4298         and not even that for mips16.
4299         (const_float_1_operand): Use dconst1.
4300         * config/mips/mips.md (movsf, movsf_internal1, movsf_internal2,
4301         movdf, movdf_internal1, movdf_internal1a, movdf_internal2):
4302         Don't allow arbitrary constants; fix predicates and C constraint.
4303
4304 2002-09-20  Neil Booth  <neil@daikokuya.co.uk>
4305
4306         * cppmacro.c: Don't warn about function-like macros without
4307         '(' during pre-expansion.
4308
4309 2002-09-20  Jim Wilson  <wilson@redhat.com>
4310
4311         * config/v850/v850.c (current_function_anonymous_args): Delete.
4312         (expand_prologue): Use current_function_args_info.anonymous_args.
4313         (expand_epilogue): Delete use of current_function_anonymous_args.
4314         * config/v850/v850.h (struct cum_arg): Add anonymous_args field.
4315         (INIT_CUMULATIVE_ARGS): Clear anonymous_args field.
4316         (current_function_anonymous_args): Delete extern declaration.
4317         (SETUP_INCOMING_VARARGS): Set anonymous_args field.
4318
4319 2002-09-20  Geoffrey Keating  <geoffk@apple.com>
4320
4321         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update for change
4322         to load_macho_picbase.
4323         * config/rs6000/rs6000.md: Document Darwin-specific unspec IDs.
4324         (load_macho_picbase): Take the symbol to use as a parameter.
4325         (macho_correct_pic): New insn.
4326         (builtin_setjmp_reciever): On Darwin, restore the PIC register.
4327
4328         * config/rs6000/rs6000.h (ELIMINABLE_REGS): Use
4329         RS6000_PIC_OFFSET_TABLE_REGNUM rather than hardcoding 30.
4330         (CAN_ELIMINATE): Likewise.
4331         (INITIAL_ELIMINATION_OFFSET): Likewise.
4332         (TOC_REGISTER): Likewise.
4333
4334 2002-09-20  Richard Henderson  <rth@redhat.com>
4335
4336         * real.c (real_hash): New.
4337         * real.h: Declare it.
4338         * cse.c (canon_hash): Use it.
4339         * cselib.c (hash_rtx): Likewise.
4340         * emit-rtl.c (const_double_htab_hash): Likewise.
4341         * rtl.h (CONST_DOUBLE_REAL_VALUE): New.
4342         * varasm.c (struct rtx_const): Reduce vector size; separate
4343         integer and fp vectors.
4344         (HASHBITS): Remove.
4345         (const_hash_1): Rename from const_hash.  Use real_hash.  Do not
4346         take modulus MAX_HASH_TABLE.
4347         (const_hash): New.  Do take modulus MAX_HASH_TABLE.
4348         (output_constant_def): Do not take modulus MAX_HASH_TABLE.
4349         (SYMHASH): Don't use HASHBITS.
4350         (decode_rtx_const): Copy only active bits from REAL_VALUE_TYPE.
4351         Fix CONST_VECTOR thinko wrt fp vectors.  Fix kind comparison.
4352         (simplify_subtraction): Fix kind comparison.
4353         (const_hash_rtx): Return unsigned int.  Don't use HASHBITS.
4354         Use a union to pun integer array.
4355         * config/rs6000/rs6000.c (rs6000_hash_constant): Use real_hash;
4356         only hash two words of integral CONST_DOUBLE.
4357
4358 2002-09-20  Steve Ellcey  <sje@cup.hp.com>
4359
4360         * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
4361         (STARTFILE_PREFIX_SPEC): New.
4362         (LINK_SPEC): Modify.
4363         (LIB_SPEC): Modify.
4364         (LIBGCC_SPEC): New.
4365
4366 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
4367
4368         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
4369         UNSPEC_NTPOFF and UNSPEC_DTPOFF to be offsetted by constant.
4370
4371 2002-09-20  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
4372
4373         * config/arm/arm.md (sign_extract_onebit, not_signextract_onebit):
4374         Add clobber of the condition code register.
4375
4376 2002-09-20  Richard Henderson  <rth@redhat.com>
4377
4378         * real.c (do_fix_trunc): Static.
4379         (encode_ieee_single, encode_ieee_double, encode_ieee_extended,
4380         encode_ieee_quad, encode_vax_f, encode_vax_d, encode_vax_g,
4381         encode_i370_single, encode_i370_double, encode_c4x_single,
4382         encode_c4x_extended): Add default abort case.
4383
4384 2002-09-20  Richard Henderson  <rth@redhat.com>
4385
4386         * real.h (enum real_value_class, SIGNIFICAND_BITS, EXP_BITS,
4387         MAX_EXP, SIGSZ, SIG_MSB, struct real_value): Move from real.c.
4388         (struct realvaluetype): Remove.
4389         (REAL_VALUE_TYPE): Use struct real_value.
4390         (REAL_VALUE_TYPE_SIZE): Use SIGNIFICAND_BITS.
4391         (test_real_width): New.
4392         * real.c: Global replace struct real_value with REAL_VALUE_TYPE.
4393         (real_arithmetic): Avoid hoops for REAL_VALUE_TYPE parameters.
4394         (real_compare, real_exponent, real_ldexp, real_isinf, real_isnan,
4395         real_isneg, real_isnegzero, real_identical, exact_real_inverse,
4396         real_to_integer, real_to_integer2, real_to_decimal,
4397         real_to_hexadecimal, real_from_string, real_from_integer,
4398         real_inf, real_nan, real_2expN, real_convert, real_to_target,
4399         real_from_target): Likewise.
4400         * tree.h (struct tree_real_cst): Use real_value not realvaluetype.
4401         * gengtype-yacc.y (bitfieldopt): Accept an ID as well.
4402
4403 2002-09-20  Richard Henderson  <rth@redhat.com>
4404
4405         * real.h (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT,
4406         IBM_FLOAT_FORMAT, C4X_FLOAT_FORMAT, TARGET_FLOAT_FORMAT): Move ...
4407         * defaults.h: ... here.
4408         * config/arm/arm.h, config/avr/avr.h, config/d30v/d30v.h,
4409         config/fr30/fr30.h, config/frv/frv.h, config/ia64/ia64.h,
4410         config/ip2k/ip2k.h, config/mips/mips.h, config/stormy16/stormy16.h,
4411         config/xtensa/xtensa.h (TARGET_FLOAT_FORMAT): Remove.
4412
4413 2002-09-20  Hans-Peter Nilsson  <hp@bitrange.com>
4414
4415         * config/mmix/mmix.md ("negdf2"): Rewrite.
4416         ("*expanded_negdf2"): New.
4417
4418 2002-09-19  Jim Wilson  <wilson@redhat.com>
4419
4420         * combine.c (simplify_set): When optimizing a subreg src with a
4421         cc0 dest, use GET_MODE (src) for mask instead of inner_mode.
4422
4423 2002-09-19  Dale Johannesen <dalej@apple.com>
4424         * combine.c (make_extraction): Don't create
4425         invalid subreg.
4426
4427 2002-09-19  Ulrich Weigand  <uweigand@de.ibm.com>
4428
4429         * config/s390/s390.c (addr_generation_dependency_p): Handle SUBREG
4430         and STRICT_LOW_PART within SET_DEST.
4431         * config/s390/s390.md ("*extractqi", "*extracthi"): New insns with
4432         splitters, replacing pre-reload splitters.
4433         ("*zero_extendhisi2_31", "*zero_extendqisi2_31",
4434         "*zero_extendqihi2_31"): New insns.
4435         ("*zero_extendqihi2_64"): Do not clobber CC.
4436
4437 2002-09-19  Steve Ellcey  <sje@cup.hp.com>
4438
4439         * config/ia64/hpux.h (CTORS_SECTION_ASM_OP): New.
4440         (DTORS_SECTION_ASM_OP): Ditto.
4441         (READONLY_DATA_SECTION_ASM_OP): Moved.
4442         (DATA_SECTION_ASM_OP): New.
4443         (SDATA_SECTION_ASM_OP): New.
4444         (BSS_SECTION_ASM_OP): New.
4445         (SBSS_SECTION_ASM_OP): New.
4446         (TEXT_SECTION_ASM_OP): New.
4447
4448 2002-09-19  Kazu Hirata  <kazu@cs.umass.edu>
4449
4450         * config/fp-bit.c: Follow spelling conventions.
4451         * config/d30v/d30v.c: Likewise.
4452         * config/d30v/d30v.h: Likewise.
4453         * config/fr30/fr30.c: Likewise.
4454         * config/fr30/fr30.h: Likewise.
4455         * config/fr30/fr30.md: Likewise.
4456         * config/frv/frv.c: Likewise.
4457         * config/frv/frv.h: Likewise.
4458         * config/h8300/h8300.c: Likewise.
4459         * config/h8300/lib1funcs.asm: Likewise.
4460         * config/i370/i370.c: Likewise.
4461         * config/i386/i386.h: Likewise.
4462         * config/i386/i386.md: Likewise.
4463         * config/i386/pentium.md: Likewise.
4464         * config/i386/winnt.c: Likewise.
4465         * config/i960/i960.c: Likewise.
4466         * config/ia64/ia64.h: Likewise.
4467         * config/ip2k/ip2k.c: Likewise.
4468         * config/ip2k/ip2k.h: Likewise.
4469         * config/ip2k/ip2k.md: Likewise.
4470         * config/ip2k/libgcc.S: Likewise.
4471
4472 2002-09-19  Stephen Clarke <stephen.clarke@superh.com>
4473
4474         * config/sh/sh.h (UNSPEC_GOTOFF_P): Define.
4475         (GOTOFF_P): Extend to allow gotoff plus constant.
4476
4477 2002-09-18  Richard Henderson  <rth@redhat.com>
4478
4479         * ifcvt.c (noce_process_if_block): Correctly detect X modified
4480         with INSN_B before COND_EARLIEST.  Don't check A and B for
4481         modification in condition range.  Reorder INSN_B for A==B properly.
4482         (if_convert): Iterate until no matches for a block.
4483
4484 2002-09-18  Richard Henderson  <rth@redhat.com>
4485
4486         * calls.c (store_one_arg): Rename default_align to parm_align;
4487         always adjust parm_align for downward padding.
4488
4489 2002-09-18  Richard Henderson  <rth@redhat.com>
4490
4491         * toplev.c (backend_init): Move init_real_once invocation ...
4492         (do_compile): ... here.
4493
4494 2002-09-18  Richard Henderson  <rth@redhat.com>
4495
4496         * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
4497         RTX_UNCHANGING_P markers for successful tail-recursive replacement.
4498
4499 2002-09-18  Richard Henderson  <rth@redhat.com>
4500
4501         * real.c (round_for_format): Collect sticky as unsigned long, not bool.
4502
4503 2002-09-19  Alan Modra  <amodra@bigpond.net.au>
4504
4505         * config/rs6000/rs6000.md: (floatdisf2): Rename to
4506         floatdisf2_internal1.
4507         (floatdisf2): New define_expand.
4508         (floatdisf2_internal2): Likewise.
4509
4510 2002-09-18  Richard Henderson  <rth@redhat.com>
4511
4512         * real.c (sticky_rshift_significand): Collect sticky as
4513         unsigned long, not bool.
4514
4515 2002-09-18  Ulrich Weigand  <uweigand@de.ibm.com>
4516
4517         * config/s390/s390.c (s390_address_cost): New function.
4518         config/s390/s390-protos.h (s390_address_cost): Add prototype.
4519         config/s390/s390.h (ADDRESS_COST): Call s390_address_cost.
4520         (RTX_COST): Use COSTS_N_INSNS.
4521
4522 2002-09-18  Douglas Rupp  <rupp@gnat.com>
4523             Donn Terry  <donnte@microsoft.com>
4524
4525         * stor-layout.c (place_field): Handle alignment of whole
4526         structures when MSVC compatible bitfields are involved.
4527         Change method of computing location of MS bitfields to
4528         be compatible with #pragma pack(n).
4529
4530         * tree.h (record_layout_info): Add new field
4531         remaining_in_alignment.
4532
4533         * doc/tm.texi: (TARGET_MS_BITFIELD_LAYOUT_P): Update.
4534         (pragma pack): Add paragraph on MSVC bit-field packing.
4535
4536 2002-09-18  Richard Earnshaw  (reanrsha@arm.com)
4537
4538         PR optimization/7967
4539         * arm.md (ne_zeroextractsi): Add clobber of the condition code
4540         register.
4541
4542 2002-09-18  Kazu Hirata  <kazu@cs.umass.edu>
4543
4544         * config/s390/s390.c: Follow spelling conventions.
4545         * config/sh/lib1funcs.asm: Likewise.
4546         * config/sh/sh.c: Likewise.
4547         * config/sh/sh.h: Likewise.
4548         * config/sparc/sparc.c: Likewise.
4549         * config/sparc/sparc.h: Likewise.
4550         * config/sparc/sparc.md: Likewise.
4551         * config/stormy16/stormy16.c: Likewise.
4552         * config/stormy16/stormy16.h: Likewise.
4553         * config/v850/v850.c: Likewise.
4554         * config/v850/v850.h: Likewise.
4555         * config/vax/vax.c: Likewise.
4556         * config/vax/vax.h: Likewise.
4557
4558 2002-09-18  Nick Clifton  <nickc@redhat.com>
4559
4560         * config/rs60000/rs6000.c (rs6000_emit_move): Handle V1DImode moves.
4561         * config/rs60000/rs6000.c (SPE_VECTOR_MODE): Include V1DImode.
4562         * config/rs6000/spe.md (movv1di, movv1di_internal): New patterns.
4563
4564 2002-09-17  Zack Weinberg  <zack@codesourcery.com>
4565
4566         * ABOUT-GCC-NLS: Remove reference to enquire, and out-of-date
4567         statement that the only translation is to en_UK.
4568
4569 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
4570
4571         * config/alpha/alpha.c: Follow spelling conventions.
4572         * config/alpha/alpha.h: Likewise.
4573         * config/alpha/alpha.md: Likewise.
4574         * config/arc/arc.h: Likewise.
4575         * config/arm/arm.c: Likewise.
4576         * config/arm/arm.h: Likewise.
4577         * config/arm/arm.md: Likewise.
4578         * config/arm/pe.c: Likewise.
4579         * config/arm/unknown-elf.h: Likewise.
4580         * config/avr/avr.c: Likewise.
4581         * config/avr/avr.h: Likewise.
4582         * config/c4x/c4x.c: Likewise.
4583         * config/cris/cris.c: Likewise.
4584         * config/cris/cris.h: Likewise.
4585
4586 2002-09-17  Samuel Figueroa  <figueroa@apple.com>
4587
4588         * final.c (final_scan_insn): Use new macro ASM_OUTPUT_ALIGN_WITH_NOP.
4589         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP) New macro.
4590         * doc/tm.texi (ASM_OUTPUT_ALIGN_WITH_NOP) New description.
4591
4592 2002-09-17  Dale Johannesen  <dalej@apple.com>
4593
4594         * cfgcleanup.c (try_forward_edges):  Do not forward a
4595         branch to just after a loop exit before loop optimization;
4596         this interfered with doloop detection.
4597
4598 2002-09-17  Nick Clifton  <nickc@redhat.com>
4599
4600         * config/arm/arm.c (output_return_instruction): Do not
4601         writeback the stack pointer when it is being loaded.
4602         (arm_output_epilogue): Likewise.
4603
4604 2002-09-17  Kazu Hirata  <kazu@cs.umass.edu>
4605
4606         * optabs.c (prepare_cmp_insn): Let emit_library_call_value
4607         generate a pseudo reg that receives the result of a libcall.
4608         (prepare_float_lib_cmp): Likewise.
4609
4610 2002-09-17  Steve Ellcey  <sje@cup.hp.com>
4611
4612         * config/ia64/elf.h: Remove CPP_PREDEFINES.
4613
4614 Tue Sep 17 13:58:04 2002  Nicola Pero  <n.pero@mi.flashnet.it>
4615
4616         Fix PR/7014 and related objc bugs:
4617         * c-typeck.c (comp_target_types): Added a reflexive argument.
4618         Pass it to ObjC when/if calling objc_comptypes().  Updated all
4619         callers to provide the appropriate reflexive argument.
4620         * objc/objc-act.c (objc_comptypes): Carefully checked and fixed
4621         typechecking for all cases of comparisons and assignments,
4622         particularly the obscure and less common ones involving protocols.
4623
4624 2002-09-17  Nick Clifton  <nickc@redhat.com>
4625
4626         * machmode.def (V1DImode): New mode.  A single element vector.
4627         * tree.h (TI_UV1DI_TYPE, TI_V1DI_TYPE): New tree_index enums.
4628         (unsigned_V1DI_type_node, V1D1_type_node): New type nodes.
4629         * tree.c (build_common_tree_nodes_2): Build
4630         unsigned_V1DI_type_node and V1D1_type_node.
4631         * c-common.c (c_common_type_for_mode): Return
4632         unsigned_V1DI_type_node or V1D1_type_node for V1DImode.
4633         * rtl.c (class_narrowest_): Start integer vector nodes with V1DImode.
4634
4635 Tue Sep 17 13:40:13 2002  Nicola Pero  <n.pero@mi.flashnet.it>
4636
4637         * doc/objc.texi (Constant string objects): Extended documentation
4638         to make clear that the constant string class ivar layout is
4639         completely fixed.
4640
4641 2002-09-17  Roger Sayle  <roger@eyesopen.com>
4642
4643         * cfgrtl.c (flow_delete_block_noexpunge): Delete orphaned
4644         NOTE_INSN_LOOP_CONT notes when deleting basic blocks.
4645
4646 2002-09-16  Richard Henderson  <rth@redhat.com>
4647
4648         * expr.c (emit_block_move): Set memory block size as appropriate
4649         for the copy.
4650
4651 2002-09-16  Richard Henderson  <rth@redhat.com>
4652
4653         PR fortran/3924
4654         * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol.
4655
4656 2002-09-16  Richard Henderson  <rth@redhat.com>
4657
4658         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust SIZE
4659         as well as OFFSET for BITPOS.
4660
4661 2002-09-16  Jeff Garzik  <jgarzik@mandrakesoft.com>
4662
4663         * config.gcc: Treat winchip_c6-*|winchip2-*|c3-* as pentium-mmx.
4664         * config/i386/i386.c (processor_alias_table): Add winchip-c6,
4665         winchip2 and c3.
4666         * doc/invoke.texi: Mention new aliases.
4667
4668 2002-09-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4669
4670         * calls.c (store_one_arg): Set default alignment for BLKmode arguments
4671         to BITS_PER_UNIT when ARGS_GROW_DOWNWARD and the padding direction is
4672         downward.
4673         * function.c (pad_below):  Always compile.
4674         (locate_and_pad_parm): If defined ARGS_GROW_DOWNWARD, pad argument to
4675         alignment when it is not in a register or REG_PARM_STACK_SPACE is true.
4676         Pad below when the argument is not in a register and the padding
4677         direction is downward.
4678
4679         * pa-64.h (MUST_PASS_IN_STACK): Move define to pa.h.
4680         (PAD_VARARGS_DOWN): Define.
4681         * pa.c (function_arg_padding): Revise padding directions to make them
4682         compatible with the 32 and 64-bit runtime architecture documentation.
4683         (hppa_va_arg):  Add code to handle variable and size zero arguments
4684         passed by reference on TARGET_64BIT.  Reformat.
4685         (function_arg): Use a PARALLEL for BLKmode and aggregates args on
4686         TARGET_64BIT.  Use a DImode PARALLEL for BLKmode args 5 to 8 bytes
4687         wide when !TARGET_64BIT.  Move forward check for mode==VOIDmode.
4688         Add comments.
4689         * pa.h (MAX_PARM_BOUNDARY): Correct define for TARGET_64BIT.
4690         (RETURN_IN_MEMORY): Return size zero types in memory.
4691         (FUNCTION_VALUE): Return TFmode in general registers.
4692         (MUST_PASS_IN_STACK): Define.
4693         (FUNCTION_ARG_BOUNDARY): Simplify.
4694         (FUNCTION_ARG_PASS_BY_REFERENCE): Pass variable and zero sized types
4695         by reference.
4696         (FUNCTION_ARG_CALLEE_COPIES): Define to FUNCTION_ARG_PASS_BY_REFERENCE.
4697
4698 2002-09-16  Richard Henderson  <rth@redhat.com>
4699
4700         * real.c (do_fix_trunc): New.
4701         (real_arithmetic): Call it.
4702         * simplify-rtx.c (simplify_unary_operation): Handle FIX
4703         with a floating-point result mode.
4704
4705 2002-09-16  Richard Henderson  <rth@redhat.com>
4706
4707         * builtin-types.def (BT_FN_FLOAT_CONST_STRING): New.
4708         (BT_FN_DOUBLE_CONST_STRING, BT_FN_LONG_DOUBLE_CONST_STRING): New.
4709         * builtins.def (__builtin_nan, __builtin_nanf, __builtin_nanl): New.
4710         (__builtin_nans, __builtin_nansf, __builtin_nansl): New.
4711         * builtins.c (fold_builtin_nan): New.
4712         (fold_builtin): Call it.
4713         * real.c (real_nan): Parse a non-empty string.
4714         (round_for_format): Fix NaN significand truncation.
4715         * real.h (real_nan): Return bool.
4716         * doc/extend.texi: Document new builtins.
4717
4718 2002-09-16  Jason Merrill  <jason@redhat.com>
4719             Danny Smith  <dannysmith@users.sourceforge.net>
4720
4721         * config/i386/winnt.c (ix86_handle_dll_attribute): Set
4722         DECL_EXTERN and TREE_PUBLIC for dllimported variables here...
4723         (i386_pe_mark_dllimport): Not here.
4724
4725 2002-09-16  Nathan Sidwell  <nathan@codesourcery.com>
4726
4727         * c-semantics.c (genrtl_do_stmt): Cope with NULL cond.
4728
4729 2002-09-16  Geoffrey Keating  <geoffk@redhat.com>
4730
4731         * config/rs6000/rs6000.c (build_mask64_2_operands): Suppress
4732         warnings about unused operands when HOST_BITS_PER_WIDE_INT is
4733         < 64.
4734         (rs6000_emit_cmove): Use real_isinf not target_isinf.
4735
4736 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
4737
4738         * calls.c (emit_library_call_value_1): Don't refer to
4739         hard_libcall_value.
4740         * optabs.c (prepare_float_lib_cmp): Likewise.
4741
4742 2002-09-16  Geoffrey Keating  <geoffk@apple.com>
4743
4744         * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name
4745         mangling.
4746
4747         The following changes are merged from pch-branch:
4748
4749         * doc/gty.texi (GTY Options): Document %a.
4750         * gengtype.c (do_scalar_typedef): New function.
4751         (process_gc_options): Handle `length' option.
4752         (set_gc_used_type): A pointer to an array of structures doesn't
4753         qualify as a pointer to a structure.
4754         (output_escaped_param): Add `%a' escape.
4755         (write_gc_structure_fields): Allow 'desc' on array of unions.
4756         (main): Define `uint8', `jword' and `JCF_u2' as scalars; use
4757         do_scalar_typedef.
4758
4759         * gengtype.c (enum rtx_code): Make global.
4760         (rtx_format): Make global.
4761         (rtx_next): New.
4762         (gen_rtx_next): New.
4763         (write_rtx_next): New.
4764         (adjust_field_rtx_def): Skip fields marked by chain_next.
4765         (open_base_files): Delete redundant prototype.
4766         (write_enum_defn): New.
4767         (output_mangled_typename): Correct abort call.
4768         (write_gc_marker_routine_for_structure): Handle chain_next and
4769         chain_prev options.
4770         (finish_root_table): Don't output redundant \n.
4771         (main): Call gen_rtx_next, write_rtx_next, write_enum_defn.
4772         * c-tree.h (union lang_tree_node): Add chain_next option.
4773
4774         * gengtype.h (NUM_PARAM): New definition.
4775         (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters.
4776         * gengtype.c (find_param_structure): New.
4777         (adjust_field_type): Handle param<n>_is option.
4778         (process_gc_options): Detect use_params option.  Update callers.
4779         (set_gc_used_type): Add 'param' parameter, update callers.  Handle
4780         'use_params' option.
4781         (open_base_files): Add splay-tree.h to list of files included.
4782         (output_mangled_typename): New.
4783         (write_gc_structure_fields): Update 'param' parameter to support
4784         multiple parameters.  Change name mangling.  Allow parameterized
4785         fields to have an apparent scalar type.  Handle param<n>_is options,
4786         use_param option.
4787         (write_gc_marker_routine_for_structure): Update for change to name
4788         mangling.  Better guess the output file for parameterized types.
4789         (write_gc_types): Update for change to name mangling.
4790         (write_gc_root): Update for change to name mangling.  Handle (ignore)
4791         param<n>_is options.
4792         * doc/gty.texi (GTY Options): Add description of param<n>_is
4793         options, use_params option.
4794         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
4795         * gengtype-lex.l: Produce token for param<n>_is.
4796         * gengtype-yacc.y: Parse param<n>_is.
4797
4798         * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'.
4799
4800         * rtl.c: Update comment describing rtx_format.
4801         * rtl.h (union rtunion): Separate definition and typedef.
4802         (struct rtx_def): Use gengtype to mark.
4803         * Makefile.in (gengtype.o): Also depend on rtl.def.
4804         * ggc.h (ggc_mark_rtx_children): Delete prototype.
4805         (ggc_mark_rtx): Change to alias of gengtype-generated routine.
4806         * ggc-common.c (ggc_mark_rtx_children): Delete.
4807         (ggc_mark_rtx_children_1): Delete.
4808         (gt_ggc_m_rtx_def): Delete.
4809         * gengtype.c (adjust_field_rtx_def): New.
4810         (adjust_field_type): Call adjust_field_rtx_def.
4811         (write_gc_structure_fields): Add 'default' case to switch if none
4812         is specified; remove unused code.
4813
4814         * tree.h (struct tree_exp): Update for change to meaning
4815         of special.
4816         * gengtype.c (adjust_field_tree_exp): New function.
4817         (adjust_field_type): Handle `tree_exp' special here.
4818         (write_gc_structure_fields): Don't handle `tree_exp' special here.
4819         Handle new `dot' option.
4820
4821         * gengtype.h: Make `info' a pointer-to-const.
4822         * gengtype-yacc.y (yacc_ids): Use xasprintf.
4823
4824         * gengtype.c (write_gc_structure_fields): Remove implementation
4825         of `always' option, add `default' option.
4826         * doc/gty.texi (GTY Options): Remove documentation of `always',
4827         add `default'.
4828
4829 2002-09-16  Hans-Peter Nilsson  <hp@bitrange.com>
4830
4831         * output.h: Remove #ifdef RTX_CODE and #ifdef TREE_CODE.
4832
4833 2002-09-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4834
4835         * m68hc11.md (addhi_sp): Fix uninitialized variable bug.
4836
4837         * c4x-c.c, c4x.c, darwin.c, i370-c.c, m32r.c: Include tm_p.h
4838         instead of the *-protos.h file directly.
4839         * t-c4x, t-i370, t-v850: Depend on $(TM_P_H).
4840         * darwin.c (machopic_output_stub): Move prototype ...
4841         * darwin-protos.h (machopic_output_stub): ... here.
4842         * rs6000-protos.h (machopic_output_stub): Don't declare.
4843
4844 2002-09-16  Richard Henderson  <rth@redhat.com>
4845
4846         * c-common.c (builtin_define_float_constants): Emit __FOO_DENORM_MIN__.
4847
4848 2002-09-16  Richard Henderson  <rth@redhat.com>
4849
4850         * real.c, real.h: Rewrite from scratch.
4851
4852         * Makefile.in (simplify-rtx.o): Depend on TREE_H.
4853         (paranoia): New target.
4854         * builtins.c (fold_builtin_inf): Use new real.h interface.
4855         * c-common.c (builtin_define_with_hex_fp_value): Likewise.
4856         * c-lex.c (interpret_float): Likewise.
4857         * emit-rtl.c (gen_lowpart_common): Likewise.
4858         * optabs.c (expand_float): Use real_2expN.
4859         * config/ia64/ia64.md (divsi3, udivsi3): Likewise.
4860         * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New.
4861         (FLOAT_WORDS_BIG_ENDIAN): New.
4862         * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE
4863         directly to REAL_VALUE_NEGATIVE.
4864         * loop.c (canonicalize_condition): Likewise.
4865         * simplify-rtx.c: Include tree.h.
4866         (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX
4867         with floating-point result modes.
4868         * toplev.c (backend_init): Call init_real_once.
4869
4870         * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE.
4871         * tree.c (build_real): Likewise.
4872         * config/alpha/alpha.c, config/vax/vax.c (float_strings,
4873         float_values, inited_float_values, check_float_value): Remove.
4874         * config/alpha/alpha.h, config/m68hc11/m68hc11.h,
4875         config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove.
4876         * doc/tm.texi (CHECK_FLOAT_VALUE): Remove.
4877         (VAX_HALFWORD_ORDER): Remove.
4878
4879 2002-09-16  Ulrich Weigand  <uweigand@de.ibm.com>
4880
4881         * config/s390/s390.c: (legitimize_la_operand): Remove, replace by ...
4882         (s390_load_address): ... this new function.
4883         (s390_decompose_address): Allow the argument pointer and all
4884         virtual registers as 'pointer' registers.
4885         (s390_expand_plus_operand): Use s390_load_address.
4886         config/s390/s390.md (movti, movdi, movdf splitters): Likewise.
4887         ("force_la_31"): New insn pattern.
4888         config/s390/s390-protos.h (legitimize_la_operand): Remove.
4889         (s390_load_address): Add prototype.
4890
4891         * config/s390/s390.c: Include "optabs.h".
4892         (s390_expand_movstr, s390_expand_clrstr, s390_expand_cmpstr): New.
4893         config/s390/s390-protos.h (s390_expand_movstr, s390_expand_clrstr,
4894         s390_expand_cmpstr): Add prototypes.
4895         config/s390/s390.md ("movstrdi", "movstrsi"): Call s390_expand_movstr.
4896         ("movstrdi_short"): Rename to "movstr_short_64".  Change predicates
4897         for operands 0 and 1 to "memory_operand".  Add type attribute.
4898         ("movstrsi_short"): Rename to "movstr_short_31".  Change predicates
4899         for operands 0 and 1 to "memory_operand".  Add type attribute.
4900         ("movstrdi_long", "movstrsi_long"): Remove.
4901         ("movstrdi_64"): Rename to "movstr_long_64". Add type attribute.
4902         ("movstrsi_31"): Rename to "movstr_long_31". Add type attribute.
4903         ("clrstrdi", "clrstrsi"): Call s390_expand_clrstr.
4904         ("clrstrsico"): Remove, replace by ...
4905         ("clrstr_short_64", "clrstr_short_31"): ... these new patterns.
4906         ("clrstrsi_64"): Rename to "clrstr_long_64".
4907         ("clrstrsi_31"): Rename to "clrstr_long_31".
4908         ("cmpstrdi", "cmpstrsi"): Call s390_expand_cmpstr.
4909         ("cmpstr_const"): Remove, replace by ...
4910         ("cmpstr_short_64", "cmpstr_short_31"): ... these new patterns.
4911         ("cmpstr_64"): Rename to "cmpstr_long_64".
4912         ("cmpstr_31"): Rename to "cmpstr_long_31".
4913
4914 2002-09-16  Kazu Hirata  <kazu@cs.umass.edu>
4915
4916         * ABOUT-NLS: Follow spelling conventions.
4917         * ChangeLog: Likewise.
4918         * ChangeLog.1: Likewise.
4919         * ChangeLog.2: Likewise.
4920         * ChangeLog.3: Likewise.
4921         * ChangeLog.4: Likewise.
4922         * ChangeLog.5: Likewise.
4923         * ChangeLog.6: Likewise.
4924         * FSFChangeLog.10: Likewise.
4925         * FSFChangeLog.11: Likewise.
4926         * c-common.c: Likewise.
4927         * c-lex.c: Likewise.
4928         * c-objc-common.c: Likewise.
4929         * cppexp.c: Likewise.
4930         * cppinit.c: Likewise.
4931         * cpplex.c: Likewise.
4932         * doloop.c: Likewise.
4933         * flow.c: Likewise.
4934         * function.c: Likewise.
4935         * integrate.c: Likewise.
4936         * loop.c: Likewise.
4937         * reg-stack.c: Likewise.
4938         * reload.h: Likewise.
4939         * ssa.c: Likewise.
4940
4941 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
4942
4943         * ChangeLog: Follow spelling conventions.
4944         * ChangeLog.0: Likewise.
4945         * ChangeLog.1: Likewise.
4946         * ChangeLog.2: Likewise.
4947         * ChangeLog.4: Likewise.
4948         * ChangeLog.6: Likewise.
4949         * config.gcc: Likewise.
4950         * dwarfout.c: Likewise.
4951         * reload1.c: Likewise.
4952         * simplify-rtx.c: Likewise.
4953         * unwind-sjlj.c: Likewise.
4954         * config/avr/avr.h: Likewise.
4955         * config/d30v/d30v.h: Likewise.
4956         * config/frv/frv.c: Likewise.
4957         * config/frv/frv.h: Likewise.
4958         * config/ip2k/ip2k.h: Likewise.
4959         * config/m88k/m88k-move.sh: Likewise.
4960         * config/stormy16/stormy16.c: Likewise.
4961         * config/stormy16/stormy16.h: Likewise.
4962         * doc/extend.texi: Likewise.
4963         * doc/interface.texi: Likewise.
4964         * doc/invoke.texi: Likewise.
4965         * doc/md.texi: Likewise.
4966         * doc/rtl.texi: Likewise.
4967         * doc/tm.texi: Likewise.
4968         * doc/trouble.texi: Likewise.
4969         * ginclude/float.h: Likewise.
4970         * treelang/treelang.texi: Likewise.
4971
4972 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4973
4974         * i386-protos.h (i386_pe_dllexport_name_p,
4975         i386_pe_dllimport_name_p, i386_pe_unique_section,
4976         i386_pe_declare_function_type, i386_pe_record_external_function,
4977         i386_pe_record_exported_symbol, i386_pe_asm_file_end): Add
4978         prototype.
4979         * i386/t-cygwin (winnt.o): Depend on $(TM_P_H).
4980         * i386/t-interix (winnt.o): Likewise.
4981
4982         * v850-protos.h (v850_output_addr_const_extra): Prototype.
4983
4984 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
4985
4986         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Add
4987         MIPS ABI CPP macros.
4988         (TARGET_CPU_CPP_BUILTINS): Redefine.
4989         (SUBTARGET_EXTRA_SPECS): Remove subtarget_endian_default.
4990         (SUBTARGET_ENDIAN_DEFAULT_SPEC): Remove.
4991
4992 2002-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4993
4994         * ia64/aix.h (TARGET_OS_CPP_BUILTINS): Fix typo.
4995
4996 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
4997
4998         * ChangeLog: Follow spelling conventions.
4999         * ChangeLog.0: Likewise.
5000         * ChangeLog.1: Likewise.
5001         * ChangeLog.2: Likewise.
5002         * ChangeLog.3: Likewise.
5003         * ChangeLog.4: Likewise.
5004         * ChangeLog.5: Likewise.
5005         * ChangeLog.6: Likewise.
5006         * FSFChangeLog.10: Likewise.
5007         * FSFChangeLog.11: Likewise.
5008         * c-common.c: Likewise.
5009         * c-common.h: Likewise.
5010         * c-format.c: Likewise.
5011         * c-opts.c: Likewise.
5012         * cpplib.c: Likewise.
5013         * langhooks.h: Likewise.
5014         * real.c: Likewise.
5015         * reg-stack.c: Likewise.
5016         * toplev.c: Likewise.
5017         * config/arm/arm.c: Likewise.
5018         * config/arm/arm.md: Likewise.
5019         * config/arm/linux-gas.h: Likewise.
5020         * config/arm/netbsd.h: Likewise.
5021         * config/c4x/c4x.c: Likewise.
5022         * config/c4x/c4x.h: Likewise.
5023         * config/c4x/c4x.md: Likewise.
5024         * config/c4x/libgcc.S: Likewise.
5025         * config/fr30/fr30.md: Likewise.
5026         * config/frv/frv.md: Likewise.
5027         * config/ia64/ia64.md: Likewise.
5028         * config/mips/mips.h: Likewise.
5029         * config/mn10300/mn10300.c: Likewise.
5030         * config/stormy16/stormy16.c: Likewise.
5031         * config/v850/v850.md: Likewise.
5032         * doc/extend.texi: Likewise.
5033         * doc/invoke.texi: Likewise.
5034         * doc/md.texi: Likewise.
5035
5036 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
5037
5038         * config/netbsd.h (LIB_SPEC): Include the appropriate pthread
5039         library if -pthread is specified.
5040
5041 2002-09-15  Jason Thorpe  <thorpej@wasabisystems.com>
5042
5043         * config.gcc (*-*-netbsd*): Set thread_file to 'posix'
5044         for --enable-threads=yes and --enable-threads=posix.
5045
5046 2002-09-15  Kazu Hirata  <kazu@cs.umass.edu>
5047
5048         * config/sparc/cypress.md: Replace Sparc with SPARC.
5049         * config/sparc/freebsd.h: Likewise.
5050         * config/sparc/gmon-sol2.c: Likewise.
5051         * config/sparc/hypersparc.md: Likewise.
5052         * config/sparc/lb1spc.asm: Likewise.
5053         * config/sparc/lb1spl.asm: Likewise.
5054         * config/sparc/linux.h: Likewise.
5055         * config/sparc/linux64.h: Likewise.
5056         * config/sparc/lynx.h: Likewise.
5057         * config/sparc/sol2.h: Likewise.
5058         * config/sparc/sparc-modes.def: Likewise.
5059         * config/sparc/sparc.c: Likewise.
5060         * config/sparc/sparc.h: Likewise.
5061         * config/sparc/sparc.md: Likewise.
5062         * config/sparc/sparclet.md: Likewise.
5063         * config/sparc/supersparc.md: Likewise.
5064         * config/sparc/sysv4.h: Likewise.
5065         * config/sparc/vxsim.h: Likewise.
5066         * config/sparc/vxsparc64.h: Likewise.
5067
5068 2002-09-14  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5069
5070         * config/avr/avr.c (output.h): Move after inclusion of tree.h.
5071
5072 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
5073
5074         * ChangeLog: Follow spelling conventions.
5075         * ChangeLog.0: Likewise.
5076         * ChangeLog.2: Likewise.
5077         * ChangeLog.3: Likewise.
5078         * ChangeLog.4: Likewise.
5079         * ChangeLog.5: Likewise.
5080         * ChangeLog.6: Likewise.
5081         * cppfiles.c: Likewise.
5082         * cppinit.c: Likewise.
5083         * cpplib.h: Likewise.
5084         * cse.c: Likewise.
5085         * debug.h: Likewise.
5086         * df.c: Likewise.
5087         * dominance.c: Likewise.
5088         * hashtable.c: Likewise.
5089         * hashtable.h: Likewise.
5090         * loop.c: Likewise.
5091         * config/arm/README-interworking: Likewise.
5092         * config/arm/arm.c: Likewise.
5093         * config/arm/arm.h: Likewise.
5094         * config/arm/arm.md: Likewise.
5095         * config/dsp16xx/dsp16xx.h: Likewise.
5096         * config/frv/frv.c: Likewise.
5097         * config/frv/frv.h: Likewise.
5098         * config/ip2k/ip2k.h: Likewise.
5099         * config/rs6000/rs6000.c: Likewise.
5100         * config/stormy16/stormy-abi: Likewise.
5101         * config/stormy16/stormy16.h: Likewise.
5102         * config/v850/v850.c: Likewise.
5103
5104 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
5105
5106         * loop.c: Fix a comment typo.
5107
5108 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
5109
5110         * config/fr30/fr30.h: Fix comment typos.
5111         * config/frv/frv.c: Likewise.
5112         * config/i386/xmmintrin.h: Likewise.
5113         * config/mips/mips.c: Likewise.
5114         * config/sh/sh.c: Likewise.
5115
5116 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
5117
5118         * haifa-sched.c: Follow spelling conventions.
5119         * regclass.c: Likewise.
5120         * regrename.c: Likewise.
5121         * config/fp-bit.c: Likewise.
5122         * config/frv/frv.h: Likewise.
5123         * config/m88k/m88k.c: Likewise.
5124         * config/mcore/mcore.c: Likewise.
5125         * config/rs6000/darwin.h: Likewise.
5126         * config/rs6000/gnu.h: Likewise.
5127         * config/rs6000/linux.h: Likewise.
5128         * config/rs6000/linux64.h: Likewise.
5129         * config/rs6000/rs6000.c: Likewise.
5130         * config/rs6000/rs6000.h: Likewise.
5131         * config/sh/sh.c: Likewise.
5132         * config/sparc/sparc.c: Likewise.
5133         * config/sparc/ultra1_2.md: Likewise.
5134
5135 2002-09-14  Stephane Carrez  <stcarrez@nerim.fr>
5136
5137         * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
5138         memory operand when source is 0 (K constraint).
5139         ("movsi_internal"): Likewise.
5140         ("movdf_internal"): Likewise.
5141         ("movsf_internal"): Likewise.
5142
5143 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
5144
5145         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
5146         targetm.binds_local_p to set SYMBOL_REF_FLAG.
5147         (rs6000_xcoff_encode_section_info): Likewise.
5148         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5149
5150 2002-09-10  Theodore A. Roth  <troth@verinet.com>
5151
5152         * gcc/config/avr/avr.h: Set default options for C++ for avr.
5153
5154 2002-09-13  Richard Henderson  <rth@redhat.com>
5155
5156         * Makefile.in (toplev.o): Depend on real.h.
5157         (print-rtl.o, varasm.o, ifcvt.o): Likewise.
5158
5159 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
5160
5161         * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
5162         * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
5163         * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
5164
5165 2002-09-13  Nathan Sidwell  <nathan@codesourcery.com>
5166
5167         * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
5168
5169 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
5170
5171         * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
5172         ia64*-*-linux*): Set extra_parts.
5173         * config/ia64/t-aix (EXTRA_PARTS): Remove.
5174         * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
5175
5176 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
5177
5178         * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
5179         * config/h8300/h8300.c: Likewise.
5180         * config/h8300/h8300.h: Likewise.
5181         * config/h8300/h8300.md: Likewise.
5182         * doc/invoke.texi: Likewise.
5183
5184 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
5185
5186         * config/h8300/h8300.c (h8300_init_once): Fix formatting.
5187
5188 2002-09-13  Richard Henderson  <rth@redhat.com>
5189
5190         * config/alpha/alpha.md (attr type): Add callpal.
5191         (imb, trap, load_tp, set_tp): Use it.
5192         * config/alpha/ev4.md (ev4_callpal): New.
5193         * config/alpha/ev5.md (ev5_callpal): New.
5194         * config/alpha/ev6.md (ev6_ibr): Handle callpal.
5195         * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
5196         (alphaev5_insn_pipe): Likewise.
5197
5198 2002-09-13  Andreas Jaeger  <aj@suse.de>
5199
5200         * Makefile.in (print-rtl.o): Depend on CONFIG_H.
5201
5202 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
5203
5204         * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
5205         LIB2ADDEH): New, set to NULL.
5206         (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
5207
5208 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
5209
5210         * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
5211         (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
5212         (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
5213         Add declarations.
5214         (_U_Qfneg): Remove.
5215
5216 2002-09-13 Dhananjay Deshpande  <dhananjayd@kpit.com>
5217
5218         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
5219         for H8/300, H8S aa:8 mode.
5220         (TINY_CONSTANT_ADDRESS_P): Add support for H8S aa:16 mode.
5221         * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
5222         for H8/300 aa:8 mode.
5223
5224 2002-09-13  Hartmut Penner  <hpenner@de.ibm.com>
5225
5226         * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
5227         insns.
5228
5229 2002-09-12  Richard Henderson  <rth@redhat.com>
5230
5231         * Makefile.in (HOST_PRINT): Use print-rtl1.o
5232         (print-rtl.o): Don't define GENERATOR_FILE.
5233         (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
5234         * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
5235         unless GENERATOR_FILE.
5236
5237 2002-09-12  Stan Shebs  <shebs@apple.com>
5238
5239         * config/darwin.h (USER_LABEL_PREFIX): Define here...
5240         * config/i386/darwin.h: ... instead of here.
5241
5242         * target.h (struct gcc_target): New field
5243         terminate_dw2_eh_frame_info.
5244         * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
5245         (TARGET_INITIALIZER): Add it.
5246         * dwarf2out.c (output_call_frame_info): Use target hook.
5247         * dwarf2asm.c (dw2_asm_output_delta): Use macro
5248         ASM_OUTPUT_DWARF_DELTA if defined.
5249         * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
5250         (ASM_OUTPUT_DWARF_DELTA): Ditto.
5251         (ASM_OUTPUT_DWARF_OFFSET): Ditto.
5252         (ASM_OUTPUT_DWARF_PCREL): Ditto.
5253         * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
5254         (powerpc-*-darwin*): Ditto.
5255         * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
5256         to work correctly for Darwin.
5257         * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
5258         (STARTFILE_SPEC): Add crtbegin.o.
5259         (ENDFILE_SPEC): Define.
5260         (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
5261         (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
5262         (ASM_OUTPUT_DWARF_DELTA): Define.
5263         (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
5264         * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
5265
5266 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
5267
5268         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
5269         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
5270         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
5271
5272 2002-09-12  Zack Weinberg  <zack@codesourcery.com>
5273
5274         * toplev.c: Move default definition of USER_LABEL_PREFIX...
5275         * defaults.h: ... here.
5276
5277 2002-09-12  Richard Henderson  <rth@redhat.com>
5278
5279         * vax.c: Include tree.h earlier.
5280
5281 2002-09-12  Stan Shebs  <shebs@apple.com>
5282
5283         * config/darwin.c (machopic_finish): Remove #if 0 chunks.
5284         (machopic_operand_p): Ditto.
5285
5286 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
5287
5288         * config/arm/arm.c (arm_compute_initial_elimination_offset):
5289         Fix a comment typo.
5290
5291 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
5292
5293         * toplev.c (do_abort): Fix a comment typo.
5294
5295 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
5296
5297         * cselib.c: Fix comment formatting.
5298         * gengtype.c: Likewise.
5299
5300 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
5301
5302         * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
5303         (udivmodhi4): Likewise.
5304
5305 2002-09-12  Graham Stott  <graham.stott@btinternet.com>
5306             Roger Sayle  <roger@eyesopen.com>
5307
5308         * i386.c (any_fp_register_operand, fp_register_operand,
5309         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
5310         New predicate functions.
5311         * i386-protos.h:  Add their prototypes.
5312         * i386.h: Add them to PREDICATE_CODES.
5313         * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
5314         "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
5315         "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
5316         "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
5317         "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
5318         "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
5319         "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
5320         "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
5321         "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
5322         "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
5323         "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
5324         Use these new predicates to simplify and correct the use of
5325         FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
5326
5327 2002-09-12  Jason Merrill  <jason@redhat.com>
5328
5329         * diagnostic.c (output_add_identifier): New fn.
5330         * diagnostic.h: Declare it.
5331
5332         * calls.c (store_one_arg): Use size_in_bytes to determine the
5333         amount of space to push.
5334
5335 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
5336
5337         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
5338
5339 2002-09-12  Ulrich Weigand  <uweigand@de.ibm.com>
5340
5341         * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
5342         * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
5343         (s390_select_ccmode): Likewise.
5344         (s390_branch_condition_mask): Likewise.
5345         (optimization_options): Do not set flag_branch_on_count.
5346         (s390_split_branches): Handle doloop branches.
5347         (s390_chunkify_pool): Likewise.
5348         * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
5349         ("doloop_end"): New expander.
5350         ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
5351         associated splitters): New.
5352
5353 2002-09-11  Hartmut Penner  <hpenner@de.ibm.com>
5354
5355         * fold-const.c (make_range): Only narrow to signed range if
5356         the signed range is smaller than the unsigned range.
5357
5358 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
5359
5360         * emit-rtl.c (set_mem_size): New function.
5361         * expr.h (set_mem_size): Declare.
5362         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
5363         (expand_block_move): Instead, use adjust_address and
5364         replace_equiv_address to generate proper aliasing info.
5365         Move common code out of conditionals.  Localize vars.
5366
5367 2002-09-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
5368
5369         * optabs.c (expand_binop): Minor cleanup.
5370         (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
5371
5372 2002-09-11  Dan Nicolaescu  <dann@ics.uci.edu>
5373
5374         * print-tree.c (print_node): Print the restrict qualifier.
5375
5376 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
5377
5378         * doc/install.texi: Fix typos.
5379
5380 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
5381
5382         * Makefile.in: Remove all references to s-under and underscore.c.
5383         * collect2.c, tlink.c: Change all uses of prepends_underscore
5384         to look directly at USER_LABEL_PREFIX.
5385
5386 2002-09-11  David Edelsohn  <edelsohn@gnu.org>
5387
5388         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
5389         alignment to csect.
5390         (rs6000_xcoff_unique_section): Only set section name for public
5391         data.
5392         (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
5393         * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
5394         duplicate definition.
5395
5396 2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5397
5398         * pa.md (extzv): Check predicates before emitting extzv_32.
5399         (insv): Likewise.
5400
5401 2002-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
5402
5403         * config/s390/s390.h (MOVE_MAX): Define to correct value.
5404         (MAX_MOVE_MAX): Define.
5405         (MOVE_BY_PIECES_P): Define.
5406         (CLEAR_BY_PIECES_P): Define.
5407
5408 2002-09-10  Denis Chertykov  <denisc@overta.ru>
5409
5410         * config/avr/avr.md (movstrhi): Use right operands for conversion.
5411
5412 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
5413
5414         PR c/7873
5415         * arm.md (insv): Use reg_or_int_operand for operand[3].
5416
5417 2002-09-10  David Edelsohn  <edelsohn@gnu.org>
5418
5419         * rs6000.c (rs6000_assemble_visibility): Protect declaration
5420         inside macro.  Correct function definition typo.
5421         (rs6000_xcoff_section_type_flags): New function.
5422         (TARGET_SECTION_TYPE_FLAGS): Remove definition.
5423         (rs6000_elf_section_type_flags): Call default_section_type_flags_1
5424         with appropriate PIC test.
5425         (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
5426         determine readonly.
5427         (rs6000_binds_local_p): Combine PIC flags.
5428         * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
5429         * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
5430
5431 2002-09-09  Per Bothner  <per@bothner.com>
5432
5433         * print-tree.c (print_node):  In a STRING_CST, escape non-ascii
5434         characters, and only print TREE_STRING_LENGTH chars.
5435
5436 2002-09-09  Steve Ellcey  <sje@cup.hp.com>
5437
5438         * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
5439         (ASM_FILE_END) New.
5440         * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
5441         * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
5442         * config/ia64/ia64.c (ia64_asm_output_external): Create list
5443         of external functions if TARGET_HPUX_LD is true.
5444         (ia64_hpux_add_extern_decl): New, routine to put names on
5445         list of external functions.
5446         (ia64_hpux_asm_file_end): Put out declarations for external
5447         functions if and only if they are used.
5448
5449 2002-09-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5450
5451         * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
5452         on TARGET_64BIT before pic register restore.
5453
5454 2002-09-09  David Edelsohn  <edelsohn@gnu.org>
5455
5456         * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
5457         (TARGET_HAVE_TLS): New description.
5458
5459 2002-09-09  Janis Johnson  <janis187@us.ibm.com>
5460
5461         * doc/extend.texi (Statement Exprs): Fix broken link.
5462
5463 2002-09-09  Denis Chertykov  <denisc@overta.ru>
5464
5465         * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
5466         right conversion of operands[1].
5467
5468 2002-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
5469
5470         * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
5471         commutative.  Use "nonimmediate_operand" instead of "register_operand"
5472         as predicate for operand 0.  Move to after the "*tmXX_mem" insns.
5473
5474         ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
5475         as commutative.
5476
5477         ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
5478         mark as commutative.  Use "nonimmediate_operand" instead of
5479         "register_operand" as predicate for operand 1.
5480
5481         ("movstrictsi"): Fix typo in insn name.
5482
5483 2002-09-09  Jan Hubicka  <jh@suse.cz>
5484
5485         * i386.c (index_register_operand): New.
5486         * i386.h (predicate_codes): Add new predicate.
5487         * i386.md (lea_general_*): Use index_register_operand
5488         (ashift to lea splitter): Do not produce invalid leas
5489         (ashift to mov+ashift split): New.
5490
5491 2002-09-09  Nick Clifton  <nickc@redhat.com>
5492
5493         * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
5494         Fix folding marks.
5495
5496 2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5497             J"orn Rennecke <joern.rennecke@superh.com>
5498
5499         * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
5500
5501 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
5502
5503         * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
5504         (function_ok_for_sibcall): Use binds_local_p.  Respect longcall
5505         attributes.
5506
5507 2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5508
5509         * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
5510
5511 2002-09-08  Richard Henderson  <rth@redhat.com>
5512
5513         * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
5514         (DW_OP_GNU_push_tls_address): New.
5515         (DW_OP_lo_user): Fix.
5516         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
5517         (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
5518         (size_of_loc_descr): Likewise.
5519         (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
5520         (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
5521         (loc_descriptor_from_tree): Handle TLS variables.
5522         (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
5523         (add_location_or_const_value_attribute): ... not here.  Defer
5524         to loc_descriptor_from_tree for TLS variables.
5525
5526         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
5527         * config/i386/i386.c (i386_output_dwarf_dtprel): New.
5528         * config/i386/i386-protos.h: Update.
5529
5530 2002-09-08  Roger Sayle  <roger@eyesopen.com>
5531
5532         PR optimization/6405
5533         * unroll.c (loop_iterations): last_loop_insn should be the previous
5534         non-note instruction before loop->end.
5535         * loop.c (strength_reduce): The conditional jump is the last
5536         non-note instruction before loop->end (as above).
5537
5538 2002-09-08  Roger Sayle  <roger@eyesopen.com>
5539
5540         * combine.c (try_combine): Handle the case that undobuf.other_insn
5541         has been turned into a return or unconditional jump, by inserting
5542         a BARRIER if necessary.
5543         (simplify_set):  Test if a condition code setter has a constant
5544         comparison at compile time, if so convert this insn to a no-op move
5545         and update/simplify the condition code user (undobuf.other_insn).
5546
5547 2002-09-08  Krister Walfridsson  <cato@df.lth.se>
5548
5549         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
5550         (CLEAR_INSN_CACHE): Define.
5551
5552 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
5553
5554         * basic-block.h: Fix comment formatting.
5555         * c-common.c: Likewise.
5556         * c-common.h: Likewise.
5557         * c-lex.c: Likewise.
5558         * c-pretty-print.c: Likewise.
5559         * cfglayout.c: Likewise.
5560         * cfgloop.c: Likewise.
5561         * defaults.h: Likewise.
5562         * et-forest.c: Likewise.
5563         * explow.c: Likewise.
5564         * function.h: Likewise.
5565         * gcov.c: Likewise.
5566         * genattrtab.c: Likewise.
5567         * gengtype.c: Likewise.
5568         * ifcvt.c: Likewise.
5569         * libgcc2.c: Likewise.
5570         * loop.c: Likewise.
5571         * profile.c: Likewise.
5572         * ra-build.c: Likewise.
5573         * real.c: Likewise.
5574         * rtl.h: Likewise.
5575         * tracer.c: Likewise.
5576         * tree-inline.c: Likewise.
5577         * varasm.c: Likewise.
5578
5579 2002-09-08  Jan Hubicka  <jh@suse.cz>
5580
5581         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
5582         handling.
5583
5584         * loop.c (loop_givs_reduce):  Emit addition after.
5585
5586 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
5587
5588         * varasm.c (default_assemble_visibility): Rename from
5589         assemble_visibility.
5590         * output.h: Here too.
5591         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
5592         * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
5593
5594 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
5595
5596         * reload.c (find_reloads <p constraint>): Pass operand_mode to
5597         find_reloads_address.
5598
5599 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
5600
5601         * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
5602         (anonymous pattern): Likewise.
5603
5604 2002-09-07  Scott Snyder  <snyder@fnal.gov>
5605
5606         PR target/7374
5607         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
5608
5609 2002-09-07  Roger Sayle  <roger@eyesopen.com>
5610
5611         * basic-block.h (struct loop): Remove unused cont_dominator field.
5612
5613 2002-09-07  Igor Shevlyakov <igor@microunity.com>
5614
5615         * varasm.c (decode_rtx_const): Don't check undefined field for
5616         CONST_VECTOR.
5617
5618 2002-09-07  Glen Nakamura  <glen@imodulo.com>
5619
5620         PR opt/7814
5621         * sched-deps.c (sched_analyze_insn): Make sure to add insn
5622         to reg_last->sets after flushing the dependency lists to guarantee
5623         that subsequent clobbers will be dependent on it.
5624
5625 2002-09-07  Igor Shevlyakov <igor@microunity.com>
5626
5627         * combine.c (simplify_shift_const): Calculate rotate count
5628         correctly for vector operands.
5629
5630 2002-09-07  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>
5631
5632         * c-typeck.c (c_tree_expr_nonnegative_p): New function.
5633         (build_binary_op): Call c_tree_expr_nonnegative_p rather than
5634         tree_expr_nonnegative_p.
5635         (build_conditional_expr): Likewise.
5636         * c-tree.h (c_tree_expr_nonnegative_p): Declare.
5637
5638 2002-09-07  Richard Henderson  <rth@redhat.com>
5639
5640         * builtins.def (inf, inff, infl): Mark const.
5641         (huge_val, huge_valf, huge_vall): Likewise.
5642         (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
5643
5644         * real.c (ereal_inf): Clear E before use.
5645
5646 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
5647
5648         * config/h8300/h8300.md (udivmodqi4): Split the pattern into
5649         an expander and an anonymous pattern.  Zero out the upper half
5650         of the dividend in the expander.
5651         (udivmodqi4): Likewise.
5652
5653 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
5654
5655         * config/h8300/h8300.c: Fix formatting.
5656         * config/h8300/h8300.h: Likewise.
5657         * config/h8300/h8300.md: Likewise.
5658
5659 2002-09-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5660
5661         * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
5662         information.
5663
5664 2002-09-07  Graham Stott  <graham.stott@btinternet.com>
5665
5666        * rtlanal.c (dead_or_set_regno_p): Fix typo.
5667
5668 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
5669
5670         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5671
5672         * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
5673         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
5674         (TARGET_ASM_OUT): Add the above here.
5675         * target.h (struct gcc_target): Add "visibility" field.
5676         * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
5677         * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
5678         (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
5679         (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
5680
5681 2002-09-06  Ziemowit Laski <zlaski@apple.com>
5682
5683         * c-lang.c (objc_is_id): New stub.
5684         * c-tree.h (objc_is_id): New forward declaration.
5685         * c-typeck.c (build_c_cast): Do not strip protocol
5686         qualifiers from 'id' type.
5687         * objc/objc-act.c (objc_comptypes): Correct handling
5688         of protocol qualifiers.
5689         (objc_is_id): New.
5690
5691 Fri Sep  6 13:10:08 2002  Jeffrey A Law  (law@redhat.com)
5692
5693         * pentium.md (pentium-firstvboth): Fix typo.
5694
5695 2002-09-06      Dhananjay Deshpande <dhananjayd@kpit.com>
5696
5697         * h8300.c (enum shift_alg): Move to earlier in h8300.c.
5698         (enum shift_type, enum h8_cpu): Likewise.
5699         (INL, ROT, LOP, SPC macros): Likewise.
5700         (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise.  Lose
5701         const designator.
5702         (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
5703         space efficient algorithms when optimize for codesize.
5704
5705 Fri Sep  6 16:35:32 2002  Nicola Pero  <n.pero@mi.flashnet.it>
5706
5707         Fix PR/1727 and long-standing failing testcase
5708         objc/formal-protocol-6.m.
5709         * objc-act.c (build_protocol_expr): If compiling for the GNU
5710         runtime, create a list of Protocol statically allocated instances
5711         if it doesn't exist, then add the Protocol object to this same
5712         list.
5713         (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
5714         instead of TREE_CHAIN.
5715
5716 Fri Sep  6 16:17:33 2002  Nicola Pero  <n.pero@mi.flashnet.it>
5717
5718         * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
5719         10k.  Fixed category dumping - print out category names with the
5720         proper syntax.  Print '@end\n' and not '\n@end' at the end of the
5721         interface.
5722         (finish_objc): Fixed the -gen-decls option.  It was printing out
5723         only the last class.  Dump an interface declaration of all classes
5724         being compiled instead.
5725
5726 2002-09-06  Jason Thorpe  <thorpej@wasabisystems.com>
5727
5728         * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
5729         prototype.
5730         * config/arm/arm.c (arm_gen_return_addr_mask): New function.
5731         * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
5732         if not APCS26 and not Thumb or ARMv4-or-higher.  Use gen_int_mode
5733         rather than GEN_INT.
5734         * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
5735         (return_addr_mask, *check_arch2): New.
5736
5737 2002-09-06  Ulrich Weigand  <uweigand@de.ibm.com>
5738
5739         * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
5740         "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
5741         "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
5742         "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
5743         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
5744         "adddf3", "*adddf3", "*adddf3_ibm",
5745         "addsf3", "*addsf3", "*addsf3_ibm",
5746         "muldi3", "mulsi3", "mulsidi3",
5747         "muldf3", "*muldf3", "*muldf3_ibm",
5748         "mulsf3", "*mulsf3", "*mulsf3_ibm",
5749         "*anddi3_cc", "*anddi3_cconly", "anddi3",
5750         "*andsi3_cc", "*andsi3_cconly", "andsi3",
5751         "*iordi3_cc", "*iordi3_cconly", "iordi3",
5752         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
5753         "*xordi3_cc", "*xordi3_cconly", "xordi3",
5754         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
5755         instead of "register_operand" as predicate for "%0" operand.
5756
5757 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
5758
5759         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
5760         unconditionally when gcc_cv_as_flags64 checks are gone.
5761         * configure: Rebuilt.
5762
5763 2002-09-06  Alan Modra  <amodra@bigpond.net.au>
5764
5765         * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
5766         2002-07-26 change.  Comment.
5767
5768 2002-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5769
5770         * frv.c (frv_unique_section, frv_select_section,
5771         frv_select_rtx_section): Delete.
5772         (frv_in_small_data_p): New.
5773         (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
5774         TARGET_ASM_SELECT_RTX_SECTION): Delete.
5775         (TARGET_IN_SMALL_DATA_P): Define.
5776
5777 2002-09-05  Dale Johannesen  <dalej@apple.com>
5778
5779         * reload1.c (reload):  Retain only those memory clobbers
5780         added for variable-array handling.
5781
5782 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
5783
5784         * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
5785         return-in-memory rules.
5786         * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
5787
5788 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
5789
5790         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
5791         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
5792
5793 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
5794
5795         * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
5796         not a compile-time constant for the non-IBM case.
5797         * config/arm/arm-protos.h (arm_float_words_big_endian): New
5798         prototype.
5799         * config/arm/arm.c (arm_float_words_big_endian): New function.
5800         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
5801         if TARGET_VFP  and not TARGET_HARD_FLOAT.
5802         (ARM_FLAG_VFP, TARGET_VFP): Define.
5803         (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
5804
5805 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
5806
5807         * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
5808         URLs.  Fix AIX wording.
5809
5810 2002-09-05  Stan Shebs  <shebs@apple.com>
5811
5812         * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
5813         -fPIC equivalent on Darwin.
5814
5815 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
5816
5817         * sh.c (sh_expand_builtin): Return early if encountering an
5818         error_mark for a type.
5819
5820 2002-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
5821
5822         * config/s390/s390.c (s390_expand_plus_operand): Do not require
5823         double-word scratch register.
5824         config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
5825
5826         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
5827         "*cli"): Replace s_operand by memory_operand.
5828         ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
5829
5830 2002-09-05  Kazu Hirata  <kazu@cs.umass.edu>
5831
5832         * config/h8300/h8300.c (asm_file_start): Add a missing
5833         semicolon.
5834
5835 2002-09-04  Krister Walfridsson  <cato@df.lth.se>
5836
5837         * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
5838         * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
5839         (ix86_output_addr_diff_elt) Likewise.
5840         (x86_output_mi_thunk) Likewise.
5841         * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
5842
5843 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5844
5845         * frv.c (frv_encode_section_info): Fix error in last change.
5846
5847 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
5848
5849         * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
5850         (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
5851         (TARGET_BINDS_LOCAL_P): Define.
5852         (rs6000_override_options): Save original flag_pic value.
5853         (rs6000_elf_select_section): Call default_elf_select_section_1.
5854         (rs6000_elf_unique_section): Call default_unique_section_1.
5855         (rs6000_elf_in_small_data_p): New function.
5856         (rs6000_xcoff_asm_named_section): Determine storage mapping class.
5857         (rs6000_xcoff_select_section): Update based on defaults.
5858         (rs6000_xcoff_unique_section): Set to basic name if not common.
5859         (rs6000_binds_local_p): New function.
5860         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
5861         targetm.have_srodata_section if SDATA_EABI.
5862         (TARGET_IN_SMALL_DATA_P): Define.
5863
5864 2002-09-04  Dale Johannesen  <dalej@apple.com>
5865
5866         * varasm.c (struct rtx_const, decode_rtx_const):
5867         Make veclo and vechi fields not share storage.
5868
5869 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
5870
5871         * loop.c (scan_loop): Don't mark separate insns out of a libcall
5872         for moving.
5873         (move_movables): Abort if we see the first insn of a libcall.
5874
5875 2002-09-04  Richard Henderson  <rth@redhat.com>
5876
5877         * builtin-types.def (BT_FN_FLOAT): New.
5878         (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
5879         * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
5880         BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
5881         * builtins.c (fold_builtin_inf): New.
5882         (fold_builtin): Call it.
5883         * real.c (ereal_inf): New.
5884         * real.h: Declare it.
5885         * doc/extend.texi: Document new builtins.
5886
5887 2002-09-04  Richard Henderson  <rth@redhat.com>
5888
5889         * cse.c (cse_insn): Avoid subreg games if the equivalence
5890         is already in the proper mode.
5891
5892 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
5893
5894         PR c/7102
5895         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
5896
5897 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5898
5899         * pa.md (setccfp0, setccfp1): New patterns.
5900
5901 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5902
5903         * frv-protos.h (frv_init_builtins, frv_expand_builtin,
5904         frv_select_section, frv_select_rtx_section,
5905         frv_encode_section_info, frv_unique_section): Delete.
5906         * frv.c: Update for target hooks.
5907         * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
5908         SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
5909         EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
5910
5911 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5912
5913         * ip2k-protos.h (function_prologue, function_epilogue,
5914         encode_section_info): Update to match target hook specification.
5915         * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
5916         (function_prologue, function_epilogue, encode_section_info):
5917         Update to match target hook specification.
5918         * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
5919         ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
5920         (NOTICE_UPDATE_CC): Cast to void.
5921         * ip2k.md: Add defaults in switch statements.
5922
5923 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
5924
5925         * doc/trouble.texi (Interoperation): Update information about C++ ABI
5926         issues.
5927
5928 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
5929
5930         * config/sparc/t-netbsd64: Disable multilib for now.
5931
5932 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
5933
5934         * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
5935         * target.h (gcc_target): Add have_srodata_section member.
5936         * varasm.c (section_category): Add SECCAT_SRODATA.
5937         (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
5938         READONLY_SDATA_SECTION defined.
5939         (decl_readonly_section_1): True for SECCAT_SRODATA also.
5940         (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
5941         (default_unique_section_1): Likewise.
5942
5943 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5944
5945         * expr.c (emit_group_load): Revise to allow splitting TCmode source
5946         into DImode pieces.
5947
5948         * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
5949         * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
5950         for floating-point register class.
5951         * pa.c (function_arg): Fix handling of modes wider than one word for
5952         TARGET_64BIT.
5953
5954 Wed Sep  4 18:48:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
5955
5956         * combine.c (make_compound_operation): Don't generate zero / sign
5957         extensions in floating point modes.
5958
5959 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
5960
5961         * doc/c-tree.texi: Fix overfull hboxes.
5962         * doc/cppopts.texi: Ditto.
5963         * doc/extend.texi: Ditto.
5964         * doc/gty.texi: Ditto.
5965         * doc/invoke.texi: Ditto.
5966         * doc/makefile.texi: Ditto.
5967         * doc/rtl.texi: Ditto.
5968         * doc/standards.texi: Ditto.
5969         * doc/tm.texi: Ditto.
5970
5971 2002-09-04  Richard Henderson  <rth@redhat.com>
5972
5973         * c-common.c (builtin_define_with_hex_fp_value): New.
5974         (builtin_define_float_constants): Use it.  Fix H_FLOAT mant_dig.
5975
5976 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
5977
5978         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
5979         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
5980         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
5981         Warn that these options can break ABI compatibility.
5982
5983 2002-09-04  Richard Henderson  <rth@redhat.com>
5984
5985         * real.c (ereal_to_decimal): Add digits parameter.
5986         * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
5987         * c-pretty-print.c (pp_c_real_literal): Update call.
5988         * print-rtl.c (print_rtx): Likewise.
5989         * print-tree.c (print_node_brief, print_node): Likewise.
5990         * sched-vis.c (print_value): Likewise.
5991         * config/arc/arc.c (arc_print_operand): Likewise.
5992         * config/c4x/c4x.c (c4x_print_operand): Likewise.
5993         * config/i370/i370.h (PRINT_OPERAND): Likewise.
5994         * config/i386/i386.c (print_operand): Likewise.
5995         * config/i960/i960.c (i960_print_operand): Likewise.
5996         * config/ip2k/ip2k.c (asm_output_float): Likewise.
5997         * config/m32r/m32r.c (m32r_print_operand): Likewise.
5998         * config/m68hc11/m68hc11.c (print_operand): Likewise.
5999         * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
6000         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
6001         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
6002         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
6003         * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
6004         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
6005         * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
6006         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
6007         * config/mips/mips.c (print_operand): Likewise.
6008         * config/ns32k/ns32k.c (print_operand): Likewise.
6009         * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
6010         * config/vax/vax.h (PRINT_OPERAND): Likewise.
6011         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
6012
6013 2002-09-04  Bob Wilson  <bob.wilson@acm.org>
6014
6015         * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
6016         xtensa_multibss_section_type_flags.
6017         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
6018
6019 2002-09-04  Richard Henderson  <rth@redhat.com>
6020
6021         * doc/install-old.texi: Don't mention enquire.
6022         * doc/sourcebuild.texi: Update float.h description.
6023
6024 Wed Sep  4 11:22:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
6025
6026         * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
6027
6028 2002-09-03  David Edelsohn  <edelsohn@gnu.org>
6029
6030         * varasm.c (default_section_type_flags): Append _1 to name with
6031         shlib parameter.  Use original name to call new function with
6032         implicit flag_pic.
6033         (decl_readonly_section): Likewise.
6034         (default_elf_select_section): Likewise.
6035         (default_unique_section): Likewise.
6036         (default_bind_local_p): Likewise.
6037         (categorize_decl_for_section): Add shlib parameter to use in place
6038         of implicit flag_pic.
6039         * output.h: Declare new functions with _1 and shlib argument.
6040
6041 2002-09-03  Janis Johnson  <janis187@us.ibm.com>
6042
6043         * doc/install.texi: Fix typos, formatting problems, and obvious
6044         overfull/underfull boxes.
6045
6046         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
6047         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
6048         include its file, compat.texi.
6049         * doc/compat.texi: New file with new chapter, Binary Compatibility.
6050
6051 2002-09-03  Neil Booth  <neil@daikokuya.co.uk>
6052
6053         Debian BTS Bug #157416
6054         * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
6055         * cpplib.c (destringize_and_run): Kludge around getting
6056         tokens from in-progress macros.
6057         (_cpp_do__Pragma): Simplify.
6058
6059 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
6060
6061         * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
6062         (CPP_CPU_SPEC): Remove.
6063         (TARGET_CPU_CPP_BUILTINS): New.
6064         * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
6065         (CPP_SPEC): Remove.
6066         (TARGET_OS_CPP_BUILTINS): New.
6067         * config/ia64/linux.h (CPP_PREDEFINES): Remove.
6068         (TARGET_OS_CPP_BUILTINS): New.
6069         * config/ia64/aix.h (CPP_SPEC): Move some stuff to
6070         TARGET_OS_CPP_BUILTINS.
6071         (CPP_PREDEFINES): Remove.
6072         (CPLUSPLUS_CPP_SPEC): Remove.
6073         (TARGET_OS_CPP_BUILTINS): New.
6074
6075 2002-09-03  Richard Henderson  <rth@redhat.com>
6076
6077         * Makefile.in (USER_H): Add ginclude/float.h.
6078         (FLOAT_H): Remove.
6079         (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
6080         (mostlyclean): Don't remove float.h intermediate files.
6081         (distclean): Don't remove float.h.
6082         * config.gcc: Remove all float_format references.
6083         * configure.in (float_format, float_h_file): Remove.
6084
6085         * c-common.c: Include tree-inline.h.
6086         (builtin_define_with_int_value): New.
6087         (builtin_define_type_precision): Use it.
6088         (builtin_define_float_constants): New.
6089         (cb_register_builtins): Use it.  Define __FLT_RADIX__ and
6090         __FLT_EVAL_METHOD__.
6091         * defaults.h (TARGET_FLT_EVAL_METHOD): New.
6092         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
6093         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
6094         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
6095         (TARGET_FLT_EVAL_METHOD): New.
6096
6097         * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
6098         config/float-i386.h, config/float-i64.h, config/float-m68k.h,
6099         config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
6100         * ginclude/float.h: New.
6101
6102 2002-09-03  Stan Shebs  <shebs@apple.com>
6103
6104         * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
6105         (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
6106         (PREFERRED_DEBUGGING_TYPE): Ditto.
6107         (ASM_OUTPUT_IDENT): Remove empty definition.
6108
6109 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
6110
6111         * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
6112         cxx_target.
6113         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
6114         handling routine for builtin pragma.
6115         * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
6116         Registered pragma handling routine.
6117         * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
6118         (ia64_hpux_add_pragma_builtin) New subroutine used by above.
6119         If builtin pragma seen for math routine and C89 conformance is
6120         requested use different math function in order to set errno.
6121         * t-ia64 (ia64-c.o): Add new rule for new file.
6122
6123 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
6124
6125         * config/s390/s390.md ("movti"): Add Q->Q alternative.
6126         ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
6127         "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
6128
6129         ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
6130         "*movsf_ss"): Remove.
6131
6132 2002-09-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6133
6134         * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
6135         Delete macros.
6136
6137 2002-09-03   Arati Dikey  <aratid@kpit.com>
6138
6139         * h8300.c (asm_file_start): Corrected optimization comment.
6140
6141 2002-09-03  Stan Shebs  <shebs@apple.com>
6142
6143         * c-lang.c (recognize_objc_keyword): Remove, no longer used.
6144         * c-tree.h (recognize_objc_keyword): Remove decl.
6145         * c-typeck.c (comp_target_types): Update a comment.
6146
6147 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
6148
6149         * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
6150         and register validity checks.
6151         (general_s_operand): Adapt to s390_decompose_address interface change.
6152         (q_constraint): Likewise.
6153         (s390_expand_plus_operand): Likewise.
6154         (legitimiate_address_p): Likewise.
6155         (legitimate_la_operand_p): Likewise.
6156         (legitimize_la_operand): Likewise.
6157         (print_operand_address): Likewise.
6158         (print_operand): Likewise.
6159
6160 Tue Sep  3 11:32:14 2002  Nicola Pero  <n.pero@mi.flashnet.it>
6161
6162         PR objc/5956:
6163         * objc/objc-act.c (build_typed_selector_reference): Fix typo which
6164         was causing the new selector never to match the existing ones
6165         (Patch by Alexander Malmberg <alexander@malmberg.org>).
6166
6167 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
6168
6169         * config/i386/i386.md ("femms"): Add "memory" attr "none".
6170
6171 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
6172
6173         * expr.c (expand_expr): Remove extraneous comment and code.
6174
6175 2002-08-31  Richard Henderson  <rth@redhat.com>
6176
6177         * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
6178
6179 2002-08-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6180
6181         * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
6182
6183 2002-08-30  Richard Henderson  <rth@redhat.com>
6184
6185         PR opt/7515
6186         * c-objc-common.c: Include target.h.
6187         (c_cannot_inline_tree_fn): Don't auto-inline functions that
6188         don't bind locally.  Factor setting DECL_UNINLINABLE.
6189         * Makefile.in (c-objc-common.o): Update.
6190
6191 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
6192
6193         * doc/install.texi (Configuration, Building): Fix a typo and
6194         some formatting directives.
6195
6196 2002-08-30  Paul Koning <pkoning@equallogic.com>
6197
6198         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
6199         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
6200         implemented" note.
6201         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
6202         for alphabetic order.
6203         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
6204         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
6205         (VAX_HALFWORD_ORDER): Document.
6206         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
6207         IEEE float format.
6208         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
6209         (ASM_OUTPUT_LABEL_REF): Fix font.
6210         (CASE_VECTOR_SHORTEN_MODE): Ditto.
6211
6212 2002-08-30  Denis Chertykov  <denisc@overta.ru>
6213
6214         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
6215         stuff.
6216         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
6217         CONST_DOUBLE constants.
6218
6219 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
6220
6221         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
6222         related defines to...
6223         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
6224         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
6225         as a no-op.
6226
6227 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
6228
6229         * config/arm/arm.c (arm_asm_output_labelref): New function.
6230         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
6231         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
6232
6233 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
6234
6235         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
6236         memory exhausted" workarounds.
6237
6238 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6239
6240         * diagnostic.c (fancy_abort): Don't repeat "internal error".
6241         * toplev.c (crash_signal): Likewise.
6242
6243 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
6244
6245         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
6246         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
6247         Extended, updated documentation.
6248         (-Wundeclared-selector): Documented.
6249
6250 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
6251
6252         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
6253         the value 1.  Do not undef before defining.
6254         * config/darwin.h: Likewise.
6255         * config/dbx.h: Likewise.
6256         * config/dbxcoff.h: Likewise.
6257         * config/dbxelf.h: Likewise.
6258         * config/elfos.h: Likewise.
6259         * config/interix.h: Likewise.
6260         * config/lynx-ng.h: Likewise.
6261         * config/lynx.h: Likewise.
6262         * config/netware.h: Likewise.
6263         * config/psos.h: Likewise.
6264         * config/svr3.h: Likewise.
6265         * config/alpha/alpha.h: Likewise.
6266         * config/alpha/elf.h: Likewise.
6267         * config/alpha/vms.h: Likewise.
6268         * config/arc/arc.h: Likewise.
6269         * config/arm/aout.h: Likewise.
6270         * config/arm/coff.h: Likewise.
6271         * config/c4x/c4x.h: Likewise.
6272         * config/h8300/h8300.h: Likewise.
6273         * config/i386/cygwin.h: Likewise.
6274         * config/i386/djgpp.h: Likewise.
6275         * config/i386/gas.h: Likewise.
6276         * config/i386/gstabs.h: Likewise.
6277         * config/i386/i386-coff.h: Likewise.
6278         * config/i386/i386-interix.h: Likewise.
6279         * config/i386/sco5.h: Likewise.
6280         * config/i386/svr3dbx.h: Likewise.
6281         * config/i386/sysv3.h: Likewise.
6282         * config/i386/win32.h: Likewise.
6283         * config/i386/x86-64.h: Likewise.
6284         * config/i960/i960.h: Likewise.
6285         * config/ia64/ia64.h: Likewise.
6286         * config/ip2k/ip2k.h: Likewise.
6287         * config/m32r/m32r.h: Likewise.
6288         * config/m68k/3b1.h: Likewise.
6289         * config/m68k/3b1g.h: Likewise.
6290         * config/m68k/ccur-GAS.h: Likewise.
6291         * config/m68k/coff.h: Likewise.
6292         * config/m68k/hp2bsd.h: Likewise.
6293         * config/m68k/hp310g.h: Likewise.
6294         * config/m68k/hp320g.h: Likewise.
6295         * config/m68k/hp3bsd.h: Likewise.
6296         * config/m68k/hp3bsd44.h: Likewise.
6297         * config/m68k/linux-aout.h: Likewise.
6298         * config/m68k/m68k-aout.h: Likewise.
6299         * config/m68k/mot3300.h: Likewise.
6300         * config/m68k/netbsd.h: Likewise.
6301         * config/m68k/openbsd.h: Likewise.
6302         * config/m68k/pbb.h: Likewise.
6303         * config/m68k/plexus.h: Likewise.
6304         * config/m68k/sun2.h: Likewise.
6305         * config/m68k/sun3.h: Likewise.
6306         * config/m68k/tower-as.h: Likewise.
6307         * config/m68k/vxm68k.h: Likewise.
6308         * config/m88k/aout-dbx.h: Likewise.
6309         * config/m88k/m88k-aout.h: Likewise.
6310         * config/mcore/mcore-elf.h: Likewise.
6311         * config/mcore/mcore-pe.h: Likewise.
6312         * config/mips/elf.h: Likewise.
6313         * config/mips/elf64.h: Likewise.
6314         * config/mips/iris5gas.h: Likewise.
6315         * config/mips/iris6.h: Likewise.
6316         * config/mips/mips.h: Likewise.
6317         * config/mips/sni-gas.h: Likewise.
6318         * config/mmix/mmix.h: Likewise.
6319         * config/ns32k/netbsd.h: Likewise.
6320         * config/pa/pa64-hpux.h: Likewise.
6321         * config/romp/romp.h: Likewise.
6322         * config/rs6000/sysv4.h: Likewise.
6323         * config/rs6000/xcoff.h: Likewise.
6324         * config/sh/coff.h: Likewise.
6325         * config/sh/elf.h: Likewise.
6326         * config/sparc/linux64.h: Likewise.
6327         * config/sparc/liteelf.h: Likewise.
6328         * config/sparc/netbsd.h: Likewise.
6329         * config/sparc/openbsd.h: Likewise.
6330         * config/sparc/pbd.h: Likewise.
6331         * config/sparc/sp64-elf.h: Likewise.
6332         * config/sparc/sp86x-elf.h: Likewise.
6333         * config/sparc/sparc.h: Likewise.
6334         * config/vax/vax.h: Likewise.
6335         * config/vax/vaxv.h: Likewise.
6336
6337 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
6338
6339         * h8300.c (shift_alg_hi): Various tweaks to improve performance
6340         of HImode shifts.
6341         (get_shift_alg): Corresponding changes.
6342
6343 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6344
6345         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
6346
6347 2002-08-29  Richard Henderson  <rth@redhat.com>
6348
6349         * expr.h (enum block_op_methods): New.
6350         (emit_block_move): Update prototype.
6351         * expr.c (block_move_libcall_safe_for_call_parm): New.
6352         (emit_block_move_via_loop): New.
6353         (emit_block_move): Use them.  New argument METHOD.
6354         (emit_push_insn): Always respect the given alignment.
6355         (expand_assignment): Update call to emit_block_move.
6356         (store_expr, store_field, expand_expr): Likewise.
6357         * builtins.c (expand_builtin_apply): Likewise.
6358         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
6359         * function.c (expand_function_end): Likewise.
6360         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
6361         * config/sparc/sparc.c (sparc_va_arg): Likewise.
6362         * calls.c (expand_call, emit_library_call_value_1): Likewise.
6363         (save_fixed_argument_area): Use emit_block_move with
6364         BLOCK_OP_CALL_PARM instead of move_by_pieces.
6365         (restore_fixed_argument_area): Likewise.
6366         (store_one_arg): Fix alignment parameter to emit_push_insn.
6367
6368 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6369
6370         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
6371
6372 2002-08-29  Catherine Moore  <clm@redhat.com>
6373
6374         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
6375         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
6376         (PREDICATE_CODES): Include new predicates.
6377         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
6378         (TARGET_SWITCHES):  Add strict-align.
6379         (TARGET_STRICT_ALIGN): New.
6380         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.
6381         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
6382         Define.
6383         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
6384         v850_muldi3.
6385         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
6386         L_callt_save_r2_r31, L_return_r2_r31,
6387         L_save_all_interrupt): Change addi to add.
6388         (L_save_interrupt, L_return_interrupt): Rework.
6389         (__return_r31):  Correct .size directive.
6390         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
6391         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
6392         New routines.
6393         * config/v850/v850.c (expand_prologue): Call
6394         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
6395         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
6396         (reg_or_int9_operand): New predicate.
6397         (reg_or_const_operand): New routine.
6398         * config/v850/v850.md (return_interrupt): Changed from
6399         restore_interrupt.
6400         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
6401         (callt_save_interrupt): Change save sequence.
6402         (callt_return_interrupt): New.
6403         (save_interrupt): Don't use runtime function for LONG_CALLS
6404         and TARGET_PROLOG_FUNCTION.
6405         (save_all_interrupt): Likewise.
6406         (mulsi3): Use new predicate.
6407         (moviscc): Disallow some combination of constants.
6408         Fix define_split for sasf insns, so that it will not generate bad
6409         code if operand0 and operand5 are the same.
6410         * config/v850/v850-protos.h: Prototype new predicates.
6411
6412 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6413
6414         * c-common.c (builtin_define_type_precision): New function.
6415         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
6416         wchar_t is unsigned in C++.
6417         * doc/cpp.texi (Common Predefined Macros): Document
6418         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
6419         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
6420         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
6421
6422 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
6423
6424         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
6425         section.  Mention that it is enabled by -Wall.
6426         (-Wall): Mention that there can be language-specific warnings as well.
6427         (-Wctor-dtor-privacy): Mention that it is enabled by default.
6428         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
6429
6430 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
6431
6432         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
6433         if it is ever live.
6434
6435         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
6436         attribute for SHCOMPACT.
6437
6438         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
6439         appropriately.
6440         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
6441         by the ABI.
6442
6443         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
6444
6445 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
6446
6447         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
6448         "MASK_GAS|MASK_ABICALLS".
6449         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
6450         (TARGET_DEFAULT): Remove.
6451         (MACHINE_TYPE): Undefine before defining.
6452         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
6453
6454 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
6455
6456         * c-common.c (warn_abi): New variable.
6457         * c-common.h (warn_abi): Likewise.
6458         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
6459         (c_common_decode_option): Handle it.
6460         * doc/invoke.texi: Document -Wabi.
6461
6462 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
6463
6464         * c-common.c (warn_undeclared_selector): New variable.
6465         * c-common.h (warn_undeclared_selector): Idem.
6466         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
6467         to on when -Wundeclared-selector is found.
6468         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
6469         * objc/objc-act.c (build_selector_expr): If
6470         warn_undeclared_selector is set, check that the selector has
6471         already been defined, and emit a warning if not.
6472
6473 2002-08-27  Nick Clifton  <nickc@redhat.com>
6474             Catherine Moore  <clm@redhat.com>
6475             Jim Wilson  <wilson@cygnus.com>
6476
6477         * config.gcc: Add v850e-*-* target.
6478         Add --with-cpu= support for v850.
6479         * config/v850/lib1funcs.asm: Add v850e callt functions.
6480         * config/v850/v850.h: Add support for v850e target.
6481         * config/v850/v850.c: Add functions to support v850e target.
6482         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
6483         * config/v850/v850.md: Add patterns for v850e instructions.
6484         * doc/invoke.texi: Document new v850e command line switches.
6485
6486 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
6487                           Aldy Hernandez <aldyh at redhat dot com>
6488
6489         * doc/tm.texi: Applied numerous fixes to the automaton based
6490         scheduler descrition.
6491
6492 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
6493
6494         * i386.c (classify_argument): Handle variable sized objects.
6495
6496 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
6497
6498         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
6499
6500 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
6501
6502         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
6503
6504 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
6505
6506         * i386.c (classify_argument): Properly compute word size of the analyzed object.
6507
6508 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
6509
6510         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
6511         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
6512         accordingly.
6513         (attribute insn_class): Provide default definitions based on type.
6514         Remove all insn-specific settings.
6515         (various function units): Remove old SH4 scheduling.
6516         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
6517         New attributes.  Set them where appropriate.
6518         (cpu unit FS): Don't define / use.
6519         (F3, load_store): New cpu units.
6520         (F01): New reservation.
6521         (all insn_reservations): Make dependent on sh4 pipeline model.
6522         Fix latencies.
6523         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
6524         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
6525         (mt insn_reservation): Use type mt_group.
6526         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
6527         sh4_fload and sh4_store.
6528         (insn_reservation branch_zero and branch): Replace with sh4_branch.
6529         (insn_reservation branch_far): Replace with sh4_return.
6530         (insn_reservation return_from_exp): Rename to:
6531         (sh4_return_from_exp).  Change to be just d_lock*5.
6532         (insn_reservation lds_to_pr): Rename to:
6533         (sh4_lds_to_pr).  Change to be just d_lock*2.
6534         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
6535         d_lock*2.
6536         (insn_reservation prload_mem): Rename to:
6537         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
6538         (insn_reservation fpscr_store): Rename to:
6539         (fpscr_load).  Change to d_lock,nothing,F1*3.
6540         (insn_reservation fpscr_store_mem): Rename to:
6541         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
6542         (insn_reservation multi): Change to
6543         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
6544         (insn_reservation fp_arith): Change to issue,F01,F2.
6545         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
6546         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
6547         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
6548         (insn_reservation fp_double_cmp): Change to
6549         d_lock,(d_lock+F01),F1+F2,F2.
6550         (insn_reservation dp_div): Change to
6551         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
6552         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
6553         (sh_adjust_cost, SHcompact): Differentiate between different
6554         kinds of dependencies.  Drop factor of ten for superscalar.
6555         Use new instruction types.  Add new exception rules.
6556
6557         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
6558
6559         * sh.md (mperm_w): Add DONE.
6560
6561 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
6562
6563         * longlong.h: Import current PowerPC defintion from GMP-4.1.
6564
6565         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
6566
6567         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
6568
6569 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6570
6571         * sh.h (MAX_FIXED_MODE_SIZE): Define.
6572
6573 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
6574
6575         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
6576         delimiter.
6577
6578 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6579
6580         * c-common.c (cpp_define_data_format): New function.
6581         (cb_register_builtins): Call it.
6582
6583         * doc/cpp.texi (Common Predefined Macros): Document
6584         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
6585         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
6586         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
6587         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
6588         __TARGET_USES_VAX_H_FLOAT__.
6589
6590 2002-08-26  Ziemowit Laski <zlaski@apple.com>
6591
6592         * objc/objc-act.c (get_super_receiver): If inside a class method
6593         of a category, cast the receiver to 'id' before accessing the 'isa'
6594         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
6595
6596 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
6597
6598         * config/s390/s390-protos.h (s390_function_prologue,
6599         s390_function_epilogue): Remove.
6600         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
6601         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
6602
6603         config/s390/s390.c (s390_machine_dependent_recorg): New function.
6604         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
6605         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
6606         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
6607         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
6608
6609         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
6610         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
6611         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
6612         function is not a leaf function.  Use save_gprs and restore_gprs.
6613         (s390_emit_epilogue): Likewise.
6614         (save_gprs, restore_gprs): New functions.
6615         (struct s390_frame): Remove return_reg_saved_p member.
6616         (save_fprs_p): Remove.
6617         (s390_optimize_prolog): New function.
6618         (s390_legitimate_reload_constant): Remove now unnecessary check.
6619
6620         (s390_function_count): Remove.
6621         (s390_output_symbolic_const): Replace s390_function_count by
6622         current_function_funcdef_no.
6623         (s390_output_constant_pool): Likewise.
6624
6625         (legitimize_pic_address): Use regs_ever_live to track PIC register
6626         instead of current_function_uses_pic_offset_table.
6627         (s390_emit_prologue): Likewise.
6628         config/s390/s390.md ("call", "call_value"): Likewise.
6629
6630 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
6631
6632         * c-opts.c (find_opt): Don't complain about wrong languages
6633         here.  Return exact matches even for wrong language.
6634         (c_common_decode_option): Complain about wrong languages
6635         here.
6636
6637 2002-08-24  Stuart Hastings  <stuart@apple.com>
6638
6639         * function.h (struct function): Add flag
6640         all_throwers_are_sibcalls.
6641         * except.c (set_nothrow_function_flags): Replaces
6642         nothrow_function_p. Set new flag.
6643         * except.h (set_nothrow_function_flags): Replaces
6644         nothrow_function_p.
6645         * dwarf2out.c (struct dw_fde_struct): Add flag
6646         all_throwers_are_sibcalls.
6647         (output_call_frame_info): Test it.
6648         (dwarf2out_begin_prologue) Propagate it from cfun to
6649         dw_fde_struct.
6650         * toplev.c (rest_of_compilation): Update calls to
6651         nothrow_function_p.
6652
6653 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
6654
6655         * ggc-page.c (compute_inverse): Short circuit calculation for
6656         object sizes larger than half a page.
6657
6658 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
6659
6660         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
6661         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
6662         default.
6663         (rs6000_elf_unique_section): Likewise.
6664
6665 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6666
6667         * ns32k.c (ns32k_globalize_label): Delete.
6668         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
6669
6670 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
6671
6672         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
6673         for loading delta with num_insns_constant_wide.  Calculate
6674         delta_low, delta_high without using a conditional.
6675
6676 2002-08-22  Jason Merrill  <jason@redhat.com>
6677
6678         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
6679         * c-common.def: Adjust.
6680         * c-dump.c (c_dump_tree): Adjust.
6681         * c-semantics.c (genrtl_return_stmt): Adjust.
6682         * c-pretty-print.c (pp_c_statement): Adjust.
6683         * tree-inline.c (copy_body_r): Adjust.
6684
6685 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
6686
6687         * ggc-page.c: Avoid division in ggc_set_mark.
6688         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
6689         compute_inverse): New.
6690         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
6691         (init_ggc): Initialize inverse_table.
6692
6693 2002-08-22  Tom Tromey  <tromey@redhat.com>
6694
6695         * doc/install.texi (Configuration): Document --datadir.
6696
6697 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
6698
6699         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
6700
6701 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
6702
6703         * gengtype-lex.l (ID): Allow underscore as first character.
6704
6705 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
6706
6707         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
6708         function.
6709         (rs6000_xcoff_asm_named_section): Rename.
6710         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
6711
6712 2002-08-21  Tom Tromey  <tromey@redhat.com>
6713
6714         For PR java/6005 and PR java/7611:
6715         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
6716         (fold): Likewise.
6717         * langhooks.c (lhd_can_use_bit_fields_p): New function.
6718         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
6719         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
6720         (LANG_HOOKS_INITIALIZER): Use it.
6721         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
6722         field.
6723
6724 2002-08-21  Stan Shebs  <shebs@apple.com>
6725
6726         * tree.c (finish_vector_type): Fix a typo in a comment.
6727         * Makefile.in: Fix "the the" stutters in comments.
6728         * genautomata.c: Ditto.
6729         * ifcvt.c: Ditto.
6730         * regrename.c: Ditto.
6731         * config/alpha/alpha.c: Ditto.
6732         * config/alpha/vms-crt0-64.c: Ditto.
6733         * config/alpha/vms-crt0.c: Ditto.
6734         * config/alpha/vms-psxcrt0-64.c: Ditto.
6735         * config/alpha/vms-psxcrt0.c: Ditto.
6736         * config/d30v/d30v.h: Ditto.
6737         * config/fr30/fr30.h: Ditto.
6738         * config/rs6000/rs6000.c: Ditto.
6739         * config/stormy16/stormy16.h: Ditto.
6740         * doc/md.texi: Ditto.
6741
6742 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6743
6744         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
6745
6746 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
6747
6748         * c-decl.c (grokdeclarator): Make invalid combinations with long,
6749         short, signed or unsigned into hard errors.  Fixes PR c/4319.
6750         Also make duplicate modifiers such as "short short" into hard
6751         errors.
6752
6753 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
6754             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6755
6756         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
6757         to the actual end.  Add '@end table' and '@table @code'.
6758
6759 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
6760
6761         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
6762
6763         * unroll.c (biv_total_increment): Don't try to compute the total
6764         increment for FP BIVs.
6765
6766 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6767
6768         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
6769         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
6770         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
6771         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
6772         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
6773         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
6774         (GLOBAL_ASM_OP): Define.
6775         * arm.c (aof_globalize_label): New function.
6776         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
6777         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
6778         * c4x.c (c4x_globalize_label): New function.
6779         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
6780         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
6781         (GLOBAL_ASM_OP): Define.
6782         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
6783         * darwin-protos.h (darwin_globalize_label): Declare.
6784         * darwin.c (darwin_globalize_label): New function.
6785         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
6786         (ASM_GLOBALIZE_LABEL): Delete.
6787         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
6788         * dsp16xx.c (asm_output_common): Use target hook.
6789         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
6790         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
6791         (GLOBAL_ASM_OP): Define.
6792         * i370.c (i370_globalize_label): New function.
6793         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
6794         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
6795         * i386.c (ix86_asm_file_end): Use target hook.
6796         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
6797         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
6798         * ia64.c (ia64_asm_output_external): Likewise.
6799         * ia64/sysv4.h: Update comment.
6800         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
6801         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6802         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
6803         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6804         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
6805         * mmix-protos.h (mmix_asm_globalize_label): Delete.
6806         * mmix.c (mmix_asm_globalize_label): Likewise.
6807         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
6808         (GLOBAL_ASM_OP): Define.
6809         * ns32k.c (ns32k_globalize_label): New function.
6810         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
6811         (ASM_GLOBALIZE_LABEL): Delete.
6812         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
6813         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
6814         * pa.c (pa_globalize_label): New function.
6815         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
6816         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
6817         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
6818         (GLOBAL_ASM_OP): Define.
6819         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
6820         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
6821         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
6822         (GLOBAL_ASM_OP): Define.
6823         * v850.c (v850_output_aligned_bss): Use target hook.
6824         * vax.c (vms_globalize_label): New function.
6825         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
6826         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
6827         (GLOBAL_ASM_OP): Define.
6828         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
6829         * doc/tm.texi: Update docs.
6830         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
6831         target hook.
6832         * final.c (output_alternate_entry_point): Likewise.
6833         * hooks.c (hook_FILEptr_constcharptr_void): New function.
6834         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
6835         * output.h (assemble_global): Delete.
6836         (default_globalize_label): Declare.
6837         * system.h (ASM_GLOBALIZE_LABEL): Poison.
6838         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
6839         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
6840         * target.h (gcc_target): Add globalize_label member.
6841         * varasm.c (asm_output_bss, asm_output_aligned_bss,
6842         globalize_decl): Use target hook.
6843         (assemble_global): Delete.
6844         (default_globalize_label): New function.
6845
6846 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6847
6848         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
6849
6850 2002-08-20  Devang Patel  <dpatel@apple.com>
6851         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
6852
6853 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6854
6855         * arc.c (output_shift): Use stdio instead of asm_fprintf.
6856         * arm.c (thumb_output_function_prologue): Likewise.
6857         * avr.c (print_operand): Likewise.
6858         * c4x.c (c4x_print_operand): Likewise.
6859         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
6860         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
6861         * cris.c (cris_target_asm_function_prologue,
6862         cris_asm_output_mi_thunk): Likewise.
6863         * h8300.c (print_operand): Likewise.
6864         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
6865         * ip2k.c (print_operand): Likewise.  Fix format specifier.
6866         * m68hc11.c (asm_print_register, print_operand,
6867         print_operand_address): Use stdio instead of asm_fprintf.
6868         (print_operand_address): Fix format specifier.
6869         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
6870         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
6871         asm_fprintf.
6872         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6873         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
6874         * m68k.c (m68k_output_function_prologue,
6875         m68k_output_function_epilogue, print_operand): Likewise.
6876         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
6877         Likewise.  Fix format specifier.
6878         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
6879         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
6880         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
6881
6882 2002-08-15  Eric Christopher  <echristo@redhat.com>
6883             Jeff Knaggs  <jknaggs@redhat.com>
6884
6885         * config.gcc (mipsisa64sr71k-elf): New target.
6886         * config/mips/sr71k.md: New file.
6887         * config/mips/mips.md: Use it.
6888         (rot*): Add sr71k specifics.
6889         * config/mips/t-sr71k: New file.
6890         * config/mips/mips.h (sr71k): New cpu.
6891         (TARGET_SR71K): Use it.
6892         (TUNE_SR71K): Ditto.
6893         (GENERATE_BRANCHLIKELY): Ditto.
6894         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
6895         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
6896         * config/mips/mips.c (sr71k): New cpu.
6897         (mips_use_dfa_pipeline_interface): Use.
6898
6899 2002-08-15  Eric Christopher  <echristo@redhat.com>
6900             Richard Sandiford <rsandifo@redhat.com>
6901             Aldy Hernandez  <aldyh@redhat.com>
6902             Graham Stott    <grahams@redhat.com>
6903             Michael Meissner  <meissner@redhat.com>
6904             Gavin Romig-Koch  <gavin@redhat.com>
6905             Ken Raeburn  <raeburn@cygnus.com>
6906             Alexandre Oliva <aoliva@redhat.com>
6907
6908         * config.gcc (mips64vr-elf): New target.
6909         * config/mips/5400.md: New file.
6910         * config/mips/5500.md: Ditto.
6911         * config/mips/mips.md: Use them.
6912         (frsqrt): New.
6913         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
6914         cpus.
6915         (mips_issue_rate): Use them.
6916         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
6917         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
6918         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
6919         cpus.
6920         (TARGET_MIPSx): Use them.
6921         (TUNE_MIPSx): Ditto.
6922         (GETNATE_MULT3_SI): Ditto.
6923         (ISA_HAS_BRANCHLIKELY): Ditto.
6924         (ISA_HAS_CONDMOVE): Ditto.
6925         (ISA_HAS_NMADD_NMSUB): Ditto.
6926         (ISA_HAS_MULHI): New. Ditto.
6927         (ISA_HAS_MULS): Ditto.
6928         (ISA_HAS_MSAC): Ditto.
6929         (ISA_HAS_MACC): Ditto.
6930         (ISA_HAS_ROTR_SI): Ditto.
6931         (ISA_HAS_ROTR_DI): Ditto.
6932         (RTX_COSTS): Use.
6933
6934 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6935
6936         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
6937         at head.
6938         (remove_dup_nonsys_dirs): New function.
6939         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
6940         (merge_include_chains): Remove non-system include directories from
6941         quote and bracket include chains when they duplicate equivalent system
6942         directories.
6943         * doc/cpp.texi (-I): Update.
6944         * doc/cppopts.texi (-I): Update.
6945         * doc/install.texi (--with-local-prefix): Further document usage of
6946         this option.
6947         * doc/invoke.texi (-I): Update.
6948
6949 2002-08-20  Richard Henderson  <rth@redhat.com>
6950
6951         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
6952         (emit_block_move): Split out subroutines.
6953         (emit_block_move_via_movstr): New.
6954         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
6955         (emit_block_move_libcall_fn): New.  Construct function prototype for
6956         bcopy as well.
6957         (clear_storage): Split out subroutines.
6958         (clear_storage_via_clrstr): New.
6959         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
6960         (clear_storage_libcall_fn): New.  Construct function prototype for
6961         bzero as well.
6962         (emit_push_insn): Use emit_block_move.
6963         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
6964         (store_constructor): Likewise.
6965
6966 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
6967
6968         * objc/objc-act.c (building_objc_message_expr): Rename to
6969         current_objc_message_selector.
6970
6971 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
6972
6973         * objc/objc-act.c (build_ivar_chain): Remove.
6974         (objc_copy_list): Likewise.
6975         (get_class_ivars): Inline call to removed build_ivar_chain
6976         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
6977         slot; use that slot (rather than CLASS_IVARS) when accessing
6978         ivars for base classes.  Call copy_list and chainon instead of
6979         objc_copy_list.
6980         (build_private_template): Call get_class_ivars instead of
6981         build_ivar_chain.
6982         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
6983         (continue_class): Call get_class_ivars instead of
6984         build_ivar_chain.
6985         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
6986         of DECL_BIT_FIELD (which may have been cleared).
6987         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
6988
6989 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6990
6991         * genautomata.c (output_translate_vect, output_state_ainsn_table,
6992         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
6993         in output file.
6994         (output_internal_min_issue_delay_func): Initialize variable in
6995         output file.
6996
6997 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
6998
6999         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
7000         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
7001
7002 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
7003             Steve Ellcey  <sje@cup.hp.com>
7004
7005         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
7006         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
7007         * explow.c (trunc_int_for_mode): Abort when the mode is not
7008         a scaler integer mode.
7009         * combine.c (expand_compound_operation): Don't expand Vector
7010         or Complex modes into shifts.
7011         (expand_field_assignment): Don't do bitwise arithmatic and
7012         shifts on Vector or Complex modes.
7013         (simplify_comparison): Don't call trunc_int_for_mode
7014         for VOIDmode.
7015         * recog.c (general_operand): Likewise.
7016         (immediate_operand): Likewise.
7017         (nonmemory_operand): Likewise.
7018
7019 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
7020
7021         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
7022         multi-instruction SImode constant.  Add REG_EQUAL note.
7023         * config/rs6000/rs6000.md (movsi splitter): Use
7024         rs6000_emit_set_const.
7025
7026 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7027
7028         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
7029         the macro test controlling its use.
7030
7031 2002-08-18  H.J. Lu  (hjl@gnu.org)
7032
7033         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
7034         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
7035         gnu_ld=yes.
7036         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
7037         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
7038         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
7039         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
7040         here.
7041         (cris-*-linux*): Remove setting thread_file here.
7042
7043 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
7044
7045         PR preprocessor/7602
7046         * cppinit.c (path_include): Treat the system environment
7047         variables as being cxx_aware.
7048
7049 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
7050
7051         * c-decl.c (flexible_array_type_p): New function.
7052         (grokdeclarator, finish_struct): Use it.
7053         * doc/extend.texi: Document constraints on use of structures with
7054         flexible array members.
7055
7056 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
7057
7058         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
7059         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
7060         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
7061
7062 2002-08-16  Stan Shebs  <shebs@apple.com>
7063
7064         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
7065         for ObjC with -fnext-runtime.
7066         * doc/cpp.texi: Document it.
7067
7068 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
7069
7070         * doc/install.texi (Final installation): Replace links to individual
7071         build status pages with a link to a common page that lists them all.
7072
7073 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
7074
7075         * doc/invoke.texi: Fix typo.
7076
7077 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
7078
7079         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
7080
7081 2002-08-16  Andrew Haley  <aph@redhat.com>
7082
7083         * tree-inline.c: Add includes for Java inliner.
7084         (remap_decl): Don't handle anonymous types for Java.
7085         (remap_block): Add handling for Java trees.
7086         (copy_scope_stmt): Conditionalize for non-Java use only.
7087         (copy_body_r): Handle Java trees.  Add handling for
7088         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
7089         (initialize_inlined_parameters):  Handle Java trees.
7090         (declare_return_variable): Likewise.
7091         (expand_call_inline): Handle Java trees.
7092         (walk_tree): Likewise.
7093         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
7094         (add_stmt_to_compound): New function.
7095
7096 2002-08-15  Richard Henderson  <rth@redhat.com>
7097
7098         * Makefile.in (LOOSE_WARN): Remove -fno-common.
7099         (NOCOMMON_FLAG): New substitution point.
7100         (GCC_WARN_CFLAGS): Include it.
7101         * configure.in (ac_checking): Set nocommon_flag.
7102         (nocommon_flag): New substitution point.
7103
7104 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
7105
7106         * c-tree.h (skip_evaluation): Move declaration...
7107         * c-common.h: ... here.
7108         * c-typeck.c (build_external_ref): Don't assemble_external nor
7109         mark a tree as used if skip_evaluation is set.
7110         * c-parse.in (typeof): New non-terminal to set skip_evaluation
7111         around TYPEOF.
7112         (typespec_nonreserved_nonattr): Use it.
7113
7114 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
7115
7116         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
7117         (xcoff_debug_hooks): Update end_prologue.
7118         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
7119         * debug.h (end_prologue): Add file arg.
7120         (end_epilogue): Add line and file args.
7121         (dwarf2out_end_epilogue): Add line and file args.
7122         (vmsdbgout_after_prologue): Remove.
7123         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
7124         (dwarf2_debug_hooks): Update end_prologue.
7125         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
7126         (dwarfout_end_prologue): Add file arg.
7127         * final.c (vmsdbgout_after_prologue): Remove
7128         (final_end_function): Update end_epilogue call.
7129         (final_scan_insn): Update end_prologue call.
7130         * sdbout.c (sdbout_end_epilogue): Add line and file args.
7131         (sdbout_end_prologue): Add file arg.
7132         (sdb_debug_hooks): Update end_prologue.
7133         (sdb_begin_prologue): Update sdbout_end_prologue call.
7134         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
7135         vmsdbgout_end_function.
7136         (vmsdbgout_end_prologue): New function renamed from
7137         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
7138         (vmsdbgout_end_function): New function.
7139         (vmsdbgout_end_epilogue): Add line and file args. Call
7140         vmsdbgout_source_line.
7141         (write_pclines): Write only valid line numbers.
7142         (write_srccorr): Don't write source correlation records if 0 lines.
7143         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
7144
7145 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
7146
7147         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
7148         (_Unwind_Internal_Ptr): 32 bit version for use in
7149         read_encoded_value_with_base.
7150         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
7151         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
7152         right size.
7153
7154 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7155
7156         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
7157         signed/unsigned warnings.
7158
7159         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
7160         record_reg_classes): Likewise.
7161
7162         * reload.c (reload_inner_reg_of_subreg, push_reload,
7163         find_reloads_address_1): Likewise.
7164
7165 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
7166
7167         * rs6000.c (output_mi_thunk): Return to function section on
7168         TARGET_ELF.
7169
7170         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
7171
7172 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
7173
7174         * config/s390/s390.c (legitimize_address): Optimize loading
7175         of large displacements.
7176
7177 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
7178
7179         * config/alpha/alpha-protos.h: Update.
7180
7181         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
7182         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
7183         (alpha_linkage_symbol_p): New static function.
7184         (print_operand_address): Print linkage operand.
7185
7186         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
7187         variables.
7188         (reloc_kind): New enum.
7189         (struct alpha_funcs): New struct.
7190         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
7191
7192         (alpha_need_linkage): Rewrite.
7193         (alpha_use_linkage): New global function.
7194         (alpha_write_linkage): Rewrite and make static.
7195         (alpha_write_one_linkage): Rewrite
7196
7197         (alpha_start_function): Remove procedure descriptor output.
7198         (alpha_end_function): Write linkages at end of each function.
7199
7200         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
7201         (call_vms_1, call_value_vms_1): Rewrite.
7202
7203         * config/alpha/vms.h (ASM_FILE_END): Remove.
7204
7205 2002-08-14  Richard Henderson  <rth@redhat.com>
7206
7207         * ggc-page.c (RTL_SIZE): New.
7208         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
7209         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
7210
7211 2002-08-14  Richard Henderson  <rth@redhat.com>
7212
7213         * calls.c: Include target.h.
7214         * Makefile.in (calls.o): Update.
7215
7216         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
7217         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
7218
7219 2002-08-14  Richard Henderson  <rth@redhat.com>
7220
7221         * Makefile.in (LOOSE_WARN): Add -fno-common.
7222         * c-common.h (constant_string_class_name): Add missing extern.
7223
7224 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
7225
7226         PR preprocessor/7358
7227         * c-opts.c (check_deps_environment_vars): Ignore main file
7228         for SUNPRO_DEPENDENCIES.
7229         * cppfiles.c (stack_include_file): Ignore main file if
7230         appropriate.
7231         * cpplib.h (struct cpp_options): New member in deps.
7232         * doc/cppenv.texi: Update.
7233
7234 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
7235
7236         PR preprocessor/7526
7237         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
7238
7239 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
7240
7241         * doc/invoke.texi (-a): Remove documentation.
7242         (-fprofile-arcs): Remove reference to -a, -ax options.
7243         * doc/gcov.texi (Gcov Data Files): Data might be merged.
7244
7245 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
7246
7247         Fix PR/7566
7248         * c-semantics.c (genrtl_case_label): Don't (mis)use
7249         warning_with_decl.
7250
7251 2002-08-14  Dale Johannesen  <dalej@apple.com>
7252
7253         * explow.c (emit_stack_restore):  Emit memory clobbers
7254         preceding the stack pop, to prevent the scheduler from
7255         moving refs to variable arrays below this pop.
7256         * reload1.c (reload):  Preserve these clobbers for sched2.
7257         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
7258
7259 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
7260
7261         * c-opts.c (c_common_post_options): Correct test.
7262
7263 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7264
7265         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
7266         order in call to fprintf.
7267
7268 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7269
7270         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
7271
7272 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
7273
7274         * reload.c (find_reloads): Handle constraint letters marked by
7275         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
7276         (alternative_allows_memconst): Likewise.
7277         * reload1.c (maybe_fix_stack_asms): Likewise.
7278         * recog.c (asm_operand_ok, preprocess_constraints,
7279         constrain_operands): Likewise.
7280         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
7281         * local-alloc.c (block_alloc, requires_inout): Likewise.
7282         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7283
7284         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
7285         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
7286         * doc/tm.texi: Document these two new target macros.
7287
7288         * config/s390/s390.c (s390_expand_plus_operand): Accept already
7289         valid operands.
7290         (q_constraint): New function.
7291         config/s390/s390-protos.h (q_constraint): Declare it.
7292         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
7293         (EXTRA_MEMORY_CONSTRAINT): New macro.
7294
7295         * config/s390/s390.md: Throughout the machine description,
7296         replace all instances of the constraint combinations 'Qo'
7297         or 'oQ' with simply 'Q'.
7298
7299 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
7300
7301         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
7302         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
7303         (LIBGCC2_CFLAGS): Compile with -mrelax.
7304
7305 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
7306
7307         * doc/invoke.texi: Document -minmax for 68HC12.
7308
7309         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
7310         ("uminqi3"): Likewise.
7311         ("uminhi3", "umaxhi3"): Likewise.
7312
7313         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
7314         (TARGET_MIN_MAX): Define.
7315         (TARGET_SWITCHES): New option -minmax/-mnominmax.
7316
7317 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
7318
7319         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
7320         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
7321
7322         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
7323         (ret, declare, farsym): New gas macros.
7324         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
7325         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
7326         and declare the symbol far when compiled with -mlong-calls.
7327         (__far_trampoline): New for 68HC12 trampoline code to invoke a
7328         far handler using jsr/bsr.
7329
7330         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
7331         (jsr): New macro to transform a 'jsr' into a 'call'.
7332
7333 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
7334
7335         * doc/invoke.texi: Document -mlong-calls for 68HC12.
7336
7337         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
7338         -mlong-calls is specified.
7339         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
7340         assembler directives.
7341         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
7342         (TARGET_SWITCHES): Add -mlong-calls options.
7343         (current_function_far): Declare.
7344
7345         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
7346         into account the page register saved on the stack.
7347         (m68hc11_override_options): Take into account -mlong-calls option.
7348         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
7349
7350         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
7351         if the function is going to be in 68HC12 banked memory (-mlong-calls).
7352         ("*return_16bit"): Likewise.
7353         ("*return_void"): Likewise.
7354         ("call", "call_value"): Use call for a far function call.
7355
7356 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
7357
7358         * toplev.c (parse_options_and_default_flags): Don't call
7359         post_options here.
7360         (general_init): Initialize GC, pools and tree hash here,
7361         instead of lang_independent_init.
7362         (lang_independent_init): Rename backend_init.
7363         (do_compile): Call post_options hook; exit early if there
7364         have been errors after switch processing.
7365         (toplev_main): Update.
7366
7367 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
7368
7369         * c-pretty-print.h: Guard against multiple inclusion.
7370         Robustify macros.
7371         (pp_c_attributes): Declare.
7372         * c-pretty-print.c (pp_c_attributes): New function.
7373
7374 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7375
7376         * m68k.c (m68k_output_function_prologue,
7377         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
7378         and NEWS/MOTOROLA.
7379         * genattrtab.c: Remove dpx2 comment.
7380         * libgcc2.c (__enable_execute_stack): Delete versions for
7381         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
7382         sony_news/SYSTYPE_BSD.
7383         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
7384         __gmicro__, __i860__, __NeXT__ and __pyr__.
7385         * rtl.h: Remove convex comment.
7386         * varasm.c: Likewise.
7387
7388 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7389
7390         * c-opts.c (lang_flags): Const-ify.
7391         * ra-build.c (undef_table): Likewise.
7392         * ra.c (eliminables): Likewise.
7393
7394 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
7395
7396         * tree.h: Guard against multiple inclusion.
7397
7398 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
7399
7400         * reload1.c (reload_cse_simplify): Before checking
7401         REG_FUNCTION_VALUE_P, check REG_P.
7402
7403 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
7404
7405         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
7406
7407 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
7408
7409         * c-opts.c (c_common_init_options): Extra braces needed.
7410
7411 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
7412
7413         * sh.c (sh_init_builtins): Add PARAMS to declaration.
7414         (sh_media_init_builtins, sh_expand_builtin): Likewise.
7415         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
7416         (sh_expand_binop_v2sf): Likewise.
7417         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
7418         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
7419         (sh_initialize_trampoline): Likewise.
7420
7421 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
7422
7423         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
7424         new condition code modes.
7425         s390.c (s390_match_ccmode_set): Handle those new CC modes.
7426         (s390_select_ccmode): Likewise.
7427         (s390_branch_condition_mask): Likewise.
7428
7429         * s390-protos.h (s390_tm_ccmode): Declare.
7430         s390.c (s390_tm_ccmode): New function.
7431         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
7432
7433         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
7434         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
7435         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
7436
7437         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
7438         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
7439         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
7440         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
7441         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
7442
7443         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
7444         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
7445         "*cmpqi_ccs_0"): Remove, replace by ...
7446         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
7447         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
7448         "*tstqi", "*tstqi_cconly"): ... these new patterns.
7449
7450         ("*cmpsidi_ccs"): Remove, replace by ...
7451         ("*cmpsi_ccs_sign"): ... this new pattern.
7452         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
7453
7454         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
7455         ("*cli"): ... this new pattern.
7456
7457         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
7458         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
7459         New patterns.
7460         ("adddi3_64"): Rename to "*adddi3_64".
7461         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
7462         ("adddi3"): Adapt expander.
7463
7464         ("*addsi3_cc"): Allow "general_operand" for operand 2.
7465         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
7466         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
7467
7468         ("addhi3", "addqi3"): Remove, replace by ...
7469         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
7470
7471         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
7472         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
7473         ("subdi3"): Replace by insn and splitter "*subdi3_31".
7474         ("subdi3"): New expander.
7475
7476         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
7477
7478         ("subhi3", "subqi3"): Remove, replace by ...
7479         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
7480
7481         ("*muldi3_sign"): New pattern.
7482         ("muldi3"): Do not clobber CC.
7483         ("mulsi3"): Likewise.
7484         ("mulsi_6432"): Likewise.
7485
7486 2002-08-13  Denis Chertykov  <denisc@overta.ru>
7487
7488         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
7489         which can change CC0.
7490
7491 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
7492
7493         * gcse.c (adjust_libcall_notes): New function.
7494         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
7495
7496 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
7497
7498         * libgcc2.c (L_bb): Remove unneeded #includes.
7499         (__global_counters, __gthreads_active): Remove unused globals.
7500         (__bb_exit_func): Merge counts into files rather than appending.
7501         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
7502         (ALL_CFLAGS): ... to here.
7503
7504 2002-08-13  Denis Chertykov  <denisc@overta.ru>
7505
7506         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
7507         (function_epilogue): Don't calculate function size.
7508         (ip2k_set_compare): Don't use lookup_const_double.
7509         (asm_file_start): Initialization of commands_in_file removed.
7510         (asm_file_end): Output of commands_in_file removed.
7511
7512         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
7513         __INT_MAX__.
7514
7515 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
7516
7517         * c-opts.c (c_common_init_options): Check option array is
7518         sorted if checking enabled.
7519
7520 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
7521
7522         * c-pretty-print.c: #include "c-tree.h".
7523         (pp_c_simple_type_specifier): Tweak.
7524         (pp_c_storage_class_specifier): New.
7525         (pp_c_function_specifier): Likewise.
7526         (pp_c_declaration_specifiers): Likewise.
7527         (pp_c_init_declarator): Likewise.
7528         (pp_c_declaration): Likewise.
7529         (pp_c_direct_declarator): Stub.
7530         (pp_c_declarator): Likewise.
7531         (pp_c_parameter_declaration): Likewise.
7532
7533 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
7534
7535         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
7536         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
7537         struct deferred_opt): New.
7538         (COMMAND_LINE_OPTIONS): Add -M*.
7539         (missing_arg): Update.
7540         (c_common_decode_option): Handle -M*.
7541         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
7542         don't call cpp_post_options.
7543         (c_common_finish, check_deps_environment_vars): Update.
7544         * cppfiles.c (stack_include_file, handle_missing_header): Update.
7545         * cpphash.h (CPP_PRINT_DEPS): Remove.
7546         * cppinit.c: Don't include version.h.
7547         (cpp_create_reader): Don't call deps_init.  Initialize
7548         warn_long_long.
7549         (cpp_read_main_file): Init deps if necessary.
7550         (cpp_destroy): Conditionally free deps.
7551         (cpp_finish): Update.
7552         (no_tgt): Remove.
7553         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
7554         (cpp_post_options): Rename post_options.
7555         * cpplib.h (struct cpp_options): Remove some dependency options;
7556         move others to a new structure.
7557         (cpp_post_options): Remove.
7558         (cpp_finish): Comment.
7559         * fix-header.c (read_scan_file): Don't call cpp_post_options.
7560
7561 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
7562
7563         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
7564         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
7565         MMIX_rR_REGNUM as clobbered.
7566         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
7567
7568 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
7569
7570         * diagnostic.h (output_formatted_scalar): Rename from
7571         output_formatted_integer.
7572         * diagnostic.def: Add DK_DEBUG.
7573         * diagnostic.c (output_decimal): Adjust.
7574         (output_long_decimal): Likewise.
7575         (output_unsigned_decimal): Likewise.
7576         (output_octal): Likewise.
7577         (output_long_octal): Likewise.
7578         (output_hexadecimal): Likewise.
7579         (output_long_hexadecimal): Likewise.
7580         * c-pretty-print.c (pp_c_type_specifier): New function.
7581         (pp_c_specifier_qualifier_list): Likewise.
7582         (pp_c_abstract_declarator): Likewise.
7583         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
7584
7585 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
7586
7587         * doc/trouble.texi (Disappointments): Add static constructor and
7588         destructor dependency information for AIX.
7589
7590 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
7591
7592         * cpphash.h (struct printer): New from cppmain.c.
7593         (cpp_reader): New member.
7594         * cppmain.c (struct printer): Move to cpphash.h.
7595         (options, print): Remove.
7596         (account_for_newlines, print_line, maybe_print_line,
7597         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
7598         scan_translation_unit_trad, cb_line_change, cb_ident,
7599         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
7600         cb_def_pragma): Make reentrant.
7601
7602 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7603
7604         * real.c (ieee_64): Always define.
7605         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
7606         (dec_h): Not used yet, hide it.
7607         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
7608         macro controlling use.
7609         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
7610
7611 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
7612
7613         * i386.md (tablejump): Sign extend the operand.
7614         * i386.c (classify_argument): Fix missed case from previous patch.
7615
7616 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
7617
7618         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
7619         to c-copts.c.
7620         (warn_multichar): Die.
7621         (cb_register_builtins): Export.
7622         * c-common.h (warn_multichar, preprocess_file): Remove.
7623         (cb_register_builtins): New.
7624         * c-lang.c (c_init): Remove.
7625         (LANG_HOOKS_INIT): Use c_objc_common_init.
7626         * c-lex.c (init_c_lex): Don't canonicalize filename.
7627         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
7628         (preprocess_file): Make static.  Update for cpplib.
7629         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
7630         (c_common_post_options): Set some cpp options here.
7631         (c_common_init): Move from c-common.c.
7632         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
7633         * cpplib.h (struct cpp_options): Remove in_fname.
7634         (cpp_preprocess_file): Update.
7635         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
7636
7637 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7638
7639         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
7640
7641 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7642
7643         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
7644         backslash in comment preceeding macro definition.
7645         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
7646         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
7647         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
7648
7649 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
7650
7651         * expr.c (store_expr): In condition for checking if value is
7652         generated in TARGET, move call to expr_size last.
7653
7654 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
7655
7656         * c-common.c (c_common_init): Call preprocess_file instead.
7657         (c_common_finish): Move to c-opts.c.
7658         * c-common.h (preprocess_file): new.
7659         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
7660         check_deps_environment_vars, c_common_finish): New.
7661         (c_common_decode_option): Update for out_fname and dependencies.
7662         * cppinit.c (init_dependency_output, output_deps): Remove.
7663         (cpp_destroy): Update prototype.
7664         (cpp_add_dependency_target): New.
7665         (cpp_read_main_file): Don't overlay a buffer.
7666         (cpp_finish): Take a deps output stream and write deps to it.
7667         Return the error count.
7668         (cpp_post_options): Don't canonicalize out_fname, or do anything
7669         with dependencies.
7670         * cpplib.h (struct cpp_options): Remove out_fname and
7671         preprocess_only.
7672         (cpp_add_dependency_target): New.
7673         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
7674         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
7675         set preprocess_only.  Don't handle the output stream directly.
7676
7677 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7678
7679         * dsp16xx.c (print_operand): Fix format specifier.
7680         * dsp16xx.md: Avoid automatic aggregate initialization.
7681         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
7682         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
7683         integer constant modifier.
7684         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
7685         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
7686         guards.
7687         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
7688         * v850.c (v850_select_section): Mark parameter with
7689         ATTRIBUTE_UNUSED.
7690         * global.c (global_alloc): Const-ify.
7691         * ra-colorize.c (hardregset_to_string): Fix format specifier.
7692
7693 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7694
7695         * darwin-c.c (darwin_pragma_options): Const-ify.
7696         * darwin.c (machopic_non_lazy_ptr_name,
7697         machopic_validate_stub_or_non_lazy_ptr): Likewise.
7698         (machopic_indirect_data_reference): Wrap variables in macros
7699         controlling their use.
7700         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
7701         (machopic_select_section): Use parentheses around && within ||.
7702         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
7703
7704 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7705
7706         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
7707         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
7708         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
7709         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
7710         mdr_try_remove_redundant_insns, track_w_reload,
7711         mdr_try_wreg_elim): Make function static to match prototype.
7712         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
7713         parameter with ATTRIBUTE_UNUSED.
7714
7715 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7716
7717         * arc.c (arc_init): Don't use ISO C style function definitions.
7718         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
7719         arm_get_strip_length, arm_strip_name_encoding): Likewise.
7720         * avr.h (progmem_section): Likewise.
7721         * h8300.c h8300_asm_insn_count): Likewise.
7722         * m32r.c (init_idents): Likewise.
7723         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
7724         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
7725         * xtensa.c (xtensa_build_va_list): Likewise.
7726
7727 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
7728
7729         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
7730         * c-opts.c (parse_option): Rename find_opt.
7731         (set_std_c99): New function.
7732         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
7733         (missing_arg): Remove OPT_std_bad.  Handle -o.
7734         (c_common_decode_option): Handle input and output file names,
7735         -o and -remap.  Clean up -std= handling.
7736         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
7737         (cpp_handle_option): Similarly.  Don't handle filenames.
7738
7739 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
7740
7741         * i386.c (classify_argument): Fix computing of field's offsets.
7742
7743 2002-08-11  Andreas Jaeger  <aj@suse.de>
7744
7745         PR target/7531:
7746         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
7747
7748 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
7749
7750         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
7751         reference to clk_objective_c with flag_objc.
7752         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
7753         Likewise.
7754         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7755
7756 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
7757
7758         * c-opts.c (set_std_cxx98, set_std_c89): New.
7759         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
7760         (c_common_decode_option): Handle new switches from cppinit.c.
7761         Add -std=gnu++98.
7762         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
7763         (no_arg, no_num): Remove.
7764         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
7765         switches apart from -lang-objc and lang-asm.
7766         (cpp_handle_option): Similarly.
7767         * cpplib.h (cpp_set_lang): New.
7768         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
7769         -std=gnu++98.
7770         * objc/lang-specs.h: Remove -ansi.
7771
7772 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
7773                                Graham Stott
7774
7775         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
7776         errors.
7777
7778 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7779
7780         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
7781         emit_jump_insn): Fix uninitialized variable.
7782         * gcov.c (init_line_info): Likewise.
7783         * genautomata.c (transform_3): Add braces around ambiguous
7784         else.
7785         * ifcvt.c (cond_exec_process_insns): Mark parameter with
7786         ATTRIBUTE_UNUSED.
7787         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
7788         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
7789         variable.
7790
7791         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
7792         warnings in output files.
7793
7794 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
7795
7796         * c-common.c (flag_objc): New.
7797         * c-common.h (c_language_kind): Get rid of clk_objective_c
7798         enum value.
7799         (flag_objc): New extern declaration.
7800         * c-decl.c (implicitly_declare): Call objc_check_decl
7801         instead of maybe_objc_check_decl.
7802         (finish_decl): Likewise.
7803         (grokfield): Likewise.
7804         (finish_struct): Likewise.
7805         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
7806         (maybe_objc_comptypes): Rename to objc_comptypes.
7807         (maybe_building_objc_message_expr): Rename to
7808         objc_message_selector.
7809         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
7810         replace with flag_objc as needed.
7811         * c-opts.c (c_common_init_options): Likewise.
7812         (c_common_decode_option): Likewise.
7813         * c-parse.in (init_reswords): Likewise.
7814         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
7815         (maybe_objc_comptypes): Rename to objc_comptypes.
7816         (maybe_building_objc_message_expr): Rename to
7817         objc_message_selector.
7818         * c-typeck.c (comptypes): Call objc_comptypes instead of
7819         maybe_objc_comptypes, and/or objc_message_selector instead of
7820         maybe_building_objc_message_expr.
7821         (comp_target_types): Likewise.
7822         (convert_for_assignment): Likewise.
7823         (warn_for_assignment): Likewise.
7824         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
7825         independently of those for other languages.
7826         * objc/objc-act.c (maybe_objc_comptypes): Delete.
7827         (maybe_objc_check_decl): Delete.
7828         (maybe_building_objc_message_expr): Rename to
7829         objc_message_selector.
7830         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
7831         clk_objective_c; set flag_objc flag.
7832
7833 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
7834
7835         * ifcvt.c (find_if_case_2): Test correct basic block for size.
7836
7837 2002-08-09  Dale Johannesen  <dalej@apple.com>
7838
7839         * config/rs6000/rs6000.md: Add sibcall patterns.
7840         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
7841         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
7842         Rewritten to handle sibcalls.
7843         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
7844         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
7845
7846 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
7847
7848         * profile.c (da_file_name): New static var.
7849         (init_branch_prob): Initialize it.
7850         (end_branch_prob): Remove da file.
7851
7852         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
7853         * configure.in (coverage_flags): Default to nothing.
7854         * configure: Rebuilt.
7855
7856 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
7857
7858         * Makefile.in (c-opts.o): Update
7859         * c-opts.c: Include intl.h.
7860         (print_help): Move from cppinit.c.  Remove unused options.
7861         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
7862         (missing_arg): Complain for switches without an argument.
7863         (c_common_decode_option): Reject missing joined arguments.
7864         Handle new switches from cppinit.c.
7865         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
7866         (cpp_handle_option): Similarly.
7867         (print_help): Moved to c-opts.c.
7868         * cpplib.h (struct cpp_options): Remove help_only.
7869         * gcc.c (cpp_unique_options): Remove -$.
7870         * doc/cppopts.texi: Undocument -h.
7871
7872 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
7873
7874         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
7875         legitimate constant.
7876         (legitimate_pic_operand_p): Neither pic operand.
7877         (legitimate_address_p): But legitimate address.
7878         (get_thread_pointer): Generate MEM/u instead of CONST around
7879         UNSPEC_TP.
7880         (print_operand): Remove printing of UNSPEC_TP.
7881         (print_operand_address): And print it here.
7882
7883 2002-08-08  Devang Patel  <dpatel@apple.com>
7884
7885         * objc/objc-act.c (build_selector_translation_table): Issue warning,
7886         when  -Wselector is used,if method for which selector is being
7887         created does not exist.
7888
7889 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
7890
7891         * config/sh/sh.c (prepare_move_operands): Only call
7892         target_reg_operand if TARGET_SHMEDIA.
7893
7894 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
7895
7896         * config/rs6000/rs6000.h, config/rs6000/aix.h,
7897         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
7898         two patches.
7899         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
7900
7901 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
7902             Richard Henderson  <rth@redhat.com>
7903
7904         * emit-rtl.c (gen_rtx_REG): After reload, only return
7905         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
7906
7907 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
7908
7909         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
7910         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
7911         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
7912         macro.
7913
7914 2002-08-08  Adam Nemet  <anemet@lnxw.com>
7915
7916         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
7917         register.
7918         (thumb_expand_prologue): Likewise.
7919         (thumb_output_function_prologue): Likewise.
7920         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
7921         the additional push of the PIC register.
7922
7923 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
7924
7925         * configure.in (enable_coverage): New enable switch.
7926         * configure: Rebuilt.
7927         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
7928         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
7929         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
7930         (mostlyclean): Remove coverage files.
7931         * doc/install.texi: Document enable_coverage.
7932
7933         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
7934         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
7935         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
7936         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
7937         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
7938         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
7939         files.
7940
7941 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
7942
7943         * c-opts.c (cpp_opts): New.
7944         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
7945         (c_common_decode_options): Handle cpplib switches.
7946         (c_common_init_options): Set cpp_opts.
7947         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
7948         (cpp_handle_option): Similarly.
7949
7950 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
7951
7952         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
7953         (TARGET_ALTIVEC_ABI): Same.
7954         (TARGET_ALTIVEC_VRSAVE): Same.
7955
7956         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
7957         icode not CODE_FOR_nothing.  Change switch to if.
7958
7959 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
7960
7961         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
7962
7963 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
7964
7965         * stor-layout.c (place_union_field): For bitfields if
7966         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
7967         TYPE_USER_ALIGN.
7968
7969 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7970
7971         * pa.c (struct deferred_plabel): Constify name field.
7972
7973 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
7974
7975         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
7976
7977 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7978
7979         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
7980         local_prefix are the same.
7981         * configure: Rebuilt.
7982
7983 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
7984             Richard Henderson  <rth@redhat.com>
7985
7986         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
7987         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
7988         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
7989         (place_field): Likewise.
7990         * config/i386/i386.c (x86_field_alignment): Don't check
7991         DECL_USER_ALIGN here.
7992         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
7993         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
7994         prototype.
7995         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
7996         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
7997         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
7998         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
7999         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
8000         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
8001
8002 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
8003
8004         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
8005         * c-common.c: Don't include tree-inline.h.
8006         (c_common_init_options, c_common_post_options): Move to c-opts.c.
8007         * c-common.h (c_common_decode_option): New.
8008         * c-decl.c (c_decode_option): Remove.
8009         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
8010         * c-opts.c: New file.
8011         * c-tree.h (c_decode_option): Remove.
8012         * doc/passes.texi: Update.
8013         * objc/objc-act.c (objc_decode_option): Remove.
8014         * objc/objc-act.h (objc_decode_option): Remove.
8015         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
8016         c_common_decode_option.
8017
8018 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
8019
8020         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
8021         dependency on TARGET_DOUBLE_FLOAT.
8022
8023 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
8024
8025         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
8026         overwrite callee-save registers.  Fix comment.
8027
8028 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
8029
8030         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
8031         in target_flags based on ISA, if it was not set on the command
8032         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
8033         support Branch Likely instructions.
8034         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
8035         (TARGET_BRANCHLIKELY): Likewise.
8036         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
8037         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
8038         ISA_HAS_BRANCHLIKELY.
8039         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
8040         * doc/invoke.texi: Document new MIPS -mbranch-likely and
8041         -mno-branch-likely options.
8042
8043 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8044
8045         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
8046
8047         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
8048         $(GCONFIG_H).
8049
8050 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
8051
8052         * c-decl.c (duplicate_decls): Error out for incompatible TLS
8053         declarations.
8054
8055         * testsuite/gcc.dg/tls/diag-3.c: New.
8056
8057 2002-08-06  Dale Johannesen  <dalej@apple.com>
8058
8059         * c-common.c (fname_decl): Use line number 0 for
8060         __func__, to avoid confusing debuggers.
8061
8062 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
8063
8064         * gcov.c: Tidy.
8065         (struct line_info, struct coverage): New structures.
8066         (gcov_file_name, gcov_file): Remove globals.
8067         (output_data): Take source file parameter. Fix memory leak. Break
8068         up into ...
8069         (init_line_info, output_line_info, make_gcov_file_name,
8070         accumulate_branch_counts): ... here.
8071         (calculate_branch_probs, function_summary): Adjust.
8072         (main): Adjust.
8073         (function_*): Remove global variables.
8074
8075 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
8076
8077         * dwarf2out.c: Remove unused macros.
8078
8079 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
8080
8081         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
8082
8083 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
8084
8085         * cppinit.c (struct lang_flags): Rename trigraphs std.
8086         (set_lang): Update.
8087         * cpplib.h (struct cpp_options): New member std.
8088         * cppmacro.c (_cpp_builtin_macro_text): Use std.
8089         (collect_args): Flag whether to swallow a possible future
8090         comma pasted with varargs.
8091         (replace_args): Use this flag.
8092         * doc/cpp.texi: Update varargs extension documentation.
8093
8094 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
8095
8096         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
8097
8098 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
8099
8100         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
8101         and MODE_CLASS_INT modes.
8102
8103 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
8104
8105         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
8106         --{enable,disable}-threads is given to configure.
8107         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
8108         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
8109         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
8110         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
8111         Remove thread_file setting here.
8112
8113 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
8114
8115         * doc/install.texi (Binaries): Update Bull Freeware URL.
8116
8117 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8118
8119         * doc/gcc.texi (Top): Rename Index to Keyword Index.
8120
8121 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
8122
8123         * gcov.c (output_data): Round to % to nearest, tweak formatting.
8124
8125 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
8126
8127         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
8128         of the operands into MINUS_EXPR if code is PLUS_EXPR.
8129
8130 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
8131
8132         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
8133         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
8134         drectve_section): Define.
8135         * config/i386/t-interix: Replace interix.o rule with winnt.o.
8136         * config/i386/interix.c: Remove.
8137
8138 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
8139
8140         * attribs.c: Don't include obstack.h.
8141         * builtins.c: Likewise.
8142         * cfganal.c: Likewise.
8143         * cfgbuild.c: Likewise.
8144         * cfgcleanup.c: Likewise.
8145         * emit-rtl.c: Likewise.
8146         * loop.c: Likewise.
8147         * stmt.c: Likewise.
8148
8149         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
8150
8151 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
8152
8153         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
8154
8155 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
8156
8157         * doc/invoke.texi: Remove duplicated paragraph describing
8158         TARGET_SWITCHES.
8159
8160 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
8161
8162         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
8163         * collect2.h (permanent_obstack): Delete declaration.
8164         * collect2.c (permanent_obstack): Delete definition.
8165         (main): Don't initialize permanent_obstack.  Use xstrdup instead.
8166         * expr.c: Don't include obstack.h.
8167         (permanent_obstack): Delete declaration.
8168         * function.c: Don't include obstack.h.
8169         (permanent_obstack): Delete declaration.
8170         * integrate.c: Don't include obstack.h.
8171         (function_maybepermanent_obstack): Delete declaration.
8172         * print-tree.c (debug_tree): Use x*alloc not permalloc.
8173         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
8174         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
8175         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
8176         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
8177         of permalloc, expralloc, perm_calloc.
8178         * tree.c (permanent_obstack): Delete definition.
8179         (init_ttree): Rename from init_obstacks.
8180         (permalloc): Delete.
8181         (perm_calloc): Delete.
8182         (dump_tree_statistics): Don't print information about
8183         permanent_obstack.
8184         * varasm.c (assemble_start_function): Use xstrdup instead of
8185         permalloc/strcpy.
8186         (assemble_variable): Likewise.
8187         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
8188         permalloc.
8189         (unicosmk_add_extern): Likewise.
8190         * config/c4x/c4x.c (c4x_external_ref): Likewise.
8191         (c4x_global_label): Likewise.
8192         * config/frv/frv.c (frv_encode_section_info): Likewise.
8193         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
8194         (i386_pe_record_exported_symbol): Likewise.
8195         * config/mips/mips.c (mips_output_external): Likewise.
8196         (mips_output_external_libcall): Likewise.
8197         * config/pa/pa.c: (permanent_obstack): Delete declaration.
8198         (output_call): Use ggc_strdup instead of allocating on
8199         permanent_obstack.
8200         * config/romp/romp.c: Include ggc.h.
8201         (get_symref): Don't declare permanent_obstack, use ggc_strdup
8202         intead of permanent_obstack.
8203         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
8204         instead of permalloc.
8205         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
8206         instead of permalloc
8207         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
8208         instead of permalloc.
8209         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
8210         permalloc.
8211
8212 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
8213
8214         Contribute a port developed primarily by Michael Meissner,
8215         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
8216         * config.gcc: Add frv-elf target.
8217         * config/frv/cmovd.c: New file.
8218         * config/frv/cmovh.c: New file.
8219         * config/frv/cmovw.c: New file.
8220         * config/frv/frv-abi.h: New file.
8221         * config/frv/frv-asm.h: New file.
8222         * config/frv/frv-modes.def: New file.
8223         * config/frv/frv-protos.h: New file.
8224         * config/frv/frv.c: New file.
8225         * config/frv/frv.h: New file.
8226         * config/frv/frv.md: New file.
8227         * config/frv/frvbegin.c: New file.
8228         * config/frv/frvend.c: New file.
8229         * config/frv/lib1funcs.asm: New file.
8230         * config/frv/media.h: New file.
8231         * config/frv/modi.c: New file.
8232         * config/frv/t-frv: New file.
8233         * config/frv/uitod.c: New file.
8234         * config/frv/uitof.c: New file.
8235         * config/frv/ulltod.c: New file.
8236         * config/frv/ulltof.c: New file.
8237         * config/frv/umodi.c: New file.
8238         * config/frv/xm-frv.h: New file.
8239
8240         * config/frv/media.h: Removed again.
8241
8242 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
8243
8244         * gcov.c (bb_file_time): New static variable.
8245         (object_directory): May also be object file.
8246         (preserve_paths): New static variable.
8247         (print_usage): Adjust.
8248         (options): Adjust.
8249         (process_args): Adjust.
8250         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
8251         file. Find modification date on bb file.
8252         (read_profile): Don't rewind a NULL file.
8253         (format_hwint): New static function.
8254         (function_summary): Use format_hwint.
8255         (output_data): SOURCE_FILE_NAME is never relative to
8256         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
8257         mangling. Adjust output format to make it more machine readable.
8258         * doc/gcov.texi: Document & clarify semantics.
8259
8260 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
8261
8262         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
8263
8264 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
8265
8266         * gcc.c (cc1_options): Pass output file as auxbase when
8267         appropriate.
8268         * profile.c (init_branch_prob): FILENAME has already had ending
8269         stripped.
8270         * final.c (end_final): Likewise.
8271         * toplev.c (aux_base_name): New global.
8272         (compile_file): Pass aux_base_name to init init_branch_prob and
8273         end_final.
8274         (independent_decode_option, case 'a'): New auxinfo options.
8275         (case 'd'): Protect against mising basename.
8276         (do_compile): Initialize aux_base_name.
8277         * toplev.h (aux_base_name): New global.
8278         * doc/invoke.texi: Adjust documentation.
8279
8280 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
8281
8282         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
8283         of TARGET_ALIGN_DOUBLE.
8284
8285 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
8286
8287         * diagnostic.c (inform): New function.
8288         * diagnostic.h (inform): Declare.
8289
8290 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
8291
8292         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
8293         (movhi_internal): Same.
8294         (movqi_internal): Same.
8295         (movdi_internal64): Same.
8296
8297         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
8298
8299         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
8300         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
8301         (COMMON_ASM_OP): Define.
8302         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
8303         Use ALIGN parameter.
8304         (LOCAL_COMMON_ASM_OP): Define.
8305         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
8306
8307 2002-08-03  Roger Sayle  <roger@eyesopen.com>
8308
8309         * builtins.def: Define new builtin functions exp, expf, expl,
8310         log, logf and logl (and their __builtin_* variants).
8311         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
8312         Define exp_optab and log_optab.
8313         * optabs.c (init_optans): Initialize exp_optab and log_optab.
8314         * genopinit.c (optabs): Implement exp_optab and log_optab
8315         using exp?f2 and log?f2 patterns.
8316         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
8317         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
8318         (expand_builtin): Ignore the new builtins (and all cos and
8319         sin variants) when not optimizing.  Expand new builtins via
8320         expand_builtin_mathfn when flag_unsafe_math_optimizations.
8321
8322         * doc/extend.texi: Document new exp and log builtins.
8323         * doc/md.texi: Document new exp?f2 and log?f2 patterns
8324         (and previously undocumented cos?f2 and sin?f2 patterns).
8325
8326 2002-08-03  Jason Merrill  <jason@redhat.com>
8327
8328         * explow.c (int_expr_size): New fn.
8329         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
8330         * expr.h: Declare it.
8331
8332 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
8333
8334         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
8335         gengtype-* dependencies.
8336
8337 2002-08-02  Eric Christopher  <echristo@redhat.com>
8338
8339         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
8340         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
8341         #ifndef to #undef.
8342         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
8343
8344 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
8345
8346         PR optimize/7067
8347         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
8348         small if optimizing for size.
8349
8350 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
8351
8352         * configure.in (FORBUILD): Use $build_alias.
8353         * configure: Regenerated.
8354
8355 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
8356
8357         * config.gcc: Don't include mips/abi64.h in $tm_file.
8358         * hard-reg-set.h (call_really_used_regs): Declare.
8359         * config/mips/abi64.h: Remove file.
8360         * config/mips/linux.h,
8361         * config/mips/iris6.h: Don't include it.
8362         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
8363         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
8364         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
8365         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
8366         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
8367         Bring across definitions from abi64.h.
8368         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
8369         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
8370         (struct mips_args): Use it.
8371         * config/mips/mips.c (mips_conditional_register_usage): Define.
8372
8373 2002-08-02  Jason Merrill  <jason@redhat.com>
8374
8375         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
8376         * langhooks.c (lhd_expr_size): Define default.
8377         * langhooks.h (struct lang_hooks): Add expr_size.
8378         * explow.c (expr_size): Call it.
8379         * expr.c (store_expr): Don't copy an expression of size zero.
8380         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
8381         to store.
8382         * Makefile.in (builtins.o): Depend on langhooks.h.
8383
8384 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8385
8386         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
8387         * ra-debug.c: Include "tm_p.h".
8388         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
8389
8390 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
8391
8392         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
8393         when not honoring signalling NaNs.
8394         (simplify_ternary_operation): a == b has a definite value
8395         when not honoring NaNs.
8396
8397 2002-08-02  Jason Merrill  <jason@redhat.com>
8398
8399         * gdbinit.in (pct): New macro.
8400
8401 2002-08-01  Stan Shebs  <shebs@apple.com>
8402             Andreas Tobler  <toa@pop.agri.ch>
8403
8404         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
8405         plays nice with Darwin headers.
8406         (_BSD_RUNE_T_DEFINED_): Likewise.
8407
8408 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
8409
8410         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
8411         * cppinit.c (cpp_post_options): Likewise.
8412
8413         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
8414         warning about 'LL' suffix (but not 'ULL' etc) when
8415         -Wno-long-long is in effect.
8416
8417         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
8418         Check for failing time()/localtime(), issue a warning, and
8419         make __TIME__ and __DATE__ expand to fallback strings.
8420
8421         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
8422         and __TIME__ when the date and time cannot be determined.
8423
8424 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
8425
8426         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
8427
8428 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
8429
8430         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
8431
8432 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
8433
8434         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
8435         (mipsisa64sb1el-*-elf*): Likewise.
8436         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
8437         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
8438         (TARGET_SB1, TUNE_SB1): New macros.
8439         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
8440         -mtune flags.
8441
8442 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
8443
8444         * varasm.c (asm_emit_uninitialized): Return false if global BSS
8445         and ASM_EMIT_BSS not supported by target.
8446         (assemble_variable): Do not duplicate uninitialized logic.
8447         Fall through if asm_emit_uninitialized failed.
8448
8449 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
8450
8451         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
8452
8453 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
8454
8455         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
8456         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
8457
8458         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
8459         HOST_BITS_PER_WIDE_INT == 64.
8460
8461 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8462
8463         * df.c (df_insn_table_realloc): Change parameter to unsigned.
8464         * optabs.c (expand_binop): Make variable unsigned.
8465         * simplify-rtx.c (simplify_subreg): Likewise.
8466         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
8467
8468 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8469
8470         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
8471
8472 2002-08-01  Richard Henderson  <rth@redhat.com>
8473
8474         * toplev.c (parse_options_and_default_flags): Don't set
8475         flag_reorder_blocks for -Os.
8476
8477         * config/avr/avr.c (avr_optimization_options): Remove.
8478         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
8479         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
8480         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
8481
8482 2002-08-01  H.J. Lu <hjl@gnu.org>
8483             Richard Henderson  <rth@redhat.com>
8484
8485         * output.h (DECL_READONLY_SECTION): Remove.
8486         (decl_readonly_section): Declare.
8487         * varasm.c (decl_readonly_section): New.
8488         (default_section_type_flags, default_select_section): Use it.
8489         * config/arm/pe.c (arm_pe_unique_section): Likewise.
8490         * config/i386/interix.c (i386_pe_unique_section): Likewise.
8491         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
8492         * config/mcore/mcore.c (mcore_unique_section): Likewise.
8493         * config/mips/mips.c (mips_unique_section): Likewise.
8494
8495 2002-08-01  Richard Henderson  <rth@redhat.com>
8496
8497         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
8498         refers to a subroutine parameter.
8499
8500 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
8501
8502         * varasm.c (assemble_visibility): Strip name encoding.
8503
8504 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
8505
8506         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
8507         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
8508         when there is no frame pointer.
8509         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
8510         registers properly.
8511         * config/ns32k/__unorddf2.c: New file.
8512         * config/ns32k/__unordsf2.c: New file.
8513         * config/ns32k/t-ns32k: New file.
8514         * config.gcc (ns32k-*-netbsd*): Use it.
8515
8516 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
8517
8518         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
8519
8520 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
8521
8522         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
8523
8524 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
8525
8526         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
8527
8528 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
8529
8530         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
8531
8532 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8533
8534         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
8535         n_sets): Removed.
8536         (expr_hash_table, set_hash_table): Type changed to ...
8537         (struct hash_table): New type.
8538         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
8539         insert_expr_in_table, insert_set_in_table, compute_hash_table,
8540         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
8541         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
8542         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
8543         (alloc_hash_table): New.
8544         (free_set_hash_table, free_expr_hash_table): Merged to ...
8545         (free_hash_table): New.
8546         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
8547         (compute_hash_table_work): New.
8548         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
8549         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
8550         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
8551         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
8552         hoist_code, one_code_hoisting_pass,
8553         trim_ld_motion_mems): Altered due to changed type of hash tables.
8554
8555 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
8556
8557         * final.c (output_alternate_entry_point):
8558         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
8559
8560 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8561
8562         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
8563         avoid ISO C style function definition.
8564
8565         * expr.c (expand_assignment): Delete unused variable.
8566
8567 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
8568
8569         * c-common.c (cb_register_builtins): Set
8570         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
8571         is given, and to 0 otherwise.
8572         * combine.c (simplify_if_then_else): HONOR_NANS
8573         implies FLOAT_MODE_P.
8574
8575 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
8576
8577         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
8578         (cpp_handle_option): Don't handle it.
8579         (print_help): Update.
8580         * doc/cppopts.texi: Update.
8581
8582 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
8583
8584         * c-common.c (cb_register_builtins): If C++, define
8585         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
8586         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
8587 cp:
8588         * lang-specs.h: Simplify in accordance with new code in
8589         c-common.c.
8590
8591 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
8592
8593         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
8594         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
8595         * c-decl.c: Move all warning and flag variables to c-common.c.
8596         * c-format.c: Move all warning variables to c-common.c.
8597         * c-tree.h: Move all warning and flag declarations to c-common.h.
8598         * objc/objc-act.c: Move all warning variables to c-common.c.
8599         (flag_warn_protocol): Rename warn_protocol.
8600
8601 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8602
8603         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
8604
8605 2002-07-31  Graham Stott  <graham.stott@btinternet.com>
8606
8607         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
8608         .section prefix.
8609
8610 2002-07-31  Stan Shebs  <shebs@apple.com>
8611
8612         * config.gcc (i[34567]86-*-darwin*): New configuration.
8613         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
8614         defining.
8615         (TARGET_ENCODE_SECTION_INFO): Ditto.
8616         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
8617         * config/darwin.c (machopic_indirect_data_reference): Remove
8618         setting of RTX_UNCHANGING_P.
8619         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
8620         not to be applied to sums.
8621         * config/i386/t-darwin: New file.
8622         * config/i386/darwin.h: New file.
8623         * config/i386/i386.h (TARGET_MACHO): Add default definition.
8624         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
8625         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
8626         label and not the GOT add.
8627         (constant_address_p): For Mach-O, seeing a CONST is enough.
8628         (legitimate_pic_address_disp_p): Add a Mach-O case.
8629         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
8630         (legitimize_pic_address): Use generic Mach-O code to legitimize.
8631         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
8632         if outputting a difference.
8633         (ix86_output_addr_diff_elt): Add Mach-O case.
8634         (ix86_expand_move): Similarly.
8635         (ix86_expand_call): Similarly.
8636         (current_machopic_label_num): New global.
8637         (machopic_output_stub): New function.
8638         (ix86_value_regno): New function.
8639         (ix86_function_value): Use it instead of VALUE_REGNO.
8640         (ix86_libcall_value): Ditto.
8641         * config/i386/unix.h (VALUE_REGNO): Remove.
8642
8643 2002-07-31  Graham Stott  <grahas@btinternet.com>
8644
8645         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
8646         hash for LABEL_REF's.
8647
8648 2002-07-31  Graham Stott  <grahams@btinternet.com>
8649
8650         * config/rs6000/rs6000.c (spe_init_builtins,
8651         altivec_init_builtins, rs6000_common_init_builtins):
8652         Replace ANSI with K&R function def.
8653
8654 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
8655
8656         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
8657         for CCFPmode.
8658
8659 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
8660
8661         * config/mips/crtn.asm: Don't use __mips16 to determine the
8662         return-address offset.  Define RA to a suitable temporary
8663         register for the return address.
8664
8665 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
8666
8667         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
8668         constraints to 'd'.
8669
8670 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
8671
8672         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
8673         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
8674         patch on 2002-07-29.)
8675         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
8676
8677 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8678
8679         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
8680         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
8681         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
8682         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
8683         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
8684         (ASM_GLOBALIZE_LABEL): Delete.
8685         (GLOBAL_ASM_OP): Define.
8686
8687         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
8688
8689         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
8690         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
8691
8692 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
8693
8694         * doc/extend.texi (Hints implementation): Document that GCC
8695         mostly ignores `register'.
8696
8697 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
8698
8699         * flags.h: Declare flag_finite_math_only.
8700         Use it in definition of HONOR_NANS and
8701         HONOR_INFINITIES.
8702         * c-common.c (cb_register_builtins): Emit
8703         __FINITE_MATH_ONLY__ when flag_finite_math_only
8704         is set.
8705         * combine.c (simplify_if_then_else): If
8706         flag_finite_math_only is set, a == b has a
8707         definite value.
8708         * toplev.c: Initialize flag_finite_math_only.
8709         (set_flags_fast_math): Set it on -ffast-math.
8710         (flag_fast_math_set_p): Test it.
8711         * doc/invoke.texi: Document -ffinite-math-only.
8712
8713 2002-07-30  Richard Henderson  <rth@redhat.com>
8714
8715         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
8716         (noce_process_if_block): Likewise.
8717
8718 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
8719
8720         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
8721         Bail out early if false_expr is NULL and we'd crash due to this.
8722         * genemit.c (gen_expand): Recognize return insns even if the return
8723         appears in a parallel.
8724         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
8725         * config/fp-bit.c: Likewise.
8726         * doc/tm.texi: Document it.
8727
8728 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
8729             Zack Weinberg  <zack@codesourcery.com>
8730
8731         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
8732         CODE_FOR_nothing.  Change switch to if.
8733         (rs6000_expand_binop_builtin): Same.
8734         (rs6000_expand_builtin): Expand builtin if target support enabled.
8735         (rs6000_init_builtins): Init builtin if target support enabled.
8736         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
8737
8738 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8739
8740         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
8741
8742 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
8743
8744         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
8745
8746 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
8747
8748         * sh.md (cond_delay_slot): New attribute.
8749         (cbranch delay): Use it for anulled-true case.
8750         (stuff_delay_slot): New pattern.
8751         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
8752         delay slot insn.
8753         (gen_far_branch): Emit stuff_delay_slot pattern.
8754
8755 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
8756
8757         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
8758
8759 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
8760
8761         * fold-const.c: Fix comment typos.
8762         * gcse.c: Likewise.
8763         * reload1.c: Likewise.
8764
8765 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
8766
8767         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
8768         for TARGET_SPE.
8769
8770 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
8771
8772         * c-pretty-print.h (pp_c_statement): Declare.
8773         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
8774         (pp_c_statement): Define.
8775
8776 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8777
8778         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
8779         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
8780         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
8781         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
8782         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
8783         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
8784
8785         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
8786         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
8787
8788 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
8789
8790         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
8791         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
8792         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
8793         (pp_c_expression): Update.
8794
8795 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8796
8797         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
8798         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
8799         * alpha/vms-ld.c (main): Likewise.
8800         * dsp16xx.c (double_reg_to_memory): Likewise.
8801         * mcore.c (mcore_expand_prolog): Likewise.
8802         * cppfiles.c (read_name_map): Likewise.
8803         * gensupport.c (process_rtx, identify_predicable_attribute,
8804         alter_test_for_insn): Likewise.
8805         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
8806
8807 2002-07-29  Roger Sayle  <roger@eyesopen.com>
8808
8809         * builtins.c (expand_builtin):  Change the default behavior to
8810         only issue an error if the builtin function doesn't have a
8811         fallback library call.  Remove several cases handled by the
8812         new default.
8813
8814 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
8815
8816         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
8817         floating point format of the target is IEEE.
8818         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
8819         format of the target is DEC.
8820
8821 2002-07-29  Richard Henderson  <rth@redhat.com>
8822
8823         * unroll.c (verify_addresses): Remove.
8824         (find_splittable_givs): Never split DEST_ADDR givs.
8825
8826 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
8827
8828         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
8829         is exhaustive.
8830         (Files): Improve documentation on generated source files.
8831
8832         * doc/extend.texi (Translation implementation): Document what
8833         diagnostics look like.
8834         (Identifiers implementation): Document that there's normally no
8835         limit on identifier names.
8836         (Integers implementation): Document two's complement.
8837         (Hints implementation): Document that GCC honors 'inline', mostly.
8838         (Preprocessing directives implementation): Document that GCC
8839         requires the current time.
8840
8841 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
8842
8843         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
8844         (pp_initializer): New macro.
8845         (pp_c_initializer): Declare.
8846         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
8847         (pp_c_initializer): Define.
8848         (pp_c_initializer_list): New function.
8849         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
8850         VECTOR_CST, CONSTRUCTOR.
8851         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
8852         IMAGPART_EXPR.
8853         (pp_c_cast_expression): Handle FLOAT_EXPR.
8854         (pp_c_assignment_expression): Handle INIT_EXPR.
8855         (pp_c_expression): Update.
8856
8857 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
8858
8859         * objc/objc-act.c (objc_init): Return immediately if filename
8860         is NULL.
8861
8862 2002-07-29  Eric Christopher  <echristo@redhat.com>
8863
8864         * config/mips/elf.h: Remove ecoff.h and gofast includes.
8865         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
8866         (SDB_DEBUGGING_INFO): Undefine.
8867         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
8868         (PUT_SDB_SIZE): Remove.
8869         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
8870         (STARTFILE_SPEC): Add isa3264 define.
8871         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
8872         * config/mips/ecoff.h: Remove. and here...
8873         * config/mips/iris3.h: and here...
8874         * config/mips/sni-svr4.h: and here...
8875         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
8876         Add assembler -mmdebug options for non-dwarf debugging.
8877         * config/mips/r3900.h: Remove debug info defines.
8878         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
8879         * config/mips/isa3264.h: Ditto.
8880         * config/mips/t-isa3264: Fix up for file removal and gofast configure
8881         change.
8882         * config/mips/t-elf: Ditto.
8883         * config/mips/t-ecoff: Ditto.
8884         * config/mips/t-r3900: Ditto.
8885         * config/mips/t-iris5-6: Ditto.
8886         * config/mips/t-isa3264: Ditto.
8887         * config/mips/t-linux: Remove.
8888         * config/mips/t-netbsd: Remove.
8889         * config/mips/t-mips: New file.
8890         * config/mips/t-gofast: Ditto.
8891         * config/mips/netbsd.h: Remove unnecessary undefines.
8892         * config/mips/linux.h: Remove #include of mips.h.
8893         * config.gcc: Add mips.h include for elf targets. Remove tm_file
8894         for ecoff. Add gofast configure option for mips.
8895
8896 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
8897
8898         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
8899         linker scripts use STARTUP directives consistently.
8900         * configure: Regenerate.
8901         * config.in: Regenerate.
8902         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
8903         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
8904         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
8905         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
8906         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
8907         will be the same.
8908
8909 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
8910
8911         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
8912
8913 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
8914
8915         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
8916
8917 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
8918
8919         * config/rs6000/rs6000.md: Move altivec patterns from here...
8920
8921         * config/rs6000/altivec.md: ...to here.
8922
8923 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
8924
8925         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
8926
8927 2002-07-29  Richard Henderson  <rth@redhat.com>
8928
8929         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
8930         set_mem_attributes and add BITPOS argument.  Subtract it from
8931         OFFSET when same is adjusted.
8932         (set_mem_attributes): New wrapper function.
8933         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
8934         remove offset adjustment hack.
8935         * expr.h (set_mem_attributes_minus_bitpos): Declare.
8936
8937 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
8938
8939         * Makefile.in (C_OBJS): Include c-pretty-print.o
8940         (c-pretty-print.o): Add depency rule.
8941         * pretty-print.h: Add more macros.
8942         * c-pretty-print.c: New file.
8943         * c-pretty-print.h: Likewise.
8944
8945 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
8946
8947         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
8948         constants to __ev64_s32__.
8949         (__internal_ev_mwhgsmian): Same.
8950         (__internal_ev_mwhgsmfan): Same.
8951         (__internal_ev_mwhgssfan): Same.
8952         (__internal_ev_mwhgumiaa): Same.
8953         (__internal_ev_mwhgsmiaa): Same.
8954         (__internal_ev_mwhgsmfaa): Same.
8955         (__internal_ev_mwhgssfaa): Same.
8956
8957 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
8958
8959         * varasm.c (assemble_variable): Narrow test for uninitialized
8960         without BSS target support.
8961
8962 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
8963
8964         * profile.c: Add file comment describing the overall algorithm and
8965         structures.
8966         (struct edge_info): Add comments.
8967         (struct bb_info): Add comments.
8968         * basic-block.h (EDGE_*): Add comments.
8969         * doc/gcov.texi (Gcov Data Files): Document bit flags.
8970
8971 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
8972
8973         * config/xtensa/elf.h, config/xtensa/linux.h
8974         (TARGET_OS_CPP_BUILTINS): Define.
8975         (CPP_PREDEFINES): Remove.
8976         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
8977         (CPP_SPEC): Remove.
8978
8979 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
8980
8981         * gensupport.c: Include hashtab.h.
8982         (insn_elision, condition_table, hash_c_test, cmp_c_test,
8983         maybe_eval_c_test): New routines and data structures to
8984         support insn elision.
8985         (init_md_reader): Read and initialize the condition_table.
8986         (read_md_rtx): Discard insn patterns whose C test is provably
8987         always false.
8988         * gensupport.h: Declare new functions and data structures.
8989
8990         * genconditions.c, dummy-conditions.c: New files.
8991         * Makefile.in: Build genconditions; run it to construct
8992         insn-conditions.c; build that and link it into most gen*
8993         programs.
8994         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
8995         (GEN): Delete, unused.
8996         (STAGESTUFF): Update.
8997
8998         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
8999         CODE_FOR_nothing for all elided patterns.
9000         (main): Tweaked to support this.
9001         * genflags.c (gen_proto): Emit a static inline generator
9002         function here for all elided patterns, which simply returns
9003         NULL_RTX.
9004         (gen_insn): Do not define HAVE_xxx for elided patterns.
9005         (main): Tweaked to support this.  No need to forward-declare
9006         struct rtx_def.
9007         * genrecog.c: Do not bother emitting the C test if it's known
9008         to be true at compile time.
9009
9010 2002-07-29  Mike Stump  <mrs@apple.com>
9011
9012         * config.gcc (target_gtfiles): Initialize, as otherwise cross
9013         compilers hosted on powerpc-apple-darwin6.0 won't even build.
9014
9015 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
9016
9017         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
9018         remove clobber of LR.
9019         (sibcall_insn, sibcall_value_insn): Update accordingly.
9020         (sibcall_epilogue): Remove debugging comment from assembler stream.
9021
9022 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
9023
9024         * pretty-print.h: Define more macros.
9025         * diagnostic.h (output_formatted_integer): Moved from...
9026         * diagnostic.c: ... here.
9027
9028 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9029
9030         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
9031
9032 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
9033
9034         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
9035         arguments.  Always use ".-symbol" as expression argument.
9036         * doc/tm.texi: Update to match.  Document requirement for
9037         ".size symbol, .-symbol" to be acceptable to assembler.
9038
9039         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
9040         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
9041         config/i386/freebsd-aout.h, config/i386/sco5.h,
9042         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
9043         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
9044
9045 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9046
9047         * Makefile.in (gengtype-lex.c): Fix error in last change.
9048
9049         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
9050         backslash.
9051
9052         * Makefile.in (vmsdbgout.o): Depend on function.h.
9053
9054         * vmsdbgout.c: Include function.h.
9055
9056 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
9057
9058         * prefix.c (update_path): Don't strip single `.' path components
9059         unless stripping a later `..' component.  Exit loop as soon as
9060         a valid path is found.
9061
9062 2002-07-27  Roger Sayle  <roger@eyesopen.com>
9063
9064         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
9065         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
9066         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
9067         floating point unordered comparisons (e.g. __builtin_isgreater)
9068         as const, and leave the remaining GCC_BUILTINs unchanged.
9069
9070         * c-decl.c (builtin_function): No need to explicitly mark
9071         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
9072
9073 2002-07-27  Roger Sayle  <roger@eyesopen.com>
9074
9075         * Makefile.in: rtlanal.o now depends upon real.h.
9076
9077         * flags.h [flag_signaling_nans]: New flag.
9078         [HONOR_SNANS]: New macro.
9079
9080         * toplev.c [flag_signaling_nans]: Initialize to false.
9081         (f_options): Add processing for "-fsignaling-nans".
9082         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
9083         (process_options): flag_signaling_nans implies flag_trapping_math.
9084
9085         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
9086         when -fsignaling-nans.  First step to implementing WG14's N965.
9087
9088         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
9089         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
9090         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
9091
9092         * simplify-rtx.c (simplify_relational_operation): Conditionalize
9093         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
9094
9095         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
9096         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
9097         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
9098         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
9099         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
9100
9101         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
9102
9103 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9104
9105         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
9106         * gengtype-lex.l (YY_USE_PROTOS): Undef.
9107         (YY_DECL): Define.
9108
9109 2002-07-27  Roger Sayle  <roger@eyesopen.com>
9110
9111         * doc/invoke.texi: Document that both -fno-builtin-foo and
9112         -fno-builtin are supported by the g++ front-end.
9113
9114 2002-07-27  Stan Shebs  <shebs@apple.com>
9115
9116         * configure.in: Rename config_gtfiles to target_gtfiles.
9117         * configure: Regenerate.
9118         * doc/gty.texi: Update reference.
9119         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
9120         instead of appending to it.
9121
9122 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
9123
9124         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
9125         vectors are split into two registers.
9126         (function_arg): Same.
9127
9128 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
9129
9130         * pa.md (extv): Check predicates before emitting extv_32.
9131
9132 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
9133
9134         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
9135         (rs6000_traceback): New var.
9136         (rs6000_override_options): Set rs6000_traceback.
9137         (rs6000_output_function_epilogue): Implement traceback options.
9138         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
9139         (rs6000_traceback_name): Declare.
9140
9141         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
9142         label reference when NO_PROFILE_COUNTERS.
9143
9144 2002-07-26  Jason Merrill  <jason@redhat.com>
9145
9146         * function.c (assign_parms): Handle frontend-directed pass by
9147         invisible reference.
9148
9149 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
9150
9151         * doc/cppopts.texi: Update.
9152
9153 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
9154
9155         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
9156         warnings on assertions.
9157
9158 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
9159
9160         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
9161         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
9162         RID_COMPL): Remove.
9163         * c-parse.in (rid_to_yy): Similarly.
9164
9165 2002-07-26  Jason Merrill  <jason@redhat.com>
9166
9167         * c-dump.c: Resurrect.
9168         * tree-dump.c: Move C-specific stuff to c-dump.c.
9169         * c-common.h: Declare c_dump_tree.
9170         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
9171         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
9172         (c-dump.o): New rule.
9173
9174 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
9175
9176         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
9177         PowerPC64.  Replace "T" and "S" constraints with "n" when the
9178         predicate will do.  Formatting fixes.
9179         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
9180         as for extzvsi_internal1.
9181
9182 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
9183
9184         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
9185         DERIV_END_LABEL_FMT): Remove.
9186         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
9187
9188 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
9189
9190         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
9191         Remove.
9192
9193 2002-07-25  Stan Shebs  <shebs@apple.com>
9194
9195         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
9196         local var dwarfp.
9197         (output_compiler_stub): Remove unused locals.
9198         (output_call): Always initialize line number.
9199
9200 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
9201
9202         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
9203         * sh.md (truncdiqi2, movqi_media): Likewise.
9204
9205 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
9206
9207         * gcse.c (obstack_chunk_alloc): Remove.
9208         (gcse_alloc): Fix to count allocated bytes.
9209         * collect2.c (SYMBOL__MAIN): Remove.
9210
9211 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
9212
9213         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
9214         HAVE_TARGET_EXECUTABLE_SUFFIX.
9215
9216 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
9217
9218         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
9219         SIZE, EXPR and OFFSET.
9220
9221 2002-07-25  Richard Henderson  <rth@redhat.com>
9222
9223         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
9224         in ARRAY_REF of DECL_P case.
9225
9226 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
9227
9228         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
9229         description.  Document -mips32, -mips64, and the associated -march
9230         values.  Describe the "mipsN" arguments to -march.  Say that the
9231         -mipsN options are equivalent to -march.  Reword the description
9232         of default type sizes.
9233         * toplev.h (target_flags_explicit): Declare.
9234         * toplev.c (target_flags_explicit): New var.
9235         (set_target_switch): Update target_flags_explicit.
9236         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
9237         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
9238         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
9239         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
9240         * config/mips/mips.h (mips_cpu_info): New struct.
9241         (mips_cpu_string, mips_explicit_type_size_string): Remove.
9242         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
9243         (MIPS_CPP_SET_PROCESSOR): New macro.
9244         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
9245         Define _MIPS_ARCH and _MIPS_TUNE.
9246         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
9247         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
9248         MIPS_ISA_DEFAULT were already defined.
9249         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
9250         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
9251         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
9252         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
9253         (ABI_GAS_ASM_SPEC): Remove.
9254         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
9255         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
9256         Invoke %(asm_abi_default_spec) if no ABI was specified.
9257         (CC1_SPEC): Remove ISA -> register-size rules.
9258         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
9259         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
9260         (mips_cpu_string, mips_explicit_type_size_string): Remove.
9261         (mips_cpu_info_table): New array.
9262         (mips_set_architecture, mips_set_tune): New fns.
9263         (override_options): Rework to make -mipsN equivalent to -march.
9264         Detect more erroneous cases, including those removed from CC1_SPEC.
9265         Don't change the ABI based on architecture, or vice versa.
9266         Unify logic with GAS.
9267         (mips_asm_file_start): Get architecture name from mips_arch_info.
9268         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
9269         (mips_parse_cpu): Take the name of the option as argument.  Handle
9270         'from-abi'.  Raise an error if the option is wrong.
9271         (mips_cpu_info_from_isa): New fn.
9272
9273 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
9274
9275         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
9276         (tablejump_mips162): Likewise.
9277
9278 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
9279
9280         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
9281         int_mode_for_mode.
9282
9283 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
9284
9285         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
9286         complaining.
9287         * c-common.h (c_sizeof): Adjust definition.
9288         (c_alignof): Likewise.
9289         * c-tree.h (c_sizeof_nowarn): Now macro.
9290         * c-typeck.c (c_sizeof_nowarn): Remove definition.
9291
9292 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
9293
9294         * c-decl.c (c_decode_option): No need to handle switches
9295         cpplib handles.
9296
9297 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
9298
9299         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
9300         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
9301         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
9302         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
9303
9304         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
9305         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
9306         config/cris/aout.h, config/i386/freebsd-aout.h,
9307         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
9308         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
9309         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
9310         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
9311         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
9312         config/xtensa/elf.h, config/xtensa/linux.h:
9313         Use the new macros.
9314         Where possible, remove redundant definitions of SIZE_ASM_OP,
9315         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
9316
9317 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
9318
9319         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
9320         TARGET_ISEL, and TARGET_FPRS.
9321
9322         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9323         -mabi=spe, -mabi=no-spe, and -misel=.
9324
9325         * config/rs6000/rs6000-protos.h: Add output_isel.
9326         Move vrsave_operation prototype here.
9327
9328         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
9329         (smaxsi3): Same.
9330         (uminsi3): Same.
9331         (umaxsi3): Same.
9332         (abssi2_nopower): Disallow when TARGET_ISEL.
9333         (*ne0): Same.
9334         (negsf2): Change to expand and rename old pattern to *negsf2.
9335         (abssf2): Change to expand and rename old pattern to *abssf2.
9336
9337         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
9338         fixunssfsi2.
9339
9340         Change patterns that check for TARGET_HARD_FLOAT or
9341         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
9342
9343         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
9344         rs6000_isel, rs6000_fprs, rs6000_isel_string.
9345         (rs6000_override_options): Add 8540 case to
9346         processor_target_table.
9347         Set rs6000_isel for the 8540.
9348         Call rs6000_parse_isel_option.
9349         (enable_mask_for_builtins): New.
9350         (rs6000_parse_isel_option): New.
9351         (rs6000_parse_abi_options): Add spe and no-spe.
9352         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
9353         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
9354         for TARGET_HARD_FLOAT.
9355         Add case for SPE_VECTOR_MODE.
9356         (rs6000_legitimize_reload_address): Handle SPE vector modes.
9357         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
9358         vector modes.
9359         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
9360         (rs6000_emit_move): Check for TARGET_FPRS.
9361         Add cases for SPE vector modes.
9362         (function_arg_boundary): Return 64 for SPE vector modes.
9363         (function_arg_advance): Check for TARGET_FPRS and
9364         Handle SPE vectors.
9365         (function_arg): Same.
9366         (setup_incoming_varargs): Check for TARGET_FPRS.
9367         (rs6000_va_arg): Same.
9368         (struct builtin_description): Un-constify mask field.  Move up in
9369         file.
9370         (bdesc_2arg): Un-constify and add SPE builtins.
9371         (bdesc_1arg): Same.
9372         (bdesc_spe_predicates): New.
9373         (bdesc_spe_evsel): New.
9374         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
9375         (rs6000_expand_binop_builtin): Same.
9376         (bdesc_2arg_spe): New.
9377         (spe_expand_builtin): New.
9378         (spe_expand_predicate_builtin): New.
9379         (spe_expand_evsel_builtin): New.
9380         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
9381         (rs6000_init_builtins): Initialize SPE builtins.  Call
9382         rs6000_common_init_builtins.
9383         (altivec_init_builtins): Move all non-altivec builtin code to...
9384         (rs6000_common_init_builtins): ...here.  New function.
9385         (branch_positive_comparison_operator): Allow NE code for SPE.
9386         (ccr_bit): Return correct ccr bit for SPE fp.
9387         (print_operand): Emit crnor in 'D' case for SPE.
9388         New case 't'.
9389         Add SPE code for 'y' case.
9390         (rs6000_generate_compare): Generate rtl for SPE fp.
9391         (output_cbranch): Handle SPE hard floats.
9392         (rs6000_emit_cmove): Handle isel.
9393         (rs6000_emit_int_cmove): New.
9394         (output_isel): New.
9395         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
9396         64-bits for SPE.
9397         (debug_stack_info): Add SPE info.
9398         (gen_frame_mem_offset): New.
9399         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
9400         Change mode of frame pointer, when saving it, to Pmode.
9401         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
9402         Misc cleanups and use gen_frame_mem_offset when appropriate.
9403
9404         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
9405         (TARGET_SPE_ABI): New.
9406         (TARGET_SPE): New.
9407         (TARGET_ISEL): New.
9408         (TARGET_FPRS): New.
9409         (FIXED_SCRATCH): New.
9410         (RTX_COSTS): Add PROCESSOR_PPC8540.
9411         (ASM_CPU_SPEC): Add case for 8540.
9412         (TARGET_OPTIONS): Add isel= case.
9413         (rs6000_spe_abi): New.
9414         (rs6000_isel): New.
9415         (rs6000_fprs): New.
9416         (rs6000_isel_string): New.
9417         (UNITS_PER_SPE_WORD): New.
9418         (LOCAL_ALIGNMENT): Adjust for SPE.
9419         (HARD_REGNO_MODE_OK): Same.
9420         (DATA_ALIGNMENT): Same.
9421         (MEMBER_TYPE_FORCES_BLK): New.
9422         (FIRST_PSEUDO_REGISTER): Set to 113.
9423         (FIXED_REGISTERS): Add SPE registers.
9424         (reg_class): Same.
9425         (REG_CLASS_NAMES): Same.
9426         (REG_CLASS_CONTENTS): Same.
9427         (REGNO_REG_CLASS): Same.
9428         (REGISTER_NAMES): Same.
9429         (DEBUG_REGISTER_NAMES): Same.
9430         (ADDITIONAL_REGISTER_NAMES): Same.
9431         (CALL_USED_REGISTERS): Same.
9432         (CALL_REALLY_USED_REGISTERS): Same.
9433         (SPE_ACC_REGNO): New.
9434         (SPEFSCR_REGNO): New.
9435         (SPE_SIMD_REGNO_P): New.
9436         (HARD_REGNO_NREGS): Adjust for SPE.
9437         (VECTOR_MODE_SUPPORTED_P): Same.
9438         (REGNO_REG_CLASS): Same.
9439         (FUNCTION_VALUE): Same.
9440         (LIBCALL_VALUE): Same.
9441         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
9442         (SPE_VECTOR_MODE): New.
9443         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
9444         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
9445         (rs6000_stack): Add spe_gp_size, spe_padding_size,
9446         spe_gp_save_offset.
9447         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
9448         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
9449         (SPE_CONST_OFFSET_OK): New.
9450         (rs6000_builtins): Add SPE builtins.
9451
9452         * testsuite/gcc.dg/ppc-spe.c: New.
9453
9454         * config/rs6000/eabispe.h: New.
9455
9456         * config/rs6000/spe.h: New.
9457
9458         * config/rs600/spe.md: New.
9459
9460         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9461         __SIMD__ for TARGET_SPE.
9462
9463         * config.gcc: Add powerpc-*-eabispe* case.
9464         Add spe.h to user headers for powerpc.
9465
9466 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
9467
9468         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
9469         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
9470         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
9471
9472 2002-07-24  Richard Henderson  <rth@redhat.com>
9473
9474         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
9475         form when not optimizing.
9476
9477 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
9478
9479         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
9480         thread_pointer_rtx as unchanging.
9481
9482 2002-07-24  Michael Matz  <matz@suse.de>
9483
9484         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
9485         (free_reg): Use it.
9486
9487 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
9488
9489         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
9490         pattern.
9491         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
9492         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
9493
9494 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
9495
9496         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
9497         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
9498         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
9499
9500 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
9501
9502         * toplev.c (rest_of_compilation): Dump loops before clobbering
9503         the structure.
9504
9505 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
9506
9507         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
9508
9509 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
9510
9511         PR optimization/7291
9512         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
9513         problem on x86_64.
9514
9515 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
9516
9517         * pretty-print.h: Add macros from cp/error.c
9518
9519 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
9520
9521         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
9522         (mask64_2_operand): Declare.
9523         (build_mask64_2_operands): Declare.
9524         (and64_2_operand): Declare.
9525         (extract_MB): Declare.
9526         (extract_ME): Declare.
9527         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
9528         CONST_DOUBLE code.
9529         (mask_operand_wrap): New insn predicate.
9530         (mask64_2_operand): Likewise.
9531         (and64_2_operand): Likewise.
9532         (build_mask64_2_operands): New function.
9533         (extract_MB): New function.
9534         (extract_ME): New function.
9535         (print_operand <case m,M>): Use extract_MB and extract_ME.
9536         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
9537         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
9538         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
9539         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
9540         * config/rs6000/rs6000.md (andsi3_internal3): New
9541         (andsi3_internal3+1): Enable split for powerpc64.
9542         (andsi3_internal3+2): New split.
9543         (andsi3_internal4): Renamed old andsi3_internal3.
9544         (andsi3_internal5): New.
9545         (andsi3_internal5+1): Enable split for powerpc64.
9546         (andsi3_internal5+2): New split.
9547         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
9548         (anddi3): Handle 't' constraint.
9549         (anddi3+1): New split.
9550         (anddi3_internal2): Handle 't' constraint.
9551         (anddi3_internal2+1): New split.
9552         (anddi3_internal3): Handle 't' constraint.
9553         (anddi3_internal3+1): New split.
9554
9555 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
9556
9557         * config/rs6000/rs6000.md: Remove scratch reg on insns using
9558         addze and similar (plus (comparison r1 r2) r3) insns.  Add
9559         missing scratch reg in one case.  Formatting fixes.
9560
9561 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
9562
9563         * cppexp.c (parse_defined): Mark macro used.
9564         * cpphash.h (struct cpp_macro): New member "used".
9565         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
9566         (struct cpp_reader): New member.
9567         * cppinit.c (cpp_finish_options): Set first_unused_line.
9568         (cpp_finish): Warn of unused macros if requested.
9569         (OPT_TABLE): New switches.
9570         (cpp_handle_option): Handle them.
9571         * cpplib.c (do_undef): Warn if macro unused.
9572         (do_ifdef, do_ifndef): Mark macro used.
9573         * cpplib.h (struct cpp_options): New member.
9574         * cppmacro.c (_cpp_warn_if_unused_macro): New.
9575         (enter_macro_context): Mark macro used.
9576         (_cpp_create_definition): Mark macro unused; warn if unused
9577         when redefined.
9578         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
9579         Mark macros used.
9580         * doc/cppopts.texi: Update.
9581
9582 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
9583
9584         * dwarf2out.c (SECTION_ASM_OP,
9585         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
9586         * system.h (SECTION_ASM_OP): Poison.
9587         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
9588         * config/alpha/alpha-interix.h, config/mips/linux.h
9589         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
9590         * config/mmix/mmix-protos.h, config/mmix/mmix.c
9591         (mmix_asm_output_define_label_difference_symbol): Remove.
9592         * config/mmix/mmix.h
9593         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
9594         * doc/tm.texi: Remove documentation.
9595
9596 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
9597
9598         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
9599         (constrain_operands): Likewise.
9600         * regclass.c (record_reg_classes): Likewise.
9601         * reload.c (find_reloads): Likewise.
9602         * doc/md.texi: Likewise.
9603
9604         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
9605         * simplify-rtx.c (simplify_subreg): When converting to a non-int
9606         mode, try to convert to an integer mode of matching size first.
9607
9608         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
9609         from individual subregs, check that each subreg has been generated
9610         sucessfully.
9611
9612 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
9613
9614         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
9615         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
9616         FOR_EACH_BB_IN_SBITMAP): Remove.
9617         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
9618         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
9619         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
9620         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
9621         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
9622         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
9623
9624 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
9625
9626         * pretty-print.h: New file.
9627
9628 2002-07-23      Paul Koning     <pkoning@equallogic.com>
9629
9630         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
9631         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
9632         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
9633         (TARGET_G_FLOAT): Default to 0 if not defined.
9634         (ieeetoe): New, common routine to convert target format floats
9635         to internal form.
9636         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
9637         vs. others.
9638         (e113toe): Change to use ieeetoe.
9639
9640 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
9641
9642         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
9643         IBM.
9644         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
9645         (e64toe): Remove special cases for DEC and IBM. Remove support for
9646         ARM_EXTENDED_IEEE_FORMAT.
9647         (e24toe): Remove special cases for DEC.
9648         (significand_size): Simplify. Indent.
9649         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
9650         (etoieee, toieee): New.
9651         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
9652         etoieee and toieee for IEEE arithmetic.
9653
9654 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
9655
9656         * doc/extend.texi: Say ISO C90, not ISO C89.
9657         * doc/invoke.texi: Likewise.
9658         * doc/standards.texi: Likewise.
9659
9660 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
9661
9662         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
9663         Fix permutation of conversion and plus/mult.
9664         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
9665         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
9666         (expand_builtin_strncpy) Ditto.
9667         (expand_builtin_memset) Ditto.
9668
9669 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
9670
9671         Fix PR/7363:
9672         * c-common.c (c_sizeof_or_alignof_type): New function.
9673         (c_alignof): Remove definition.
9674         * c-common.h (c_sizeof, c_alignof): Define as macros.
9675         (c_sizeof_or_alignof_type): Declare.
9676         (my_friendly_assert): Moved from cp/cp-tree.h
9677         * c-typeck.c (c_sizeof): Remove definition.
9678
9679 2002-07-23  Jan Hubicka  <jh@suse.cz>
9680
9681         * gcse.c (try_replace_reg): Use num_changes_pending.
9682         * recog.c (num_changes_pending): New function.
9683         (validate_replace_src): Use validate_repalce_src_group.
9684         (validate_replace_src_group): New.
9685         * recog.h (validate_repalce_src_group): New.
9686         (num_changes_pending): Likewise.
9687
9688 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
9689
9690         * calls.c (emit_library_call_value_1): If
9691         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
9692         libcall, const call nor pure call.
9693
9694 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
9695
9696         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
9697
9698 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
9699
9700         * vmsdbgout.c (SECTION_ASM_OP): Remove.
9701
9702 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
9703
9704         * config/i386/i386.c (AT_BP): Remove.
9705
9706 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
9707
9708         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
9709         Default definition.
9710         * gcse.c: Don't define obstack_chunk_free.
9711         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
9712         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
9713         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
9714         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
9715         Don't define obstack macros.
9716
9717 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
9718
9719         PR target/6744
9720         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
9721         ASM_OPERANDS instructions.
9722
9723 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
9724
9725         PR target/7361
9726         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
9727         constant addresses only on 68HC12.
9728
9729 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
9730
9731         * cppfiles.c (stack_include_file): Correct test of whether
9732         a dependency should be output.
9733
9734 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
9735
9736         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
9737
9738 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
9739
9740         * arm.md (movqi): If optimizing and we can create pseudos, use
9741         a ZERO_EXTEND to load from memory, then copy the result into the
9742         target.
9743         (movhi): Likewise, but only for ARMv4.
9744
9745 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
9746
9747         * ssa-ccp.c (PHI_PARMS): Remove.
9748
9749 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
9750
9751         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
9752         on big-endian targets.
9753
9754 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9755
9756         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
9757         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
9758         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
9759         New formatting macros.
9760
9761         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
9762
9763 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
9764
9765         * rtlanal.c (subreg_regno_offset): Return correct offset for
9766         big endian paradoxical subregs.
9767
9768         * optabs.c (expand_vector_unop): Don't expand using sub_optab
9769         if we got the wrong mode.
9770
9771         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
9772         * genrecog.c (write_switch, write_cond): Use it.
9773         * genemit.c (gen_exp): Likewise.
9774
9775 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
9776
9777         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
9778
9779 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
9780
9781         * c-decl.c (build_compound_literal): Defer compound literal decls
9782         until until file end to emit them only if they are actually used.
9783
9784 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9785
9786         * ra-build.c (check_conflict_numbers): Hide unused function.
9787         (livethrough_conflicts_bb): Avoid automatic aggregate
9788         initialization.
9789         (parts_to_webs_1): Avoid `U' integer constant modifier.
9790         (conflicts_between_webs): Wrap a variable in the macro controlling
9791         its usage.
9792         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
9793         (dump_igraph, dump_graph_cost): Avoid string concatenation
9794         (dump_static_insn_cost): Avoid automatic aggregate
9795         initialization.
9796         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
9797         initialization.
9798         (dump_cost): Avoid string concatenation
9799
9800 2002-07-21  Richard Henderson  <rth@redhat.com>
9801
9802         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
9803         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
9804
9805 2002-07-21  Richard Henderson  <rth@redhat.com>
9806
9807         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
9808         that are not unrolled completely.
9809
9810 2002-07-21  Richard Henderson  <rth@redhat.com>
9811
9812         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
9813         * loop.c (strength_reduce): Update.
9814         * toplev.c (rest_of_compilation): Do unrolling in the first
9815         loop pass, not the second.
9816
9817 2002-07-21  Richard Henderson  <rth@redhat.com>
9818
9819         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
9820         when flag_argument_noalias == 2.
9821         * alias.c (nonoverlapping_memrefs_p): Handle that.
9822         * print-rtl.c (print_mem_expr): Likewise.
9823
9824 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
9825
9826         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
9827         instead of __negdi2 directly.
9828
9829 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
9830
9831         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
9832         * function.c (SYMBOL__MAIN): Remove definition.
9833         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
9834         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
9835         * profile.c (GCOV_INDEX_TO_BB): Remove.
9836         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
9837         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
9838
9839 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
9840
9841         * c-lex.c (GET_ENVIRONMENT): Remove.
9842         * collect2.c (GET_ENV_PATH_LIST): Remove.
9843         (prefix_from_env): Use GET_ENVIRONMENT.
9844         * cppinit.c (GET_ENV_PATH_LIST): Remove.
9845         (init_standard_includes): Use GET_ENVIRONMENT.
9846         * defaults.h (GET_ENVIRONMENT): Define here if not already.
9847         * gcc.c (GET_ENV_PATH_LIST): Remove.
9848         (make_relative_prefix, process_command): Update.
9849         * protoize.c (GET_ENV_PATH_LIST): Remove.
9850         (do_processing): Update.
9851
9852 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
9853
9854         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
9855         (grokdeclarator): Likewise.
9856         * c-format.c (C_STD_NAME): Likewise.
9857         * c-lex.c (interpret_integer): Likewise.
9858         * c-typeck.c (build_array_ref): Likewise.
9859         * cpplex.c (_cpp_lex_direct): Likewise.
9860         * toplev.c (documented_lang_options): Likewise.
9861
9862 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
9863
9864         * c-format.c (T99_I, T99_UI): Remove.
9865
9866 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
9867
9868         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
9869
9870 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
9871
9872         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
9873         do_local_cprop.
9874
9875 2002-07-21  Andreas Jaeger  <aj@suse.de>
9876
9877         * reload1.c (fixup_abnormal_edges): Remove unused variable.
9878
9879 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
9880
9881         Improvements for the ifcvt pass from Michael Meissner, with patches
9882         by Richard Sandiford <rsandifo@redhat.com>
9883         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
9884         * ifcvt.c (cond_exec_changed_p): New static variable.
9885         (last_active_insn): New function, renamed from last_active_insn_p
9886         and changed to return the last active insn in a basic block. All
9887         callers updated.
9888         (block_fallthru): New function.
9889         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
9890         IFCVT_MODIFY_INSN.  All callers updated.
9891         Return false if START or END are NULL.
9892         Handle case where we're processing an insn that is already
9893         conditional.
9894
9895         (noce_process_if_block): CE_INFO argument rather than
9896         multiple args containing the involved basic blocks.  All callers
9897         changed.
9898         (process_if_block, merge_if_block, find_if_block,
9899         cond_exec_process_if_block): Likewise.
9900
9901         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
9902         changed.
9903         Use new function last_active_insn to simplify some code.
9904         New code to handle multiple tests.
9905         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
9906         cond_exec_changed_p to TRUE.
9907
9908         (process_if_block): New code to handle multiple tests.
9909         (merge_if_block): Likewise.
9910         (find_if_header): New arg PASS.  Changed to return the currently
9911         processed basic block or NULL instead of true/false. All callers
9912         changed.
9913         Call IFCVT_INIT_EXTRA_FIELDS.
9914         (block_jumps_and_fallthru_p): New function.
9915         (find_if_block): Discover opportunities to convert multiple tests.
9916         Add additional debugging output.
9917         Update the ce_info structure before returning.
9918
9919         (if_convert): Run multiple passes of if-conversion.
9920         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
9921         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
9922         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
9923         these macros.
9924
9925 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
9926
9927         * gcse.c: Include cselib.h
9928         (constptop_register): Break out from ...
9929         (cprop_insn): ... here; kill basic_block argument.
9930         (do_local_cprop, local_cprop_pass): New functions.
9931         (one_cprop_pass): Call local_cprop_pass.
9932
9933 2002-07-20  Roger Sayle  <roger@eyesopen.com>
9934
9935         * simplify-rtx.c (simplify_relational_operation): Optimize
9936         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
9937
9938 2002-07-20  Michae Matz  <matz@suse.de>
9939
9940         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
9941
9942 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
9943
9944         * cppexp.c (struct op): Add token pointer.
9945         (check_promotion, CHECK_PROMOTION): New.
9946         (optab): Update.
9947         (_cpp_parse_expr): Update, use token pointer of struct op.
9948         (reduce): Warn about change of sign owing to promotion.
9949         * cppinit.c (cpp_handle_option): New warning if -Wall.
9950         * cpplib.h (struct cpp_options): New member.
9951
9952 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
9953
9954         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
9955         fpu list.  Separate Power4 compare and delayed_compare.  Correct
9956         Power4 fpcompare.
9957         (fix_truncdfsi2_internal): Restore FPR preference.
9958         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
9959         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
9960
9961 2002-07-19  Momchil Velikov <velco@fadata.bg>
9962
9963         * reload1.c (reload_as_needed): Duplicate oldpat.
9964
9965 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
9966
9967         PR optimization/7130
9968         * loop.h (struct loop_info): Add "preconditioned".
9969         * unroll.c (unroll_loop): Set it.
9970         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
9971
9972 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
9973
9974         * rtl.def (CODE_LABEL): Remove slot 8.
9975         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
9976         (LABEL_ALTERNATE_NAME): Delete.
9977         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
9978         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
9979
9980         * final.c (output_alternate_entry_point): New.
9981         (final_scan_insn): Use it instead of
9982         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
9983         of a case label being an alternate entry point.
9984
9985         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
9986         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
9987         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
9988         (field deleted).
9989         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
9990
9991         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
9992         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
9993         * doc/tm.texi: Delete documentation of
9994         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
9995
9996 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9997
9998         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
9999         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
10000         (LINK_SPEC): Define.
10001         (STARTFILE_SPEC): Define.
10002         (ENDFILE_SPEC): Define.
10003
10004         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
10005         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
10006
10007         * config/mips/iris6-o32-gas.h: New file.
10008         * config.gcc (mips-sgi-irix6*o32): Use it.
10009
10010         * config/mips/t-iris5-gas: New file.
10011         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
10012
10013 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
10014
10015         * cppexp.c (ALWAYS_EVAL): Remove.
10016         (optab, reduce): Always evaluate.
10017         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
10018         only if not skipping evaluation.
10019
10020 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10021
10022         * config/avr/avr.c (debug_hard_reg_set): Remove.
10023
10024 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
10025
10026         * gcc.c (cpp_options): Include "%1" (cc1_spec).
10027
10028 2002-07-19  Richard Henderson  <rth@redhat.com>
10029
10030         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
10031
10032 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
10033
10034         * prefix.c (update_path): Don't zap single `.' path components
10035         unless followed by another `.' and fix typo last patch.
10036
10037 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
10038
10039         * cppexp.c (cpp_num_mul): Remove unused parameter.
10040         (UNARY, BINARY, OTHER, binary_handler): Remove.
10041         (ALWAYS_EVAL): New.
10042         (optab): Update.
10043         (reduce): Refactor to a large switch, don't use a function
10044         pointer.
10045
10046 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
10047
10048         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
10049
10050 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
10051
10052         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
10053         (sh_expand_binop_v2sf): Likewise.
10054         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
10055         (int_gpr_dest, trunc_hi_operand): New functions.
10056         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
10057         trunc_hi_operand.
10058         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
10059         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
10060         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
10061         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
10062         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
10063         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
10064         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
10065         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
10066         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
10067         (movsf_ie+1): Likewise.
10068         (loaddi_trunc): Use int_gpr_dest predicate.
10069         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
10070         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
10071         (casesi_worker_0+[12], casesi_worker): Likewise.
10072         (shcompact_preserve_incoming_args): Likewise.
10073         (mov_nop): Use any_register_operand predicate.
10074         (mperm_w0): Use trunc_hi_operand predicate.
10075
10076 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10077
10078         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
10079         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
10080         numbering.
10081
10082 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10083
10084         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
10085
10086 2002-07-18  Richard Henderson  <rth@redhat.com>
10087
10088         PR optimization/7147
10089         * ifcvt.c (noce_get_condition): Make certain that the condition
10090         is valid at JUMP.
10091
10092 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
10093
10094         * sh.c (barrier_align, push): Shut up compiler warnings.
10095         (initial_elimination_offset,sh_media_init_builtins): Likewise.
10096         (reg_no_subreg_operand): Delete.
10097
10098 2002-07-17  Bo Thorsen  <bo@suse.de>
10099
10100         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
10101         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
10102         (STARTFILE_SPEC): Remove hardcoded library paths.
10103         (ENDFILE_SPEC): Likewise.
10104
10105 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
10106
10107         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
10108
10109         * gcse.c (try_replace_reg): Do not return false positives.
10110
10111 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
10112
10113         * prefix.c: (update_path): Strip ".." components when prior dir
10114         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
10115
10116         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
10117         (ASM_OUTPUT_REG_POP): Likewise.
10118
10119 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
10120
10121         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
10122         adjustments to first_reg for profiling case.
10123         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
10124         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
10125         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
10126         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
10127         (ASM_OUTPUT_REG_POP): Define.
10128         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
10129         (ASM_OUTPUT_REG_POP): Undef.
10130
10131 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
10132
10133         * cpplib.c (do_sccs): Handle #sccs on all systems.
10134         * system.h (SCCS_DIRECTIVE): Poison.
10135         * config/darwin.h, config/freebsd.h, config/netbsd.h,
10136         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
10137         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
10138         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
10139         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
10140         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
10141         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
10142         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
10143         Remove all references to SCCS_DIRECTIVE.
10144         * doc/cpp.texi, doc/tm.texi: Update.
10145
10146 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
10147
10148         * regrename.c (maybe_mode_change): New function.
10149         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
10150
10151 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
10152
10153         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
10154         suppress addition when either ct or cf are zero.
10155
10156 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
10157             Glen Nakamura <glen@imodulo.com>
10158
10159         PR optimization/6713
10160         * loop.c (loop_givs_rescan): Explicitly delete the insn that
10161         sets a non-replaceable giv after issuing the new one.
10162
10163 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
10164
10165         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
10166         eval_token): Clarify and correct use of "bool" variables.
10167         * cpplib.h (struct cpp_options): Similarly.
10168         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
10169         * cpptrad.c (recursive_macro): Similarly.
10170
10171 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
10172
10173         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
10174         SHmedia code.
10175
10176         * sh.md (cmpgtudi_media): Remove spurious @.
10177
10178         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
10179         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
10180
10181         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
10182         * sh-protos.h (sh_initialize_trampoline): Declare.
10183         * sh.c (sh_initialize_trampoline): New function.
10184         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
10185         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
10186         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
10187         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
10188         * sh.md (initialize_trampoline, double_shori): New patterns.
10189         (initialize_trampoline_compact): Likewise.
10190         (shmedia32_initialize_trampoline_big): Remove.
10191         (shmedia32_initialize_trampoline_little): Likewise.
10192
10193         * sh-protos.h (binary_float_operator): Remove declaration.
10194         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
10195         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
10196         (unary_float_operator, sh_expand_unop_v2sf): New functions.
10197         (sh_expand_binop_v2sf): Likewise.
10198         (zero_vec_operand): Delete.
10199         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
10200         all non-shared ones.
10201         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
10202         Enable nsb and byterev.
10203         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
10204         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
10205         in general regs.
10206         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
10207         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
10208         immediate operands.
10209         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
10210         Add DF_HI_REGS.
10211         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
10212         lowpart fp regs - only for big endian for now.
10213         (LEGITIMATE_CONSTANT_P): Don't allow nonzero float vectors
10214         when FPU is in use.
10215         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
10216         (LOAD_EXTEND_OP): NIL for SImode.
10217         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
10218         general and fp registers is 4.
10219         PREDICATE_CODES: Amend binary_float_operator entry.
10220         Remove zero_vec_operand.  Add unary_float_operator.
10221         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
10222         subreg SET_DEST.
10223         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
10224         (truncdiqi2): Do sign extension.
10225         (movsi_media, movdi_media): Allow to use r63 to an fp register.
10226         (movdf_media, movsf_media): Likewise.
10227         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
10228         Collapse to one define_insn_and_split.  Allow immediate sources.
10229         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
10230         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
10231         (movv4sf): Allow immediate sources.
10232         (movsf_media_nofpu+1): Don't split moves to FP registers.
10233         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
10234         (movv8qi_i+3): Check against CONST0_RTX.
10235         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
10236         for input and output operands.  Fix argument 3 to gen_mextr_rl.
10237         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
10238         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
10239         (mshf0_w, fipr, ftrv): Likewise.
10240         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
10241
10242 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
10243
10244         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
10245         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
10246         * arm.c: Similarly.
10247
10248 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
10249
10250         * config/mips/mips-protos.h (mips_sign_extend): Declare.
10251         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
10252         (TARGET_SWITCHES): Remove debugh.
10253         (ISA_HAS_TRUNC_W): New macro.
10254         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
10255         (PREDICATE_CODES): Remove se_nonimmediate_operand.
10256         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
10257         any SImode move_operand.
10258         (se_nonimmediate_operand): Remove.
10259         (mips_sign_extend): New.
10260         (mips_move_2words): Use it for sign-extended source operands.
10261         (override_options): Allow integers to be put into single FPRs.
10262         (mips_secondary_reload_class): Handle integers in float registers.
10263         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
10264         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
10265         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
10266         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
10267         (fix_truncdfdi2): Provide only a single alternative, in which the
10268         integer is in a float register.  Depend on TARGET_FLOAT64 rather
10269         than TARGET_64BIT.
10270         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
10271         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
10272         (movdi_internal2): Don't allow the source operand to be sign-extended.
10273         Add alternatives for float registers.
10274         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
10275         allows sign-extension.
10276         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
10277         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
10278         float registers.  Remove TARGET_DEBUG_H_MODE test.
10279         (movhi_internal1): Rename to movhi_internal.  Don't check
10280         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
10281         (movqi_internal1): Rename to movqi_internal and remove
10282         TARGET_DEBUG_H_MODE dependency.
10283         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
10284
10285 2002-07-16  Jim Wilson  <wilson@redhat.com>
10286
10287         * toplev.c (lang_dependent_init): Create function context for
10288         init_expr_once.
10289
10290 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
10291
10292         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
10293         --gc-sections if -r.
10294         * config/cris/cris.h: Ditto.
10295
10296 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
10297
10298         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
10299         the comparison directly gives a mask suppress addition when cf is
10300         zero by complementing the mask.
10301
10302 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
10303
10304         * Makefile.in: Delete references to enquire.
10305         * enquire.c: Move to contrib.
10306
10307 2002-07-16  Stan Shebs  <shebs@apple.com>
10308
10309         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
10310         config/rs6000/darwin.h.
10311         (ASM_OUTPUT_SKIP): Ditto.
10312         (TEXT_SECTION_ASM_OP): Ditto.
10313         (DATA_SECTION_ASM_OP): Ditto.
10314         (ASM_APP_ON): Define.
10315         (ASM_APP_OFF): Define.
10316         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
10317         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
10318
10319         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
10320         (machopic_function_base_name): Declare result to be const.
10321         (machopic_non_lazy_ptr_name): Ditto.
10322         (machopic_stub_name): Ditto.
10323         * config/darwin-protos.h: Ditto for the prototypes.
10324
10325 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
10326
10327         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
10328
10329 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
10330
10331         * i386.md (prefetch): Fix for 64bit mode.
10332         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
10333
10334 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
10335
10336         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
10337         * i386.c (x86_machine_dependent_reorg): New function.
10338         * i386-protos.h (x86_machine_dependent_reorg): Declare.
10339
10340 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
10341
10342         * builtins.c (std_expand_builtin_va_start): Remove unused
10343         first argument.
10344         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
10345         std_expand_builtin_va_start with just two arguments.
10346         * expr.h: Update prototypes.
10347
10348         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
10349         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
10350         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
10351         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
10352         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
10353         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
10354         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
10355         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
10356         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
10357         argument from all implementations of EXPAND_BUILTIN_VA_START
10358         and all uses of std_expand_builtin_va_start.
10359
10360 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
10361
10362         * regrename.c (copy_value): Don't record high part copies.
10363
10364 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
10365
10366         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
10367         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
10368         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
10369
10370 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
10371
10372         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
10373
10374         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
10375         into addsi3 using register class "x" and "y".
10376
10377         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
10378         "earlyclobber" constraint modifier for some alternative.
10379
10380         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
10381         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
10382         unordered.
10383         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
10384
10385         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
10386         (TARGET_SWITCHES): Add -mieee-compare option.
10387         (OVERRIDE_OPTIONS): 32332 is a subset of
10388         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
10389         (TARGET_SWITCHES): Fix description of bit-field option.
10390         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
10391         -mieee-compare option. Remove 32332 flag.
10392
10393 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
10394
10395         * explow.c (convert_memory_address): Remove special handling
10396         when POINTERS_EXTEND_UNSIGNED < 0.
10397         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
10398         (movedi_symbolic): Fix typo.
10399         (load_fptr): Remove mode restriction so it works for SI and DI.
10400         (load_fptr_internal1): Ditto.
10401         (load_gprel): Ditto.
10402         (load_symptr_internal1): Ditto.
10403         (call_pic): Ditto.
10404         * config/ia64.c (call_operand): Modify mode check.
10405         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
10406         (ia64_expand_move): Ditto.
10407         (ia64_assemble_integer): Handle SImode function pointers.
10408         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
10409         (ia64_expand_op_and_fetch): Ditto.
10410         (ia64_expand_compare_and_swap): Ditto.
10411         (ia64_expand_lock_test_and_set): Ditto.
10412         (ia64_expand_lock_release): Ditto.
10413
10414 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10415
10416         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
10417
10418 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
10419             Richard Earnshaw  <rearnsha@arm.com>
10420
10421         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
10422         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
10423
10424 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
10425
10426         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
10427         understands to be a memory clobber.
10428         * arm.c (arm_expand_prologue): Use it.
10429
10430 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
10431
10432         * ra-rewrite.c: #include reload.h, insn-config.h
10433         * ra-build.c: #include reload.h
10434         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
10435         depend on reload.h, insn-config.h.
10436
10437 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
10438
10439         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
10440         the same size as a word.
10441
10442         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
10443         BYTES_BIG_ENDIAN into account.
10444
10445 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
10446
10447         * i386.md (prefetch): Fix for 64bit mode.
10448         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
10449
10450         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
10451
10452 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10453
10454         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
10455
10456 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
10457
10458         * ginclude/varargs.h: Replace with stub which issues #error.
10459         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
10460         __builtin_va_start.
10461
10462         * builtins.def (BUILT_IN_VARARGS_START): Delete.
10463         (BUILT_IN_VA_START): New.
10464         * builtins.c (expand_builtin_va_start): Eliminate first
10465         argument and code to implement pre-ISO varargs.
10466         (std_expand_builtin_va_start): Ignore first argument; it is
10467         always 1.
10468         (expand_builtin): Handle BUILT_IN_VA_START and
10469         BUILT_IN_STDARG_START identically.  Delete
10470         BUILT_IN_VARARGS_START case.
10471
10472         * function.c (assign_parms): Delete hide_last_arg and all
10473         its uses.
10474         (mark_varargs): Delete function.
10475         * function.h (struct function): Delete 'varargs' bit.
10476         (current_function_varargs): Delete macro.
10477         * tree.h: Don't declare mark_varargs.
10478
10479         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
10480         (c_expand_body): Don't call mark_varargs.
10481         * c-objc-common.c: Handle BUILT_IN_VA_START and
10482         BUILT_IN_STDARG_START identically.  Delete
10483         BUILT_IN_VARARGS_START case.
10484         * c-tree.h: Don't declare c_mark_varargs.
10485         * c-parse.in: Remove grammar rules for '&...' (which has been
10486         commented out since before 2.7.2) and for '...' in K+R
10487         argument declarations.
10488
10489         * builtins.c, function.c, integrate.c, sibcall.c,
10490         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
10491         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
10492         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
10493         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
10494         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
10495         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
10496         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
10497         config/stormy16/stormy16.c: Delete all references to
10498         current_function_varargs, and code predicated on that flag.
10499
10500         * config/alpha/alpha.c (alpha_va_start),
10501         config/arc/arc.c (arc_va_start),
10502         config/i386/i386.c (ix86_va_start),
10503         config/mips/mips.c (mips_va_start),
10504         config/mn10300/mn10300.c (mn10300_va_start),
10505         config/rs6000/rs6000.c (rs6000_va_start),
10506         config/s390/s390.c (s390_va_start),
10507         config/sh/sh.c (sh_va_start),
10508         Ignore first argument; it is always 1.
10509
10510         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
10511         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
10512         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
10513         Delete m68hc11_va_start.
10514         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
10515         No need to define EXPAND_BUILTIN_VA_START.
10516
10517         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
10518         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
10519
10520 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
10521
10522         PR optimization/7153
10523         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
10524         dies in more than one insn.
10525
10526 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
10527
10528         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
10529
10530 2002-07-15  Michael Matz  <matz@suse.de>,
10531             Daniel Berlin  <dberlin@dberlin.org>,
10532             Denis Chertykov  <denisc@overta.ru>
10533
10534         Add a new register allocator.
10535
10536         * ra.c: New file.
10537         * ra.h: New file.
10538         * ra-build.c: New file.
10539         * ra-colorize.c: New file.
10540         * ra-debug.c: New file.
10541         * ra-rewrite.c: New file.
10542
10543         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
10544         (ra-rewrite.o): New .o files for libbackend.a.
10545         (GTFILES): Add basic-block.h.
10546
10547         * toplev.c (flag_new_regalloc): New.
10548         (f_options): New option "new-ra".
10549         (rest_of_compilation): Call initialize_uninitialized_subregs()
10550         only for the old allocator.  If flag_new_regalloc is set, call
10551         new allocator, instead of local_alloc(), global_alloc() and
10552         friends.
10553
10554         * doc/invoke.texi: Document -fnew-ra.
10555         * basic-block.h (FOR_ALL_BB): New.
10556         * config/rs6000/rs6000.c (print_operand): Write small constants
10557         as @l+80.
10558
10559         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
10560         (df_reg_table_realloc): Make size at least as large as max_reg_num().
10561         (df_insn_table_realloc): Size argument now is absolute, not relative.
10562         Changed all callers.
10563
10564         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
10565         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
10566
10567         2002-06-20  Michael Matz  <matz@suse.de>
10568
10569         * df.h (struct ref.id): Make unsigned.
10570         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
10571
10572         2002-06-13  Michael Matz  <matz@suse.de>
10573
10574         * df.h (DF_REF_MODE_CHANGE): New flag.
10575         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
10576         involving subregs with invalid mode changes, when
10577         CLASS_CANNOT_CHANGE_MODE is defined.
10578
10579         2002-05-07  Michael Matz  <matz@suse.de>
10580
10581         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
10582
10583         2002-05-03  Michael Matz  <matz@suse.de>
10584
10585         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
10586
10587         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
10588
10589         * regclass.c (regclass): Work with all regs which have sets or
10590         refs.
10591         (reg_scan_mark_refs): Count regs inside (clobber ...).
10592
10593         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
10594
10595         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
10596         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
10597         add new refs.
10598         (df_bb_refs_update): Don't clear insns_modified here, ...
10599         (df_analyse): ... but here.
10600
10601         * sbitmap.c (dump_sbitmap_file): New.
10602         (debug_sbitmap): Use it.
10603
10604         * sbitmap.h (dump_sbitmap_file): Add prototype.
10605
10606         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
10607
10608         * df.c (df_insn_modify): Grow the UID table if necessary, rather
10609         than assume all emits go through df_insns_modify.
10610
10611         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
10612
10613         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
10614         increase REG_N_REFS (like flow does), so that regclass doesn't
10615         think a reg is useless, and thus, not calculate a class, when it
10616         really should have.
10617
10618         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
10619
10620         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
10621         dataflow analysis.
10622
10623 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
10624
10625         PR middle-end/7245
10626         * config/i386/i386.c (const_int_1_31_operand): New.
10627         * config/i386/i386.h (PREDICATE_CODES): Add it.
10628         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
10629         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
10630         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
10631
10632 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
10633
10634         PR target/7282
10635         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
10636         (floatunssidf2): Likewise.
10637         (floatsidf_ppc64): New insn_and_split.
10638         (floatunssidf_ppc64): Likewise.
10639
10640 2002-07-14  Andreas Jaeger  <aj@suse.de>
10641
10642         * config.gcc (sh64): Remove unused
10643         target_requires_64bit_host_wide_int.
10644
10645 2002-07-12  Roger Sayle  <roger@eyesopen.com>
10646
10647         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
10648         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
10649         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
10650         whether clear_by_pieces should be used to clear storage.
10651         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
10652
10653         * doc/tm.texi: Document these two new target macros.
10654
10655 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
10656
10657         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
10658         the scratch register.
10659         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
10660         of it, forbid reload to use it.
10661
10662 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10663
10664         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
10665         usage on 64-bit hosts, return value was truncated to 32 bits.
10666
10667 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
10668
10669         * simplify-rtx.c (simplify_subreg): Handle floating point
10670         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
10671         the element mode is requested, compute a subreg with an
10672         integer mode of the same size as the element mode first.
10673
10674 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
10675
10676         * combine.c (try_combine): When converting a paradoxical subreg
10677         to an extension, take LOAD_EXTEND_OP into account.
10678
10679 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10680
10681         * config.gcc (mips-sgi-irix6*o32): New configuration.
10682
10683         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
10684         configurations.
10685         * configure: Regenerate.
10686
10687         * config/mips/iris6-o32-as.h: New file.
10688         * config/mips/iris6-o32.h: New file.
10689
10690         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
10691         (NM_FLAGS): Define.
10692         (HAVE_AS_SHF_MERGE): Undefine.
10693
10694         * config/mips/t-iris5-as: New file.
10695         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
10696
10697         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
10698         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
10699         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
10700         dp-bit.c, fp-bit.c): Move ...
10701         * config/mips/t-iris5-6: ... here.
10702         New file, shared by IRIX 5 and IRIX 6.
10703         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
10704         mips-sgi-irix5*): Use it.
10705
10706         * config/mips/iris6.h: Remove duplicate comment.
10707
10708         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
10709         !TARGET_IRIX6]: Define.
10710         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
10711
10712         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
10713
10714 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10715
10716         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
10717         and delete code to force constant to register.
10718         * pa-protos.h (adddi3_operand): Add prototype.
10719         * pa.c (adddi3_operand): New function.
10720
10721 2002-07-11  Roger Sayle  <roger@eyesopen.com>
10722
10723         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
10724         non-ANSI builtin functions.
10725
10726 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
10727
10728         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
10729         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
10730         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
10731         (gen_const_vector_0): Use it.
10732
10733 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10734
10735         * pa.md (adddi3): For 32-bit targets, force constants to a register
10736         if they don't fit in an 11-bit immediate.  Change insn predicate to
10737         arith11_operand.  Remove comment.
10738         * pa.c (cint_ok_for_move): Fix comment.
10739         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
10740         targets.
10741
10742 2002-07-11  Tim Josling  <tej@melbpc.org.au>
10743
10744         Remove front end hard coding from gengtype.c.
10745
10746         * Makefile.in
10747         (STAGESTUFF): add gtyp-gen.h
10748         (GTFILES): Remove front end specific files.
10749         (GTFILES_FILES_LANGS): New, from configure..
10750         (GTFILES_FILES_FILES): Likewise.
10751         (GTFILES_LANG_DIR_NAMES): Likewise.
10752         (GTFILES_SRCDIR): Likewise.
10753         (gtyp-gen.h): Build from configure information.
10754         (s-gtype): Remove command line parameters from gengtype.
10755         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
10756         (mostlyclean): Delete files generated by and for gengtype.
10757
10758         * c-config-lang.in: New file.
10759
10760         * configure.in (all_gtfiles_files_langs): New. Accumulate files
10761         for each language.
10762         (all_gtfiles_files_files): New. Accumulate language for each file
10763         accumulated.
10764         (gtfiles): Pick up value for C.
10765         (srcdir): AC-SUBST this variable.
10766         (all_gtfiles_files_langs): AC-SUBST this variable.
10767         (all_gtfiles_files_files): AC-SUBST this variable.
10768
10769         * configure: Regenerate.
10770
10771         * gengtype-lex.l (parse_file): Make parameter const.
10772
10773         * gengtype.c (toplevel): include gtyp-gen.h.
10774         (BASE_FILE_<language> unnamed enum): Delete.
10775         (lang_names): Delete (replaced by gtyp-gen.h)
10776         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
10777         all references.
10778         (NUM_GT_FILES): New.
10779         (NUM_LANG_FILES): New.
10780         (srcdir_len): New.
10781         (NUM_BASE_FILES): Change calculation.
10782         (open_base_files): Change prototype to avoid warning.
10783         (startswith): Delete.
10784         (get_file_basename): Iterate through generated language list not
10785         hard coded list.
10786         (get_base_file_bitmap): Use generated list of files and languages.
10787         (close_output_files): Add prototype to rmove warning.
10788         (main): Iterate through list of generated files from gtyp-gen.h
10789         rather than command line paramaters.  Ignore duplicated file
10790         names.
10791
10792         * gengtype.h (parse_file): Amend prototype for const parameter.
10793
10794         * doc/sourcebuild.texi: Document gtfiles variable.
10795
10796         * doc/gty.texi: Document changes to gtfiles variable for front
10797         ends.
10798
10799         * objc/config-lang.in (gtfiles): Add files needed for objc front
10800         end.
10801
10802 2002-07-10  Roger Sayle  <roger@eyesopen.com>
10803
10804         PR c/2454
10805         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
10806         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
10807
10808 2002-07-10  Roger Sayle  <roger@eyesopen.com>
10809             Zack Weinberg <zack@codesourcery.com>
10810
10811         * builtins.def: Make the argument types of abort and exit
10812         independent of the front-end.
10813
10814 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
10815
10816         * config/rs6000/linux64.h (ASM_SPEC): Define.
10817
10818 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
10819
10820         * config/rs6000/rs6000.c (emit_frame_save): New.
10821         (rs6000_frame_related): Replace reg2 before reg.
10822         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
10823         and eh_return registers.
10824
10825 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
10826
10827         Revert all patches for optimization of Complex .op. Real.
10828         * complex_part_zero_p: Remove
10829         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
10830         with x.
10831         * expand_cmplxdiv_wide: Ditto.
10832         * expand_binop: Ditto.
10833
10834 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10835
10836         * config/avr/avr.md: Fix two 0x80000000 constants to make them
10837         negative also on 64-bit hosts.
10838
10839         Default to -fno-reorder-blocks when optimizing for size.
10840         * config/avr/avr-protos.h (avr_optimization_options): Declare.
10841         * config/avr/avr.c (avr_optimization_options): New function.
10842         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
10843
10844         Optimize returning from simple functions.
10845         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
10846         * config/avr/avr.c (avr_simple_epilogue): New function.
10847         * config/avr/avr.md (return): New insn.
10848
10849 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
10850
10851         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
10852         HAS_INIT_SECTION to protection.
10853
10854 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
10855
10856         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
10857         deprecated.
10858
10859 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
10860
10861         * combine.c (gen_lowpart_for_combine): Handle vector modes.
10862         Supply non-VOID mode to simplify_gen_subreg.
10863
10864 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
10865
10866         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
10867
10868 2002-07-10  Jeffrey A Law  <law@redhat.com>
10869
10870         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
10871         as appropriate.
10872
10873         * mn10200.c (expand_epilogue): Fix test to determine which scratch
10874         register to use.
10875
10876 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
10877
10878         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
10879         Get mode from dest.
10880         If simplify_gen_subreg fails, try next equivalent.
10881
10882 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
10883
10884         * diagnostic.h: #include location.h
10885         (location_t): Move definition to..
10886         * location.h: ... here.  New file.
10887         * tree.h: #include location.h
10888         (DECL_SOURCE_LOCATION): New macro.
10889         (DECL_SOURCE_FILE): Use.
10890         (DECL_SOURCE_LINE): Likewise.
10891         (struct tree_decl): REplace filename and linenum with locus.
10892         * Makefile.in (TREE_H): add location.h
10893         (diagnostic.o): Depends on gt-location.h
10894         (gt-location.h): Depends on s-gtype
10895
10896 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
10897
10898         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
10899         TARGET_OS_CPP_BUILTINS.
10900         * config/rs6000/aix31.h: Likewise.
10901         * config/rs6000/aix41.h: Likewise.
10902         * config/rs6000/aix43.h: Likewise.
10903         * config/rs6000/aix51.h: Likewise.
10904         * config/rs6000/beos.h: Likewise.
10905         * config/rs6000/darwin.h: Likewise.
10906         * config/rs6000/eabi.h: Likewise.
10907         * config/rs6000/eabisim.h: Likewise.
10908         * config/rs6000/linux.h: Likewise.
10909         * config/rs6000/linux64.h: Likewise.
10910         * config/rs6000/lynx.h: Likewise.
10911         * config/rs6000/mach.h: Likewise.
10912         * config/rs6000/rtems.h: Likewise.
10913         * config/rs6000/sysv4.h: Likewise.
10914         * config/rs6000/vxppc.h: Likewise.
10915
10916 2002-07-09 Devang Patel <dpatel@apple.com>
10917         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
10918         Do not allow ObjC objects as a parameter type for Objective-C methods.
10919         My previous patch restricted  'struct' also.
10920
10921 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
10922
10923         * cpperror.c (cpp_error): Default to directive_line within
10924         directives here.
10925         * cppexp.c (cpp_interpret_integer): Only use traditional
10926         number semantics in directives.
10927         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
10928         (do_include_common): Similarly.
10929         * cpptrad.c (scan_out_logical_line): Implement accurate
10930         quoting of <> in #include.
10931         * doc/cpp.texi: Update.
10932
10933 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
10934                           J"orn Rennecke <joern.rennecke@superh.com>
10935
10936         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
10937         * sh.md (attribute issues): Replace with:
10938         (attribute pipe_model).  All users changed.
10939         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
10940         All users changed.
10941         (function units sh5issue, sh5fds): New.
10942         (attribute is_mac_media): New.
10943         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
10944         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
10945         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
10946         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
10947         (call_media, call_value_media, sibcall_media): Likewise.
10948         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
10949         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
10950         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
10951         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
10952         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
10953         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
10954         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
10955         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
10956         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
10957         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
10958         (truncdfsf2_media): Likewise.
10959         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
10960         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
10961
10962 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
10963
10964         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
10965         * sh.c (general_extend_operand, inqhi_operand): New functions.
10966         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
10967         alternatives using 'N' modifier.  Add type.
10968         (adddi3z_media): Likewise.  Enable generator function generation.
10969         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
10970         exact predicates / constraints.  Add type.
10971         (subsi3): Allow 0 for SHMEDIA.
10972         (udivsi3_i4_media): Use match_operand for input values
10973         rather than hard registers.
10974         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
10975         unnecessarily through hard registers.  Keep copies of pseudo
10976         registers outside of the libcall sequence.
10977         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
10978         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
10979         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
10980         (extendhidi2, extendqidi2): Likewise.
10981         (andsi3_compact): Name.
10982         (andcdi3): Enable generator function generation.
10983         (zero_extendhisi2, zero_extendqisi2): Rename to
10984         (zero_extendhisi2_compact, zero_extendqisi2_compact).
10985         (extendhisi2, extendqisi2): Rename to
10986         (extendhisi2_compact, extendqisi2_compact).
10987         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
10988         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
10989         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
10990         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
10991         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
10992         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
10993         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
10994         (shmedia32_initialize_trampoline_big): Likewise.
10995         (shmedia32_initialize_trampoline_little): Likewise.
10996         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
10997         (negdi2): Remove spurious T clobber.
10998         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
10999         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
11000         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
11001         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
11002         (ic_invalidate_line_media): Write back data cache before invalidating
11003         instruction cache.  Add type.
11004         (movsf_media): Sign-extend when the destination is a general
11005         purpose register.  Add type.
11006         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
11007         (casesi_worker_0+1): Only increment ref count for proper label.
11008         (casesi_worker_0+2): Likewise.
11009
11010 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
11011
11012         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
11013
11014 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
11015
11016         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
11017         from Pmode to ptr_mode.
11018         (get_exception_pointer): Ditto.
11019         (connect_post_landing_pads): Ditto.
11020         (dw2_build_landing_pads): Ditto.
11021
11022 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
11023         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
11024         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
11025         (handle_pragma_redefine_extname): Change to use new function.
11026
11027 2002-07-08  Roger Sayle  <roger@eyesopen.com>
11028
11029         * combine.c (combine_simplify_rtx): Add an explicit cast
11030         to avoid signed/unsigned comparison warning.
11031         (simplify_if_then_else): Likewise.
11032         (extended_count): Likewise.
11033         (simplify_shift_const): Likewise.
11034         (simplify_comparison): Likewise.
11035
11036 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
11037
11038         * config/mips/mips.md: Add imadd type.  Update scheduler description
11039         to use imadd as well as imul.
11040         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
11041         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
11042         (*mul_sub_si): Likewise for first alternative.  Change second
11043         alternative from imul to multi.
11044
11045 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
11046
11047         * c-common.c (c_common_post_options): Update prototype;
11048         don't init backends if preprocessing only.
11049         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
11050         * langhooks.h (struct lang_hooks): Update post_options to
11051         return a boolean.
11052         * toplev.c (parse_options_and_default_flags, do_compile,
11053         lang_independent_init): Update prototypes.  Allow the
11054         front end to specify that there is no need to initialize
11055         the back end.
11056         (general_init): Move call to hex_init here...
11057         (toplev_main): ...from here.  Pass flag for back end init
11058         suppression.
11059
11060 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
11061
11062         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
11063         (PREDICATE_CODES): Add entries for equality_comparison_operator,
11064         greater_comparison_operator and less_comparison_operator.
11065         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
11066         more operators.
11067         (equality_comparison_operator): New function.
11068         (greater_comparison_operator, less_comparison_operator): Likewise.
11069         * sh.md (beq_media_i): Disable generator function generation.
11070         Use match_operator to handle a whole class of comparisons.  Add
11071         modifier in output template to provide branch prediction.  Add type.
11072         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
11073         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
11074         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
11075         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
11076
11077 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
11078
11079         Emit MMIX function prologue and epilogue as rtl.
11080         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
11081         not unprototyped get_hard_reg_initial_val.
11082         ("call_value", "nonlocal_goto_receiver"): Ditto.
11083         ("return"): Make define_expand.  Move real insn to...
11084         ("*expanded_return"): New pattern.
11085         ("prologue", "epilogue"): New define_expands.
11086         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
11087         (struct machine_function): New member in_prologue.
11088         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
11089         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
11090         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
11091         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
11092         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
11093         (LOCAL_REGNO): Define.  Adjust comment.
11094         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
11095         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
11096         leaf_function_p.
11097         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
11098         the prologue.
11099         (mmix_target_asm_function_prologue): Make static.  Just mark that
11100         the prologue is being emitted.  Move guts to...
11101         (mmix_expand_prologue): New function.  Adjust for emitting
11102         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
11103         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
11104         \n.  Move guts to...
11105         (mmix_expand_epilogue): New function.  Adjust for emitting
11106         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
11107         (mmix_target_asm_function_end_prologue): Mark that the prologue
11108         has ended.
11109         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
11110         (mmix_conditional_register_usage): Improve comments.
11111         (mmix_local_regno): New function.
11112         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
11113         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
11114         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
11115         (mmix_get_hard_reg_initial_val): Ditto.
11116
11117 2002-07-06  Andreas Jaeger  <aj@suse.de>
11118
11119         * toplev.c (set_fast_math_flags): Don't use ISO C style function
11120         definitions.
11121         * gengtype.c (open_base_files): Likewise.
11122         (close_output_files): Likewise.
11123         * tracer.c (find_best_predecessor): Likewise.
11124         (find_best_successor): Likewise.
11125         (ignore_bb_p): Likewise.
11126
11127 2002-07-05  Roger Sayle  <roger@eyesopen.com>
11128
11129         PR c++/7099
11130         * builtin-attrs.def: Define new attribute lists for use in
11131         builtins.def.
11132         * builtins.def [DEF_BUILTIN]: Modify to take an additional
11133         ATTRS argument, an enumerated value defined in builtin-attrs.def
11134         that represents the attribute list for the builtins.  Modify
11135         all builtin functions to pass an appropriate attribute list.
11136         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
11137         their required noreturn attributes.
11138         * tree.h (enum_builtin_function): Ignore the additional parameter
11139         to DEF_BUILTIN.
11140         * builtins.c (built_in_names): Likewise.
11141         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
11142         argument with a tree representing the functions attribute list.
11143         Pass this "attrs" argument to builtin_function.  No longer handle
11144         the noreturn_p processing manually.
11145         (built_in_attributes): Move the definitions from builtin-attrs.def
11146         before c_common_nodes_and_builtins.
11147         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
11148         DEF_BUILTIN, passing it to both builtin_function and the changed
11149         builtin_function_2.
11150
11151         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
11152         __builtin__exit and __builtin__Exit.
11153
11154 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
11155
11156         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
11157         QI mode registers in soft registers.
11158         ("zero_extendqihi2"): Do not take into account soft registers
11159         for register allocation (use '*' constraint).
11160
11161 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
11162
11163         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
11164         it is dead.
11165         ("*ashrsi3"): Likewise.
11166         ("*lshrsi3"): Likewise.
11167
11168 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
11169
11170         * genautomata.c (output_max_insn_queue_index_def): Take latencies
11171         into account.
11172
11173 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
11174
11175         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
11176         address computation and memory moves.
11177
11178 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
11179
11180         PR c++/6706
11181         * dwarfout.c (output_reg_number): Fix warning message.
11182         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
11183         before using it.
11184
11185 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11186
11187         * gcc/gcc.c (asm_debug): Move initialization ...
11188         (init_spec): ... here.
11189
11190 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
11191
11192         * c-parse.in (extdef): Append ';'.
11193         (old_style_parm_decls): Append ';'.
11194
11195 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
11196
11197         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
11198         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
11199         to gcc_cv_as_gstabs_flag.
11200         * configure: Rebuilt.
11201
11202 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
11203
11204         * ggc.h (ggc_add_root): Document as obsolete.
11205
11206 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
11207
11208         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
11209         (mshflo_w): Likewise.
11210
11211 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
11212
11213         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
11214         vector mode subregs of constants to finding integer mode
11215         subregs of constants.
11216         * cse.c (cse_insn): Use simplify_gen_subreg.
11217         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
11218         From a vector mode expression of different size than the
11219         target mode.
11220
11221 2002-07-03  Eric Christopher  <echristo@redhat.com>
11222
11223         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
11224         * config/mips/mips.h: Remove deprecated -m<processor> options
11225         and cc1_cpu_spec associated.
11226         (CONSTANT_ADDRESS_P): Fix last patch.
11227         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
11228         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
11229         sunge_sf): Remove.
11230
11231 2002-07-03  Stan Shebs  <shebs@apple.com>
11232
11233         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
11234         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
11235         (CPP_SPEC): Remove insertion of APPLE_CC definition.
11236
11237 2002-07-03  Roger Sayle  <roger@eyesopen.com>
11238
11239         * combine.c (struct_undo): Change types of recorded substitutions
11240         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
11241         (do_SUBST_INT): Change types of the substitution from unsigned int
11242         to int, to avoid compilation warning from SUBST_INT's only caller.
11243
11244         (make_extraction): Add cast to avoid compilation warning.
11245         (force_to_mode): Remove cast to avoid compilation warning.
11246
11247 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
11248             Jeff Law  <law@redhat.com>
11249
11250         * i386.md (length_immediate attribute): Fix typo.
11251         (length_address attribute): Likewise.
11252         (modrm attribute): Set it to 0 for immediate call instructions.
11253         (jcc_1 pattern): Set modrm attribute to 0.
11254         (jcc_2 pattern ): Likewise.
11255         (jump pattern): Likewise.
11256         (doloop_end_internal pattern): Explicitly set length.
11257         (leave pattern): Fix typo.
11258         (leave_rex64 pattern): Likewise.
11259
11260 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
11261
11262         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
11263         in FPR as preference.
11264         (fctiwz): Same.
11265         (floatdidf2, fix_truncdfdi2): Same.
11266         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
11267         (floatditf2): Same.
11268         (floatsitf2, fix_trunctfsi2): SImode in GPR.
11269         (ctrdi): Remove FPR alternative and splitter.
11270
11271 2002-07-03  Will Cohen  <wcohen@redhat.com>
11272
11273         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
11274
11275 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
11276
11277         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
11278         than UNITS_PER_WORD, unless this is little endian and the first unit
11279         in this word.  Let extract_bit_field decide how to load an element.
11280         Force arguments to matching mode.
11281         (expand_vector_unop): Likewise.
11282
11283         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
11284         consist of word_mode elements.
11285         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
11286         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
11287         (build_unary_op): Allow vector types for BIT_NOT_EPR.
11288         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
11289         CONST_VECTOR.
11290         * optabs.c (expand_vector_binop): Try to perform operation in
11291         smaller vector modes with same inner size.  Add handling of AND, IOR
11292         and XOR.  Reject expansion to inner-mode sized scalars when using
11293         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
11294         (expand_vector_unop): Try to perform operation in smaller vector
11295         modes with same inner size.  Add handling of one's complement.
11296         When there is no vector negate operation, try a vector subtract
11297         operation.  Use simplify_gen_subreg on constants.
11298         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
11299         constants into smaller vectors with same inner mode, and to
11300         integer CONST_DOUBLEs.
11301
11302 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11303
11304         * c-parse.in (parsing_iso_function_signature): New variable.
11305         (extdef_1): New, copied from...
11306         (extdef): ... here.  Reset parsing_iso_function_signature.
11307         (old_style_parm_decls):  Reset parsing_iso_function_signature.
11308         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
11309         Warn about ISO C style function definitions.
11310         (nested_function, notype_nested_function): Reset
11311         parsing_iso_function_signature.
11312         (parmlist_2): Set parsing_iso_function_signature.
11313
11314         * doc/invoke.texi (-Wtraditional): Document new behavior.
11315
11316 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
11317
11318         * config.gcc (mips*el-*-*): Use tm_defines to set
11319         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
11320         * config/mips/little.h: Remove.
11321
11322 2002-07-02 Devang Patel <dpatel@apple.com>
11323
11324         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
11325         object as parameter. Prevent something like 'NSObject' to be
11326         used as the type for a method argument.
11327
11328 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
11329
11330         * cpptrad.c: Update comment.
11331
11332 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
11333
11334         * doc/cpp.texi: Update for traditional preprocessing changes.
11335         * goc/cppopts.texi: Similarly.
11336
11337 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
11338
11339         * c-parse.in (designator): Enable designated initializers if ObjC.
11340         (objcmessageexpr): Remove references to objc_receiver_context.
11341         * objc/objc-act.h (objc_receiver_context): Remove decl.
11342         * objc/objc-act.c (objc_receiver_context): Remove.
11343         (lookup_objc_ivar): Test objc_method_context instead of
11344         objc_receiver_context.
11345
11346 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
11347
11348         * sh.c (print_operand, case 'N'): Allow zero vector.
11349         (arith_reg_or_0_operand): Likewise.
11350         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
11351         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
11352         IOR, XOR, PLUS and SET and take their respective constant
11353         ranges into account.
11354         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
11355         * sh.md (subdi3, subdi3_media): Allow zero operand.
11356         (movv8qi_i+3): Only vector that is not split is the zero vector.
11357         Fix operand 3 to simplify_subreg.
11358         (movv2si_i): Split alternative 1.
11359         (mshfhi_l_di_rev+1): New splitter.
11360
11361 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
11362
11363         PR preprocessor/7029
11364         * cppinit.c (cpp_handle_option):  Suppress warnings with an
11365         implicit "-w" for "-M" and "-MM".
11366         * doc/cppopts.texi: Update.
11367
11368 2002-07-01  Roger Sayle  <roger@eyesopen.com>
11369
11370         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
11371         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
11372         builtin_function.
11373
11374 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
11375
11376         * README.Portability: Fix typos.
11377
11378 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
11379
11380         PR target/7177
11381         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
11382         of indirections for register inside sign-extended mem part.
11383
11384 2002-07-01  Roger Sayle  <roger@eyesopen.com>
11385
11386         * tree.h:  Modify builtin_function interface to take an extra
11387         argument ATTRS, which is a tree representing an attribute list.
11388
11389         * c-decl.c (builtin_function): Accept additional parameter.
11390         * objc/objc-act.c (builtin_function): Likewise.
11391         * f/com.c (builtin_function): Likewise.
11392         * java/decl.c (builtin_function): Likewise.
11393         * ada/utils.c (builtin_function): Likewise.
11394         * cp/decl.c (builtin_function): Likewise.
11395         (builtin_function_1): Likewise.
11396
11397         * c-common.c (c_common_nodes_and_builtins): Pass an additional
11398         NULL_TREE argument to builtin_function.  (builtin_function_2):
11399         Likewise.
11400         * cp/call.c (build_java_interface_fn_ref): Likewise.
11401         * objc/objc-act.c (synth_module_prologue): Likewise.
11402         * java/decl.c (java_init_decl_processing): Likewise.
11403         * f/com.c (ffe_com_init_0): Likewise.
11404
11405         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
11406         NULL_TREE argument to builtin_function.
11407         * config/arm/arm.c (def_builtin): Likewise.
11408         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
11409         * config/i386/i386.c (def_builtin): Likewise.
11410         * config/ia64/ia64.c (def_builtin): Likewise.
11411         * config/rs6000/rs6000.c (def_builtin): Likewise.
11412
11413 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
11414
11415         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
11416         * config/mips/t-isa3264: Likewise.
11417         * config/mmix/t-mmix: Likewise.
11418
11419 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11420
11421         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
11422
11423 2002-07-01  Roger Sayle  <roger@eyesopen.com>
11424
11425         PR opt/4046
11426         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
11427         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
11428         B are truth values.
11429
11430 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
11431
11432         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
11433
11434 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
11435
11436         * README.Portability (Function prototypes): Give an example of
11437         declaring and defining a function with no arguments.
11438
11439         * README.Portability (Function prototypes): Document new
11440         variable-argument function macros.
11441
11442 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
11443
11444         * sh.c (langhooks.h): Include.
11445         (sh_init_builtins, sh_media_init_builtins): New functions.
11446         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
11447         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
11448         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
11449         (builtin_description): New struct tag.
11450         (signature_args, bdesc): New arrays.
11451         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
11452         (print_operand): Add 'N' modifier.
11453         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
11454         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
11455         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
11456         (CONST_COSTS): Add special case for SHmedia AND.
11457         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
11458         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
11459         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
11460         target_operand can also be const or unspec.
11461         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
11462         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
11463         (attribute type): Add new types.
11464         (anddi3): Add splitter.
11465         (movdi_const_16bit+1): Add code to handle vector constants and
11466         bitmasks efficiently.
11467         (shori_media): Have generator function made.
11468         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
11469         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
11470         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
11471         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
11472         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
11473         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
11474         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
11475         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
11476         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
11477         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
11478         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
11479         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
11480         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
11481         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
11482         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
11483         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
11484         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
11485         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
11486         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
11487         (ftrv): Likewise.
11488
11489         (fpu_switch+1, fpu_switch+2): Remove constraint.
11490
11491 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
11492
11493         * tree.c (build_function_type_list): Update function comment.
11494         Rename first argument to return_type.
11495
11496 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
11497
11498         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
11499         tradcif.y and related files.
11500
11501 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
11502
11503         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
11504
11505 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11506
11507         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
11508
11509 See ChangeLog.7 for earlier changes.