OSDN Git Service

* pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2
3         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
4
5 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
6
7         * config.gcc (ns32k-*-netbsd*): Set tm_file to
8         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
9         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
10         netbsd.h, or netbsd-aout.h.
11
12 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
13
14         * longlong.h (count_trailing_zeros): Add missing \, and clean up
15         whitespace in __ns32000__ case.
16
17 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
18
19         * expr.c (expand_expr): Output partially zeroed out vectors with
20         output_constant_def.
21
22 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
23
24         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
25         (sh-*-netbsdelf*)
26         (shl*-*-netbsdelf*): New targets.
27         * config/sh/netbsd-elf.h: New file.
28
29 2002-05-30  Richard Henderson  <rth@redhat.com>
30             Eric Botcazou  <ebotcazou@multimania.com>
31
32         PR optimization/6822
33         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
34         to unsigned int for op1 comparisons.  Use gen_int_mode.
35
36 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
37
38         * expmed.c (const_mult_add_overflow_p): New.
39         * expr.h: Declare it.
40         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
41         Don't eliminate the biv if the giv has a constant multiplier and
42         the rhs argument of the comparison does satisfy the predicate.
43         Use expand_mult_add to compute the replacement constant.
44
45 2002-05-30  Osku Salerma  <osku@iki.fi>
46
47         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
48         (c_common_get_alias_set): Handle it.
49         * doc/extend.texi: Document it.
50
51 2002-05-30  Richard Henderson  <rth@redhat.com>
52
53         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
54         * toplev.c (process_options): Don't check it.
55         * doc/tm.texi: Don't document it.
56         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
57         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
58         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
59         frame pointer optimization if current_function_profile.
60
61 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
62
63         * langhooks.c: Fix formatting.
64         * langhooks.h: Likewise.
65         * lcm.c: Likewise.
66         * libgcc2.c: Likewise.
67         * lists.c: Likewise.
68         * local-alloc.c: Likewise.
69         * loop.c: Likewise.
70         * loop.h: Likewise.
71
72 2002-05-30  Marc Espie <espie@openbsd.org>
73
74         * config.gcc (sparc64-*-openbsd*): New.
75         * config/sparc/openbsd1-64.h: New.
76         * config/sparc/openbsd64.h: New.
77
78 2002-05-30  Jeff Law <law@redhat.com>
79
80         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
81         a dead insn with a REG_RETVAL note when the entire libcall is not
82         dead and remove the associated REG_LIBCALL note at the same time.
83
84 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
85
86         * lcm.c (output.h): #include.
87         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
88         as an ordinary block.
89         (optimize_mode_switching): Don't pretend that the exit block is
90         an ordinary block, or handle sucessors of entry block specially.
91         Instead, split edges from entry block and to exit block, and
92         put a computing definition on the thus gained post-entry-block,
93         and a need on the pre-exit-block.
94
95 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
96
97         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
98         * rtl.texi: Document 'B'
99
100 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
101
102         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
103         at run-time.
104         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
105
106 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
107
108         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
109         const0_rtx instead of NULL_RTX when in error.
110         (altivec_expand_abs_builtin): Same.
111         (rs6000_expand_binop_builtin): Same.
112         (altivec_expand_predicate_builtin): Same.
113         (altivec_expand_stv_builtin): Same.
114         (rs6000_expand_ternop_builtin): Same.
115         (altivec_expand_builtin): Same.
116
117 2002-05-29  David S. Miller  <davem@redhat.com>
118
119         * rtl.h (clear_emit_caches): Delete.
120         * integrate.c (output_inline_function): Don't call it.
121         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
122         (clear_emit_caches): Delete definition.
123         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
124
125 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
126
127         * config/mmix/mmix.c: Include real.h.
128         (mmix_constant_address_p): Remove redundant test before switch.
129
130 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
131
132         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
133         only if not already defined.
134
135 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
136
137         * config/h8300/h8300-protos.h: Remove prototypes for
138         ok_for_bclr and small_power_of_two.
139         * config/h8300/h8300.c (small_power_of_two): Remove.
140         (ok_for_blcr): Likewise.
141         (fix_bit_operand): Make WHAT deal with an integer instead of a
142         constraint character.
143         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
144         (CONST_OK_FOR_P): Likewise.
145         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
146         CONST_OK_FOR_P any more.
147         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
148         of fix_bit_operand.
149         (iorqi3): Likewise.
150         (xorqi3): Likewise.
151
152 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
153
154         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
155         (CPP_PREDEFINES): Make sure this is undefined.
156         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
157         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
158         or -U__MIPSEB__ before defining one or the other.  Instead,
159         use %(subtarget_endian_default) if neither -EB nor -EL are
160         specified.
161         (SUBTARGET_EXTRA_SPECS): Define.
162         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
163         %(netbsd_cpp_spec).
164
165 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
166
167         * doc/md.texi (Patterns): Note pattern condition pitfall
168         for unnamed insn.
169
170 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
171
172         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
173         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
174         ternary operations from here...
175         (rs6000_expand_builtin): ...to here.
176         New argument expandedp.
177         Change all instances of altivec_expand_binop_builtin to
178         rs6000_expand_binop_builtin.
179         (altivec_expand_unop_builtin): Rename to
180         rs6000_expand_unop_builtin.
181         (altivec_expand_binop_builtin): Rename to
182         rs6000_expand_binop_builtin.
183         (altivec_expand_ternop_builtin): Rename to
184         rs6000_expand_ternop_builtin.
185
186 2002-05-29  Richard Henderson  <rth@redhat.com>
187
188         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
189         (TARGET_BI_ARCH): Likewise.
190         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
191         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
192         (TARGET_64BIT_DEFAULT): Default to 0.
193         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
194
195 2002-05-29  Richard Henderson  <rth@redhat.com>
196
197         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
198         (get_pc_thunk_name): New.
199         (output_set_got): Use it.
200         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
201         into linkonce sections.
202
203 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
204
205         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
206         (CPP_PREDEFINES): Make sure this is undefined.
207         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
208         (CPP_SUBTARGET_SPEC): Don't provide different versions for
209         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
210         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
211         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
212         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
213         (CPP_PREDEFINES): Make sure this is undefined.
214         (SUBTARGET_EXTRA_SPECS): Define.
215         (CPP_SPEC): Use %(netbsd_cpp_spec).
216
217 2002-05-29  Jeff Law <law@redhat.com>
218
219         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
220
221         * flow.c (propagate_one_insn): Do not remove a dead insn if it
222         contains a REG_RETVAL note.
223
224         * haifa-sched (sched_analyze): Remove another useless clearing
225         of SCHED_GROUP_P I missed yesterday.
226
227         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
228         * pa.c (pa_asm_output_mi_thunk): New function.
229         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
230
231 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
232             Marek Michalkiewicz  <marekm@amelek.gda.pl>
233
234         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
235         (avr_asm_only_p): Make non-static.
236         (enum avr_arch): Remove.
237         (avr_arch_types): New.
238         (avr_mcu_types): Update.
239         (avr_override_options): Use avr_arch_types table instead of switch.
240         * avr.h (CPP_PREDEFINES): Die.
241         (avr_base_arch_macro, avr_extra_arch_macro): New.
242         (TARGET_CPU_CPP_BUILTINS): New.
243         (CPP_SPEC, EXTRA_SPECS): Simplify.
244         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
245         CPP_AVR5_SPEC): Die.
246
247 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
248
249         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
250         NETBSD_OS_CPP_BUILTINS_AOUT.
251         (SUBTARGET_EXTRA_SPECS): Define.
252         (CPP_SPEC): Use %(netbsd_cpp_spec).
253
254 2002-05-29  Richard Henderson  <rth@redhat.com>
255
256         * config/i386/i386.c (ix86_output_function_epilogue): New.
257         (TARGET_ASM_FUNCTION_EPILOGUE): New.
258         (pic_label_name): Remove.
259         (pic_labels_used): New.
260         (ix86_asm_file_end): Emit one pc load stub for each register used.
261         (output_set_got): Generate deep pc load to any register.
262         (ix86_select_alt_pic_regnum): New.
263         (ix86_save_reg): Don't save pic register if we can find a valid
264         call-clobbered replacement.
265         (ix86_expand_prologue): If we found a valid replacement, renumber
266         pic_offset_table_rtx.
267         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
268         pic_offset_table_rtx after reload.
269         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
270         * config/i386/i386.md (set_got): Make insn, not expander.
271         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
272
273 2002-05-29  Richard Henderson  <rth@redhat.com>
274
275         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
276         alignment for alloca.
277
278 2002-05-29  Richard Henderson  <rth@redhat.com>
279
280         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
281         (print_operand_address): Only add rip for symbolic addresses
282         for which we do not have another relocation type.
283
284 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
285
286         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
287         (EXTRA_SPECS): Add netbsd_cpp_spec.
288         (CPP_SPEC): Use %(netbsd_cpp_spec).
289         (CPP_PREDEFINES): Remove.
290         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
291         (EXTRA_SPECS): Define.
292         (CPP_SPEC): Use %(netbsd_cpp_spec).
293         (CPP_PREDEFINES): Remove.
294
295 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
296
297         PR preprocessor/6844
298         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
299         NUL.
300
301 2002-05-29  Eric Christopher  <echristo@redhat.com>
302
303         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
304         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
305
306 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
307
308         * config/fr30/fr30.md: Remove previous restriction on splits.
309         Enforce conformance through gen_lowpart and cont_int_operand.
310         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
311         as the assembler does not support ".bss".
312
313 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
314
315         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
316         (CPP_PREDEFINES): Remove.
317         (SUBTARGET_EXTRA_SPECS): Define.
318         (CPP_SPEC): Use %(netbsd_cpp_spec).
319         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
320         (CPP_PREDEFINES): Remove.
321         (SUBTARGET_EXTRA_SPECS): Define.
322         (CPP_SPEC): Use %(netbsd_cpp_spec).
323         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
324         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
325         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
326         Add netbsd_cpp_spec.
327         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
328
329 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
330             Zack Weinberg <zack@codesourcery.com>
331
332         * cppexp.c (cpp_num): Move to cpplib.h.
333         (CPP_ERROR): Remove.
334         (interpret_float_suffix, interpret_int_suffix): New.
335         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
336         (cpp_classify_number, cpp_interpret_integer): New.
337         (interpret_number): Remove.
338         (eval_token): Update to use new routines.
339         * cpphash.h (cpp_num_part): Move to cpplib.h.
340         * cppinit.c (cpp_post_options): Set warn_long_long.
341         * cpplib.h (struct cpp_options): Add warn_long_long.
342         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
343         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
344         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
345         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
346         cpp_interpret_integer): New.
347
348 2002-05-29  Joel Sherrill <joel@OARcorp.com>
349
350         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
351
352 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
353
354         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
355         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
356         (CPP_SUBTARGET_SPEC): Define.
357         (SUBTARGET_EXTRA_SPECS): Define.
358         (CPP_SPEC): Remove.
359
360 2002-05-29  Chris Lattner  <sabre@nondot.org>
361
362         * ssa.c (rename_insn_1): Rename uses of undefined registers to
363         prevent confusion if/when the register is defined.
364
365 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
366
367         PR target/6838
368         * config/cris/cris.md: Fix typos and thinkos in comments.
369         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
370         second alternative.
371         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
372         ("*mov_sideqi_mem"): Similar, but for operand 3.
373         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
374         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
375         Remove spurious mode specifier on operand 2.
376
377 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
378
379         * config/h8300/h8300-protos.h: Remove the prototype for
380         o_operand.
381         Add prototypes for single_one_operand and single_zero_operand.
382         * config/h8300/h8300.c (o_operand): Remove.
383         (single_one_operand): New.
384         (single_zero_operand): Likewise.
385         (print_operand): For 'V' operand, and the operand with 0xff.
386         For 'V' and 'W' operands, do not and the bit position with 7.
387         * config/h8300/h8300.md (various anonymous patterns): Replace
388         use of exact_log2 with single_one_operand/single_zero_operand.
389
390 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
391
392         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
393
394 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
395
396         * config/s390/s390.c (legitimate_pic_operand_p): Do not
397         accept symbolic LARL operands.
398         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
399         epilogue insns.
400
401 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
402
403         * config/s390/s390.md (cmpstr_64/31): Mark whole
404         input registers as used.
405
406 2002-05-28  Richard Henderson  <rth@redhat.com>
407
408         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
409         not current_function_uses_pic_offset_table and
410         current_function_uses_const_pool; examine current_function_profile.
411         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
412         input to blockage if needed.
413         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
414         (legitimize_pic_address): Likewise.  Set regs_ever_live for
415         pic_offset_table_rtx when invoked during reload.
416         * config/i386/i386.h (FINALIZE_PIC): Remove.
417         * config/i386/i386.md (tablejump): Reformat.  Do not set
418         current_function_uses_pic_offset_table.
419         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
420         (blockage): Accept anything as operand 0.
421
422 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
423
424         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
425         common CPP built-ins for all NetBSD a.out targets.
426         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
427         common CPP built-ins for all NetBSD ELF targets.
428         * config/netbsd.h: Add missing notice.
429         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
430         for all NetBSD targets.
431         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
432         for all NetBSD targets using an LP64 code model.
433         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
434         NetBSD targets.
435
436 2002-05-28  Richard Henderson  <rth@redhat.com>
437
438         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
439         update if UPDATE_LIFE_LOCAL.
440
441 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
442
443         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
444
445 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
446                           Jason R. Thorpe <thorpej@wasabisystems.com>
447
448         config/sh reorganization to factor out endianness and coff:
449
450         * config/sh/little.h: New file.
451         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
452         defined, define to 0 to select big-endian.
453         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
454         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
455         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
456         * config/sh/t-be: New file.
457         * config/sh/t-le: New file.
458
459         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
460         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
461         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
462         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
463         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
464         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
465         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
466         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
467         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
468         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
469         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
470         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
471         (LINK_SPEC): Define to SH_LINK_SPEC.
472         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
473         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
474         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
475         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
476         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
477         * config/sh/coff.h: New file.
478         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
479         (TARGET_OBJFMT_CPP_BUILTINS): Define.
480         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
481         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
482         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
483         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
484         (PTRDIFF_TYPE): Likewise.
485         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
486         (CPP_PREDEFINES): Don't define.
487         (TARGET_OBJFMT_CPP_BUILTINS): Define.
488         (LINK_SPEC): Define to SH_LINK_SPEC.
489         (LINK_EMUL_PREFIX): Redefine.
490         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
491         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
492         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
493         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
494         (TARGET_OS_CPP_BUILTINS): Define.
495         (TARGET_DEFAULT): Redefine.
496         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
497         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
498         (LINK_SPEC): Don't redefine.
499         (LINK_DEFAULT_CPU_EMUL): Redefine.
500         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
501         * sh.c (sh_asm_named_section): Don't declare / define.
502         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
503         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
504         (sh64-*-elf* tm_file): Likewise.
505         (sh-*-rtemself* tm_file): Likewise.
506         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
507         (sh-*-linux* tmake_file): Add sh/t-le.
508         (sh-*-rtems* tm_file): Add sh/coff.h
509         (sh-*-* tm_file): Likewise.
510
511 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
512
513         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
514         CONSTANT_POOL_ADDRESS_P.
515
516         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
517
518 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
519             Jeff Law <law@redhat.com>
520
521         * optabs.c (expand_binop): Fix nwords sign warnings.
522         generate pseudo for add_optab.
523
524         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
525         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
526
527 2002-05-28      Marc Espie <espie@openbsd.org>
528
529         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
530         inherited from gas.h.
531         (ASM_QUAD):  Undef.  OpenBSD does not support it.
532
533 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
534
535         * doc/install.texi (binaries): Change mingw binaries
536         link to www.mingw.org.
537
538 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
539
540         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
541
542 2002-05-28  Richard Henderson  <rth@redhat.com>
543
544         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
545         bottom alignment for leaf functions.
546
547 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
548
549         * config/pa/milli32.S, config/pa/lib1funcs.asm,
550         config/sparc/sol2-g1.asm: Delete unused files.
551
552 2002-05-28  Richard Henderson  <rth@redhat.com>
553
554         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
555
556         * flow.c (calculate_global_regs_live): Rename call_used to
557         invalidated_by_call.  Initialize from regs_invalidated_by_call
558         instead of call_used_regs.
559
560         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
561         DECL_EXTERNAL.
562
563 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
564
565         * tree.h: Don't include real.h.
566         Forward-declare struct realvaluetype.
567         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
568         contain it.
569         (TREE_REAL_CST_PTR): New accessor.
570         (TREE_REAL_CST): Update.
571         * real.h: Include machmode.h.
572         (realvaluetype): Make it struct realvaluetype, not a typedef.
573         (build_real): Prototype here.
574
575         * tree.c: Include real.h.
576         (build_real): Allocate the REAL_VALUE_TYPE as a separate
577         object in GC memory, set TREE_REAL_CST_PTR to point to it.
578         (build_real_from_int_cst): Use build_real.
579         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
580         REAL_CST.
581
582         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
583         fold-const.c, print-tree.c, real.c: Include real.h.
584         * Makefile.in: Update dependency lists.
585
586 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
587
588         * basic-block.h (last_basic_block): Declare.
589         (expunge_block_nocompact): Declaration removed.
590         (compact_blocks): Declare.
591         * cfg.c (last_basic_block): New variable.
592         (expunge_block_nocompact): Removed.
593         (expunge_block): Do not compact basic blocks.
594         (compact_blocks): New.
595         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
596         longer change.
597         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
598         last_basic_block.
599         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
600         real positions of blocks.
601         (delete_unreachable_blocks): Simplified -- quadratic behavior now
602         cannot occur.
603         (cleanup_cfg): Compact blocks.
604         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
605         basic_block_info varray.
606         (flow_delete_block): Comment update.
607         (back_edge_of_syntactic_loop_p): Modify position check code.
608         (verify_flow_info): Update checking.
609         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
610         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
611         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
612         indices no longer change.
613         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
614         last_basic_block.
615         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
616         * profile.c (branch_prob): Compact blocks.
617         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
618         last_basic_block.
619
620 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
621
622         * config/h8300/h8300.md (two anonymous patterns): New.
623
624 2002-05-28  David S. Miller  <davem@redhat.com>
625
626         * config/sparc/sparc.md (cpu): Tidy.
627         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
628         'trap'.
629         (in_call_delay): Delete reference to 'return' type.
630         (eligible_for_return_delay, in_return_delay, define_delay
631         referencing those): Delete.
632         (rest of file): Use new type attributes as appropriate.
633         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
634         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
635         * config/sparc/ultra1_2.md (us1_single): New reservation.
636         (us1_ialuX): Likewise.
637         * config/sparc/ultra3.md (us3_single): Likewise.
638         (us3_ialuX): Likewise.
639         (us3_imul, us3_idiv): Tweak.
640
641 2002-05-28  Richard Henderson  <rth@redhat.com>
642
643         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
644         STRING_CST.
645
646 2002-05-28  Richard Henderson  <rth@redhat.com>
647
648         * config.gcc: Obsolete mn10200.
649
650 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
651
652         * cppexp.c (interpret_number): Optimize for single-digit
653         and less-than-half-precision cases.
654         (num_trim, num_positive, num_div_op): Cast constants.
655
656 2002-05-27  Bo Thorsen  <bo@suse.de>
657
658         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
659         3.1 branch. The file was made by Jakub Jelinek.
660         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
661         support so multilib doesn't break. And don't define this at all
662         when -Dinhibit_libc is used.
663         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
664         * config/i386/t-linux64: Implement full multilib support. Patch
665         originally done by Andreas Jaeger and Jakub Jelinek.
666
667 2002-05-27  Roger Sayle  <roger@eyesopen.com>
668
669         * c-common.c: Add support for __attribute__((nothrow)) to specify
670         that a function cannot throw an exception (using TREE_NOTHROW).
671         (handle_nothrow_attribute): New function to process this attribute.
672
673         * doc/extend.texi: Document the new nothrow function attribute.
674
675 2002-05-27  H.J. Lu  (hjl@gnu.org)
676
677         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
678         (num_positive): Likewise.
679         (num_div_op): Likewise.
680
681 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
682
683         * c-common.c (c_common_init): Always use intmax_t.
684
685 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
686
687         * c-common.c (c_common_init): Use intmax_t for now.
688
689 2002-05-24  Andrew Haley  <aph@redhat.com>
690
691         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
692         if T is a boolean type.
693
694 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
695
696         * basic-block.h (last_basic_block): Defined as synonym for
697         n_basic_blocks.
698         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
699         flow_depth_first_order_compute, flow_preorder_transversal_compute,
700         flow_dfs_compute_reverse_init): Replaced relevant occurences of
701         n_basic_blocks with last_basic_block.
702         * cfgbuild.c (make_edges): Likewise.
703         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
704         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
705         * combine.c (combine_instructions): Likewise.
706         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
707         iterative_dataflow_bitmap): Likewise.
708         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
709         calc_idoms, idoms_to_doms): Likewise.
710         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
711         Likewise.
712         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
713         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
714         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
715         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
716         delete_null_pointer_checks, compute_code_hoist_vbeinout,
717         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
718         compute_store_table, build_store_vectors): Likewise.
719         * haifa-sched.c (sched_init): Likewise.
720         * ifcvt.c (if_convert): Likewise.
721         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
722         pre_edge_lcm, compute_available, compute_nearerout,
723         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
724         Likewise.
725         * predict.c (estimate_probability, process_note_prediction,
726         note_prediction_to_br_prob): Likewise.
727         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
728         * recog.c (split_all_insns, peephole2_optimize): Likewise.
729         * regrename.c (copyprop_hardreg_forward): Likewise.
730         * resource.c (init_resource_info): Likewise.
731         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
732         init_regions, schedule_insns): Likewise.
733         * ssa-ccp.c (ssa_const_prop): Likewise.
734         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
735         * ssa.c (compute_dominance_frontiers,
736         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
737
738         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
739         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
740         sizes consistently.
741
742 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
743
744         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
745         new.
746         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
747         hoist_insn_after, hoist_insn_to_edge): New.
748
749 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
750
751         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
752         (PROP_FINAL): Include.
753         * flow.c (life_analysis, update_life_info,
754         init_propagate_block_info, mark_set_1, mark_used_rgs):
755         Support SCAN_DEAD_STORE.
756
757 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
758
759         * c-common.c (c_common_init): Set CPP arithmetic precision.
760         * cppexp.c (cpp_num_part): Move typedef ...
761         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
762         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
763         (sanity_checks): Update.
764
765 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
766
767         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
768         (mkheaders): New rule.
769         (install-mkheaders): New rule.
770         * configure.in (all_outputs): Add mkheaders.
771         * configure: Regenerate.
772         * mkheaders.in: New file.
773
774 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
775
776         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
777
778 2002-05-26  Andreas Jaeger  <aj@suse.de>
779
780         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
781
782 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
783
784         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
785         right_shift): Remove.
786         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
787         HIGH_PART): New.
788         (struct op): Use cpp_num.
789         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
790         num_part_mul, num_unary_op, num_binary_op, num_negate,
791         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
792         num_div_op, num_lshift, num_rshift, append_digit): New.
793         (interpret_number, parse_defined, eval_token, reduce): Update
794         for two-integer arithmetic.
795         (binary_handler): New typedef.
796         (optab): Update.
797         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
798         (_cpp_parse_expr, reduce): Update to handle two-integers.
799         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
800
801 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
802
803         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
804         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
805         branch insn into account, do not assume 1.
806         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
807         over single word insn.  Handle upper half of I/O space too.
808         * config/avr/avr.md (*sbrx_branch): Use it.
809         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
810         (*sbix_branch, *sbix_branch_bit7): Likewise.
811         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
812         Use RTL peepholes to optimize register operand sign tests.
813
814 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
815
816         * config/avr/avr.c (avr_asm_only_p): New variable.
817         (avr_override_options): Set it here if AVR1.
818         (asm_file_start): Test it here, report an error if set.
819
820 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
821
822         * alias.c: Fix formatting.
823         * attribs.c: Likewise.
824         * bb-reorder.c: Likewise.
825         * bitmap.c: Likewise.
826         * bitmap.h: Likewise.
827         * builtins.c: Likewise.
828
829 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
830
831         * reload.c (find_valid_class): Accept new argument DEST,
832         choose class accordingly.
833         (push_reload): Update callers.
834
835 2002-05-26  Andreas Jaeger  <aj@suse.de>
836
837         * combine.c (combine_instructions): Do not indent #if for
838         traditional C.
839
840 2002-05-25  Richard Henderson  <rth@redhat.com>
841
842         * c-pragma.c (apply_pragma_weak): Convert value identifier to
843         string for decl_attributes.
844         (handle_pragma_weak): Call assemble_alias if we're modifying
845         an existing decl.
846
847 2002-05-25  Richard Henderson  <rth@redhat.com>
848
849         PR target/6788
850         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
851         using rtl instead of fprintf.
852         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
853         * config/sparc/sparc-protos.h: Update.
854
855 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
856
857         * Makefile.in (C_COMMON_H): Fix.
858         Update other targets.
859         * c-common.c: Don't include c-lex.h.
860         (builtin_define_with_value): Make static and prototype.
861         (builtin_define_std): Move from c-lex.h.
862         * c-common.h (init_c_lex): Move from c-lex.h.
863         * c-decl.c: Don't include c-lex.h.
864         (make_pointer_declarator): Move from c-parse.in.
865         * c-lex.c: Don't include c-lex.h.
866         * c-lex.h: Remove.
867         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
868         (make_pointer_declarator): Move to c-decl.c.
869         * c-pragma.c: Don't include c-lex.h.
870         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
871         * c-tree.h (make_pointer_declarator): New.
872 doc:
873         * passes.texi, tm.texi: Update.
874 objc:
875         * Make-lang.in: Update and correct.
876         * objc-act.c: Don't include c-lex.h or cpplib.h.
877 treelang:
878         * treetree.c: Don't include c-lex.h.
879 config:
880         * darwin-c.c: Don't include c-lex.h.
881         * c4x/c4x-c.c: Don't include c-lex.h.
882         * c4x/t-c4x: Update.
883         * i370/i370-c.c: Don't include c-lex.h.
884         * i370/t-i370: Update.
885         * i960/i960-c.c: Don't include c-lex.h.
886         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
887         * i960/t-960bare: Update.
888         * i960/t-vxworks: Update.
889         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
890         * rs6000/t-darwin: Update.
891         * rs6000/t-rs6000-c-rule: Update.
892         * v850/v850-c.c: Don't include c-lex.h.
893         * v850/v850.c: Don't include c-lex.h or cpplib.h.
894
895
896 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
897
898         * tree.def: Fix typos.
899         * doc/install.texi: Likewise.
900
901 2002-05-25  Richard Henderson  <rth@redhat.com>
902
903         * configure.in (HAVE_AS_TLS): Add ia64 test.
904         * configure: Rebuild.
905         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
906         (override_options): Set it.
907         (TARGET_HAVE_TLS): New.
908         (sdata_symbolic_operand): Look for 's'.
909         (tls_symbolic_operand): New.
910         (ia64_expand_load_address): Abort for tls symbols.
911         (gen_tls_get_addr): New.
912         (gen_thread_pointer): New.
913         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
914         (rtx_needs_barrier): Add new unspecs.
915         (ia64_encode_section_info): Handle tls symbols.
916         (ia64_strip_name_encoding): Strip two encoding chars.
917         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
918         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
919         (TARGET_OPTIONS): Add tls-size.
920         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
921         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
922         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
923         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
924         (movsf, movdf): Likewise.
925         (movdi_symbolic): Use match_scratch.  Don't split if we won't
926         have a scratch availiable.
927         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
928         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
929         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
930         * config/ia64/ia64-protos.h: Update.
931         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
932         sdata_symbolic_operand.
933         (ASM_OUTPUT_LABELREF): Strip two characters.
934
935 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
936
937         * combine.c (simplify_set): Remove an unnecessary subreg.
938
939 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
940
941         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
942
943         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
944
945 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
946
947         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
948
949 2002-05-25  Roger Sayle  <roger@eyesopen.com>
950
951         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
952         (cond (compare x y) 0) into the equivalent (cond x y).
953
954 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
955
956         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
957
958 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
959
960         * config.gcc: Remove all stanzas for previously obsoleted
961         systems.  Where necessary, add explicit error stanzas to
962         prevent removed systems from being misidentified as something
963         else.  Begin a fresh obsoletions list, with the systems that
964         were reprieved last round.
965         * doc/install.texi: Remove all mention of dead targets.
966         * fixinc/mkfixinc.sh: Likewise.
967
968         * config/arm/arm.h: Bit 31 of target_flags is no longer
969         reserved.
970
971         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
972         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
973         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
974         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
975         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
976         config/alpha/osf12.h, config/alpha/osf2or3.h,
977         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
978         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
979         config/clipper/clipper-protos.h, config/clipper/clipper.c,
980         config/clipper/clipper.h, config/clipper/clipper.md,
981         config/clipper/clix.h, config/convex/convex-protos.h,
982         config/convex/convex.c, config/convex/convex.h,
983         config/convex/convex.md, config/convex/fixinc.convex,
984         config/convex/proto.h, config/elxsi/elxsi-protos.h,
985         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
986         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
987         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
988         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
989         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
990         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
991         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
992         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
993         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
994         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
995         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
996         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
997         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
998         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
999         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1000         config/m68k/altos3068.h, config/m68k/apollo68.h,
1001         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1002         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1003         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1004         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1005         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1006         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1007         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1008         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1009         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1010         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1011         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1012         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1013         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1014         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1015         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1016         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1017         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1018         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1019         config/mips/dec-osf1.h, config/mips/elflorion.h,
1020         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1021         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1022         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1023         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1024         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1025         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1026         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1027         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1028         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1029         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1030         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1031         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1032         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1033         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1034         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1035         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1036         Delete file.
1037
1038 2002-05-24  Richard Henderson  <rth@redhat.com>
1039
1040         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1041         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1042         * config/i386/i386.c (tls_model_chars): Add leading space.
1043         (tls_symbolic_operand): Don't bias by 1.
1044         (legitimize_address): Don't unbias by 1.
1045
1046 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1047
1048         * lcm.c (optimize_mode_switching): Change bb used as indices
1049         to bb->index.
1050
1051 2002-05-24  Richard Henderson  <rth@redhat.com>
1052
1053         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1054         of update_life_info_in_dirty_blocks.
1055
1056 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1057
1058         PR other/6782
1059         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1060
1061 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1062
1063         PR preprocessor/6780
1064         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1065
1066 2002-05-24  Jim Blandy  <jimb@redhat.com>
1067
1068         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1069         entry with a type code of zero, marking the end of the compilation
1070         unit's macro info.
1071
1072 2002-05-24  Richard Henderson  <rth@redhat.com>
1073
1074         * varasm.c (asm_output_bss): Always output one byte.
1075         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1076
1077 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1078
1079         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1080         namespace.
1081
1082 2002-05-24  Andreas Jaeger  <aj@suse.de>
1083
1084         * ggc-page.c (alloc_page): Cast variables of type size_t to
1085         unsigned long, adjust printf format string.
1086         (ggc_alloc): Likewise.
1087         (ggc_print_statistics): Likewise.
1088         (ggc_print_statistics): Correct printf format string for SCALE to
1089         use unsigned long.
1090
1091 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1092
1093         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1094
1095 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1096             Zack Weinberg     <zack@codesourcery.com>
1097
1098         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1099         quoted strings.
1100         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1101         directive in assembly file.
1102         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1103         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1104         * config/pj/pj.h (ASM_FILE_START): Likewise.
1105         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1106         * config/avr/avr.c (asm_file_end): Likewise.
1107         * toplev.c (output_quoted_string): Handle possibly signed plain
1108         char.
1109         * toplev.h (output_clean_symbol_name): Declare
1110         * toplev.c (output_clean_symbol_name): Define.
1111         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1112         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1113
1114 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1115
1116         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1117
1118 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1119
1120         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1121         of size of unsigned.
1122
1123 2002-05-23  Richard Henderson  <rth@redhat.com>
1124
1125         * configure.in (HAVE_AS_TLS): New test.
1126         * config.in, configure: Rebuild.
1127         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1128         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1129         (override_options): Set it.
1130         (tls_model_chars, tls_symbolic_operand): New.
1131         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1132         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1133         (local_exec_symbolic_operand): New.
1134         (get_pic_label_name): Merge into output_set_got.
1135         (ix86_asm_file_end): Emit pic_label_name if defined.
1136         (legitimate_constant_p, constant_address_p): New.
1137         (legitimate_pic_operand_p): New.
1138         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1139         (legitimate_address_p): Likewise.
1140         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1141         (ix86_strip_name_encoding): New.
1142         (get_thread_pointer): New.
1143         (legitimize_address): Handle tls symbols.
1144         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1145         Remove UNSPEC_PLT.
1146         (struct machine_function): Add some_ld_name.
1147         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1148         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1149         (output_addr_const_extra): New.
1150         (maybe_get_pool_constant): New.
1151         (ix86_split_to_parts): Use it.
1152         (ix86_expand_move): Handle tls symbols.
1153         (ix86_tls_get_addr): New.
1154         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1155         (TARGET_OPTIONS): Add tls-dialect.
1156         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1157         (LEGITIMATE_CONSTANT_P): Likewise.
1158         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1159         (TARGET_STRIP_NAME_ENCODING): New.
1160         (ASM_OUTPUT_LABELREF): New.
1161         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1162         (OUTPUT_ADDR_CONST_EXTRA): New.
1163         (PREDICATE_CODES): Update.
1164         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1165         * config/i386/i386.md: Regroup and renumber unspec constants.
1166         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1167         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1168         (tls_global_dynamic, tls_local_dynamic_base): New.
1169         (tls_local_dynamic_once): New.
1170         * config/i386/i386-protos.h: Update.
1171
1172 2002-05-23  Richard Henderson  <rth@redhat.com>
1173
1174         * genemit.c (gen_insn): Print file:lineno comment before function.
1175         (main): likewise.
1176         * gensupport.c (struct queue_elem): Add filename member.
1177         (queue_pattern): Initialize it; update all callers.
1178         (process_include): Don't free filename.
1179         (read_md_rtx): Set read_rtx_filename.
1180
1181 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1182
1183         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1184
1185 2002-05-23  Richard Henderson  <rth@redhat.com>
1186
1187         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1188
1189 2002-05-23  Richard Henderson  <rth@redhat.com>
1190
1191         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1192         commentary from Mark.
1193
1194 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1195
1196         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1197         Use FOR_EACH_BB macros to iterate over basic block chain.
1198         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1199         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1200         Likewise.
1201         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1202         find_unreachable_blocks, create_edge_list, verify_edge_list,
1203         remove_fake_edges, add_noreturn_fake_exit_edges,
1204         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1205         Likewise.
1206         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1207         find_sub_basic_blocks): Likewise.
1208         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1209         Likewise.
1210         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1211         Likewise.
1212         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1213         Likewise.
1214         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1215         commit_edge_insertions, commit_edge_insertions_watch_calls,
1216         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1217         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1218         * conflict.c (conflict_graph_compute): Likewise.
1219         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1220         df_modified_p, df_refs_unlink, df_dump): Likewise.
1221         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1222         * final.c (compute_alignments): Likewise.
1223         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1224         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1225         count_or_remove_death_notes): Likewise.
1226         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1227         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1228         classic_gcse, compute_transp, cprop, compute_pre_data,
1229         compute_transpout, invalidate_nonnull_info,
1230         delete_null_pointer_checks_1, delete_null_pointer_checks,
1231         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1232         compute_store_table, build_store_vectors, store_motion): Likewise.
1233         * global.c (global_conflicts, mark_elimination): Likewise.
1234         * graph.c (print_rtl_graph_with_bb): Likewise.
1235         * haifa-sched.c (sched_init): Likewise.
1236         * ifcvt.c (if_convert): Likewise.
1237         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1238         compute_available, compute_nearerout, compute_rev_insert_delete,
1239         optimize_mode_switching): Likewise.
1240         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1241         * predict.c (estimate_probability, note_prediction_to_br_prob,
1242         propagate_freq, counts_to_freqs, expensive_function_p,
1243         estimate_bb_frequencies): Likewise.
1244         * profile.c (instrument_edges, get_exec_counts,
1245         compute_branch_probabilities, compute_checksum, branch_prob,
1246         find_spanning_tree): Likewise.
1247         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1248         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1249         Likewise.
1250         * regclass.c (scan_one_insn, regclass): Likewise.
1251         * regmove.c (mark_flags_life_zones, regmove_optimize,
1252         record_stack_memrefs): Likewise.
1253         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1254         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1255         * resource.c (find_basic_block): Likewise.
1256         * sched-ebb.c (schedule_ebbs): Likewise.
1257         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1258         find_single_block_region, find_rgns, schedule_insns)
1259         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1260         * ssa-ccp.c (optimize_unexecutable_edges,
1261         ssa_ccp_df_delete_unreachable_insns): Likewise.
1262         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1263         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1264         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1265         compute_coalesced_reg_partition, rename_equivalent_regs,
1266         convert_from_ssa): Likewise.
1267         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1268         process_for_unwind_directive): Likewise.
1269
1270         * df.c (FOR_ALL_BBS): Removed.
1271         * gcse.c (struct null_pointer_info): Type of current_block field
1272         changed.
1273         (struct reg_avail_info): Type of last_bb field changed.
1274         * config/ia64/ia64.c (block_num): Removed.
1275         (need_copy_state): Type changed.
1276         (last_block): New.
1277
1278 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1279
1280         * cppinit.c (mark_named_operators): Split out from init_builtins.
1281         (cpp_finish_options): Call it from here instead.
1282
1283 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1284
1285         * builtin-attrs.def: Update copyright years.
1286         (ATTR_NONNULL): New attribute identifier.
1287         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1288         attribute tree lists.
1289         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1290         format operand.
1291         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1292         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1293         attribute lists.  Chain the appropriate nonnull attribute.
1294         * c-format.c (check_format_arg): Remove null format string
1295         warning.
1296         * testsuite/gcc.dg/format/null-1.c: New test.
1297
1298 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1299
1300         * Makefile.in (ADAC): Define.
1301         (SYSLIBS): Define.
1302         (.SUFFIXES): Move before language makefile fragments.
1303         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1304
1305 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1306
1307         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1308         placed in common.
1309
1310 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1311
1312         * cfg.c (dump_flow_info): Print results of
1313         maybe_hot/probably_never_executed predicates.
1314         * toplev.c (open_dump_file): Print function frequency.
1315
1316 2002-05-23  David S. Miller  <davem@redhat.com>
1317
1318         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1319         regsets.
1320
1321 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1322
1323         * c-common.c (warn_nonnull): Declare.
1324         (c_common_attribute_table): Add "nonnull" attribute.
1325         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1326         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1327         check_function_arguments_recurse): New functions.
1328         * c-common.h (warn_nonnull): Declare extern.
1329         (check_function_arguments, check_function_arguments_recurse): New
1330         prototypes.
1331         * c-decl.c (c_decode_option): Add -Wnonnull option.
1332         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1333         format checking.
1334         (format_check_context): New structure.
1335         (check_format_info_recurse): Remove recursion and rename to...
1336         (check_format_arg): ...this.  Update comment.
1337         (check_format_info): Use check_function_arguments_recurse.
1338         * c-typeck.c (build_function_call): Call check_function_arguments
1339         instead of check_function_format.
1340         * doc/extend.texi: Document "nonnull" attribute.
1341         * doc/invoke.texi: Docuemnt -Wnonnull option.
1342         * testsuite/gcc.dg/nonnull-1.c: New test.
1343         * testsuite/gcc.dg/nonnull-2.c: New test.
1344
1345 2002-05-23  David S. Miller  <davem@redhat.com>
1346
1347         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1348         * cfgcleanup.c (cleanup_cfg): If it is set do not
1349         attempt to delete trivially dead insns.
1350         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1351         * toplev.c (rest_of_compilation): Document non-trivial aspect
1352         the RTL before optimize_save_area_alloca is run.
1353
1354 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1355
1356         * c-lex.c (indent_level): Remove.
1357         (cb_file_change, c_lex): Remove indent level handling.
1358         * c-lex.h (indent_level): Remove.
1359         * input.h (struct file_stack): Remove indent_level.
1360         * toplev.c (push_srcloc): Remove indent_level handling.
1361
1362 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1363
1364         PR target/6753
1365         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1366         of x in constraints for clarity.
1367         (sse_mov?fcc split): abort if op2 == op3.
1368         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1369         sse_movsfcc_const0_4): Add earlyclobber.
1370         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1371         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1372         Use Y instead of x in constraints.
1373
1374 2002-05-23  Richard Henderson  <rth@redhat.com>
1375
1376         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1377         (C++98 Thread-Local Edits): New subsection.
1378
1379         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1380         (ix86_arch): Set type to enum processor_type.
1381
1382         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1383         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1384
1385 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1386
1387         * configure.in: Fix as version test for binutils 2.12.1 releases
1388         (without dates).
1389         * configure: Rebuilt.
1390
1391 2002-05-23  Richard Henderson  <rth@redhat.com>
1392
1393         * config/i386/i386.c (get_pic_label_name): New.
1394         (load_pic_register): Remove.
1395         (output_set_got): New.
1396         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1397         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1398         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1399         (prologue_set_got, prologue_get_pc): Remove.
1400         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1401         (builtin_setjmp_receiver): Use gen_set_got.
1402         * config/i386/i386-protos.h: Update.
1403
1404 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1405
1406         * gcse.c (hash_expr): Do not use alias set for hashing.
1407
1408 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1409
1410         * dbxout.c (dbxout_class_name_qualifiers): New function.
1411         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1412
1413 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1414
1415         * cpperror.c (_cpp_begin_message): No special casing
1416         of CPP_FATAL_LIMIT.
1417         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1418         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1419         * cpplib.c (do_include_common): Use DL_ERROR.
1420         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1421         (DL_ICE): Renumber.
1422         * fix-header.c (read_scan_file): Update.
1423
1424 2002-05-22  Richard Henderson  <rth@redhat.com>
1425
1426         * config/i386/i386.c (ix86_expand_call): New function, extracted
1427         from md call patterns.  Add pic_offset_table_rtx to
1428         CALL_INSN_FUNCTION_USAGE when needed.
1429         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1430         (call_value_pop, call_value, untyped_call): Likewise.
1431         (call_exp, call_value_exp): Remove.
1432         * config/i386/i386-protos.h: Update.
1433
1434 2002-05-22  Richard Henderson  <rth@redhat.com>
1435
1436         * varasm.c (default_section_type_flags): Check for VAR_DECL
1437         before using DECL_THREAD_LOCAL.
1438
1439 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1440
1441         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1442         (STARTFILE_SPEC): Delete PE crt0.o.
1443         * config/rs6000/aix51.h: Same.
1444         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1445         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1446         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1447         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1448         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1449
1450 2002-05-22  Richard Henderson  <rth@redhat.com>
1451
1452         * varasm.c (default_section_type_flags): Handle tls data and
1453         default sections.
1454         (default_unique_section): Handle tls sections.
1455
1456 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1457
1458         * configure.in (CROSS): Define NATIVE_CROSS.
1459         * configure: Regenerate.
1460         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1461         (startfile_prefix_spec): New var.
1462         (static_specs): Add startfile_prefix_spec.
1463         (do_spec_2): Split out from..
1464         (do_spec): ..here.
1465         (main): Process startfile_prefix_spec.
1466         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1467         dynamic linker.
1468         (STARTFILE_PREFIX_SPEC): Define.
1469         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1470         absolute paths.
1471
1472 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1473
1474         * cpperror.c: Fix formatting.
1475         * cppexp.c: Likewise.
1476         * cppfiles.c: Likewise.
1477         * cpphash.c: Likewise.
1478         * cpphash.h: Likewise.
1479         * cppinit.c: Likewise.
1480         * cpplex.c: Likewise.
1481         * cpplib.c: Likewise.
1482         * cppmacro.c: Likewise.
1483         * cppmain.c: Likewise.
1484         * cppspec.c: Likewise.
1485
1486 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1487
1488         * combine.c (force_to_mode): Use gen_int_mode.
1489         Don't clear CONST_INT bits outside of mode.
1490
1491 2002-05-22  Richard Henderson  <rth@redhat.com>
1492
1493         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1494         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1495
1496 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1497
1498         PR c/6643
1499         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1500         if DECL_SIZE_UNIT is INTEGER_CST.
1501
1502 2002-05-22  Richard Henderson  <rth@redhat.com>
1503
1504         * flow.c (life_analysis): Delete broken reg_label check.
1505
1506 2002-05-22  Richard Henderson  <rth@redhat.com>
1507
1508         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1509         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1510
1511 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1512
1513         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1514         (embed-bb.c): New rule.
1515         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1516         * config/sh/embed_bb.c: Delete.
1517
1518 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1519
1520         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1521
1522 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1523
1524         * config/h8300/h8300.md (*andorqi3): New.
1525
1526 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1527
1528         PR preprocessor/6517
1529         * Makefile.in: Update.
1530         * c-common.c (c_common_post_options): Add preprocessor
1531         errors to the error count.
1532         * c-lang.c (c_post_options): Kill.
1533         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1534         * hooks.h: Add header guards.
1535         * langhooks-def.h: Include hooks.h.
1536         (LANG_HOOKS_POST_OPTIONS): Update.
1537         * langhooks.h (struct lang_hooks): Update post_options.
1538         * toplev.c (parse_options_and_default_flags): Update.
1539 objc:
1540         * objc-lang.c (objc_post_options): Kill.
1541         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1542
1543 2002-05-21  Bruce Korb  <bkorb@gnu.org>
1544
1545         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1546         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1547         * fixinc/fixincl.x: regen.
1548
1549 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
1550
1551         * cfgbuild.c: Fix formatting.
1552         * cfg.c: Likewise.
1553         * cfgcleanup.c: Likewise.
1554         * cfglayout.c: Likewise.
1555         * cfgloop.c: Likewise.
1556         * cfgrtl.c: Likewise.
1557
1558 2002-05-21  Richard Henderson  <rth@redhat.com>
1559
1560         * c-common.h (enum rid): Add RID_THREAD.
1561         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1562         (grokdeclarator): Grok __thread.
1563         * c-parse.in (reswords): Add __thread.
1564         (rid_to_yy): Add RID_THREAD.
1565
1566         * tree.h (DECL_THREAD_LOCAL): New.
1567         (struct tree_decl): Add thread_local_flag.
1568         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1569         * tree.c (staticp): TLS variables are not static.
1570
1571         * target-def.h (TARGET_HAVE_TLS): New.
1572         * target.h (have_tls): New.
1573         * output.h (SECTION_TLS): New.
1574         * varasm.c (assemble_variable): TLS variables can't be common for now.
1575         (default_section_type_flags): Handle .tdata and .tbss.
1576         (default_elf_asm_named_section): Handle SECTION_TLS.
1577         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1578
1579         * flags.h (flag_tls_default): Declare.
1580         * toplev.c (flag_tls_default): Define.
1581         (display_help): Display help for it.
1582         (decode_f_option): Set it.
1583
1584         * doc/extend.texi (Thread-Local): New node describing language-level
1585         thread-local storage.
1586         * doc/invoke.texi (-ftls-model): Document.
1587
1588         * fixinc/inclhack.def (thread_keyword): New.
1589         * fixinc/fixincl.x: Rebuild.
1590
1591 2002-05-21  Jeffrey A Law  <law@redhat.com>
1592
1593         * optabs.c (expand_binop): For double-word integer multiplies,
1594         do not compute intermediate results into something that is
1595         not a register (such as a SUBREG or MEM).
1596
1597         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1598         (ix86_sched_reorder): Make sure to initialize scheduling
1599         data even when there's only one insn in the ready queue.
1600
1601 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1602
1603         * genautomata.c (reserv_sets_hash_value): Fix a typo.
1604
1605 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1606
1607         * genautomata.c (reserv_sets_hash_value): Define hash_value as
1608         set_el_t.  Transform the hash value into unsigned.
1609         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1610         (transform_3): Add code to process `(A,B)+(D,E)'.
1611
1612 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
1613
1614         * reload1.c (do_output_reload): Run delete_output_reload
1615         only if optimizing.
1616
1617 2002-05-21  Roger Sayle  <roger@eyesopen.com>
1618
1619         PR middle-end/6600
1620         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1621         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
1622         (can_store_by_pieces): ... and here to limit the largest mode used.
1623         Add a comment to document this function.
1624
1625 2002-05-21  Richard Henderson  <rth@redhat.com>
1626
1627         * flow.c (life_analysis): Fix test for deleted label.
1628
1629 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1630
1631         * doc/tm.texi: Fix typo.
1632
1633 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
1634
1635         * c-common.c (c_common_init): Set options->unsigned_char from
1636         flag_signed_char.
1637         (cb_register_builtins): Define __STRICT_ANSI__ and
1638         __CHAR_UNSIGNED__ here...
1639         * cppinit.c (init_builtins): Not here.
1640         (cpp_create_reader): unsigned_char option defaults to 0, not
1641         !DEFAULT_SIGNED_CHAR.
1642         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1643         and -funsigned-char.
1644
1645         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1646         * cpphash.c (_cpp_init_hashtable): Don't set it.
1647         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1648         directly.  Clarify comment.
1649
1650 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1651
1652         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1653         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
1654         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
1655         BASIC_BLOCK (n_basic_blocks - 1).
1656         * cfganal.c (can_fallthru, flow_call_edges_add,
1657         flow_preorder_transversal_compute): Too.
1658         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1659         find_sub_basic_blocks): Too.
1660         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1661         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1662         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1663         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1664         * combine.c (this_basic_block): Type changed to basic_block.
1665         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1666         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1667         get_last_value, distribute_notes, distribute_links): Too.
1668         * final.c (compute_alignments): Too.
1669         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1670         * function.c (thread_prologue_and_epilogue_insns): Too.
1671         * gcse.c (compute_code_hoist_vbeinout): Too.
1672         * global.c (build_insn_chain): Too.
1673         * ifcvt.c (find_if_block, find_cond_trap): Too.
1674         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1675         * regmove.c (regmove_optimize): Too.
1676         * resource.c (find_basic_block): Too.
1677         * sched-ebb.c (schedule_ebbs): Too.
1678         * ssa-dce.c (find_control_dependence, find_pdom): Too.
1679
1680 2002-05-21  Andreas Jaeger  <aj@suse.de>
1681
1682         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1683
1684 2002-05-21  Richard Henderson  <rth@redhat.com>
1685
1686         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1687         unspec names, not numbers.
1688
1689 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
1690
1691         * doc/sourcebuild.texi: Mention snapshot-README and
1692         snapshot-index.html as needing updating for new front ends.
1693
1694 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1695
1696         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1697         disabling checking, and avoid multiple evaluation of RTX.
1698
1699 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
1700
1701         * bitmap.c (bitmap_find_bit): Return early if we have the correct
1702         element cached.
1703
1704 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
1705
1706         * profile.c (gen_edge_profiler):  Set alias set before the memory is
1707         used.
1708
1709 2002-05-20  David S. Miller  <davem@redhat.com>
1710
1711         * cselib.c (max_value_regs): New.
1712         (cselib_lookup, cselib_invalidate_regno): Initialize it when
1713         adding new entries to the REG_VALUES table and we are dealing with
1714         a hard register.
1715         (clear_table): Initialize it.
1716         (cselib_invalidate_regno): Use it to determine which hard
1717         registers to scan when mode is not VOIDmode.
1718
1719 2002-05-20  Duraid Madina   <duraid@fl.net.au>
1720
1721         * tradcpp.c (fixup_newlines): Use old-style function header.
1722
1723 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
1724
1725         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1726
1727 2002-05-20  H.J. Lu  (hjl@gnu.org)
1728
1729         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1730
1731         * config/mips/mips.h (DFMODE_NAN): Defined.
1732         (SFMODE_NAN): Likewise.
1733
1734 2002-05-20  Dale Johannesen  <dalej@apple.com>
1735
1736         * combine.c (cant_combine_insn_p):  Back out my
1737         previous patch.
1738
1739 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
1740
1741         * params.c: Fix formatting.
1742         * params.h: Likewise.
1743         * predict.c: Likewise.
1744         * prefix.c: Likewise.
1745         * print-rtl.c: Likewise.
1746         * print-tree.c: Likewise.
1747         * profile.c: Likewise.
1748
1749 2002-05-20  H.J. Lu  (hjl@gnu.org)
1750
1751         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1752
1753 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
1754
1755         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1756         switches straight on to the assembler, do not abbreviate them.
1757         * config/arm/elf.h (ASM_SPEC): As above.
1758         * config/arm/semi.h (ASM_SPEC): As above.
1759         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1760         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1761         -mcpu=xscale on to the assembler by default.
1762         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1763
1764 2002-05-20  Richard Henderson  <rth@redhat.com>
1765
1766         * cse.c (canon_hash): Reorder do_not_record test.  Always
1767         allow pic_offset_table_rtx.
1768
1769 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
1770
1771         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1772         (expand_binop): Ditto (3 times).
1773
1774 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
1775
1776         * Makefile.in (distclean): Remove QMTest stuff.
1777         (QMTEST_PATH): New variable.
1778         (QMTESTFLAGS): Likewise.
1779         (QMTESTRUNFLAGS): Likewise.
1780         (QMTEST): Likewise.
1781         (QMTEST_GPP_TESTS): Likewise.
1782         (QMTEST_DIR): Likewise.
1783         (QMTEST_DIR/context): New target.
1784         (qmtest-g++): Likeise.
1785         (qmtest-gui): Likewise.
1786         (QMTEST_DIR/gpp-expected.qmr): Likewise.
1787
1788 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
1789
1790         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1791         an altivec register if TARGET_ALTIVEC.
1792
1793         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1794         to ALTIVEC_VECTOR_MODE.
1795         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1796         (rs6000_va_arg): Vectors may go in registers if they are not
1797         altivec vectors.
1798
1799 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
1800
1801         * protoize.c: Fix formatting.
1802
1803 2002-05-19  Richard Henderson  <rth@redhat.com>
1804
1805         * gensupport.c (init_include_reader): Merge into ...
1806         (process_include): ... here.  Simplify composite path creation.
1807         Plug memory leaks.  Fix file/line number tracking.  Do not
1808         process_define_cond_exec.  Return void.
1809         (process_rtx): Don't check process_include return value.
1810
1811 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1812
1813         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1814         fields.
1815         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1816         traversing basic block chain.
1817         (create_basic_block_structure, create_basic_block): Declaration changed.
1818         (link_block, unlink_block): Declare.
1819         * cfg.c (entry_exit_blocks): Initialize new fields.
1820         (link_block, unlink_block): New.
1821         (expunge_block_nocompact): Unlink basic block.
1822         (dump_flow_info): Print prev_bb/next_bb fields.
1823         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1824         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1825         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1826         * cfgrtl.c (create_basic_block_structure, create_basic_block,
1827         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1828         (verify_flow_info): Check that list agrees with numbering.
1829
1830 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1831
1832         * c-common.c (preprocessing_asm): New macro.
1833         * c-lex.h (builtin_define, builtin_assert): Use pfile.
1834 doc:
1835         * tm.texi: Update.
1836 config/alpha:
1837         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1838         (CPP_SPEC): Simplify.
1839         (TARGET_CPU_CPP_BUILTINS): Update.
1840         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1841         (CPP_SPEC): Simplify.
1842         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1843         (TARGET_OS_CPP_BUILTINS): Update.
1844         * osf.h (CPP_XFLOAT_SPEC): Kill.
1845         (TARGET_OS_CPP_BUILTINS): Update.
1846         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1847         * osf5.h (CPP_XFLOAT_SPEC): Kill.
1848         * vms.h (CPP_SUBTARGET_SPEC): Kill.
1849         (TARGET_OS_CPP_BUILTINS): Update.
1850
1851 2002-05-19  Richard Henderson  <rth@redhat.com>
1852
1853         * varasm.c (default_binds_local_p): Fix typo.
1854
1855 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1856
1857         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1858         CONST_INT operand to the correct mode after adding 1 to it.
1859
1860 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
1861
1862         * config.gcc (powerpc-wrs-windiss*): New target.
1863
1864 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1865
1866         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1867         (ashrdi3): Use it.
1868
1869 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
1870
1871         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1872         alphasort.
1873         * config.in: Regenerated.
1874         * configure: Regenerated.
1875
1876 2002-05-19  Richard Henderson  <rth@redhat.com>
1877
1878         * target-def.h (TARGET_BINDS_LOCAL_P): New.
1879         * target.h (struct gcc_target): Move boolean fields to the end.
1880         Add binds_local_p.
1881         * varasm.c (default_binds_local_p): New.
1882         * output.h: Declare it.
1883
1884         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1885         * config/cris/cris.c (cris_encode_section_info): Likewise.
1886         * config/i386/i386.c (i386_encode_section_info): Likewise.
1887         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1888         * config/sh/sh.c (sh_encode_section_info): Likewise.
1889
1890         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1891         (TARGET_BINDS_LOCAL_P): New.
1892
1893 2002-05-19  Richard Henderson  <rth@redhat.com>
1894
1895         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1896         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1897         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1898
1899         * toplev.c (display_help): Kill -a -ax help.
1900
1901         * config/1750a/1750a.h, config/alpha/alpha.h,
1902         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1903         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1904         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1905         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1906
1907         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1908         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1909
1910         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1911         (ix86_output_function_block_profiler): Kill.
1912         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1913         (m68hc11_function_block_profiler): Kill.
1914         * config/m68hc11/m68hc11-protos.h: Update.
1915         * config/m88k/m88k.c (output_block_profiler): Kill.
1916         (output_function_block_profiler): Kill.
1917         * config/m88k/m88k-protos.h: Update.
1918
1919 2002-05-19  Richard Henderson  <rth@redhat.com>
1920
1921         * system.h (STRIP_NAME_ENCODING): Poison it.
1922         * output.h (STRIP_NAME_ENCODING): Remove.
1923         (default_strip_name_encoding): Declare.
1924         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1925         * target.h (strip_name_encoding): New.
1926         * varasm.c (default_strip_name_encoding): New.
1927
1928         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1929         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1930         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1931         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1932         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1933         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1934         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1935         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
1936         config/v850/v850.h: Use the hook, not the macro.
1937
1938         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1939         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
1940         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
1941         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
1942         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
1943         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
1944         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1945         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
1946         config/v850/v850.c, config/v850/v850.h:
1947         Move STRIP_NAME_ENCODING to out-of-line function and add
1948         TARGET_STRIP_NAME_ENCODING.
1949
1950         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
1951         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
1952         with TARGET_STRIP_NAME_ENCODING referencing existing function;
1953         make function static.
1954
1955         * xcoffout.c: Include target.h
1956         * Makefile.in (xcoffout.o): Update.
1957
1958         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
1959         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
1960         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
1961         reloc argument unused.
1962         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
1963
1964         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
1965         STRIP_NAME_ENCODING docs.
1966
1967 2002-05-19  Andreas Jaeger  <aj@suse.de>
1968
1969         * gengenrtl.c: Add prototype for excluded_rtx.
1970
1971         * real.h: Add prototype for exact_real_truncate.
1972
1973 2002-05-18  Richard Henderson  <rth@redhat.com>
1974
1975         * system.h (ENCODE_SECTION_INFO): Poison it.
1976         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
1977         * target.h (encode_section_info): New.
1978         * varasm.c (make_decl_rtl, output_constant_def): Use it.
1979         * hooks.c (hook_tree_int_void): New.
1980         * hooks.h: Declare it.
1981
1982         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1983         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
1984         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
1985         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
1986         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
1987         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
1988         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1989         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
1990         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1991         config/mcore/mcore-protos.h, config/mcore/mcore.c,
1992         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
1993         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
1994         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
1995         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
1996         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
1997         referencing existing function.  Make function static.
1998
1999         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2000         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2001         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2002         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2003         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2004         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2005         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2006         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2007         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2008         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2009         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2010         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2011         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2012         Move ENCODE_SECTION_INFO to out-of-line function and add
2013         TARGET_ENCODE_SECTION_INFO.
2014
2015         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2016         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2017
2018         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2019         from SUBTARGET_*
2020         (switch_to_section): Replace in_rdata case with in_readonly_data.
2021
2022         * config/h8300/h8300.c (h8300_encode_label): Make static.
2023         * config/h8300/h8300-protos.h: Update.
2024
2025         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2026         from rs6000_encode_section_info; make static.
2027         (rs6000_xcoff_encode_section_info): New.
2028
2029         * config/v850/v850.c (v850_encode_data_area): Make static.
2030         * config/v850/v850-protos.h: Update.
2031
2032         * config/vax/vax.c: Include flags.h.
2033         (vms_select_section): Fix typo.
2034
2035         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2036         ENCODE_SECTION_INFO docs.
2037
2038 2002-05-18  Richard Henderson  <rth@redhat.com>
2039
2040         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2041         REGISTER_TARGET_PRAGMAS.
2042         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2043
2044         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2045
2046 2002-05-18  Richard Henderson  <rth@redhat.com>
2047
2048         * system.h (SELECT_RTX_SECTION): Poison.
2049         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2050         * target.h (select_rtx_section): New.
2051         * varasm.c (output_constant_pool): Use it.
2052         (default_select_rtx_section, default_elf_select_rtx_section): New.
2053         * output.h: Declare them.
2054
2055         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2056         * config/darwin.c (machopic_select_rtx_section): ... here.
2057         * config/darwin-protos.h: Update.
2058
2059         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2060         * config/nextstep.c (machopic_select_rtx_section): ... here.
2061         (nextstep_select_section): Rename variable to avoid macro clash.
2062         * config/nextstep-protos.h: Update.
2063
2064         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2065         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2066         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2067         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2068         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2069         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2070         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2071         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2072         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2073         (SELECT_RTX_SECTION): Remove.
2074
2075         * config/darwin.h, config/elfos.h, config/nextstep.h,
2076         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2077         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2078         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2079         config/sparc/lynx.h, config/xtensa/xtensa.c
2080         (TARGET_ASM_SELECT_RTX_SECTION): New.
2081
2082         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2083         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2084         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2085         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2086         (ia64_aix_select_rtx_section): New.
2087         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2088         redefining.
2089         * config/mips/mips.c (mips_select_rtx_section): Make static.
2090         Support ELF SHF_MERGE features.
2091         * config/mips/mips-protos.h: Update.
2092         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2093         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2094         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2095         make static, fall back to default_elf_select_rtx_section.
2096         * config/rs6000/rs6000-protos.h: Update.
2097         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2098         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2099         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2100         * config/romp/romp.c (romp_select_rtx_section): New.
2101         * config/s390/s390.c (s390_select_rtx_section): New.
2102         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2103         declarations before target macro definition.
2104         (xtensa_emit_call): Use static buffer.
2105         (xtensa_select_rtx_section): New.
2106         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2107         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2108         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2109
2110         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2111         SELECT_RTX_SECTION docs.
2112
2113 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2114
2115         * i386.md (movsi/movdi): Fix template.
2116         (sse2 patterns): Set attributes consistently.
2117
2118         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2119
2120 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2121
2122         * optabs.c (complex_part_zero_p): New.
2123         * (expand_cmplxdiv_straight): Use it.
2124         * (expand_cmplxdiv_wide): Ditto.
2125         * (expand_binop): Ditto.
2126
2127 2002-05-18  Richard Henderson  <rth@redhat.com>
2128
2129         * final.c (HAVE_READONLY_DATA_SECTION): New.
2130         (shorten_branches): Use it instead of ifdefs.
2131         * varasm.c (enum in_section): Add in_readonly_data.
2132         (text_section, data_section): Tidy.
2133         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2134
2135         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2136         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2137         (READONLY_DATA_SECTION): Don't undef.
2138
2139         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2140         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2141         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2142
2143         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2144         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2145         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2146         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2147
2148         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2149         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2150         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2151         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2152         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2153         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2154         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2155         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2156         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2157
2158         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2159         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2160         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2161         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2162         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2163         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2164
2165         * config/elfos.h, config/netware.h, config/svr3.h,
2166         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2167         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2168         config/h8300/h8300.h, config/i386/i386-interix.h,
2169         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2170         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2171
2172         * config/elfos.h, config/netware.h, config/svr3.h,
2173         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2174         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2175         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2176         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2177
2178         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2179         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2180         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2181         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2182         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2183         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2184         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2185         config/rs6000/sysv4.h, config/v850/v850.h
2186         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2187         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2188
2189         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2190         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2191         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2192         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2193         * config/alpha/alpha.c (alpha_start_function): Likewise.
2194         (alpha_write_linkage): Likewise.
2195         * config/m32r/m32r.c (m32r_select_section): Likewise.
2196         * config/m88k/m88k.c (m88k_select_section): Likewise.
2197         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2198         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2199         (rs6000_elf_select_section): Likewise.
2200         * config/v850/v850.c (v850_select_section): Likewise.
2201
2202         * config/1750a/1750a.h, config/i860/sysv3.h
2203         (READONLY_DATA_SECTION_ASM_OP): New.
2204         READONLY_DATA_SECTION_ASM_OP.
2205         * config/i386/interix.c, config/i386/winnt.c
2206         (i386_pe_unique_section): Always use .rdata prefix.
2207         * config/pa/som.h (readonly_data): Always switch to read-only section.
2208         (READONLY_DATA_SECTION): Predicate on flag_pic.
2209         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2210         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2211         (READONLY_DATA_SECTION): Update.
2212
2213 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2214
2215         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2216         is used without -Wformat.
2217         * c-common.h (warn_format_zero_length): Declare extern.
2218         * c-decl.c (warn_options): Add "format-zero-length".
2219         * c-format.c (warn_format_zero_length): Declare.
2220         (set_Wformat): Set warn_format_zero_length for -Wformat.
2221         (check_format_info): Only warn about zero-length formats if
2222         warn_format_zero_length is true.  Include the format type
2223         name in the warning message.
2224         * doc/invoke.texi: Document -Wformat-zero-length.
2225         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2226
2227 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2228
2229         * timevar.c: Fix formatting.
2230         * tlink.c: Likewise.
2231         * toplev.c: Likewise.
2232         * tree-dump.c: Likewise.
2233         * tree-inline.c: Likewise.
2234
2235 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2236
2237         * cppinit.c (cpp_post_options): If preprocessed, turn off
2238         traditional.  If traditional, turn off column numbers.
2239         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2240         * cpptrad.c (handle_newline): Update line_base.
2241         (skip_comment): Handle -Wcomment.
2242
2243 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2244
2245         * cppinit.c (struct builtin): Remove unused fields.
2246         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2247         (operator_array): New - was second half of builtin_array.
2248         (init_builtins): Simplify loop over builtin_array/operator_array.
2249
2250 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2251
2252         * defaults.h (UNIQUE_SECTION): Remove.
2253         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2254
2255 2002-05-17  Richard Henderson  <rth@redhat.com>
2256
2257         * expr.c (init_expr_once): Don't use start/end_sequence.
2258         Use rtx_alloc instead of emit_insn.
2259         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2260         (lang_independent_init): ... not here.
2261
2262 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2263
2264         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2265
2266 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2267
2268         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2269         for fixed registers, possibly used for global register variables.
2270         (initial_elimination_offset, avr_output_function_prologue,
2271         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2272
2273 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2274
2275         * Makefile.in: Update for cpptrad.c.
2276         * cpphash.h (struct cpp_buffer): New members for buffer
2277         overlays.
2278         (struct cpp_reader): New members for traditional output.
2279         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2280         * cppinit.c (cpp_create_reader): Set trad_line.
2281         (cpp_destroy): Free trad_out_base if used.
2282         (cpp_read_main_file): Overlay an empty buffer if traditional.
2283         (cpp_finish_options): Don't do builtins.
2284         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2285         (cpp_handle_option): Handle it.
2286         * cpplex.c (continue_after_nul): New.
2287         (_cpp_lex_direct): Use handle_nul.
2288         * cpplib.h (struct cpp_options): New traditional option.
2289         * cpptrad.c: New file.
2290
2291 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2292
2293         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2294         and set the options flag.
2295         * cppinit.c (lang_flags): Remove objc.
2296         (lang_defaults): Remove OBJC and OBJCXX.
2297         (set_lang): Update.
2298         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2299         (cpp_handle_option): Remove -+ and -lang-objc++.
2300         For ObjC, just set a flag.
2301         (print_help): Update.
2302         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2303
2304 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2305
2306         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2307         bootstrap with -mips3.
2308
2309 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2310
2311         * final.c: Fix formatting.
2312         * fix-header.c: Likewise.
2313         * flow.c: Likewise.
2314         * fold-const.c: Likewise.
2315         * function.c: Likewise.
2316
2317 2002-05-17  David S. Miller  <davem@redhat.com>
2318
2319         PR c/6689, PR optimization/6615
2320         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2321         and make it a pointer to rtx.  Update comments.
2322         (update_equiv_regs): When scanning for equivalences, record
2323         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2324         it while making the equiv replacements.
2325
2326 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2327
2328         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2329
2330 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2331
2332         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2333         when encoding visibility into SYMBOL_REF_FLAG.
2334
2335 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2336
2337         * expr.c (force_operand): Fix reversed move.
2338
2339 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2340
2341         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2342         that can be ignored.
2343
2344 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2345
2346         * doc/install.texi (Final install): Recommend to install into a
2347         "clean" target directory.
2348
2349 2002-05-17  Richard Henderson  <rth@redhat.com>
2350
2351         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2352         for code blocks.  Tidy whitespace.
2353
2354 2002-05-17  Richard Henderson  <rth@redhat.com>
2355
2356         * hooks.c (hook_tree_bool_false): New.
2357         * hooks.h: Declare it.
2358         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2359         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2360         * target.h (select_section, unique_section): New.
2361         (in_small_data_p): New.
2362         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2363         (variable_section, output_constant_def_contents): Likewise.
2364         (default_select_section, default_unique_section): New.
2365         (categorize_decl_for_section, default_elf_select_section): New.
2366         * output.h: Declare them.
2367
2368         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2369         (TARGET_ASM_SELECT_SECTION): New.
2370         (SELECT_SECTION): Move ...
2371         * config/darwin.c (machopic_select_section): ... here.
2372         * config/darwin-protos.h: Update.
2373
2374         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2375         (SELECT_SECTION): Move ...
2376         * config/nextstep.c (nextstep_select_section): ... here.
2377         * config/nextstep-protos.h: Update.
2378
2379         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2380         (TARGET_ASM_SELECT_SECTION): New.
2381         * config/svr3.h (SELECT_SECTION): Remove.
2382
2383         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2384         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2385         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2386         (alpha_encode_section_info): Use it.
2387         * config/alpha/alpha-protos.h: Update.
2388         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2389         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2390         (TARGET_ASM_SELECT_SECTION): New.
2391         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2392
2393         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2394         (TARGET_ASM_UNIQUE_SECTION): New.
2395
2396         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2397         (avr_unique_section): Rename from unique_section; make static.
2398         * config/avr/avr-protos.h: Update.
2399         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2400
2401         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2402
2403         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2404         (TARGET_ASM_UNIQUE_SECTION): New.
2405         * config/i386/i386-interix.h: Likewise.
2406         * config/i386/win32.h: Likewise.
2407         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2408         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2409         * config/i386/sco5.h (SELECT_SECTION): Remove.
2410         (TARGET_ASM_SELECT_SECTION): New.
2411         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2412
2413         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2414         instead of SELECT_SECTION.
2415         * config/m68k/dpx2.h: Likewise.
2416         * config/rs6000/lynx.h: Likewise.
2417
2418         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2419         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2420         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2421         (ia64_in_small_data_p): New.
2422         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2423         (ia64_aix_select_section, ia64_aix_unique_section): New.
2424         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2425         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2426
2427         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2428         (TARGET_ASM_SELECT_SECTION): New.
2429         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2430         * config/m32r/m32r-protos.h: Update.
2431
2432         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2433         (SELECT_SECTION): Move ...
2434         * config/m88k/m88k.c (m88k_select_section): ... here.
2435
2436         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2437         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2438         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2439         (mcore_unique_section): Make static.
2440         * config/mcore/mcore-protos.h: Update.
2441
2442         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2443         (TARGET_ASM_UNIQUE_SECTION): New.
2444         * config/mips/elf64.h: Likewise.
2445         * config/mips/iris6gld.h: Likewise.
2446         * config/mips/linux.h: Likewise.
2447         * config/mips/mips-protos.h: Update.
2448         * config/mips/mips.c (mips_select_section): Add align argument.
2449         * config/mips/mips.h (SELECT_SECTION): Remove.
2450         (TARGET_ASM_SELECT_SECTION): New.
2451
2452         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2453         * config/mmix/mmix.c (mmix_select_section): Remove.
2454         (mmix_unique_section): Remove.
2455         * config/mmix/mmix-protos.h: Update.
2456
2457         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2458         (SELECT_SECTION): Move ...
2459         * config/pa/pa.c (pa_select_section): ... here.
2460         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2461
2462         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2463         from rs6000_select_section and make static.
2464         (rs6000_elf_unique_section): Similarly.
2465         (rs6000_xcoff_select_section): From xcoff.h.
2466         (rs6000_xcoff_unique_section): Likewise.
2467         * config/rs6000/rs6000-protos.h: Update.
2468         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2469         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2470         * config/rs6000/xcoff.h: Likewise.
2471
2472         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2473         (SELECT_SECTION): Move ...
2474         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2475
2476         * config/v850/v850.h (SELECT_SECTION): Move ...
2477         * config/v850/v850.c (v850_select_section): ... here.
2478         (TARGET_ASM_SELECT_SECTION): New.
2479
2480         * config/vax/vms.h (SELECT_SECTION): Move ...
2481         * config/vax/vax.c (vms_select_section): ... here.
2482         (TARGET_ASM_SELECT_SECTION): New.
2483
2484         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2485         for the target hooks.
2486
2487 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
2488
2489         * config/arm/arm.c (emit_multi_reg_push): Do not set
2490         RTX_FRAME_RELATED_P on the SEQUENCE.
2491
2492 2002-05-16  Richard Henderson  <rth@redhat.com>
2493
2494         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2495         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
2496
2497 2002-05-16  Richard Henderson  <rth@redhat.com>
2498
2499         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2500
2501         * config/ia64/ia64.c (saveable_obstack): Do not declare.
2502
2503 2002-05-16  Richard Henderson  <rth@redhat.com>
2504
2505         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2506         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2507         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2508         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2509         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2510         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2511         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2512         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2513         Revert "Basic block renumbering removal", and two followup patches.
2514
2515 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2516
2517         * lcm.c (optimize_mode_switching): Revert previous change.
2518
2519 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2520
2521         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2522         with only extant block numbers.
2523
2524 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2525
2526         * lcm.c (optimize_mode_switching): Fix typo.
2527
2528 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2529
2530         * flow.c (calculate_global_regs_live): Queue blocks in program order.
2531
2532 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2533
2534         * doc/install.texi (Configuration): Document PWDCMD.
2535
2536 2002-05-16  Dale Johannesen  <dalej@apple.com>
2537
2538         * combine.c (cant_combine_insn_p):  Reenable combinations
2539         involving hard regs unless CLASS_LIKELY_SPILLED_P.
2540
2541 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2542
2543         * c-common.c (cb_register_builtins): Handle more built-ins
2544         here rather than in gcc.c specs.
2545         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2546         (cpp_options): Pass -O flags even when only preprocessing.
2547         * toplev.c (set_fast_math_flags): New prototype.
2548         (fast_math_flags_set_p): New.
2549         (set_no_fast_math_flags): Remove.
2550         (decode_f_option): Update.
2551         * toplev.h (set_fast_math_flags): Update.
2552         (fast_math_flags_set_p): New.
2553         (set_no_fast_math_flags): Remove.
2554 config:
2555         * c4x/c4x.c (c4x_override_options): Update.
2556
2557 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
2558
2559         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2560         Default-define here.
2561         (builtin_define_with_value): Can now wrap the expansion in
2562         quotation marks if such is wanted.
2563         (cb_register_builtins): Update calls to builtin_define_with_value.
2564         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2565         here.
2566         (c_common_init): Set options->stdc_0_in_system_headers.
2567         * c-lex.h: Update prototype of builtin_define_with_value.
2568         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2569         and REGISTER_PREFIX.
2570
2571         * cppinit.c (VERS, ULP, C, X): Kill.
2572         (builtin_array): Remove entries for __VERSION__,
2573         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2574         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
2575         a constant.
2576         (init_builtins): Kill off a bunch of now-dead code.
2577         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2578         -fno-leading-underscore.
2579         (cpp_handle_option): Remove code to set user_label_prefix.
2580         (cpp_post_options): Likewise.
2581
2582         * cpplib.h (struct cpp_options): Remove user_label_prefix.
2583         (stdc_0_in_system_headers): New.
2584         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2585         stdc_0_in_system_headers) too to decide the value of __STDC__.
2586
2587         * tradcpp.c (user_label_prefix): Kill.
2588         (main): Remove code handling -f(no-)leading-underscore.
2589         (initialize_builtins): Don't define __REGISTER_PREFIX__
2590         or __USER_LABEL_PREFIX__.
2591         (install_value): Wrap compound statement in dummy loop so the
2592         macro works properly in an if statement.
2593
2594
2595 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
2596
2597         * loop.h (struct loop_info): Add member has_prefetch.
2598         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2599         (prescan_loop): Initialize has_prefetch.
2600         (struct prefetch_info): Change prefetch_in_loop and
2601         prefetch_before_loop from bit fields to ints.
2602         (emit_prefetch_instructions): Several small fixes.
2603         (check_dbra_loop): Don't reverse loop that uses prefetch.
2604
2605 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2606
2607         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2608         * configure.in: Likewise.
2609         * fixinc/check.tpl: Likewise.
2610         * fixinc/fixinc.dgux: Likewise.
2611         * fixinc/fixinc.svr4: Likewise.
2612         * fixinc/fixinc.winnt: Likewise.
2613         * fixinc/fixincl.sh: Likewise.
2614         * fixproto: Likewise.
2615         * configure: Regenerate.
2616
2617 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2618
2619         Basic block renumbering removal:
2620         * basic_block.h (struct basic_block_def): Renamed index to sindex,
2621         added prev_bb and next_bb fields.
2622         (n_basic_blocks): Renamed to num_basic_blocks.
2623         (last_basic_block): New, index of last basic block.
2624         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2625         traversing basic block chain.
2626         (BLOCK_NUM): index -> sindex.
2627         (create_basic_block_structure, create_basic_block): Declaration changed.
2628         (debug_num2bb): Declare.
2629         (expunge_block_nocompact): Declaration removed.
2630         (link_block, unlink_block, compact_blocks): Declare.
2631         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2632         * cfg.c (entry_exit_blocks): Initialize new fields.
2633         (clear_edges, alloc_block, expunge_block, cached_make_edge,
2634         redirect_edge_pred, dump_flow_info, dump_edge_info,
2635         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2636         free_aux_for_edges): Modified.
2637         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2638         (expunge_block_nocompact): Removed.
2639         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2640         find_unreachable_blocks, create_edge_list, print_edge_list,
2641         verify_edge_list, flow_edge_list_print, remove_fake_successors,
2642         remove_fake_edges, flow_reverse_top_sort_order_compute,
2643         flow_depth_first_order_compute, flow_preorder_transversal_compute,
2644         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2645         flow_dfs_compute_reverse_execute): Modified.
2646         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2647         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2648         Modified.
2649         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2650         merge_blocks_move_predecessor_nojumps,
2651         merge_blocks_move_successor_nojumps, merge_blocks,
2652         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2653         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2654         * cfglayout.c (skip_insns_after_block, label_for_bb,
2655         record_effective_endpoints, scope_to_insns_finalize,
2656         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2657         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2658         cfg_layout_duplicate_bb): Modified.
2659         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2660         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2661         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2662         flow_loops_find, flow_loop_outside_edge_p): Modified.
2663         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2664         flow_delete_block, compute_bb_for_insn, split_block,
2665         try_redirect_by_replacing_jump, redirect_edge_and_branch,
2666         force_nonfallthru_and_redirect, tidy_fallthru_edge,
2667         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2668         commit_edge_insertions, commit_edge_insertions_watch_calls,
2669         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2670         purge_all_dead_edges): Modified.
2671         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2672         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2673         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2674         Modified.
2675         * conflict.c (conflict_graph_compute): Modified.
2676         * df.c (FOR_ALL_BBS): Removed.
2677         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2678         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2679         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2680         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2681         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2682         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2683         * final.c (compute_alignments, final_scan_insn): Modified.
2684         * flow.c (verify_local_live_at_start, update_life_info,
2685         update_life_info_in_dirty_blocks, free_basic_block_vars,
2686         delete_noop_moves, calculate_global_regs_live,
2687         initialize_uninitialized_subregs, allocate_bb_life_data,
2688         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2689         mark_used_reg, count_or_remove_death_notes): Modified.
2690         * function.c (thread_prologue_and_epilogue_insns): Modified.
2691         * gcse.c (struct null_pointer_info): Change typo of current_block
2692         to basic_block.
2693         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2694         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2695         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2696         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2697         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2698         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2699         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2700         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2701         pre_delete, one_pre_gcse_pass, compute_transpout,
2702         invalidate_nonnull_info, delete_null_pointer_checks_1,
2703         free_code_hoist_mem, compute_code_hoist_vbeinout,
2704         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2705         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2706         compute_store_table, build_store_vectors, insert_insn_start_bb,
2707         insert_store, replace_store_insn, free_store_memory, store_motion):
2708         Modified.
2709         * global.c (global_alloc, global_conflicts, mark_elimination,
2710         build_insn_chain): Modified.
2711         * graph.c (print_rtl_graph_with_bb): Modified.
2712         * haifa-sched.c (sched_init): Modified.
2713         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2714         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2715         if_convert): Modified.
2716         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2717         compute_insert_delete, pre_edge_lcm, compute_available,
2718         compute_farthest, compute_nearerout, compute_rev_insert_delete,
2719         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2720         Modified.
2721         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2722         * loop.c (loop_dump_aux): Modified.
2723         * predict.c (combine_predictions_for_insn, estimate_probability,
2724         last_basic_block_p, process_note_prediction, process_note_predictions,
2725         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2726         expensive_function_p, estimate_bb_frequencies,
2727         compute_function_frequency): Modified.
2728         * print-rtl.c (print_rtx): Modified.
2729         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2730         get_exec_counts, compute_branch_probabilities, compute_checksum,
2731         branch_prob, find_spanning_tree): Modified.
2732         * recog.c (split_all_insns, peephole2_optimize): Modified.
2733         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2734         convert_regs_1, convert_regs_2, convert_regs): Modified.
2735         * regclass.c (scan_one_insn, regclass): Modified.
2736         * regmove.c (mark_flags_life_zones, regmove_optimize,
2737         combine_stack_adjustments): Modified.
2738         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2739         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2740         * reorg.c (dbr_schedule): Modified.
2741         * resource.c (find_basic_block, init_resource_info): Modified.
2742         * sbitmap.c (sbitmap_intersection_of_succs,
2743         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2744         sbitmap_union_of_preds): Modified.
2745         * sched-deps.c (init_dependency_caches): Modified.
2746         * sched-ebb.c (schedule_ebbs): Modified.
2747         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2748         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2749         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2750         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2751         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2752         ssa_const_prop): Modified.
2753         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2754         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2755         * ssa.c (remove_phi_alternative, find_evaluations,
2756         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2757         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2758         make_regs_equivalent_over_bad_edges,
2759         make_equivalent_phi_alternatives_equival,
2760         compute_conservative_reg_partition,
2761         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2762         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2763         Modified.
2764
2765 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
2766
2767         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2768
2769 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
2770
2771         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2772         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2773         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2774         calling CONSTANT_POOL_ADDRESS_P.
2775         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2776         to decide whether to define __arm__ or __thumb.
2777         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2778         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2779
2780 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2781
2782         * config/arc/arc.h (CPP_PREDEFINES): Remove.
2783         (CPP_SPEC): Update.
2784         (TARGET_CPU_CPP_BUILTINS): New.
2785
2786 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2787
2788         * cpphash.h (cpp_macro): Move here, and make expansion a union.
2789         * cppmacro.c (cpp_macro): Remove.
2790         (enter_macro_context, replace_args, warn_of_redefinition,
2791         _cpp_create_definition, cpp_macro_definition): Update.
2792
2793 2002-05-16  Jason Merrill  <jason@redhat.com>
2794
2795         * config/mips/mips.c (mips_output_external): Don't do sdata
2796         optimization for a variable with DECL_COMDAT set.
2797
2798 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2799
2800         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2801         Cleanups for accepting modifiers on pointers.
2802         Fix predicate typos.
2803         Allow long pointers as well as int pointers.
2804
2805 2002-05-15  Richard Henderson  <rth@redhat.com>
2806
2807         * varasm.c (merge_weak): Remove special case for extern and common.
2808
2809 2002-05-15  Matt Hiller  <hiller@redhat.com>
2810
2811         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2812         XFAILing.
2813         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2814         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2815         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2816         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2817         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2818         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2819
2820 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2821
2822         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2823
2824 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2825
2826         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2827         ("altivec_mfvscr"): Read from VSCR.
2828
2829         Add vscr sets for the following insns: altivec_vctuxs,
2830         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2831         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2832         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2833         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2834         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2835         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2836         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2837         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2838         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2839         altivec_vsum2sws, altivec_vsumsws.
2840
2841         * config/rs6000/rs6000.h: Add VSCR fixed register.
2842         (CALL_REALLY_USED_REGISTERS): Add vscr.
2843         (CALL_USED_REGISTERS): Same.
2844         (FIXED_REGISTERS): Same.
2845         (REG_ALLOC_ORDER): Same.
2846         (reg_class): Add VSCR_REGS.
2847         (REG_CLASS_NAMES): Same.
2848         (REG_CLASS_CONTENTS): Same.
2849         (VSCR_REGNO): New.
2850         (REGISTER_NAMES): Add vscr.
2851         (DEBUG_REGISTER_NAMES): Same.
2852         (ADDITIONAL_REGISTER_NAMES): Same.
2853         (FIRST_PSEUDO_REGISTER): Increment.
2854         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2855
2856 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
2857
2858         * fold-const.c (fold): Fix a typo.
2859
2860 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
2861
2862         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2863         comparison against the highest or lowest integer value before
2864         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2865         transformation and that of an unsigned comparison against 0
2866         right after.
2867
2868 2002-05-15  Richard Henderson  <rth@redhat.com>
2869
2870         * varasm.c (merge_weak): Error for any weakening after definition.
2871         Adjust weakening after use warning to catch more cases.
2872         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2873         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2874
2875 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
2876
2877         * invoke.texi (-malign-double): Re-add lost warning.
2878
2879         * i386-protos.h (x86_output_mi_thunk): Declare.
2880         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2881         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2882
2883         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2884         when flag_asynchronous_unwind_tables is set.
2885
2886         * flags.h (flag_reorder_functions): Declare.
2887         * function.c (prepare_function_start): Initialize frequnecy.
2888         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2889         * Makefile.in (predict.o): Add dependency on target.h and params.h
2890         * defaults.h (HOT_TEXT_SECTION_NAME,
2891         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2892         * predict.c (choose_function_section): New function.
2893         (estimate_bb_frequencies): Use it.
2894         * toplev.c (flag_reorder_functions): New global variable.
2895         (lang_independent_options): New.
2896         (parse_options_and_default_flags): Set.
2897         * varasm.c (assemble_start_function): Bypass functdion alignment
2898         for never executed functions.
2899         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2900         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2901         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2902         Document.
2903
2904         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
2905
2906         * predict.c: Inlude profile.h
2907         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2908         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2909         Use the information about maximal counter in the program.
2910
2911         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
2912
2913         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2914         probably_never_executed_bb_p): New functions.
2915         * cfgcleanup.c (outgoing_edges_match): Use them.
2916         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2917         (maybe_hot_bb_p, probably_cold_bb_p,
2918         probably_never_executed_bb_p): New functions.
2919
2920         * function.h (function): Add new field function_frequency.
2921         * predict.c (compute_function_frequency): New function.
2922         (estimate_probability): Call it.
2923
2924 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
2925
2926         PR optimization/5172, optimization/5200
2927         * gcse.c (gcse_main): Disable store_motion.
2928
2929 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
2930
2931         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2932         (c_common_nodes_and_builtins): Use it.
2933         (builtin_define_with_value): New function.
2934         (cb_register_builtins): Define __SIZE_TYPE__,
2935         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
2936         using builtin_define_with_value.  Use consistent notation when
2937         defining __GXX_WEAK__.
2938         (WCHAR_TYPE_SIZE): Don't redefine.
2939         (combine_strings): Don't use WCHAR_TYPE_SIZE.
2940
2941         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
2942         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
2943         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
2944         * tradcpp.c (initialize_builtins): Likewise.
2945         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
2946
2947         * c-lex.h (builtin_define_with_value): Prototype.
2948         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
2949         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
2950         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
2951
2952         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2953         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
2954         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
2955         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
2956         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
2957         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
2958         config/sparc/sol2-bi.h, config/sparc/sparc.h:
2959         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
2960         to __SIZE_TYPE__ etc from all spec strings. When this makes
2961         extra specs empty, delete them.
2962
2963 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2964
2965         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
2966         for PA8000 or generating dwarf2 call frame information.
2967         (output_call): Remove DO_FRAME_NOTES check from return pointer
2968         optimization.
2969         (following_call): Return 0 when scheduling for PA8000 or generating
2970         dwarf2 call frame information.  Revise comment.
2971
2972 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2973
2974 config/alpha:
2975         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
2976         and __IEEE_FP_INEXACT as appropriate.
2977         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
2978         (CPP_SPEC): Remove ieee defines.
2979         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
2980
2981 2002-05-14  Richard Henderson  <rth@redhat.com>
2982
2983         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
2984         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
2985
2986 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2987
2988         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
2989         (CPP_SPEC): Update.
2990         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
2991         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
2992         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
2993         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
2994         (EXTRA_SPECS): Update.
2995         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2996         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
2997         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
2998         define TARGET_OS_CPP_BUILTINS if necessary.
2999
3000 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3001
3002         * gcc.c (cpp_options): Must pass -m* and -f* options
3003         to the front end even when only preprocessing.
3004         (cc1_options): Remove redundant -lang-c.
3005         * tradcpp.c (main): Ignore -m options.
3006 objc:
3007         * lang-specs.h: Similarly.
3008
3009 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3010
3011         * genautomata.c (transform_3): Add code for transformation
3012         `(A,B,...)+C -> A+C,B,...'.
3013
3014 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3015
3016         * final.c (end_final): Do not output profile_arcs constructor, when
3017         no functions are instrumented.
3018
3019 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3020
3021         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3022
3023 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3024
3025         * doc/install.texi: Remove special markup originally required for
3026         HTML generation with texi2html.
3027
3028 2002-05-14  Andreas Schwab  <schwab@suse.de>
3029
3030         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3031         SELECT_SECTION.
3032         (UNIQUE_SECTION): Define to get small data correctly.
3033
3034         * varasm.c (resolve_unique_section): Add third parameter
3035         flag_function_or_data_sections and use it instead of
3036         flag_function_sections.
3037         (assemble_start_function): Pass flag_function_sections.
3038         (asm_emit_uninitialised): Pass flag_data_sections.
3039         (assemble_variable): Likewise.
3040
3041 2002-05-14  Richard Henderson  <rth@redhat.com>
3042
3043         * config/i386/i386.md: Use define_constants for unspec numbers.
3044         * config/i386/i386.c: Likewise.
3045
3046 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3047
3048         * doc/contrib.texi: Update my entry.
3049
3050 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3051
3052         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3053         * fixinc/fixincl.x: Regenerated.
3054         * fixinc/tests/base/math.h: Update.
3055         * fixinc/tests/base/testing.h: Likewise.
3056
3057 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3058
3059         * genattr.c (gen_attr): Don't emit a comma after the last
3060         enumerator.
3061
3062 2002-05-13  Richard Henderson  <rth@redhat.com>
3063
3064         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3065         by non-local gotos.
3066         * recog.c (peephole2_optimize): Likewise.
3067
3068 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3069
3070         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3071         input to O_BINARY.
3072
3073 2002-05-13  Jeffrey A Law  (law@redhat.com)
3074
3075         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3076         Update prototype and callers.
3077         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3078         the mem_set_list which reference the stack pointer, as do
3079         calls to constant functions as they may clobber outgoing
3080         argument space.
3081
3082         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3083
3084         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3085         (ia32_multipass_dfa_lookahead): New function.
3086
3087 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3088
3089         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3090         (translate_options): Remove 'V'.
3091         (process_command): Similarly.
3092 doc:
3093         * invoke.texi: Remove documentation of 'V'.
3094
3095 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3096
3097         * config/s390/linux.h: Revert 2002-04-22 changes.
3098
3099 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3100
3101         * config/fr30/fr30.md: Only allow splits of immediate loads
3102         if the destination is a register.
3103
3104 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3105
3106         * Makefile.in (c-common.o, cppinit.o): Update.
3107         * c-common.c: Include except.h.
3108         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3109         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3110         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3111         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3112         CPP_PREDEFINES): Handle here.
3113 config:
3114         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3115         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3116         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3117         TARGET_OS_CPP_BUILTINS.
3118         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3119         (CPP_SPEC, EXTRA_SPECS): Update.
3120         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3121         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3122         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3123         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3124         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3125 doc:
3126         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3127         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3128
3129 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3130
3131         * emit-rtl.c (global_rtl): Update comment.
3132         (const_double_htab, const_double_htab_hash,
3133         const_double_htab_hash, lookup_const_double): New.
3134         (const_int_htab_hash, const_int_htab_eq): Remove const
3135         qualifiers, which cause tons of warnings with RTL checking on.
3136         (gen_rtx_CONST_DOUBLE): Deleted.
3137         (const_double_from_real_value): New function - bears some
3138         resemblance to the former immed_real_const_1.
3139         (immed_double_const): Moved here from varasm.c and
3140         simplified.
3141         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3142         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3143         (gen_rtx): Use immed_double_const.
3144         (init_emit_once): Initialize the const_double_htab.  Use
3145         REAL_VALUE_FROM_INT where possible.  Can now use
3146         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3147         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3148         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3149         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3150         (init_varasm_status, mark_varasm_status): Don't touch
3151         x_const_double_chain.
3152
3153         * output.h: Delete prototype for clear_const_double_mem.
3154         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3155         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3156         const_double_from_real_value, not immed_real_const_1, and use
3157         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3158         CONST_DOUBLE_ATOF.
3159         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3160         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3161         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3162         (gen_rtx_REG): Second arg is unsigned.
3163
3164         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3165         (excluded_rtx): New, return true for CONST_DOUBLE.
3166         (genmacro): Write nothing for excluded codes.
3167         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3168         * expr.c (expand_expr): Likewise.
3169         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3170         CONST_DOUBLE_CHAIN.
3171         * toplev.c (rest_of_compilation): Don't call
3172         clear_const_double_mem.
3173
3174         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3175         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3176         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3177         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3178         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3179         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3180         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3181         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3182
3183 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3184
3185         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3186
3187 2002-05-12  Tom Tromey  <tromey@redhat.com>
3188
3189         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3190
3191 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3192
3193         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3194         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3195         * gensupport.h: Prototype new routines.
3196         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3197         use of printf.
3198         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3199         (next_comma_elt): Use scan_comma_elt.
3200
3201         * config/i386/i386.md: Use new attribute notation to break up
3202         long lines in define_attr forms.
3203
3204 2002-05-12  Richard Henderson  <rth@redhat.com>
3205
3206         * expr.c (compress_float_constant): New.
3207         (emit_move_insn): Use it.
3208         (float_extend_from_mem): New.
3209         (init_expr_once): Initialize it.
3210         * real.c (exact_real_truncate): New.
3211
3212         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3213         dropped into memory; penalize for size.
3214         (RTX_COSTS): FLOAT_EXTEND is free.
3215         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3216         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3217
3218 2002-05-12  Richard Henderson  <rth@redhat.com>
3219
3220         * profile.h (profile_info): Add missing extern to declaration.
3221         * profile.c (profile_info): Define it.
3222
3223 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3224
3225         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3226         used for DImode and TImode.
3227
3228 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3229
3230         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3231         fake a newline.
3232
3233 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3234
3235         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3236         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3237         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3238         (rs6000_override_options): Handle -m(no-)longcall.
3239         (init_cumulative_args, output_mi_thunk): Check for both
3240         longcall and shortcall attributes on the function.
3241         (rs6000_attribute_table): Add "shortcall".
3242         (rs6000_handle_longcall_attribute): Update comment.
3243         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3244         altivec_expand_ternop_builtin): Add default clauses to switches
3245         to silence warnings.
3246
3247         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3248         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3249         (TARGET_OPTIONS): Add longcall and no-longcall.
3250
3251         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3252         call_value_nonlocal_sysv): Split by alternatives.  One pair
3253         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3254         the call cookie.  The other pair accepts only LR/CTR and has
3255         no restriction.
3256
3257         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3258         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3259         tmake_file.
3260         * config/rs6000/rs6000-c.c: New file.
3261         * config/rs6000/t-rs6000-c-rule: New file.
3262         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3263         Prototype rs6000_pragma_longcall.
3264
3265         * doc/extend.texi: Document shortcall attribute.
3266         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3267
3268 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3269
3270         * reorg.c (dbr_schedule): Remove unnecessary test.
3271
3272 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3273
3274         * i386.md (testsi to testqi spliters): New.
3275
3276         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3277
3278         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3279
3280         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3281
3282         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3283         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3284         that can be made fallthru.
3285
3286         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3287
3288         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3289         (cfg_layout_initialize): Use it.
3290
3291 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3292
3293         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3294         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3295         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3296
3297 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3298
3299         * dbxout.c: Fix formatting.
3300         * dependence.c: Likewise.
3301         * df.c: Likewise.
3302         * diagnostic.c: Likewise.
3303         * doloop.c: Likewise.
3304         * dominance.c: Likewise.
3305         * doschk.c: Likewise.
3306         * dwarf2asm.c: Likewise.
3307         * dwarf2out.c: Likewise.
3308         * dwarfout.c: Likewise.
3309
3310 2002-05-10  Richard Henderson  <rth@redhat.com>
3311
3312         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3313         Convert integers constants as needed.  Replace "nwords" field with
3314         "sizeof_bb".
3315         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3316         * function.h: Fix typo in comment.
3317         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3318
3319 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3320
3321         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3322         into the equivalent (signed char)c > 0.
3323
3324 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3325
3326         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3327         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3328         (struct prefetch_info): Fix spelling of member bytes_accessed.
3329         (emit_prefetch_instructions): Make dump messages more regular;
3330         restructure code to add more dump messages; use new macros for
3331         heuristics. (There are no code generation changes in any of this).
3332
3333 2002-05-10  David S. Miller  <davem@redhat.com>
3334
3335         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3336         (struct rtx_def): Update unchanging flag comment.
3337         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3338         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3339         to be handled to INSN too.
3340         (dbr_schedule): Likewise.
3341         * resource.c (next_insn_no_annul): Likewise.
3342
3343         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3344         casing.
3345
3346 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3347
3348         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3349         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3350         (possibly) work around broken /bin/sh.
3351
3352 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3353
3354         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3355         . as N64/N32 libgcc_s.so subdirs.
3356
3357 2002-05-10  David S. Miller  <davem@redhat.com>
3358
3359         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3360
3361         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3362         more accurately.
3363         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3364         comment.
3365         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3366         * doc/rtl.texi: Document these macros more accurately.
3367         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3368         JUMP_INSNs and CALL_INSNs.
3369         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3370         or INSN_FROM_TARGET_P if the code is appropriate.
3371
3372 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3373
3374         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3375         before using SYMBOL_REF_FLAG (addr).
3376
3377         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3378         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3379         Make non-static.  Update all callers.
3380         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3381         New insns to clear/set/test a single bit in I/O address space.
3382
3383 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3384
3385         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3386
3387 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3388
3389         * Makefile.in: Update.
3390         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3391         builtin_define_std): New.
3392         (c_common_init): Register CPP builtins callback.
3393         * c-common.h (flag_iso, flag_undef): New.
3394         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3395         * c-lex.c: Don't include target.h.
3396         (cb_register_builtins): Move to c-common.c.
3397         (init_c_lex): Don't register hook here.
3398         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3399         (cpp_define, cpp_assert): Remove.
3400         * gcc.c (cc1_options): Pass -undef to front end.
3401         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3402         (TARGET_INITIALIZER): Update.
3403         * target.h (struct cpp_reader): Don't predeclare.
3404         (struct gcc_target): Remove cpp builtin hook.
3405         * tree.c (default_register_cpp_builtins): Remove.
3406 doc:
3407         * tm.texi: Update.
3408
3409 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3410
3411         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3412
3413 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3414
3415         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3416         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3417
3418 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3419
3420         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3421         * config/sparc/libgcc-sparc-glibc.ver: New file.
3422         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3423         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3424
3425 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3426
3427         PR target/6429
3428         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3429         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3430         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3431         base multilibs.
3432         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3433         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3434         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3435         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3436
3437 2002-05-09  Richard Henderson  <rth@redhat.com>
3438
3439         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3440         * config/ia64/ia64.c: Likewise.
3441
3442 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3443
3444         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3445         (save_restore_insns): Likewise.
3446         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3447         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3448
3449 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3450
3451         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3452         * i386.md: Move scheduling information into new files.
3453
3454         * i386.md (type attribute): Add "rotate" for rotate insns.
3455         (rotate insns): Set type to "rotate".
3456         (various attributes and function units): Treat rotate like shift.
3457         (pent_pair attribute): Only rotates by one bit position are
3458         pairable.
3459         (sbb insns): Explicitly set pent_pair attribute on a couple
3460         that were missing it.
3461
3462 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3463
3464         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3465         make sure that buffer starts on odd word address.
3466         (sh_va_arg): Skip odd fp registers when reading a double precision
3467         value.
3468
3469 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3470
3471         * tree.h (preserve_data, object_permanent_p, type_precision):
3472         Remove.
3473
3474 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3475
3476         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3477         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3478 doc:
3479         * cpp.texi: Update for removal of obsolete features.
3480
3481 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
3482                           Jeffrey A Law  (law@redhat.com)
3483
3484         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
3485         the DFA interface for Pentium processors.
3486         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3487         (attr_pent_pair, ix86_pent_find_pair): Remove.
3488         (ix86_sched_reorder_pentium): Remove.
3489         (ix86_sched_reorder): Remove reordering for Pentium.
3490         * i386.md (Pentium scheduling): Rewrite using DFA description.
3491
3492 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3493
3494         * cfganal.c (can_fallthru): Fix fast path.
3495         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3496         with edges to the next block.
3497
3498 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3499                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
3500
3501         * final.c (end_final): Use C trees to output data structures for profiling.
3502
3503         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3504         (profile.o): New dependency profile.h
3505         (final.o): New dependency profile.h
3506         * profile.h: New file. New global structure profile_info.
3507         * final.h (count_edges_instrumented_now): Declare.
3508         (current_function_cfg_checksum): Declare.
3509         (function_list): New structure.
3510         (functions_head, functions_tail): New static variables.
3511         (end_final): Emits more data, removed some -ax stuff.
3512         (final): Stores function names and chcksums.
3513         * gcov-io.h (__write_gcov_string): New function.
3514         (__read_gcov_string): New function.
3515         * gcov.c (read_profile): New function.
3516         (create_program_flow_graph): Uses read_profile instead of reading
3517         da_file.
3518         (read_files): Removed da_file checking, it's done by read_profile now.
3519         * libgcc2.c (bb_function_info): New structure.
3520         (bb): New field in structure, removed some -ax stuff.
3521         (__bb_exit_func): Changed structure of da_file.
3522         * profile.c (count_edges_instrumented_now): New global variable.
3523         (current_function_cfg_checksum): New global variable.
3524         (max_counter_in_program): New global variable.
3525         (get_exec_counts): New function.
3526         (compute_checksum): New function.
3527         (instrument_edges): Sets count_edges_instrumented_now.
3528         (compute_branch_probabilities): Uses get_exec_counts instead of
3529         reading da_file.
3530         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3531         (init_branch_prob): Removed da_file checking, done in get_exec_counts
3532         now.
3533         (end_branch_prob): Removed da_file checking, done in get_exec_counts
3534         now.
3535         * gcov.texi: Updated information about gcov file format.
3536
3537 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3538
3539         * sbitmap.c: Fix formatting.
3540         * scan.c: Likewise.
3541         * scan-decls.c: Likewise.
3542         * sched-deps.c: Likewise.
3543         * sched-ebb.c: Likewise.
3544         * sched-rgn.c: Likewise.
3545         * sched-vis.c: Likewise.
3546         * sdbout.c: Likewise.
3547         * sibcall.c: Likewise.
3548         * simplify-rtx.c: Likewise.
3549         * ssa.c: Likewise.
3550         * ssa-ccp.c: Likewise.
3551         * ssa-dce.c: Likewise.
3552         * stmt.c: Likewise.
3553         * stor-layout.c: Likewise.
3554         * stringpool.c: Likewise.
3555
3556 2002-05-09  David S. Miller  <davem@redhat.com>
3557
3558         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3559
3560 2002-05-07  David S. Miller  <davem@redhat.com>
3561
3562         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3563         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3564         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3565         library implementation clobbers the output before the inputs
3566         are fully consumed, use stack temporary for the output.
3567
3568 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
3569
3570         * config/netbsd.h (CPP_SPEC): Remove.
3571         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3572         * config/i386/netbsd.h (CPP_SPEC): Define.
3573         * config/ns32k/netbsd.h (CPP_SPEC): Define.
3574         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3575         * config/sparc/netbsd.h (CPP_SPEC): Define.
3576         * config/vax/netbsd.h (CPP_SPEC): Define.
3577
3578 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3579
3580         * read-rtl.c: Fix formatting.
3581         * real.c: Likewise.
3582         * recog.c: Likewise.
3583         * regclass.c: Likewise.
3584         * regmove.c: Likewise.
3585         * reg-stack.c: Likewise.
3586         * reload1.c: Likewise.
3587         * reload.c: Likewise.
3588         * resource.c: Likewise.
3589         * rtlanal.c: Likewise.
3590         * rtl.c: Likewise.
3591         * rtl-error.c: Likewise.
3592
3593 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3594
3595         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3596         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3597
3598 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
3599
3600         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3601         use __SSE2__ macro instead.
3602         * config/i386/xmmintrin.h: Likewise.
3603
3604 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
3605
3606         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3607         and use it in all invocations of these macros.  Clean up comments.
3608         * rtl.c (rtl_check_failed_flag): Add an argument for the name
3609         of the flag access macro whose check failed.
3610         * doc/rtl.texi (Flags): Document additional flag uses.
3611
3612 2002-05-08  Robert Spier <rspier@pobox.com>
3613             Neil Booth  <neil@daikokuya.demon.co.uk>
3614
3615         PR preprocessor/6521
3616         * cppfiles.c (handle_missing_header): Don't do anything
3617         different for <> includes.
3618 doc:
3619         * cppopts.texi: Update documentation for -MG.
3620
3621 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3622
3623         * cpplex.c (cpp_interpret_charconst): Truncate as well as
3624         sign-extend.
3625 doc:
3626         * cpp.texi: Clarify multichar charconst valuation.
3627
3628 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3629
3630         * doc/invoke.texi: Document -mwindiss option.
3631
3632 2002-05-08  Jason Merrill  <jason@redhat.com>
3633
3634         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3635
3636         * dwarf2out.c (gen_type_die): Abort on broken recursion.
3637
3638         PR c++/6381
3639         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3640         REAL_CST.
3641
3642 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
3643
3644         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3645         little-endian multilibs to override arm/thumb multilibs.
3646         Do not build hardware floating point multilibs, nor apcs-26
3647         multilibs for the Thumb.
3648
3649 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3650
3651         PR c/6569.
3652         * varasm.c (mark_weak): New function.
3653         (merge_weak): Use it.  Do not call declare_weak.
3654         (declare_weak): Use merge_weak.
3655
3656 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3657
3658         * cse.c (dead_libcall_p): Update counts.
3659         (delete_trivially_dead_insns): Update call of dead_libcall_p.
3660
3661 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
3662
3663         * cfglayout.c (function_tail_eff_head): Rename to ...
3664         (function_footer): ... this one.
3665         (unlink_insn_chain): New functions.
3666         (label_for_bb): Only call block_label and emit debug message.
3667         (record_effective_endpoints): Actually unlink the headers and footers.
3668         (fixup_reorder_cahin): Re-insert the unlinked sequences.
3669         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3670         * cfglayout.h (struct reorder_block_def): New fields footer/header;
3671         remove eff_head/eff_end.
3672         * rtl.h (set_first_insn): Declare.
3673         * emit-rtl.c (set_first_insn): New function.
3674
3675         * cfglayout.c (fixup_reorder_chain): Dump duplicated
3676         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3677         cfg_layout_duplicate_bb): New global function.
3678         (duplicate_insn_chain): New static function.
3679         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3680         cfg_layout_duplicate_bb): Declare.
3681         (struct reorder_block_def): Add "original" field.
3682         * emit-rtl.c (emit_copy_of_insn_after): New function.
3683         * rtl.h (emit_copy_of_insn_after): Declare.
3684
3685         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3686         (fixup_reorder_chain): properly handle edges to exit block.
3687
3688 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3689                                Jan Hubicka  <jh@suse.cz>
3690
3691         * basic-block.h (note_prediction_to_br_prob): declare.
3692         * c-semantics.c: Inlucde predit.h
3693         (expand_stmt): predict GOTO_STMT as not taken.
3694         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3695         (cleanup_cfg): Do not free tail_recursion_list.
3696         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3697         (flow_delete_block): Kill predictions past end of basic block.
3698         * output.h (delete_unreachable_blocks): Declare.
3699         * predict.c (predicted_by_p, process_note_predictions,
3700         process_note_prediction, last_block_p): New function.
3701         (estimate_probability): Bypass loop on PRED_CONTINUE;
3702         do not handle noreturn heuristics; kill PRED_RETURN; add
3703         PRED_EARLY_RETURN.
3704         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3705         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3706         * predict.h (IS_TAKEN): New constant.
3707         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3708         * rtl.c (NOTE_INSN_PREDICTION): New.
3709         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3710         New macro.
3711         (insn_note): add NOTE_INSN_PREDICTION.
3712         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3713         CFG; free tail_recursion_label_list.
3714         * stmt.c: Include predict.h;
3715         (return_prediction): New.
3716         (expand_value_return): Use it.
3717         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3718
3719 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
3720
3721         * config/mips/mips.md: Name the unspecs with define_constant.
3722         (*HILO_delay): Rename to 'hilo_delay' (no star).
3723         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3724         (reload_outdi, reload_outsi): Likewise.
3725
3726 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
3727
3728         * toplev.c: Fix formatting.
3729
3730 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
3731
3732         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3733         * configure.in (ac_rtlflag_checking): New.
3734         * doc/install.texi (--enable-checking): Document RTL flag checking.
3735
3736 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3737
3738         * c-common.c (c_common_init): Set options->unsigned_wchar.
3739         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3740         group target dependencies.
3741         (init_builtins, cpp_handle_option): Update.
3742         * cpplex.c (cpp_interpret_charconst): Update.
3743         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3744         signed_char to unsigned_char, group target dependencies.
3745         * defaults.h (WCHAR_UNSIGNED): Remove.
3746         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3747 config:
3748         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3749         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3750         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3751         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3752         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3753 doc:
3754         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3755
3756 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3757
3758         * fixinc/inclhack.def (windiss_math1): New fix.
3759         (windiss_math2): Likewise.
3760         (windiss_valist): Likewise.
3761         * fixinc/fixincl.x: Regenerated.
3762
3763 2002-05-07  Andreas Jaeger  <aj@suse.de>
3764
3765         * genautomata.c (output_internal_min_issue_delay_func): Add
3766         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3767         (output_internal_trans_func): Likewise.
3768
3769 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
3770
3771         * pa.c (hppa_profile_hook): Use force_reg to get the address
3772         of the profile hook into an appropriate pseudo register.
3773
3774 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3775
3776         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3777         (LINK_START_SPEC): Handle it.
3778         (LINK_OS_SPEC): Likewise.
3779         (CPP_SPEC): Likewise.
3780         (STARTFILE_SPEC): Likewise.
3781         (LIB_SPEC): Likewise.
3782         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
3783         all platforms.
3784         (CRTSAVRES_DEFAULT_SPEC): New macro.
3785         (LIB_WINDISS_SPEC): New macro.
3786         (CPP_OS_WINDISS_SPEC): Likewise.
3787         (STARTFILE_WINDISS_SPEC): Likewise.
3788         (ENDFILE_WINDISS_SPEC): Likewise.
3789         (LINK_START_WINDISS_SPEC): Likewise.
3790         (LINK_OS_WINDISS_SPEC): Likewise.
3791         * config/rs6000/windiss.h: New file.
3792
3793 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
3794
3795         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3796
3797 2002-05-06  David S. Miller  <davem@redhat.com>
3798
3799         * config/sparc/sparc.md (shift insns): Do not mask off
3800         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3801         take care of it.
3802
3803 2002-05-06  Richard Henderson  <rth@redhat.com>
3804
3805         PR c++/6212
3806         * expr.c (highest_pow2_factor_for_type): New.
3807         (expand_assignment): Use it.
3808
3809 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
3810
3811         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3812         unspec_volatile.
3813         ("altivec_mfvscr"): Same.
3814
3815 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
3816
3817         * rtl.h (struct rtx_def): Update comments.
3818         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
3819         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
3820         RTL_FLAG_CHECK macros with list of expected RTL codes.
3821         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3822         (rtl_check_failed_flag): New.
3823         * reload1.c (reload): Use REG macro before changing rtx to MEM.
3824         (reload_cse_noop_set_p): Check rtx code before using access macro.
3825         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3826         before using access macro.
3827
3828 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
3829
3830         * doc/rtl.texi (Flags): Update to reflect current usage.
3831
3832 2002-05-06  Roger Sayle  <roger@eyesopen.com>
3833
3834         PR opt/3995
3835         * fold-const.c (sign_bit_p): New function.
3836         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3837         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3838         Reapply fold when converting (A & C) == C into (A & C) != 0.
3839         (fold_binary_op_with_conditional_arg): Fix typo in comment.
3840
3841 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3842
3843         * c-common.c (warn_multichar): New.
3844         (c_common_init): Set CPP's warn_multichar.
3845         * c-common.h (warn_multichar): New.
3846         * c-decl.c (warn_multichar): Remove.
3847         * c-lex.c (lex_charconst): Update.
3848         * c-tree.h (warn_multichar): Remove.
3849         * cppexp.c (eval_token): Sign-extend charconst value.
3850         * cppinit.c (cpp_create_reader): Set warn_multichar.
3851         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3852         each character.  Update prototype.  Sign-extend the result.
3853         * cpplib.h: Fix conditions.
3854         (struct cpp_options): Add new warning flag.
3855         (cpp_interpret_charconst): Update prototype.
3856 doc:
3857         * cpp.texi: Update documentation.
3858
3859 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
3860
3861         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3862         Fix typo in usage of allof instead of unit.
3863
3864 2002-05-06  Richard Henderson  <rth@redhat.com>
3865
3866         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3867         and any jump or call for IN.
3868
3869 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
3870
3871         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3872         -msse2.
3873         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3874
3875 2002-05-06  Roger Sayle  <roger@eyesopen.com>
3876
3877         * fold-const.c (lshift-double): Cast the high word to an unsigned
3878         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3879         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3880         avoid compiler warning.  (fold): Remove redundant code from
3881         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3882
3883 2002-05-06  Jeff Law  <law@redhat.com>
3884
3885         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3886         * pa.c (pa_adjust_cost): Remove all true dependency cost
3887         adjustments.  Also remove support for non-DFA scheduling.
3888         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3889         to adjust true dependency costs.  Update various comments.
3890         (7100lc, 7200, 7300 scheduling): Simplify by combining the
3891         FP ALU & MPY units into a single unit.
3892
3893 2002-05-06  Catherine Moore  <clm@redhat.com>
3894
3895         * config/v850/v850.c (compute_register_save_size): Make sure
3896         to count all of the registers that will be saved.
3897
3898 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3899
3900         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3901
3902 2002-05-06  David S. Miller  <davem@redhat.com>
3903
3904         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3905         allow result to overlap input operands in memory.
3906
3907 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3908
3909 doc:
3910         * cpp.texi: Update multichar charconst docs.
3911
3912 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3913
3914         * cpplex.c (cpp_interpret_charconst): Sign-extend each
3915         character.  Don't ignore excess characters.  Treat
3916         multicharacter character constants as signed.
3917         (cpp_parse_escape): Clarify diagnostic.
3918
3919 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
3920
3921         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3922         use add instead of shift.
3923         (ashldi3_sp64): Likewise.
3924         (ashlsi3_const1, ashldi3_const1): Remove.
3925         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3926         * config/sparc/sparc.c (const1_operand): New.
3927
3928 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
3929
3930         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3931
3932 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
3933
3934         PR target/6561
3935         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
3936
3937 2002-05-05  Richard Henderson  <rth@redhat.com>
3938
3939         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
3940         memory latency adjustments.
3941         (alpha_variable_issue): Remove.
3942         (alpha_use_dfa_pipeline_interface): New.
3943         (alpha_multipass_dfa_lookahead): New.
3944         * config/alpha/alpha.md: Remove define_function_unit scheduling;
3945         include new dfa scheduling.
3946         (attr type): Add none.
3947         (blockage): Use it.
3948         * config/alpha/ev4.md: New.
3949         * config/alpha/ev5.md: New.
3950         * config/alpha/ev6.md: New.
3951
3952 2002-05-05  David S. Miller  <davem@redhat.com>
3953
3954         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
3955
3956 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
3957
3958         * cse.c: Fix formatting.
3959         * emit-rtl.c: Likewise.
3960
3961 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
3962
3963         * genautomata.c (initiate_states): Add additional guard to
3964         initialize `units_array'.
3965
3966 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
3967
3968         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
3969         process_unit_to_form_the_same_automaton_unit_lists,
3970         form_the_same_automaton_unit_lists
3971         check_unit_distributions_to_automata): New prototypes and
3972         functions.
3973         (check_automata): Rename it into `check_automata_insn_issues'.
3974         (unit_decl): New fields `the_same_automaton_unit' and
3975         `the_same_automaton_message_reported_p'.
3976         (unit_decl_t): New typedef.
3977         (the_same_automaton_lists): New gloval variable.
3978         (unit_regexp, unit_set_el, units_array, units_cmp,
3979         output_get_cpu_unit_code_func): Use the typedef.
3980         (evaluate_max_reserv_cycles): Increment
3981         `description->max_insn_reserv_cycles'.
3982         (initiate_states): Don't increment `max_cycles_num'.
3983         (transform_insn_regexps): Move code around transformation of
3984         regexps from `generate'.
3985         (generate): Remove call of `transform_insn_regexps'.
3986         (expand_automata): Call `transform_insn_regexps' and
3987         `check_unit_distributions_to_automata'.  Check errors before
3988         `generate'.
3989
3990         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
3991         automaton `ultrasparc3_1'.
3992
3993 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3994
3995         * c-common.c (c_common_init): Set up CPP arithmetic.
3996         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
3997         something reasonable for the host.
3998         (sanity_checks): Add checks.
3999         (cpp_read_main_file): Call sanity_checks() from here...
4000         (cpp_post_options): ... not here.
4001         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4002         * cpplib.h (struct cpp_options): New member int_precision.
4003
4004 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4005
4006         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4007
4008 2002-05-04  David S. Miller  <davem@redhat.com>
4009
4010         * config/sparc/linux.h, config/sparc/linux64.h
4011         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4012
4013         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4014         more RTX codes.
4015         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4016
4017         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4018         of SETs.
4019
4020 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4021
4022         * treelang; New directory for new sample language treelang.
4023
4024 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4025
4026         * Makefile.in (c-lex.o): Update.
4027         * c-lex.c: Include target.h.
4028         (cb_register_builtins): New.
4029         (init_c_lex): Set builtins callback.
4030         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4031         * cppinit.c (init_builtins): Use callback, including for
4032         GXX_WEAK.
4033         * cpplib.h (struct cpp_callbacks): New member.
4034         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4035         (TARGET_INITIALIZER): Update.
4036         * target.h (struct gcc_target): New hook.
4037         * tree.c (default_register_cpp_builtins): New.
4038         * tree.h (default_register_cpp_builtins): New.
4039 doc:
4040         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4041
4042 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4043
4044         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4045         (cpp_post_options): Move sanity checks to...
4046         (sanity_checks): New.
4047         * cpplex.c (maybe_read_ucs): Fix prototype.
4048         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4049         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4050         if necessary.
4051
4052 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4053
4054         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4055         builtins.  Use V2DI patterns instead of TI for logical operations.
4056         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4057         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4058         (ix86_expand_builtins): Change the pattern used for movntdq.
4059         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4060         sse2_nandv2di3): New patterns.
4061         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4062         on operands.
4063         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4064         (cvtdq2pd): Correct mode on operand 1.
4065         (sse2_umulsidi3): Describe without unspec.
4066         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4067         machine modes.
4068         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4069         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4070         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4071         ashlv4si3, ashlv2di3): Use SImode for shift count.
4072         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4073         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4074         New patterns.
4075         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4076         New typedefs.
4077         (__m128i, __m128d): New macros.
4078         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4079         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4080         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4081         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4082         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4083         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4084         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4085         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4086         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4087         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4088         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4089         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4090         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4091         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4092         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4093         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4094         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4095         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4096         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4097         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4098         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4099         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4100         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4101         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4102         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4103         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4104         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4105         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4106         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4107         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4108         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4109         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4110         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4111         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4112         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4113         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4114         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4115         functions.
4116         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4117         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4118
4119 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4120
4121         * dwarf2out.c: Fix formatting.
4122         * varasm.c: Likewise.
4123
4124 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4125
4126         PR c/6543
4127         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4128         clobber and use result as temporary value.
4129
4130 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4131
4132         * expr.c (force_operand): Use expand_simple_* to handle more
4133         cases.
4134
4135 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4136
4137         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4138         and sign-extension.
4139         (lex_charconst): Update for change in prototype of
4140         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4141         appropriately.
4142         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4143         * cppinit.c (cpp_create_reader): Initialize them for no
4144         change in semantics.
4145         (cpp_post_options): Add sanity checks.
4146         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4147         and truncation issues.  Calculate in type cppchar_t.
4148         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4149         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4150         run-time dependent precision correctly.  Return whether the
4151         result is signed or not.
4152         * cpplib.c (dequote_string): Use cppchar_t; update.
4153         * cpplib.h (cppchar_signed_t): New.
4154         struct cpp_options): New precision members.
4155         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4156         * cppexp.c (eval_token): Update.
4157
4158 2002-05-03  David S. Miller  <davem@redhat.com>
4159
4160         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4161         * config/sparc/sparc.c (sparc_rtx_costs): New function
4162         implementing RTX_COSTS and CONST_COSTS.
4163         * config/sparc/sparc.h (CONST_COSTS): Delete.
4164         (RTX_COSTS_CASES): Define.
4165         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4166         the work.
4167
4168         * config/sparc/sparc.md (DFA schedulers): Split out...
4169         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4170         config/sparc/sparclet.md, config/sparc/supersparc.md,
4171         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4172
4173         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4174         checks on it, always defined for Sparc.
4175
4176         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4177         Tweak, and add more detailed comments.
4178
4179 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4180
4181         * Re-apply patch accidentally reverted with
4182         DFA scheduler merge: remove all rules and variables to slurp
4183         source files out of libiberty and rebuild them with HOST_CC.
4184         ($(HOST_PREFIX_1)varray.o): New rule.
4185         (genattrtab rule): Word wrap.
4186
4187 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4188
4189         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4190         (CPP_SUBTARGET_SPEC): Define.
4191         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4192         cpp_subtarget specs.
4193         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4194
4195 2002-05-03  David S. Miller  <davem@redhat.com>
4196
4197         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4198         * target.h (struct gcc_target): Delete cycle_display member.
4199
4200         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4201         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4202         (ia64_sched_reorder2): Mention need for cycle display handling
4203         once such notes exist.
4204
4205 2002-05-03  Richard Henderson  <rth@redhat.com>
4206
4207         * real.c (etoasc): Strip most trailing zeros for clarity.
4208         * sched-vis.c: Include real.h.
4209         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4210         * Makefile.in (sched-vis.o): Add real.h.
4211
4212 2002-05-03  David S. Miller  <davem@redhat.com>
4213
4214         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4215         no longer needed.
4216
4217 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4218
4219         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4220         when we get an out of range literal.
4221         (altivec_expand_ternop_builtin): Same.
4222         (altivec_expand_unop_builtin): Same.
4223         (altivec_expand_builtin): Same, for dss.
4224         (altivec_expand_builtin): Use trees instead of rtl when
4225         determining literal argument validity.
4226
4227 2002-05-03  David S. Miller  <davem@redhat.com>
4228
4229         Delete cycle display scheduling hook.
4230         * config/ia64/ia64.c (ia64_cycle_display,
4231         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4232         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4233         and use emit_insn_before instead of ia64_emit_insn_before.
4234         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4235         (cycle_display): Delete insn pattern.
4236         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4237         (cycle_display): Delete insn pattern.
4238         * config/sparc/sparc.c (sparc_cycle_display,
4239         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4240         * doc/md.texi (cycle_display): Don't mention.
4241         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4242
4243 2002-05-03  Richard Henderson  <rth@redhat.com>
4244
4245         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4246         * recog.h: Declare them.
4247
4248         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4249         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4250         * config/sparc/sparc-protos.h: Update.
4251
4252 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4253
4254         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4255         -D__arch64__.  Add -D_LP64.
4256         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4257         from sparc.h.
4258         (CPP_ARCH64_SPEC): Likewise.
4259         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4260         (NO_BUILTIN_SIZE_TYPE): Undef.
4261
4262 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4263
4264         * genautomata.c (min_issue_delay_pass_states): Change return type
4265         in the prototype.
4266         (min_issue_delay_pass_states): Change the algorithm.
4267         (min_issue_delay): Set up min_insn_issue_delay for the state.
4268         (output_min_issue_delay_table): Interchange the nested loops and
4269         and initiate min_insn_issue_delay for states.
4270
4271 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4272
4273         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4274         jump is simplejump.
4275
4276 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4277
4278         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4279         sequence.
4280
4281 2002-05-03  Richard Henderson  <rth@redhat.com>
4282
4283         PR opt/6534
4284         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4285         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4286         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4287         code before JUMP, not EARLIEST.
4288
4289 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4290
4291         * c-format.c (check_format_info_main): Don't check for presence of
4292         parameter for * width until after operand number has been read,
4293         and only check for it if format parameters are available.
4294         Fixes PR c/6547.
4295
4296 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4297
4298         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4299         (LINK_SPEC): Undef before defining.
4300
4301 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4302
4303         PR preprocessor/6489
4304         * tradcpp.c (fixup_newlines): New.
4305         (main, finclude): Use it.
4306
4307 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4308
4309         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4310         * config/mips/mips.c (mips_unique_section): Strip encoding from
4311         decl name.
4312
4313 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4314
4315         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4316         mode.
4317
4318 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4319
4320         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4321         (Specific): Removed buildstats references.
4322         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4323         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4324         Accomodate Solaris versions beyond 8.
4325         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4326         (Specific, *-*-solaris2.8): Removed, obsolete.
4327
4328 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4329
4330         PR target/6542
4331         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4332         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4333         fill leaf_reg_remap with identity.
4334         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4335
4336 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4337
4338         * config/h8300/crti.asm: Remove trailing spaces.
4339         * config/h8300/h8300.c: Likewise.
4340         * config/h8300/lib1funcs.asm: Likewise.
4341
4342 2002-05-02  Jason Merrill  <jason@redhat.com>
4343
4344         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4345         * c-decl.c (c_init_decl_processing): Use it.
4346         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4347         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4348         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4349
4350 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4351
4352         * regrename.c: Fix formatting.
4353         * tree.c: Likewise.
4354
4355 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4356
4357         * i386.md (attribute memory): Handle compares properly.
4358
4359 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4360
4361         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4362         to none.
4363
4364 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4365
4366         * function.c: Fix formatting.
4367
4368 2002-05-02  Jan Hubicka  <jh@suse.cz>
4369
4370         * haifa-sched.c (schedule_insn): Print table of instructions and
4371         reservations.
4372         (sched_block): Do not print ready list at verbosity level 1.
4373         * sched-vis.c (print_insn): Make global.
4374         * sched-ebb.c (ebb_print_insn): Rename from...
4375         (print_insn): ... this one.
4376         * sched-int.h (print_insn): Declare
4377
4378 2002-05-02  Richard Henderson  <rth@redhat.com>
4379
4380         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4381         emitted by cycle_display.
4382
4383 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4384
4385         * doc/install.texi (*-*-freebsd*): Update to latest status.
4386
4387 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4388
4389         PR target/6540
4390         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4391         * config/float-sparc.h: Assume 128-bit long double if
4392         __LONG_DOUBLE_128__ is defined.
4393
4394 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4395
4396         * genattrtab.c (write_function_unit_info): Add a dummy element
4397         when num_units == 0.
4398
4399 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4400
4401         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4402         TYPE_MODE (double_type_node) instead of DFmode.
4403
4404 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4405
4406         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4407         jumps post reload.
4408         * toplev.c (rest_of_compilation): Revert Richard's patch.
4409
4410 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4411
4412         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4413
4414 2002-05-02  Catherine Moore  <clm@redhat.com>
4415
4416         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4417
4418 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4419
4420         * combine.c: Fix comment typos.
4421         * expr.c: Likewise.
4422         * genautomata.c: Likewise.
4423         * stmt.c: Likewise.
4424         * tree.h: Likewise.
4425
4426 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4427
4428         * doc/install.texi: State GNAT version requirements.
4429
4430 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4431
4432         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4433         of the frame pointer or arg pointer register which strict register
4434         checking is not enabled.
4435
4436 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4437
4438         * gcc.dg/altivec-8.c: New.
4439
4440         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4441         PRE_INC and PRE_DEC for altivec modes.
4442
4443 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4444
4445         * fixinc/check.tpl(set-writable): make sure the function exists first
4446         * fixinc/inclhack.def(alpha_assert): fix test_text
4447         * fixinc/tests/base/assert.h: add in missing result
4448
4449 2002-05-01  Jeff Law  <law@redhat.com>
4450
4451         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4452         'T' constraint.
4453
4454 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4455
4456         * dbxout.c (dbxout_type): Emit size information for range types,
4457         as well, but only when using GDB extensions.
4458
4459 2002-05-01  Richard Henderson  <rth@redhat.com>
4460
4461         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4462         target-independent gnu binutils date test.
4463
4464 2002-05-01  Richard Henderson  <rth@redhat.com>
4465
4466         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4467         info before expunging the block.
4468
4469 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4470
4471         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4472         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4473         -M -or -MM is in effect.
4474
4475 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4476
4477         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4478         A29k configurations.
4479         * doc/install.texi: Update to match.
4480
4481 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4482
4483         PR bootstrap/6514
4484         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4485         for duplicates. Always loop over whole list.
4486
4487 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4488
4489         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4490
4491 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4492
4493         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4494         support routines.
4495
4496 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4497
4498         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4499
4500 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
4501
4502         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4503         (nabs_nopower): Same.
4504         (floatdisf2): New pattern.
4505         (absdi2): Convert to define_insn_and_split.
4506         (nabsdi2): Same.
4507         (trunctfsf2): Same.
4508         (floatditf2): Same.
4509         (floatsitf2): Same.
4510         (fix_trunctfdi2): Same.
4511         (fix_trunctfsi2): Same.
4512
4513 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4514
4515         * doc/install.texi: Update Texinfo version requirement
4516         documentation.
4517
4518 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4519
4520         PR target/6512, PR target/5628
4521         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4522         when memory is not aligned.
4523         (movdf_insn_v9only_vis): Likewise.
4524         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4525         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4526         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4527
4528 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
4529
4530         * gcc.dg/altivec-7.c: New.
4531
4532         * config/rs6000/altivec.h: Cleanup.
4533
4534 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
4535
4536         * doc/invoke.texi (Option Summary): Add -mvrsave=.
4537         (RS/6000 and PowerPC Options): Document -mvrsave=.
4538
4539         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4540         (rs6000_altivec_vrsave_string): Same.
4541         (rs6000_override_options): Call rs6000_parse_vrsave_option.
4542         (rs6000_parse_vrsave_option): New.
4543         (rs6000_stack_info): Only generate vrsave instructions when
4544         TARGET_ALTIVEC_VRSAVE.
4545
4546         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4547         (rs6000_altivec_vrsave_string): Define extern.
4548         (rs6000_altivec_vrsave): Same.
4549         (TARGET_ALTIVEC_VRSAVE): New.
4550
4551 2002-04-30  Richard Henderson  <rth@redhat.com>
4552
4553         PR opt/6516
4554         * toplev.c (rest_of_compilation): Don't run cross-jump before
4555         bb-reorder.
4556
4557 2002-04-30  Tom Rix  <trix@redhat.com>
4558
4559         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4560         check which_alternative.
4561
4562 2002-04-30  Kazu Hirata  <kazu@hxi.com>
4563
4564         * cpplex.c: Fix comment formatting.
4565         * function.c: Likewise.
4566         * integrate.c: Likewise.
4567         * regrename.c: Likewise.
4568         * sibcall.c: Likewise.
4569         * simplify-rtx.c: Likewise.
4570         * tree-inline.c: Likewise.
4571
4572 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4573
4574         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4575         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4576         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4577         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4578         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4579         * pa/x-ada: New file.  Define ADA_CFLAGS.
4580
4581 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
4582
4583         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4584         from MMIX_LAST_REGISTER_FILE_REGNUM.
4585         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4586         (struct machine_function): New member highest_saved_stack_register
4587         previously static variable in mmix.c.
4588         (MACHINE_DEPENDENT_REORG): Define.
4589         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4590         (MMIX_OUTPUT_REGNO): New.
4591         (mmix_target_asm_function_prologue): Move calculation of last used
4592         saved-stack-register into...
4593         (mmix_machine_dependent_reorg): New function.  Update to also handle
4594         !TARGET_ABI_GNU.
4595         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4596         register names, simplify somewhat by new variable regno.
4597         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
4598         register.
4599         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4600         emitting register names.
4601         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4602         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4603         Remove fixed FIXME.
4604         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4605         Declare.
4606
4607         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4608
4609 2002-04-30  Richard Henderson  <rth@redhat.com>
4610
4611         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4612         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4613         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4614         emit_tfmode_cvt): New.
4615         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4616         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4617         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4618         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4619         * config/sparc/sparc-protos.h: Update.
4620
4621 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
4622
4623         * install.texi (Final install): Add to the list of info to include
4624         in a report of a successful bootstrap, and add link to 3.1 list.
4625
4626 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
4627
4628         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4629         (mode): Add vector modes
4630         (i387): Kill attribute.
4631         (unit): New attribute.
4632         (length_immediate): Grok new types.
4633         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4634         (modrm): Use "unit".
4635         (memory): Handle MMX/SSE properly.
4636         (scheduling descriptions): Kill uses of fop1.
4637         (sse, mmx, fp patterns): Set type and mode properly.
4638
4639 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
4640
4641         * pa.c (override_options): Default to PA8000 scheduling.
4642         * doc/invoke.texi (HP-PA options): Mention newly added 7300
4643         scheduling parameter.
4644
4645         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4646         handling of double precision multiplies.
4647
4648         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4649         fpdiv and fpsqrt instructions.
4650         (7200 & 7300 scheduling): Fix typo in handling of
4651         store-load and store-store penalties.
4652
4653 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4654
4655         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4656         mips.  Add two missing commas.
4657
4658 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
4659
4660         * doc/contrib.texi (Contributors): Update Paolo Carlini's
4661         and Benjamin Kosnik's entries.
4662
4663 2002-04-29  David S. Miller  <davem@redhat.com>
4664
4665         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4666         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4667         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4668         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4669
4670 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4671
4672         * combine.c (find_split_point): Use gen_int_mode.
4673
4674 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4675
4676         Merging code from dfa-branch:
4677
4678         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
4679
4680         * genautomata.c (output_reserv_sets): Fix typo.
4681
4682         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
4683
4684         * genautomata.c (output_reserv_sets): Remove
4685         next_cycle_output_flag.
4686
4687         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
4688
4689         * sched-rgn.c (init_ready_list): Make the DFA code handle
4690         USE/CLOBBER insns in the same way as the traditional
4691         scheduler.
4692         (new_ready): Similarly..
4693
4694         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
4695
4696         * haifa-sched.c (schedule_block): Change the DFA state only after
4697         issuing insn.
4698
4699         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
4700
4701         * pa.c (hppa_use_dfa_pipeline_interface): New function.
4702         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4703         (override_options): Add PA7300 scheduling support.
4704         (pa_adjust_cost): Update various comments.  Properly
4705         handle anti and output dependencies when using the
4706         DFA scheduler.
4707         (pa_issue_rate): Add PA7300 scheduling support.
4708         (pa_can_combine_p): Call extract_insn before calling
4709         constrain_operands (taken from mainline tree).
4710         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4711         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
4712         descriptions using DFA descriptions.  Add PA7300
4713         scheduling support.
4714
4715         2002-03-30  David S. Miller  <davem@redhat.com>
4716
4717         Add UltraSPARC-III DFA scheduling support.
4718         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4719         Update FP conditional move on register insn patterns to use it, as
4720         appropriate.
4721         (define_attr cpu): Add ultrasparc3.
4722         (define_attr us3load_type): New, update integer load patterns to
4723         set it, as appropriate.
4724         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4725         (rest): Add UltraSPARC3 scheduling description.
4726         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4727         (PROCESSOR_ULTRASPARC3): New.
4728         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4729         ({ASM,CPP}_CPU_SPEC): Likewise.
4730         (REGISTER_MOVE_COST): Likewise.
4731         (RTX_COSTS): Likewise.
4732         * config/sparc/sparc.c (sparc_override_options,
4733         sparc_initialize_trampoline, sparc64_initialize_trampoline,
4734         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4735         sparc_issue_rate): Likewise.
4736         * config/sparc/sol2.h: Likewise.
4737         * config/sparc/sol2-sld-64.h: Likewise.
4738         * config/sparc/linux64.h: Likewise.
4739
4740         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
4741
4742         * doc/md.texi: Add comments about usage the latency time for the
4743         different dependencies and about case when two or more conditions
4744         in different define_insn_reservations returns TRUE for an insn.
4745
4746         * doc/md.texi: Add reference for automaton based pipeline
4747         description.
4748
4749         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
4750
4751         * doc/passes.texi: Add missed information about genattrtab.
4752
4753         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
4754
4755         * genautomata.c (output_automata_list_transition_code): Check
4756         automata_list on NULL.
4757
4758         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
4759
4760         * genautomata.c (output_insn_code_cases,
4761         output_automata_list_min_issue_delay_code,
4762         output_automata_list_transition_code,
4763         output_automata_list_state_alts_code): Comment the functions.
4764
4765         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
4766
4767         * genautomata.c (automata_list_el_t): New typedef.
4768         (get_free_automata_list_el,free_automata_list_el,
4769         free_automata_list, automata_list_hash, automata_list_eq_p,
4770         initiate_automata_lists, automata_list_start, automata_list_add,
4771         automata_list_finish, finish_automata_lists,
4772         output_insn_code_cases, output_automata_list_min_issue_delay_code,
4773         output_automata_list_transition_code,
4774         output_automata_list_state_alts_code, add_automaton_state,
4775         form_important_insn_automata_lists): New functions and prototypes.
4776         (insn_reserv_decl): Add members important_automata_list and
4777         processed_p.
4778         (ainsn): Add members important_p.
4779         (automata_list_el): New structure.
4780         (first_free_automata_list_el, current_automata_list,
4781         automata_list_table): New global variables.
4782         (create_ainsns): Initiate member important_p.
4783         (output_internal_min_issue_delay_func): Generate the switch and
4784         call output_insn_code_cases.
4785         (output_internal_trans_func, output_internal_state_alts_func):
4786         Ditto.
4787         (generate): Call initiate_automata_lists.
4788         (automaton_states): New global variable.
4789         (expand_automata): Call form_important_insn_automata_lists.
4790         (write_automata): Call finish_automata_lists.
4791
4792         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
4793
4794         * genautomata.c (add_excls, add_presence_absence): Check that
4795         cpu units in the sets belong the same automaton.
4796
4797         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4798         about that cpu units in the sets belong the same automaton.
4799
4800         * doc/md.texi: Ditto.
4801
4802         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
4803                     Nitin Gupta  <niting@noida.hcltech.com>
4804
4805         * config/sh/sh.c (sh_use_dfa_interface): New function.
4806
4807         (sh_issue_rate): New Function.
4808         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4809         TARGET_SCHED_ISSUE_RATE: define.
4810
4811         * config/sh/sh.md: Add DFA based pipeline description for SH4.
4812
4813         (define_attr insn_class): New attribute used for DFA
4814          scheduling.
4815         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4816         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4817          cmpeqdi_t): Likewise.
4818
4819         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4820          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4821          ex_group.
4822         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4823
4824         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
4825
4826         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4827         break.
4828
4829         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
4830
4831         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4832         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4833         necessary.
4834         (output_dfa_start_func): Initiate new variable insn_codes_length,
4835         (write_automata): Output definition of the new variable.
4836
4837         2001-10-02  David S. Miller  <davem@redhat.com>
4838
4839         * haifa-sched.c (advance_one_cycle): New function.
4840         (schedule_block): Use it.
4841         (queue_to_ready): Use it, and also make sure to advance the DFA
4842         state on all stall cycles, not just those where insn_queue links
4843         are found.
4844
4845         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
4846
4847         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
4848         non-zero if the highest-priority instruction could be scheduled.
4849         (choose_ready): Remove last argument from max_issue call.
4850
4851         2001-09-28  David S. Miller  <davem@redhat.com>
4852
4853         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4854         ultrasparc and 3 for other multi-issue sparcs.
4855
4856         2001-09-27  David S. Miller  <davem@redhat.com>
4857
4858         * config/sparc/sparc.md (cycle_display): New pattern.
4859         * config/sparc/sparc.c (sparc_cycle_display): New.
4860         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4861
4862         2001-09-25  David S. Miller  <davem@redhat.com>
4863
4864         Convert all of Sparc scheduling to DFA
4865         * config/sparc/sparc.md: Kill all define_function_unit
4866         directives and replace with DFA equivalent.
4867         * config/sparc/sparc.c (ultrasparc_adjust_cost,
4868         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4869         ultra_fpmode_conflict_exists, ultra_find_type,
4870         ultra_build_types_avail, ultra_flush_pipeline,
4871         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4872         ultrasparc_variable_issue, ultrasparc_sched_init,
4873         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4874         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4875         ultra_cur_hist, ultra_cycles_elapsed): Kill.
4876         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4877         ultrasparc_store_bypass_p): New.
4878         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4879         Declare.
4880
4881         2001-09-24  David S. Miller  <davem@redhat.com>
4882
4883         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4884         ready->vec[foo] not ready[foo].
4885
4886         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
4887
4888         * doc/md.texi: Correct examples for define_insn_reservations
4889         `mult' and `div'.
4890
4891         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
4892
4893         * genautomata.c (create_automata): Print message about creation of
4894         each automaton.
4895         (generate): Remove printing meease about creation of
4896         automata.
4897
4898         2001-09-05  David S. Miller  <davem@redhat.com>
4899
4900         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4901         * config/sparc/linux64.h: Likewise.
4902
4903         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
4904
4905         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4906         schedule_block, sched_init, sched_finish): Add missed calls of
4907         use_dfa_pipeline_interface.
4908
4909         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4910         Ditto.
4911
4912         * sched-vis.c (get_visual_tbl_length): Ditto.
4913
4914         2001-08-27  Richard Henderson  <rth@redhat.com>
4915
4916         * genattr.c (main): Emit state_t even when not doing scheduling.
4917
4918         2001-08-27  Richard Henderson  <rth@redhat.com>
4919
4920         * genautomata.c (expand_automata): Always create a description.
4921
4922         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
4923
4924         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4925         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4926         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4927         RTL constructions.
4928
4929         * genattr.c (main): New variable num_insn_reservations.  Increase
4930         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
4931         pipeline hazard recognizer interface.
4932
4933         * genattrtab.h: New file.
4934
4935         * genattrtab.c: Include genattrtab.h.
4936         (attr_printf, check_attr_test, make_internal_attr,
4937         make_numeric_value): Move protypes into genattrtab.h.  Define them
4938         as external.
4939         (num_dfa_decls): New global variable.
4940         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
4941         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
4942         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
4943         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
4944
4945         * genautomata.c: New file.
4946
4947         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
4948
4949         * sched-int.h: (curr_state): Add the external definition for
4950         automaton pipeline interface.
4951         (haifa_insn_data): Add comments for members blockage and units.
4952
4953         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4954         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4955         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4956         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4957         TARGET_SCHED_DFA_POST_CYCLE_INSN,
4958         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4959         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
4960         macros.
4961         (TARGET_SCHED): Use the new macros.
4962
4963         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
4964         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
4965         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
4966         dfa_bubble): New members in gcc_target.sched.
4967
4968         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
4969         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
4970         (insn_queue): Redefine it as pointer to array.
4971         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
4972         INSN_QUEUE_SIZE.
4973         (max_insn_queue_index_macro_value): New variable.
4974         (curr_state, dfa_state_size, ready_try): New varaibles for
4975         automaton interface.
4976         (ready_element, ready_remove, max_issue): New function prototypes
4977         for automaton interface.
4978         (choose_ready): New function prototype.
4979         (insn_unit, blockage_range): Add comments.
4980         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
4981         FUNCTION_UNITS_SIZE == 0.
4982         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
4983         actual_hazard, potential_hazard): Add comments.
4984         (insn_cost): Use cost -1 as undefined value.  Remove
4985         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
4986         pipeline interface.
4987         (ready_element, ready_remove): New functions for automaton
4988         interface.
4989         (schedule_insn): Add new code for automaton pipeline interface.
4990         (queue_to_ready): Add new code for automaton pipeline interface.
4991         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
4992         (debug_ready_list): Print newline when the queue is empty.
4993         (max_issue): New function for automaton pipeline interface.
4994         (choose_ready): New function.
4995         (schedule_block): Add new code for automaton pipeline interface.
4996         Print ready list before scheduling each insn.
4997         (sched_init): Add new code for automaton pipeline interface.
4998         Initiate insn cost by -1.
4999         (sched_finish): Free the current automaton state and finalize
5000         automaton pipeline interface.
5001
5002         * sched-rgn.c: Include target.h.
5003         (init_ready_list, new_ready, debug_dependencies): Add new code for
5004         automaton pipeline interface.
5005
5006         * sched-vis.c: Include target.h.
5007         (get_visual_tbl_length): Add code for automaton interface.
5008         (target_units, print_block_visualization):  Add comments.
5009
5010         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5011         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5012         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5013         (getruntime.o, genautomata.o): New entries.
5014         (genattrtab.o): Add new dependency file genattrtab.h.
5015         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5016         (getruntime.o, hashtab.o): New entries for canadian cross.
5017
5018         * doc/md.texi: Description of automaton based model.
5019
5020         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5021         Add comments.
5022         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5023         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5024         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5025         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5026         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5027         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5028         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5029         hook descriptions.
5030         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5031         MAX_DFA_ISSUE_RATE): New macro descriptions.
5032
5033         * doc/contrib.texi: Add dfa based scheduler contribution.
5034
5035         * doc/gcc.texi: Add more information about genattrtab.
5036
5037 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5038
5039         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5040         adjust_address_nv call.
5041
5042 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5043
5044         * doc/install.texi (Testing): Provide additional information, and
5045         a stronger encouragement, for running the testsuites.
5046
5047 2002-04-29  DJ Delorie  <dj@redhat.com>
5048
5049         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5050         given in upper case.
5051
5052 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5053
5054         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5055         Solaris 2 <widec.h> if missing.
5056         * fixinc/fixincl.x: Regenerate.
5057         * fixinc/tests/base/widec.h: New file.
5058
5059 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5060
5061         * toplev.c (f_options): Add "profile" switch so that
5062         -fno-profile can be used to disable -p.
5063
5064 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5065
5066         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5067         UV2DImode.
5068         * tree.c (build_common_tree_nodes_2): Likewise.
5069         * tree.h (enum tree_index): Likewise.
5070         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5071
5072         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5073         entries.
5074         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5075         (ix86_expand_builtin): Add support for SSE2 builtins.
5076         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5077         (VALID_SSE_REG_MODE): Use it.
5078         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5079         (enum ix86_builtins): Add SSE2 builtins.
5080         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5081         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5082         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5083         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5084         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5085         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5086         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5087         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5088         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5089         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5090         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5091         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5092         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5093         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5094         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5095         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5096         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5097         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5098         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5099         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5100         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5101         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5102         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5103         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5104         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5105         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5106         lfence_insn): New patterns.
5107         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5108         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5109
5110 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5111
5112         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5113
5114 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5115
5116         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5117         Janis Johnson.
5118         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5119         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5120         and CPU instead of cpu.
5121
5122 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5123
5124         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5125         variables.
5126         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5127         (rest_of_compilation): Do if conversion only when asked for.
5128         (parse_options_and_default_flags): Set new variables to 1 for -O1
5129         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5130
5131 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5132
5133         * i386.c (dbx64_register_map): Fix typo.
5134
5135 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5136
5137         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5138         real_one_half, real_bb_freq_max): New static variables.
5139         (debug_profile_bbauxs): Kill.
5140         (process_note_predictions): Kill unused variable.
5141         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5142         volatile double.
5143         (propagate_freq): Use REAL_ARITHMETICS.
5144         (estimate_bb_frequencies): Likevise; init new static variables.
5145         * Makefile.in (predict.o): Add dependency on real.h
5146
5147 2002-04-28  David S. Miller  <davem@redhat.com>
5148
5149         PR target/6500
5150         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5151         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5152         several {reads,writes} instead.
5153         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5154         Define.
5155
5156 2002-04-27  David S. Miller  <davem@redhat.com>
5157
5158         PR target/6494
5159         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5160         of the stack bias.
5161
5162         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5163         including signal.h and sys/ucontext.h, not needed.
5164
5165 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5166
5167         * varasm.c (output_constant_def): Correct test for not calling
5168         ENCODE_SECTION_INFO for INTEGER_CST.
5169
5170 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5171
5172         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5173         keep most cases as function eval_token.
5174         (eval_token): New function.
5175         (_cpp_parse_expr): Read token here for improved diagnostics.
5176         Don't use op_as_text.  Detect bad ':' here.
5177         (reduce): Don't detect bad ':' here.
5178         (op_as_text): Remove.
5179         * cpphash.h (_cpp_test_assertion): Change prototype.
5180         * cpplib.c (_cpp_test_assertion): Change prototype.
5181
5182 2002-04-28  Richard Henderson  <rth@redhat.com>
5183
5184         PR c/5154
5185         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5186         (ggc_mark_rtx_children): New.
5187
5188 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5189
5190         PR target/6496
5191         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5192         after call peepholes for UltraSPARC.
5193         (call + jump 64-bit peepholes): Remove.
5194
5195 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5196
5197         PR c/6497
5198         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5199         result as temporary value.
5200
5201 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5202
5203         PR c++/6396
5204         * toplev.c (rest_of_compilation): Only run regrename and copy
5205         propagation if optimizing.
5206
5207 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5208
5209         PR optimization/6475
5210         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5211         register of REGNO_DECL (i).
5212         * Makefile.in (reload1.o): Add $(TREE_H).
5213
5214 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5215
5216         * cppexp.c (lex): Update to use state.skip_eval.
5217         (struct op): Remove prio and flags members.
5218         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5219         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5220         (LEFT_ASSOC): New macro.
5221         (optab): New table of operator priorities and flags.
5222         (SHIFT): Update.
5223         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5224         malloc-ed parser stack.
5225         (reduce): New; reduce the operator stack.
5226         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5227         * cpphash.h (struct op): Predeclare.
5228         (struct cpp_reader): New members op_stack, op_limit.
5229         (struct lexer_state): New member skip_eval.
5230         (_cpp_parse_expr): Update.
5231         (_cpp_expand_op_stack): New.
5232         * cpplib.c (do_if): Update.
5233         * cppinit.c (cpp_create_reader): Create op stack.
5234         (cpp_destroy): And destroy it.
5235         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5236         (TTYPE_TABLE): Correct.
5237
5238 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5239
5240         PR c/6343
5241         * c-decl.c (duplicate_decls): Call merge_weak.
5242         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5243         * output.h (merge_weak): Prototype merge_weak.
5244         * varasm.c (merge_weak): New function.
5245         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5246         Mark RTL with SYMBOL_REF_WEAK.
5247
5248 2002-04-27  Kurt Garloff <garloff@suse.de>
5249
5250         * tree-inline.c (inlinable_function_p): Improve heuristics
5251         by using a smoother function to cut down allowable inlinable size.
5252         * param.def: Add parameters max-inline-insns-single,
5253         max-inline-slope, min-inline-insns that determine the exact
5254         shape of the above function.
5255         * param.h: Likewise.
5256
5257 2002-04-26  Richard Henderson  <rth@redhat.com>
5258
5259         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5260         (yyoverflow): Re-add.  Set them.
5261         (free_parser_stacks): New.
5262         * c-common.h: Declare it.
5263         * c-lex.c (c_common_parse_file): Call it.
5264
5265 2002-04-26  Richard Henderson  <rth@redhat.com>
5266
5267         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5268         for fallthru search.
5269
5270 2002-04-26  Eric Christopher  <echristo@redhat.com>
5271
5272         PR optimization/3700
5273         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5274         (TARGET_SCHED_ISSUE_RATE): Use.
5275
5276 2002-04-25  David S. Miller  <davem@redhat.com>
5277
5278         PR target/6422
5279         * reorg.c (optimize_skip): Do not allow exception causing
5280         instructions to be considered for delay slots.
5281         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5282         (relax_delay_slots): Do not try to consider exception causing
5283         instructions as redundant.
5284
5285 2002-04-26  Richard Henderson  <rth@redhat.com>
5286
5287         PR c/5225
5288         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5289
5290 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5291
5292         PR bootstrap/6445
5293         * config/i386/i386.md (untyped_call): Return the value in a float
5294         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5295         TARGET_80387.
5296
5297 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5298
5299         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5300         in unsigned-ness correctly.
5301
5302 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5303
5304         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5305         portable runtime model.
5306
5307 2002-04-26  Richard Henderson  <rth@redhat.com>
5308
5309         * c-parse.in (yyoverflow): Revert.
5310
5311 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5312             Richard Henderson  <rth@redhat.com>
5313
5314         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5315         result as temporary value.
5316
5317 2002-04-26  Richard Henderson  <rth@redhat.com>
5318
5319         PR c/3581
5320         * c-common.c (fix_string_type): Split out of ...
5321         (combine_strings): ... here.  Take a varray, not a tree list.
5322         (c_expand_builtin_printf): Use fix_string_type.
5323         * c-common.h: Update decls.
5324         * c-parse.in (string): Remove.  Update all uses to use STRING
5325         instead, and not call combine_strings.
5326         (yylexstring): New.
5327         (_yylex): Use it.
5328         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5329         (build_asm_stmt): Likewise.
5330         * objc/objc-act.c (my_build_string): Use fix_string_type.
5331         (build_objc_string_object): Build varray for combine_strings.
5332
5333 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5334
5335         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5336         x86-64.
5337
5338 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5339
5340         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5341         (HAVE_NO_R_OPERAND): Remove.
5342         (HAVE_VALUE): Remove.
5343         (op_to_prio): Update.
5344         (UNARY): Don't alter flags.
5345         (_cpp_parse_expr): want_value used to indicate whether
5346         a number or unary operator is expected next.  Distinguish
5347         unary and binary +/-.
5348         (op_as_text): Update for unary operators.
5349
5350 2002-04-25  Richard Henderson  <rth@redhat.com>
5351
5352         PR c/2161
5353         * c-parse.in (yyoverflow): New.
5354
5355 2002-04-25  Richard Henderson  <rth@redhat.com>
5356
5357         PR c/2098
5358         * c-common.c (shorten_compare): Simplfy conditions leading to
5359         the generation of a warning.
5360
5361 2002-04-25  Richard Henderson  <rth@redhat.com>
5362
5363         PR c/2035
5364         * expmed.c (extract_bit_field): Fall through to generic code rather
5365         than aborting on subreg special case.
5366
5367 2002-04-25  David S. Miller  <davem@redhat.com>
5368
5369         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5370         for DECL being NULL.
5371
5372 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5373
5374         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5375
5376 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5377
5378         * c-decl.c (grokdeclarator): Remove outdated ??? note
5379         on invalid declaration of flexible array members.
5380
5381 2002-04-25  Richard Henderson  <rth@redhat.com>
5382
5383         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5384
5385 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5386
5387         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5388         needed by the compiler, even if they are used as global regs.
5389
5390 2002-04-25  Matt Hiller  <hiller@redhat.com>
5391
5392         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5393         functions.
5394         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5395         of the corresponding functions.
5396         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5397         New prototypes.
5398
5399 2002-04-25  Matt Hiller  <hiller@redhat.com>
5400
5401         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5402
5403         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5404         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5405         registers, adjust comment accordingly.
5406         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5407         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5408         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5409         for coprocessor registers.
5410         (ADDITIONAL_REGISTER_NAMES): Include
5411         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5412
5413         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5414         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5415         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5416         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5417         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5418
5419         (mips_char_to_class): Adjust comment to include coprocessor
5420         constraint letters.
5421
5422         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5423         New functions.
5424         (mips_reg_names, mips_regno_to_class): Include coprocessor
5425         information.
5426         (mips_sw_reg_names): Ditto, make non-static.
5427         (mips_move_1word): Handle moves to and from coprocessor registers.
5428         (mips_move_2words): Handle moves to and from coprocessor
5429         registers.
5430         (mips_class_max_nregs, mips_register_move_cost): Handle
5431         coprocessor register classes.
5432         (override_options): Initialize mips_char_to_class and
5433         mips_hard_regno_mode_ok properly for coprocessor registers.
5434
5435         * config/mips/mips.md (movdi_internal, movdi_internal2,
5436         movsi_internal1, movsi_internal2): Add constraint-sets for
5437         coprocessor registers.
5438         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5439         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5440         isn't mips.
5441         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5442         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5443         isn't mips.
5444         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5445         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5446         isn't mips.
5447         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5448         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5449         isn't mips.
5450
5451         * doc/tm.texi: Document feature.
5452
5453 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5454
5455         * integrate.c (function_attribute_inlinable_p): Simplify.
5456         Check the table pointer is not NULL.
5457
5458 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5459
5460         * doc/c-tree.texi: Fix typo in introduction.
5461
5462 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5463
5464         * c-common.h (c_common_parse_file): Update.
5465         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5466         * c-lex.c (YYDEBUG): Get from c-lex.h.
5467         (c_common_parse_file): Update.
5468         * c-lex.h (YYDEBUG, yydebug): New.
5469         * c-parse.in (YYDEBUG): Get from c-lex.h.
5470         (c_set_yydebug): Remove.
5471         * c-tree.h (c_set_yydebug): Remove.
5472         * langhooks-def.h (lhd_do_nothing_i): New.
5473         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5474         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5475         * langhooks.c  (lhd_do_nothing_i): New.
5476         (lhd_set_yydebug): Remove.
5477         * langhooks.h (struct lang_hooks): Update.
5478         * toplev.c (set_yydebug): New.
5479         (compile_file): Update call to parse_file hook.
5480         (decode_d_option): Update.
5481 objc:
5482         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5483
5484 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
5485
5486         * loop.c (load_mems): Don't change the interface of called functions.
5487
5488         * calls.c (expand_call): Take current_function_pretend_args_size
5489         into account when setting argblock for sibcalls.
5490
5491 2002-04-24  Matt Hiller  <hiller@redhat.com>
5492
5493         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5494         * c-lex.c: Ditto.
5495
5496         * cpplex.c (skip_line_comment): Process comment one multibyte
5497         character at a time rather than one char at a time, if
5498         appropriate.
5499         (parse_string): Process string one multibyte character at a time
5500         rather than one char at a time, if appropriate.
5501         * c-lex.c (lex_string): Lex and copy multibyte strings
5502         appropriately.
5503         * cpplib.h (cppchar_t): Change to unsigned.
5504
5505 2002-04-24  Richard Henderson  <rth@redhat.com>
5506
5507         PR c/3467
5508         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5509         for c99.
5510
5511 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
5512
5513         * sh.c (sh_va_arg): If argument was passed by reference,
5514         dereference the pointer.
5515
5516         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5517
5518         * sh.md (divsi3_i4_media): Use match_operand for input values
5519         rather than hard registers.
5520         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5521         unnecessarily through hard registers.  Keep copies of pseudo
5522         registers outside of the libcall sequence.
5523
5524         * sh.md (casesi_shift_media): Add modes.
5525
5526         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5527         values in memory.
5528
5529 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5530
5531         * attribs.c (c_common_attribute_table): Move table and handlers
5532         to c-common.c.
5533         (format_attribute_table, lang_attribute_table,
5534         lang_attribute_common): Remove.
5535         (init_attributes): Replace NULL pointers with pointers to the
5536         empty table.
5537         (handle_packed_attribute, handle_nocommon_attribute,
5538         handle_common_attribute, handle_noreturn_attribute,
5539         handle_noinline_attribute, handle_always_inline_attribute,
5540         handle_used_attribute, handle_unused_attribute,
5541         handle_const_attribute, handle_transparent_union_attribute,
5542         handle_constructor_attribute, handle_destructor_attribute,
5543         handle_mode_attribute, handle_section_attribute,
5544         handle_aligned_attribute, handle_weak_attribute,
5545         handle_alias_attribute, handle_visibility_attribute,
5546         handle_no_instrument_function_attribute, handle_malloc_attribute,
5547         handle_no_limit_stack_attribute, handle_pure_attribute,
5548         handle_deprecated_attribute, handle_vector_size_attribute,
5549         vector_size_helper): Move to c-common.c.
5550         * c-common.c (c_common_attribute_table,
5551         handle_packed_attribute, handle_nocommon_attribute,
5552         handle_common_attribute, handle_noreturn_attribute,
5553         handle_noinline_attribute, handle_always_inline_attribute,
5554         handle_used_attribute, handle_unused_attribute,
5555         handle_const_attribute, handle_transparent_union_attribute,
5556         handle_constructor_attribute, handle_destructor_attribute,
5557         handle_mode_attribute, handle_section_attribute,
5558         handle_aligned_attribute, handle_weak_attribute,
5559         handle_alias_attribute, handle_visibility_attribute,
5560         handle_no_instrument_function_attribute, handle_malloc_attribute,
5561         handle_no_limit_stack_attribute, handle_pure_attribute,
5562         handle_deprecated_attribute, handle_vector_size_attribute,
5563         vector_size_helper): Move from attribs.c.
5564         * c-common.h (c_common_attribute_table,
5565         c_common_format_attribute_table): New.
5566         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5567         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5568         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5569         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5570         (LANG_HOOKS_INITIALIZER): Update.
5571         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5572         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5573         * target.h: Update comment.
5574         * tree.c (default_target_attribute_table): Remove.
5575         * tree.h (default_target_attribute_table, format_attribute_table,
5576         lang_attribute_table, lang_attribute_common): Remove.
5577 objc:
5578         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5579         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5580
5581 2002-04-24  Jason Merrill  <jason@redhat.com>
5582
5583         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5584         * dwarf2out.c (dwarf_attr_name): Support it.
5585         (gen_array_type_die): Emit it.
5586         (lookup_type_die): No special handling for VECTOR_TYPE.
5587         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5588
5589 2002-04-24  Richard Henderson  <rth@redhat.com>
5590
5591         * config/mips/mips.md (movdi_usd): Renumber.
5592
5593 2002-04-24  David S. Miller  <davem@redhat.com>
5594
5595         PR target/6420
5596         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5597         32-bit Sparc and current_function_returns_struct is true.
5598
5599 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5600
5601         * loop.c (canonicalize_condition): Use gen_int_mode.
5602
5603 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
5604
5605         * config/rs6000/altivec.h: Cleanup file.  Add non individual
5606         variants.
5607         (vec_vaddubm): New.
5608         (vec_vadduhm): New.
5609         (vec_vadduwm): New.
5610         (vec_vaddfp): New.
5611         (vec_vaddcuw): New.
5612         (vec_vaddubs): New.
5613         (vec_vaddsbs): New.
5614         (vec_vadduhs): New.
5615         (vec_vadduws): New.
5616         (vec_vaddsws): New.
5617         (vec_vand): New.
5618         (vec_vandc): New.
5619         (vec_vavgub): New.
5620         (vec_vavgsb): New.
5621         (vec_vavguh): New.
5622         (vec_vavgsh): New.
5623         (vec_vavguw): New.
5624         (vec_vavgsw): New.
5625         (vec_vrfip): New.
5626         (vec_vcmpbfp): New.
5627         (vec_vcmpequb): New.
5628         (vec_vcmpequh): New.
5629         (vec_vcmpequw): New.
5630         (vec_vcmpeqfp): New.
5631         (vec_vcmpgefp): New.
5632         (vec_vcmpgtub): New.
5633         (vec_vcmpgtsb): New.
5634         (vec_vcmpgtuh): New.
5635         (vec_vcmpgtsh): New.
5636         (vec_vcmpgtuw): New.
5637         (vec_vcmpgtsw): New.
5638         (vec_vcmpgtfp): New.
5639         (vec_vcmpgefp): New.
5640         (vec_vcfux): New.
5641         (vec_vcfsx): New.
5642         (vec_vctsxs): New.
5643         (vec_vctuxs): New.
5644         (vec_vexptefp): New.
5645         (vec_vrfim): New.
5646         (vec_lvx): New.
5647         (vec_lvebx): New.
5648         (vec_lvehx): New.
5649         (vec_lde): Add vector float variant.
5650         (vec_lvewx): New.
5651         (vec_lvxl): New.
5652         (vec_vlogefp): New.
5653         (vec_vmaddfp): New.
5654         (vec_vmhaddshs): New.
5655         (vec_vmaxub): New.
5656         (vec_vmaxsb): New.
5657         (vec_vmaxuh): New.
5658         (vec_vmaxsh): New.
5659         (vec_vmaxuw): New.
5660         (vec_vmaxsw): New.
5661         (vec_vmaxsw): New.
5662         (vec_vmaxfp): New.
5663         (vec_vmrghb): New.
5664         (vec_vmrghh): New.
5665         (vec_vmrghw): New.
5666         (vec_vmrglb): New.
5667         (vec_vmrglh): New.
5668         (vec_vmrglw): New.
5669         (vec_vminub): New.
5670         (vec_vminsb): New.
5671         (vec_vminuh): New.
5672         (vec_vminsh): New.
5673         (vec_vminuw): New.
5674         (vec_vminsw): New.
5675         (vec_vminfp): New.
5676         (vec_vmladduhm): New.
5677         (vec_vmhraddshs): New.
5678         (vec_msumubm): New.
5679         (vec_vmsummbm): New.
5680         (vec_vmsumuhm): New.
5681         (vec_vmsumshm): New.
5682         (vec_vmsumuhs): New.
5683         (vec_vmsumshs): New.
5684         (vec_vmuleub): New.
5685         (vec_vmulesb): New.
5686         (vec_vmuleuh): New.
5687         (vec_vmulesh): New.
5688         (vec_vmuloub): New.
5689         (vec_mulosb): New.
5690         (vec_vmulouh): New.
5691         (vec_vmulosh): New.
5692         (vec_vnmsubfp): New.
5693         (vec_vnor): New.
5694         (vec_vor): New.
5695         (vec_vpkuhum): New.
5696         (vec_vpkuwum): New.
5697         (vec_vpkpx): New.
5698         (vec_vpkuhus): New.
5699         (vec_vpkshss): New.
5700         (vec_vpkuwus): New.
5701         (vec_vpkswss): New.
5702         (vec_vpkshus): New.
5703         (vec_vpkswus): New.
5704         (vec_vperm): New.
5705         (vec_vrefp): New.
5706         (vec_vrlb): New.
5707         (vec_vrlh): New.
5708         (vec_vrlw): New.
5709         (vec_vrfin): New.
5710         (vec_vrsqrtefp): New.
5711         (vec_vsel): New.
5712         (vec_vslb): New.
5713         (vec_vslh): New.
5714         (vec_vslw): New.
5715         (vec_vsldoi): New.
5716         (vec_vsl): New.
5717         (vec_vslo): New.
5718         (vec_vspltb): New.
5719         (vec_vsplth): New.
5720         (vec_vspltw): New.
5721         (vec_vspltisb): New.
5722         (vec_vspltish): New.
5723         (vec_vspltisw): New.
5724         (vec_vsrb): New.
5725         (vec_vsrh): New.
5726         (vec_vsrw): New.
5727         (vec_vsrab): New.
5728         (vec_vsrah): New.
5729         (vec_vsraw): New.
5730         (vec_vsr): New.
5731         (vec_vsro): New.
5732         (vec_stvx): New.
5733         (vec_stvebx): New.
5734         (vec_stvehx): New.
5735         (vec_stvewx): New.
5736         (vec_stvxl): New.
5737         (vec_vsububm): New.
5738         (vec_vsubuhm): New.
5739         (vec_vsubuwm): New.
5740         (vec_vsubfp): New.
5741         (vec_vsubcuw): New.
5742         (vec_vsububs): New.
5743         (vec_vsubsbs): New.
5744         (vec_vsubuhs): New.
5745         (vec_vsubshs): New.
5746         (vec_vsubuws): New.
5747         (vec_vsubsws): New.
5748         (vec_vsum4ubs): New.
5749         (vec_vsum4sbs): New.
5750         (vec_vsum4shs): New.
5751         (vec_vsum2sws): New.
5752         (vec_vsumsws): New.
5753         (vec_vrfiz): New.
5754         (vec_vupkhsb): New.
5755         (vec_vupkhpx): New.
5756         (vec_vupkhsh): New.
5757         (vec_vupklsb): New.
5758         (vec_vupklpx): New.
5759         (vec_vupklsh): New.
5760         (vec_vxor): New.
5761
5762 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
5763
5764         PR c/5430
5765         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5766         added literals from substracted literals.
5767         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5768         (fold) [associate]: Preserve MINUS_EXPR if needed.
5769
5770 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
5771
5772         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5773         are obsoleted.
5774
5775 2002-04-23  Tom Tromey  <tromey@redhat.com>
5776
5777         * gcc.c: Added --resource.  For PR java/6314.
5778
5779 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
5780
5781         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5782         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5783         these libraries.
5784
5785 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
5786
5787         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5788
5789 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5790
5791         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5792         workaround.
5793         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5794         (ix86_expand_clrstr): Fix typo.
5795         * loop.c (gen_load_of_final_value): New.
5796         (loop_givs_rescan, strength_reduce, check_dbra_loop):
5797         Use it.
5798
5799 2002-04-23  Roger Sayle  <roger@eyesopen.com>
5800
5801         * builtins.c (builtin_memset_gen_str): New function.
5802         (expand_builtin_memset): Optimize the case of constant length, but
5803         unknown value.
5804
5805 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
5806
5807         * config/rs6000/altivec.h (vec_step): Remove extraneous
5808         parentheses.
5809         (vec_ctu): Cast return.
5810
5811 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
5812
5813         PR target/6413
5814         * function.h: (struct function): Add profile_label_no field.
5815         (current_function_profile_label_no): Define.
5816         * function.c: (profile_label_no): New static var.
5817         (expand_function_start): Increment it, and copy to
5818         current_function_profile_label_no.
5819         * output.h (profile_label_no): Delete.
5820         * final.c (profile_label_no): Delete.
5821         (profile_function): Use current_function_profile_label_no.
5822         (final_end_function): Don't increment profile_label_no here.
5823         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5824         profile_label_no with current_function_profile_label_no.
5825         * config/pa/pa.c (current_function_number): Delete.
5826         (pa_output_function_prologue): Don't output profile label here.
5827         (hppa_profile_hook): Use label_no param rather than
5828         current_function_number.
5829         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5830         * config/pa/pa.h: .. here.
5831         (FUNCTION_PROFILER): Output profile label here.
5832
5833 2002-04-22  Eric Christopher  <echristo@redhat.com>
5834
5835         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5836         patch of 2002-04-09 due to binutils issues.
5837         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5838
5839 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
5840
5841         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5842         constraint to 'o' for m=r and r=m alternatives.
5843         ("*movv8hi_internal1"): Same.
5844         ("*movv16qi_internal1"): Same.
5845         ("*movv4sf_internal1"): Same.
5846
5847 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
5848
5849         * rtl.h (RTX_FLAG): New macro.
5850         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5851         * final.c (alter_subreg): Use macro to access rtx flag.
5852         * integrate.c (copy_rtx_and_substitute): Use new access macro.
5853         * print-rtl.c (print_rtx): Use new access macro.
5854
5855         * cse.c (insert): Check rtx code before accessing flag.
5856
5857         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5858         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5859         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5860         convert_const_symbol_ref, make_canonical, make_alternative_compare,
5861         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5862         simplify_test_exp, optimize_attrs, simplify_by_exploding,
5863         find_and_mark_used_attributes, unmark_used_attributes,
5864         add_values_to_cover, simplify_with_current_value,
5865         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5866         copy_rtx_unchanging, main): Use new access macros.
5867
5868 2002-04-22  Tom Rix  <trix@redhat.com>
5869
5870         * expmed.c (init_expmed): Generate shifted constant once.
5871
5872 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
5873
5874         * c-lex.c (lex_charconst): Call convert to get constant in
5875         proper type; don't just smash the type field.
5876         Fixes PR c/6300.
5877
5878         * config.gcc: Add list of obsolete configurations.  Disallow
5879         building these without --enable-obsolete.
5880         * doc/install.texi: Document --enable-obsolete and obsoletion
5881         policy.  Mention obsoletion of individual targets in
5882         appropriate places.
5883
5884 2002-04-22  Richard Henderson  <rth@redhat.com>
5885
5886         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5887
5888 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
5889
5890         PR f/6138.
5891         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5892         (walk_fixup_memory_subreg): Likewise.
5893         (fixup_var_refs_insn): Adjust accordingly.
5894         (fixup_var_refs_1): Likewise.
5895
5896 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
5897
5898         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5899         LIBPATH_ARCH64_SPEC): Define.
5900         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5901         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5902         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5903         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5904
5905 2002-04-22      Joel Sherrill <joel@OARcorp.com>
5906
5907         * gthr-rtems.h: Correct prototypes to remove warnings.
5908
5909 2002-04-22  Richard Henderson  <rth@redhat.com>
5910
5911         PR c/6344
5912         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5913
5914         * gcse.c (free_insn_expr_list_list): New.
5915         (clear_modify_mem_tables): Use it.  Fix bit set usage.
5916         (canon_list_insert): Use EXPR_LISTs for expressions.
5917         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5918
5919 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5920
5921         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
5922         file change and include code to _cpp_pop_buffer.
5923         * cpphash.h (struct pending_option): Predeclare.
5924         (struct cpp_reader): New member next_include_file.
5925         (_cpp_pop_file_buffer): Update.
5926         (_cpp_push_next_buffer): Update, rename.
5927         * cppinit.c (cpp_destroy): Free include chain and pending here.
5928         (cpp_finish_options): Simplify.
5929         (_cpp_push_next_buffer): Rename and clean up.
5930         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5931         Clarify.
5932         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5933
5934 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
5935
5936         * config/rs6000/altivec.h (vec_xor): Add variant for both args
5937         being vector signed int.
5938         (vec_andc): Same.
5939         (vec_xor): Add variant for both args being vector signed char.
5940         Remove redundant variant.
5941         (vec_andc): Same.
5942
5943 2002-04-21  David S. Miller  <davem@redhat.com>
5944
5945         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
5946         compare mode in output RTL.
5947
5948 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
5949
5950         * config/rs6000/rs6000.c (rs6000_override_options): Correct
5951         style and formatting of previous patch.
5952
5953 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
5954
5955         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
5956         flag_pic for ABI_AIX.
5957
5958 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5959
5960         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
5961         * cppfiles.c (read_include_file): Similarly.
5962         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
5963         uxstrdup ustrchr, ufputs): Similarly.
5964         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
5965         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
5966         cpp_ideq, parse_identifier, parse_number): Similarly.
5967         * cpplib.c (struct directive, dequote_string, D, run_directive,
5968         cpp_push_buffer): Similarly.
5969         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
5970         _cpp_create_definition, check_trad_stringification,
5971         cpp_macro_definition): Similarly.
5972
5973 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5974
5975         * cppmacro.c (funlike_invocation_p): Don't step back
5976         over CPP_EOF.
5977
5978 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
5979
5980         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
5981         labelno.
5982
5983 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5984
5985         * doc/invoke.texi: Remove Chill references.
5986         * doc/gcc.texi: Update last modified date.
5987
5988 2002-04-20  Kazu Hirata  <kazu@hxi.com>
5989
5990         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
5991         push and pop.  Replace add.l with add.w.
5992
5993 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5994
5995         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
5996         multiply instructions for H8/300H case.
5997
5998 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5999
6000         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6001         Bum three instructions from each routine.
6002
6003 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6004
6005         * Makefile.in: Update.
6006         * decl.c (push_c_function_context, pop_c_function_context,
6007         mark_c_function_context): Rename for consistency.
6008         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6009         * c-tree.h (push_c_function_context, pop_c_function_context,
6010         mark_c_function_context): Rename for consistency.
6011         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6012         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6013         * function.c (init_lang_status, save_lang_status,
6014         restore_lang_status, mark_lang_status, free_lang_status):
6015         Move to langhooks.h.
6016         (push_function_context_to, pop_function_context_from,
6017         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6018         Update.
6019         * function.h (init_lang_status, save_lang_status,
6020         restore_lang_status, mark_lang_status, free_lang_status):
6021         Move to langhooks.h.
6022         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6023         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6024         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6025         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6026         (LANG_HOOKS_INITIALIZER): Update.
6027         (lhd_do_nothing_f): New.
6028         * langhooks.h (struct lang_hooks_for_functions): New.
6029         (struct lang_hooks): New hooks.
6030         * langhooks.c (lhd_do_nothing_f): New.
6031 objc:
6032         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6033         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6034
6035 2002-04-19  David S. Miller  <davem@redhat.com>
6036
6037         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6038         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6039
6040 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6041
6042         PR optimization/3756
6043         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6044         x = ((int) y < 0) ? cst1 : cst2.
6045
6046 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6047
6048         PR c/6358
6049         * function.c: Reapply patch for c/6358.
6050         (expand_function_end): Copy decl_rtl's mode, not
6051         current_function_return_rtx mode.
6052
6053 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6054
6055         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6056         targets.
6057
6058 2002-04-19  Tom Tromey  <tromey@redhat.com>
6059
6060         * doc/install.texi (Specific): Update status of Solaris 2.8.
6061         For PR libgcj/6158.
6062
6063 2002-04-19  Andreas Schwab  <schwab@suse.de>
6064
6065         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6066         (PUT_REAL): Restore old definition.
6067
6068 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6069             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6070
6071         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6072         binutils 2.11.2 and higher generate smaller binaries than Sun's
6073         native tools.
6074
6075 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6076
6077         PR c++/6352
6078         * toplev.c (rest_of_compilation): Do not defer functions for which
6079         TREE_SYMBOL_REFERENCED has already been set.
6080
6081 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6082
6083         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6084         alternative.
6085
6086 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6087
6088         * builtins.c: Include langhooks.h.
6089         (lang_type_promotes_to): Remove.
6090         (expand_builtin_va_arg): Use new hook.
6091         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6092         (simple_type_promotes_to): Move to c-typeck.c.
6093         * c-common.h (simple_type_promotes_to): Remove.
6094         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6095         * c-format.c: Include langhooks.h.
6096         (check_format_types): Update.
6097         * c-tree.h (c_type_promotes_to): New.
6098         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6099         (type_lists_compatible_p): Update.
6100         * langhooks-def.h (lhd_type_promotes_to): New.
6101         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6102         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6103         * langhooks.c (lhd_type_promotes_to): New.
6104         * langhooks.h (struct lang_hooks_for_types): New hook.
6105         * tree.h (lang_type_promotes_to): Remove.
6106 objc:
6107         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6108
6109 2002-04-18  Richard Henderson  <rth@redhat.com>
6110
6111         * function.c: Revert patch for c/6358.
6112
6113 2002-04-18  Richard Henderson  <rth@redhat.com>
6114
6115         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6116         blocks.  Handle multiple references to the TRAP block.  Handle
6117         non-adjacent THEN and OTHER blocks.
6118
6119 2002-04-18  Richard Henderson  <rth@redhat.com>
6120
6121         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6122         crash with no type for by-mode libcalls.
6123
6124         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6125
6126 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6127
6128         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6129         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6130         the register windows.
6131
6132 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6133
6134         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6135         appropriate.  Document need for extended precision even when
6136         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6137         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6138         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6139         instead of relying on later syntax error when REAL_WIDTH > 5.
6140         * real.c: Define NE based only on whether or not we have a
6141         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6142         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6143         define GET_REAL and PUT_REAL as simple memcpy operations; no
6144         need to byteswap or round.
6145         Use #error instead of #ifdef-ing out the entire file, for
6146         prompt error detection.
6147
6148         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6149
6150 2002-04-18  David S. Miller  <davem@redhat.com>
6151
6152         * config/sparc/sparc.h (BRANCH_COST): Define.
6153
6154         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6155         does it.
6156
6157 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6158
6159         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6160         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6161         propagate_block calls after relaxation loop using new variable
6162         stabilized_prop_flags.
6163
6164 2002-04-18  Richard Henderson  <rth@redhat.com>
6165
6166         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6167         (ia64_va_arg): Expect variable sized types by reference.
6168         * config/ia64/ia64-protos.h: Update.
6169         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6170         ia64_function_arg_pass_by_reference.
6171
6172 2002-04-18  Richard Henderson  <rth@redhat.com>
6173
6174         * ifcvt.c: Include except.h.
6175         (block_has_only_trap): Break out from find_cond_trap.
6176         (find_cond_trap): Use it.  Always delete the trap block.
6177         (merge_if_block): Allow then block null.  Be less simplistic about
6178         what insns can end a block.
6179         * Makefile.in (ifcvt.o): Depend on except.h.
6180
6181         * config/ia64/ia64.md (trap, conditional_trap): New.
6182
6183 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6184
6185         PR c/6358
6186         * function.c (assign_parms): Assign hard current_function_return_rtx
6187         register here...
6188         (expand_function_end): ...not here.
6189
6190 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6191
6192         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6193         * c-tree.h (c_incomplete_type_error): New.
6194         * c-typeck.c (require_complete_type, build_component_ref): Update.
6195         (incomplete_type_error): Rename.
6196         * langhooks-def.h (lhd_incomplete_type_error): New.
6197         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6198         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6199         * langhooks.c (lhd_incomplete_type_error): New.
6200         * langhooks.h (struct lang_hooks_for_types): New hook.
6201         * tree.c (size_in_bytes): Use new hook.
6202         * tree.h (incomplete_type_error): Remove.
6203 objc:
6204         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6205
6206 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6207
6208         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6209         TARGET_FLOAT_FORMAT blocks.
6210
6211 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6212
6213         * doc/install.texi (Downloading the source): Do not mention Chill
6214         any longer, but mention Ada.
6215         (Configuration): Do not mention Chill any longer.
6216
6217 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6218
6219         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6220
6221 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6222
6223         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6224         in last patch.
6225
6226 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6227
6228         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6229         instead of unsigned_type.
6230
6231 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6232
6233         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6234         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6235         later.
6236
6237 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6238
6239         * attribs.c (vector_type_node_list): New static variable.
6240         (handle_vector_size_attribute): Use it to avoid generating a
6241         new type node each time we are called.
6242
6243         * combine.c (subst): Avoid trying to make a vector mode subreg of
6244         an integer constant.
6245         (gen_lowpart_for_combine): Likewise.
6246
6247 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6248             Jakub Jelinek  <jakub@redhat.com>
6249
6250         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6251         for integer constant c (if x has unsigned type or sign bit is not
6252         set in c).  This folds the zero/sign extension into the bit-wise and
6253         operation.
6254
6255 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6256
6257         PR middle-end/6205
6258         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6259         otherwise xorps.
6260
6261 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6262
6263         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6264
6265 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6266
6267         * gcc.c (read_specs): Detect and fail if an attempt is made to
6268         rename a spec string to an already existing string.
6269
6270 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6271
6272         * config/s390/s390.c (legitimize_pic_address): Do not generate
6273         illegal address constant without CONST.
6274
6275 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6276
6277         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6278         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6279
6280 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6281
6282         PR optimization/6305
6283         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6284         to make sure previous reloads are taken into account.  Generate
6285         better code if one operand is an in-range immediate constant.
6286
6287 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6288
6289         * doc/install.texi (Building): libgcj requires GNU make.
6290
6291 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6292
6293         PR bootstrap/6315
6294         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6295         even if hard quad and register is not floating.
6296         (movtf reg<-mem split): Disallow splitting if hard quad and
6297         register is floating.
6298         (movtf mem<-reg split): Likewise.
6299         * config/sparc/sparc.c (fp_register_operand): New predicate.
6300         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6301
6302 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6303
6304         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6305         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6306         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6307         UNPROTOIZE on command line.
6308         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6309         (in_system_include_dir): Use cpp_include_defaults (defined in
6310         cppdefault.o).
6311         * unprotoize.c: Delete file.
6312
6313 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6314
6315         * config/rs6000/altivec.h (vec_ld): Add array variants.
6316         (vec_lde): Same.
6317         (vec_ldl): Same.
6318
6319 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6320             Aldy Hernandez <aldyh@redhat.com>
6321
6322         * config/rs6000/altivec.h: Define __ALTIVEC__.
6323         (bool): New.
6324         (__pixel): New.
6325         (pixel): New.
6326         (vec_cfux): New.
6327         (vec_vmaddfp): New.
6328         (vec_vsldoi): New.
6329         Add parentheses to all macro arguments.
6330
6331 2002-04-16  Richard Henderson  <rth@redhat.com>
6332
6333         PR c++/6320
6334         * except.c (remove_eh_handler): Insert inner regions at beginning
6335         of sibling chain.  Refactor expressions.
6336
6337 2002-04-16  Richard Henderson  <rth@redhat.com>
6338
6339         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6340         * config/sparc/sol2-gas-bi.h: New file.
6341         * config.gcc (sparc*-solaris): Add it as needed.
6342         * configure.in (AS_SPARC64_FLAG): Remove check.
6343         * config.in, configure: Regenerate.
6344
6345         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6346
6347 2002-04-16  Richard Henderson  <rth@redhat.com>
6348
6349         * config/mips/mips.c (override_options): Don't override N32 for
6350         a 64-bit ISA.
6351
6352         PR 6202
6353         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6354         (HILO_delay): Set can_delay false.
6355
6356 2002-04-16  Dale Johannesen <dalej@apple.com>
6357
6358         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6359         instruction addresses.
6360         (rs6000_output_function_epilogue): Likewise.
6361
6362 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6363
6364         * c-parse.in (poplevel, compstmt_start,
6365         compstmt_primary_start): Add ending ';', in accordance
6366         with POSIX.
6367
6368 2002-04-16  Richard Henderson  <rth@redhat.com>
6369
6370         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6371         Adjust tm_file order to get TARGET_DEFAULT set properly.
6372         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6373         * doc/install.texi (sparc-solaris): Update.
6374
6375 2002-04-16  Dale Johannesen <dalej@apple.com>
6376
6377         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6378         comparison operands do not match each other or if modes of
6379         conditions do not match result.
6380
6381 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6382
6383         PR target/6305
6384         * config/s390/s390.md (mulsidi3): Set both subregs of the
6385         multiword register.
6386
6387 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6388
6389         * config/rs6000/altivec.h (vec_addc): Type check.
6390
6391 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6392
6393         PR middle-end/6279
6394         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6395
6396         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6397
6398 2002-04-15  Richard Henderson  <rth@redhat.com>
6399
6400         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6401         call_really_used_regs too.
6402
6403 2002-04-15  Richard Henderson  <rth@redhat.com>
6404
6405         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6406
6407 2002-04-15  David S. Miller  <davem@redhat.com>
6408
6409         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6410         as being CLOBBERed.
6411
6412 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6413
6414         PR c/6290
6415         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6416         CONST_VECTOR is { 0, ... 0 }.
6417
6418 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6419
6420         * doc/install.texi (Installing GCC: Configuration): Clarify
6421         the only supported ways to configure gcc.
6422
6423 2002-04-15  Roland McGrath  <roland@frob.com>
6424
6425         * config.gcc (alpha*-*-gnu*): New target configuration.
6426         * config/alpha/gnu.h: New file for it.
6427         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6428
6429 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6430
6431         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6432         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6433         * tree.h (expand_start_stmt_expr): Update prototype.
6434         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6435         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6436         on the STMT_EXPR created for the inline function.
6437
6438 2002-04-15  Richard Henderson  <rth@redhat.com>
6439
6440         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6441         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6442         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6443         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6444         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6445         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6446         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6447         Define __gnu_linux__, not gnu_linux.
6448         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6449
6450 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6451
6452         Remove Chill front end.
6453         * gcc.c (default_compilers): Remove Chill entries.
6454         * ch: Remove directory.
6455         * doc/frontends.texi: Remove information about Chill.
6456         * doc/sourcebuild.texi: Likewise.
6457         * doc/standards.texi: Likewise.
6458
6459 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6460
6461         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6462         (LONGLONG_STANDALONE): Define.
6463
6464 2002-04-15  David S. Miller  <davem@redhat.com>
6465
6466         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6467         Call emit_library_call with LCT_NORMAL.
6468         (sparc_initialize_trampoline): Use LCT_foo instead of
6469         magic constant in emit_library_call invocations.
6470         (sparc64_initialize_trampoline): Likewise.
6471         (sparc_profile_hook): Likewise.
6472         * config/sparc/sparc.md: Likewise.
6473
6474         * config/sparc/sparc.c (sparc_extra_constraint_check):
6475         Fix type of argument 'c'.
6476         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6477         Likewise.
6478
6479 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6480
6481         * diagnostic.h (output_buffer_state): Redefine.
6482         (output_format_decoder): New macro.
6483         (output_prefixing_rule): Likewise.
6484         (output_line_cutoff): Likewise.
6485         (diagnostic_format_decoder): Adjust.
6486         (diagnostic_prefixing_rule): Likewise.
6487         (diagnostic_line_cutoff): Likewise.
6488         (diagnostic_state): Likewise.
6489         (diagnostic_kind_count): Likewise.
6490         (diagnostic_buffer): Now a macro.
6491
6492         * diagnostic.c (diagnostic_buffer): Remove definition.
6493         (output_is_line_wrapping): Adjust.
6494         (set_real_maximum_length): Likewise.
6495         (output_set_maximum_length): Likewise.
6496         (init_output_buffer): Likewise.
6497         (lhd_print_error_function): Likewise.
6498         (output_do_verbatim): Likewise.
6499
6500 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6501
6502         * cpperror.c (print_location): Don't print include chain
6503         if line == 0.
6504         (cpp_begin_message): Update to use DL_ macros.
6505         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6506         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6507         cpp_notice, cpp_notice_from_errno): Remove.
6508         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6509         level.
6510         (cpp_errno): New.
6511         * cppexp.c (CPP_ICE): Remove.
6512         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6513         lex, integer_overflow, _cpp_parse_expr): Update.
6514         * cppfiles.c (read_include_file, find_include_file,
6515         handle_missing_header, _cpp_read_file, remap_filename): Update.
6516         * cpphash.h (enum error_type): Remove.
6517         (_cpp_begin_message): Update.
6518         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6519         cpp_handle_option, cpp_post_options): Update.
6520         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6521         skip_whitespace, parse_identifier, parse_slow, parse_string,
6522         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6523         cpp_interpret_charconst): Update.
6524         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6525         lex_macro_node, do_undef, glue_header_name, parse_include,
6526         do_include_common, read_flag, do_line, do_linemarker, do_ident,
6527         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6528         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6529         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6530         _cpp_pop_buffer, do_diagnostic): Update.
6531         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6532         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6533         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6534         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6535         cpp_notice, cpp_notice_from_errno): Remove.
6536         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6537         level.
6538         (cpp_errno): New.
6539         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6540         collect_args, enter_macro_context, save_parameter, parse_params,
6541         _cpp_create_definition, check_trad_stringification,
6542         cpp_macro_definition): Update.
6543         * cppmain.c (cpp_preprocess_file): Update.
6544         * fix-header.c (read_scan_file): Update.
6545
6546 2002-04-14  Andreas Schwab  <schwab@suse.de>
6547
6548         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6549
6550 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6551
6552         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6553
6554 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6555
6556         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6557         not gnu_hurd.
6558
6559 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
6560
6561         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6562
6563 2002-04-13      Joel Sherrill <joel@OARcorp.com>
6564
6565         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
6566         sparc-elf and sparc-rtems targets.
6567
6568 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6569
6570         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6571         defined, and __gnu_hurd__ wherever __GNU__ is defined.
6572         * arm/linux-elf.h: Likewise.
6573         * cris/aout.h: Likewise.
6574         * cris/linux.h: Likewise.
6575         * i370/linux.h: Likewise.
6576         * i386/gnu.h: Likewise.
6577         * i386/linux-aout.h: Likewise.
6578         * i386/linux-oldld.h: Likewise.
6579         * i386/linux.h: Likewise.
6580         * i386/linux64.h: Likewise.
6581         * ia64/linux.h: Likewise.
6582         * m68k/linux-aout.h: Likewise.
6583         * m68k/linux.h: Likewise.
6584         * mips/linux.h: Likewise.
6585         * pa/pa-linux.h: Likewise.
6586         * pj/linux.h: Likewise.
6587         * rs6000/sysv4.h: Likewise.
6588         * s390/linux.h: Likewise.
6589         * sh/linux.h: Likewise.
6590         * sparc/linux-aout.h: Likewise.
6591         * sparc/linux.h: Likewise.
6592         * sparc/linux64.h: Likewise.
6593         * xtensa/linux.h: Likewise.
6594
6595 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
6596
6597         * stmt.c (check_unique_operand_names): Expect operand names to
6598         be strings rather than identifiers.  Use simple_cst_equal to
6599         compare them.
6600         (resolve_operand_name_1): Make same identifier to string change here.
6601         * c-parse.in (asm_operand): Convert a named operand into a string.
6602         * cp/parse.y (asm_operand): Likewise.
6603
6604 2002-04-13  Andreas Schwab  <schwab@suse.de>
6605
6606         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6607
6608 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
6609
6610         Revert these changes:
6611
6612         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
6613
6614         PR c++/5571
6615         * stor-layout.c (layout_decl): Reset the RTL for the decl.
6616
6617 2002-04-12  Richard Henderson  <rth@redhat.com>
6618
6619         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6620         (sparc*-*-solaris): Clean up header files.
6621         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6622         and plan on generating 64-bit code.
6623         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6624         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6625         * config/sparc/sol2-sld-64.h: Rename ...
6626         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
6627         for AS_SPARC64_FLAG not defined.
6628         * config/sparc/sol2-gld-bi.h: New.
6629         * config/sparc/sol2-sld.h: Remove.
6630         * config/sparc/sol26-sld.h: New.
6631         * config/sparc/sol2.h: Tidy comments.
6632         * doc/install.texi: Document sparc-solaris configury changes.
6633
6634 2002-04-12  Richard Henderson  <rth@redhat.com>
6635
6636         * recog.c (offsettable_address_p): Match the logic in adjust_address.
6637
6638         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6639         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
6640
6641 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6642
6643         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6644
6645 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
6646
6647         * pa.c (pa_can_combine_p): Call extract_insn before calling
6648         constrain_operands.
6649
6650 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
6651
6652         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6653         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6654         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6655         (CPP_PREDEFINES): Handle __declspec.
6656         * config/i386/t-interix (USER_H): Remove.
6657
6658 2002-04-12  DJ Delorie  <dj@redhat.com>
6659
6660         * integrate.c (compare_blocks): Make comparisons safe for when
6661         sizeof(int) < sizeof(char *).
6662         (find_block): Likewise.
6663
6664 2002-04-12  Jan Hubicka  <jh@suse.cz>
6665             David Edelsohn  <edelsohn@gnu.org>
6666
6667         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6668         registers.
6669         (symbol_ref_operand): New.
6670         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6671         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6672
6673 2002-04-12  Andreas Schwab  <schwab@suse.de>
6674
6675         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6676         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6677         overrides the definition in config/svr4.h.
6678
6679 2002-04-12      Eric Norum <eric.norum@usask.ca>
6680
6681         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6682         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6683         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6684         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6685         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6686         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6687         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6688         definitions to config/rtems.h and make the targets more similar.
6689
6690 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6691
6692         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6693         POINTERS_EXTEND_UNSIGNED.
6694         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6695         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6696
6697         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6698         not specified.
6699
6700 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
6701
6702         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6703         depends on TARGET_SHMEDIA, not TARGET_SH5.
6704
6705 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
6706
6707         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6708         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6709
6710 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
6711
6712         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6713         no r0 clobber.
6714
6715 2002-04-12  Andreas Schwab  <schwab@suse.de>
6716
6717         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6718
6719 2002-04-12  Richard Henderson  <rth@redhat.com>
6720
6721         PR bootstrap/4191
6722         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6723
6724         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6725         modes spanning multiple hard regs.
6726
6727         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6728
6729 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6730
6731         * pa.c (pa_output_function_prologue): Don't accumulate the total
6732         number of code bytes when using TARGET_64BIT, or gas, SOM and not
6733         the portable runtime.
6734         (output_deferred_plabels): Handle 64bit plabels.
6735         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6736         generating pic code using the GAS assembler for object formats that
6737         are not SOM (ie., ELF32 and ELF64).
6738         (output_millicode_call): Check attribute type if attribute length is 28.
6739         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
6740         dbr_sequence_length once.
6741         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6742         dbr_sequence_length once.
6743         * pa.h (TARGET_SOM): Define if not defined.
6744         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6745         with GAS and not SOM.
6746         (jump, call_internal_reg, call_value_internal_reg): Likewise.
6747         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
6748
6749 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6750
6751         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6752         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6753         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6754         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6755         elfos.h and dbxelf.h values are fine now.
6756         * config/i386/freebsd.h, config/alpha/freebsd.h
6757         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6758
6759 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6760
6761         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6762         or set Acpu or Amachine.  Reformat.
6763         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6764         define.
6765         (LINK_SPEC): Do not need to undef.
6766         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6767         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6768         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6769         define.
6770         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6771         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6772         (LINK_SPEC): Do not need to undef.
6773         (DONT_USE_BUILTIN_SETJMP): Do not define.
6774         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6775         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
6776         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6777         Remove trailing spaces.
6778         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6779         __ELF__, or set Acpu or Amachine.  Reformat.
6780         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6781         define.
6782
6783 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6784
6785         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6786         all other *-*-freebsd* targets.
6787
6788 2002-04-11  Richard Henderson  <rth@redhat.com>
6789
6790         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6791
6792 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6793
6794         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6795         Include {cpu}/{cpu}.h thru tm_file.
6796         (alpha*-*-linux*ecoff): Remove target.
6797         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6798         (LINK_SPEC): Remove, is not OS independent.
6799         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6800         (LINK_SPEC): Do not need to #undef any longer.
6801         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6802         any longer.
6803         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6804         __ELF__.
6805         (LINK_SPEC): Moved here from alpha/elf.h.
6806         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6807         SUB_CPP_PREDEFINES.
6808         * config/alpha/linux-ecoff.h: Remove.
6809         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6810         (CPP_SPEC): Define _POSIX_SOURCE as needed.
6811         (CPP_SUBTARGET_SPEC): Do not define.
6812         (LINK_SPEC): Do not need to #undef any longer.
6813         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6814         * config/alpha/vms.h: Likewise.
6815
6816 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
6817
6818         * doc/extend.texi: Remove old claim that typedefs cannot have
6819         an alignment attribute.
6820
6821 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6822
6823         PR optimization/6177
6824         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6825         bitpos is 0 and bitsize CONCAT size.
6826
6827 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6828
6829         PR c/6223
6830         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6831
6832 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
6833
6834         * config/alpha/freebsd.h: Minor reformatting.
6835         (CPP_SPEC): Define ELF and add cpp_subtarget.
6836         (ASM_SPEC): No longer needed.
6837
6838 2002-04-11  Richard Henderson  <rth@redhat.com>
6839
6840         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6841         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
6842         (dimode mem/zero splitter): New.
6843
6844 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
6845
6846         * config/cris/cris.c (cris_override_options): Tweak error message
6847         for PIC not implemented.
6848
6849         * config/cris/cris.h: Tweak comments related to parameter-passing.
6850
6851         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6852
6853 2002-04-10  Richard Henderson  <rth@redhat.com>
6854
6855         * except.c (add_ehl_entry): Allow duplicates after landing pad
6856         creation.
6857
6858 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
6859
6860         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6861
6862 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
6863
6864         * c-decl.c (c_init_decl_processing): Move generation of
6865         decls for g77_integer_type_node and friends from here ...
6866         * c-common.c (c_common_nodes_and_builtins): ... to here.
6867
6868 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
6869
6870         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6871         is only used as frame pointer when frame_pointer_needed is true.
6872
6873 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
6874
6875         PR target/817
6876         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6877         for the fact that the pool entry uses two words.
6878         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
6879         1k bytes.
6880         (movdf_soft_insn): Similarly.
6881         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6882         for the fact that the pool entry uses three words.
6883
6884 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
6885
6886         * config/mips/mips.c (mips_va_arg): When using the struct version
6887         of the EABI va_list, allow arguments in the register save area to
6888         take up less room than a stack argument.
6889
6890 2002-04-10  Richard Henderson  <rth@redhat.com>
6891
6892         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6893         if EXPAND_INITIALIZER.
6894
6895 2002-04-09  Richard Henderson  <rth@redhat.com>
6896
6897         * config/alpha/alpha.md (movdi_er_maybe_g): New.
6898         * config/alpha/alpha.c (alpha_expand_mov): Use it.
6899
6900 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
6901
6902         PR optimization/6233
6903         * rtlanal.c (pure_call_p): New function.
6904         * rtl.h (pure_call_p): Declare.
6905         * loop.c (prescan_loop): Use it to set has_nonconst_call.
6906         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6907
6908 2002-04-09  Eric Christopher  <echristo@redhat.com>
6909
6910         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6911         information to .comm directive.
6912
6913 2002-04-09  Richard Henderson  <rth@redhat.com>
6914
6915         PR c/5078
6916         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6917
6918 2002-04-09  Richard Henderson  <rth@redhat.com>
6919
6920         * basic-block.h (flow_delete_block_noexpunge): Declare.
6921         (expunge_block_nocompact): Declare.
6922         * cfg.c (expunge_block_nocompact): Split out from ...
6923         (expunge_block): ... here.
6924         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6925         (flow_delete_block_noexpunge): Split out from ...
6926         (flow_delete_block): ... here.
6927         * cfgcleanup.c (delete_unreachable_blocks): Compact while
6928         removing dead blocks.
6929         * except.c (exception_handler_labels): Remove.
6930         (exception_handler_label_map): New.
6931         (struct eh_region): Add aka member.
6932         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6933         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6934         (for_each_eh_label, for_each_eh_label_1): New.
6935         (init_eh): Register exception_handler_label_map.
6936         (free_eh_status): Use free_region.
6937         (find_exception_handler_labels): Use the map, not the list.
6938         (remove_exception_handler_label): Likewise.
6939         (maybe_remove_eh_handler): Likewise.
6940         (remove_eh_handler): Use the region aka bitmap.
6941         * except.h (exception_handler_labels): Remove.
6942         (for_each_eh_label): Declare.
6943         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
6944         * loop.c (invalidate_loops_containing_label): New.
6945         (find_and_verify_loops): Use it.  Use for_each_eh_label.
6946         * sched-rgn.c (is_cfg_nonregular): Use
6947         current_function_has_exception_handlers.
6948
6949 2002-04-09  Richard Henderson  <rth@redhat.com>
6950
6951         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
6952         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
6953         Do not return changed status.
6954         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
6955         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
6956         New functions that do return changed status.
6957         * sbitmap.h: Update decls.
6958         * gcse.c, lcm.c: Use _cg functions as needed.
6959
6960 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6961
6962         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
6963         (sh64-*-elf*, sh-*-rtemself*): Likewise.
6964         * config/sh/embed_bb.c: New file.
6965         * config/sh/embed-elf.h: New file.
6966         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
6967         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
6968         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6969         __PTRDIFF_TYPE__ .
6970         (SUBTARGET_CPP_PTR_SPEC): Don't define.
6971         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
6972         Add subtarget_asm_endian_spec.
6973         (ASM_SPEC): Use subtarget_asm_endian_spec.
6974         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
6975         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
6976         (WCHAR_UNSIGNED): Define.
6977         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
6978         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6979         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
6980         Fix value.
6981         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
6982         (sh_adjust_cost): Likewise.
6983         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6984         __PTRDIFF_TYPE__ .
6985         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
6986         (WCHAR_TYPE_SIZE): Likewise.
6987         (ASM_SPEC): Use subtarget_asm_endian_spec.
6988         (SH_ELF_WCHAR_TYPE): #undef/ #define.
6989         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
6990         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
6991         (MAX_WCHAR_TYPE_SIZE): Don't #define .
6992         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
6993         (USER_LABEL_PREFIX): Don't #undef /#define .
6994         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6995         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
6996         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
6997         (ASM_SPEC): Likewise.
6998         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
6999         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7000         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7001         (LIB2FUNCS_EXTRA): Define.
7002         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7003         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7004         (LIB1ASMFUNCS_CACHE): Define.
7005         (LIB2FUNCS_EXTRA): Redefine empty.
7006
7007 2002-04-08  Richard Henderson  <rth@redhat.com>
7008
7009         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7010
7011 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7012
7013         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7014         and optimize for size.
7015         (__do_global_ctors): Fix pointer comparison.
7016         (__do_global_dtors): Likewise.
7017
7018 2002-04-09  David S. Miller  <davem@redhat.com>
7019
7020         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7021         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7022         allow reloading pseudos.
7023         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7024         * config/sparc/sparc-protos.h: Declare it.
7025
7026         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7027         unsigned comparison warning.
7028         (output_restore_regs): Mark leaf_function as unused.
7029
7030 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7031
7032         * expr.c (is_aligning_offset): New function.
7033         (expand_expr, case COMPONENT_EXPR): Call it.
7034
7035 2002-04-08  David S. Miller  <davem@redhat.com>
7036
7037         PR target/6082
7038         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7039
7040         Make init_priority work on Sparc when using GNU ld.
7041         * config/sparc/linux.h, config/sparc/linux64.h,
7042         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7043         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7044         * config/sparc/sol2-gld.h: New file to do the same.
7045         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7046         sparc/sol2-gld.h to tm_file.
7047
7048         PR optimization/4328
7049         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7050         * doc/md.texi: Document it.
7051         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7052         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7053         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7054         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7055         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7056
7057 2002-04-08  Andreas Jaeger  <aj@suse.de>
7058
7059         * stmt.c (expand_asm_operands): Revert last patch from Richard
7060         Henderson.
7061
7062 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7063
7064         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7065         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7066
7067 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7068
7069         * doc/contrib.texi (Contributors): Add David O'Brien.
7070
7071 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7072
7073         * configure.in (auto-build.h): Use target_alias and build_alias
7074         when running configure.
7075         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7076         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7077         * configure: Regenerate.
7078
7079 2002-04-07  David S. Miller  <davem@redhat.com>
7080
7081         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7082
7083 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7084
7085         PR 5933
7086         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7087         generating 32-bit pic code.
7088
7089 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7090
7091         * cppinit.c (cpp_create_reader): Initialize
7092         discard_comments_in_macro_exp.
7093         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7094         (cpp_handle_option): Handle "-CC" option.
7095         * cpplex.c (save_comment): If saving a C++ comment in
7096         a directive, convert it to a C comment.
7097         (_cpp_lex_direct): Pass second comment start character to
7098         save_comment to indicate comment type.
7099         * cpplib.c (_cpp_handle_directive): If processing
7100         a "#define" directive and discard_comments_in_macro_exp
7101         is false,  re-enable saving of comments.
7102         (lex_macro_node): If discard_comments_in_macro_exp is false,
7103         discard any comments before the macro identifier.
7104         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7105         member.
7106         * cppmacro.c (cpp_get_token): If expanding a macro while
7107         processing a directive, discard any comments we might encounter.
7108         (parse_params): If discard_comments_in_macro_exp is false,
7109         ignore comments in the macro parameter list.
7110         * gcc.c (cpp_unique_options): Add "-CC" option.
7111         (option_map): Map "--comments-in-macros" to "-CC".
7112         * doc/cppopts.texi: Document "-CC" option.
7113         * f/lang-specs.h: Add "-CC" option.
7114         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7115         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7116         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7117         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7118         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7119         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7120
7121 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7122
7123         PR middle-end/6180
7124         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7125
7126 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7127
7128         PR c++/5571
7129         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7130
7131         PR opt/5120
7132         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7133         RTX_UNCHANGING_P for the functions arguments when a tail call
7134         is made.
7135
7136 2002-04-06  Jason Merrill  <jason@redhat.com>
7137
7138         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7139         (parse_options_and_default_flags): Set them appropriately.
7140         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7141
7142 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7143
7144         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7145         here.
7146
7147         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7148         semicolon.
7149
7150         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7151         types come in by-reference.  Fix typo in comment.
7152
7153 2002-04-05  David S. Miller  <davem@redhat.com>
7154
7155         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7156         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7157         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7158         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7159
7160 2002-04-05  David S. Miller  <davem@redhat.com>
7161
7162         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7163         are not going to emit return instructions, emit at least a nop
7164         for the sake of sane backtraces.
7165
7166 2002-04-05  Richard Henderson  <rth@redhat.com>
7167
7168         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7169
7170 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7171
7172         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7173
7174 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7175
7176         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7177         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7178         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7179
7180 2002-04-05  Andreas Schwab  <schwab@suse.de>
7181
7182         * c-convert.c: Include c-common.h.
7183         * Makefile.in (c-convert.o): Updated.
7184
7185 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7186
7187         * mklibgcc.in: Use separate libgcc.map for each multilib.
7188         * Makefile.in (distclean): Don't remove libgcc.map here.
7189
7190 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7191
7192         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7193         genmultilib invocation.
7194
7195 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7196
7197         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7198         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7199         to num_gprs for symmetry.
7200         * config/mips/mips.c: Adjust accordingly.
7201
7202 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7203
7204         * c-common.c (truthvalue_conversion): Rename, update.
7205         * c-common.h (c_common_truthvalue_conversion): New.
7206         * c-convert.c (convert): Update.
7207         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7208         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7209         * c-typeck.c (build_binary_op, build_unary_op,
7210         build_conditional_expr): Update.
7211         * fold-const.c (constant_boolean_node, fold): Use langhook.
7212         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7213         * langhooks.h (struct lang_hooks): New hook.
7214         * stmt.c (expand_decl_cleanup): Use langhook.
7215         * tree.h (truthvalue_conversion): Remove.
7216 objc:
7217         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7218
7219 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7220
7221         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7222         Add rules to make null object file.
7223
7224 2002-04-04  Jim Blandy  <jimb@redhat.com>
7225
7226         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7227         macro formal parameter names.
7228
7229 2002-04-04  David S. Miller  <davem@redhat.com>
7230
7231         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7232
7233 2002-04-04  Richard Henderson  <rth@redhat.com>
7234
7235         PR middle-end/5099
7236         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7237         Support copies into and out of memory.  Don't accept allows_reg
7238         and allows_mem as gospel.
7239
7240 2002-04-04  Richard Henderson  <rth@redhat.com>
7241
7242         PR opt/6165
7243         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7244         (write_dependence_p): Likewise.
7245
7246 2002-04-04  Richard Henderson  <rth@redhat.com>
7247
7248         * predict.c (estimate_bb_frequencies): Do frequency calculation
7249         with a volatile temporary.
7250
7251 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7252
7253         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7254
7255 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7256
7257         PR c++/6119
7258         * final.c (final_start_function): Don't bump profile_label_no here...
7259         (final_end_function): ...but here.
7260
7261 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7262
7263         * config/sparc/sparc.md (pic): New attribute.
7264         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7265         into stack slots.
7266         (split after do_builtin_setjmp_setup): New.
7267
7268 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7269
7270         PR fortran/6106
7271         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7272         change.
7273
7274 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7275
7276         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7277         UNITS_PER_WORD for zero sized aggregates.
7278
7279 2002-04-03  David S. Miller  <davem@redhat.com>
7280
7281         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7282         one-character spec for this, just use %(link_gcc_c_sequence).
7283
7284 2002-04-03  David S. Miller  <davem@redhat.com>
7285
7286         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7287         handling.
7288
7289 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7290
7291         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7292         (DWARF_FRAME_RETURN_COLUMN): Move.
7293         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7294         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7295         * pa.c (except.h, predict.h): Include.
7296         (FRP): Delete.
7297         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7298         (output_ascii): Add cast.
7299         (store_reg_modify): Revise to add frame notes.
7300         (set_reg_plus_d): Likewise.
7301         (compute_frame_size): Include space for eh data registers in frame if
7302         the current function calls eh_return.
7303         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7304         function calls eh_return.  Save eh data registers if the current
7305         function calls eh_return.  Fix code to add frame notes.  Emit
7306         blockage to prevent insns with frame notes being scheduled in the
7307         delay slot of calls.
7308         (hppa_expand_epilogue): Restore eh data registers and do final stack
7309         adjustment if the current function calls eh_return.  Don't add frame
7310         notes.
7311         (output_call): Revise for change in length of call insn.  Don't do
7312         return pointer adjustment for an unconditional jump in the delay slot
7313         of a call when using frame notes.
7314         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7315         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7316         (ARG_POINTER_CFA_OFFSET): Define.
7317         * pa.md (return_external_pic): New pattern.
7318         (prologue): Correct formatting.  Use return_external_pic if current
7319         function calls eh_return.
7320         (call_internal_symref, call_value_internal_symref,
7321         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7322         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7323         respectively.
7324         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7325
7326         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7327         list of targets to check using "nop" insn.
7328         * configure: Rebuilt.
7329
7330 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7331
7332         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7333
7334 2002-04-03  David S. Miller  <davem@redhat.com>
7335
7336         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7337         library sequence passed to the linker.
7338         (LINK_COMMAND_SPEC): Use it.
7339         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7340         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7341         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7342
7343 2002-04-03  Jason Merrill  <jason@redhat.com>
7344
7345         * except.c (struct eh_status): Remove protect_list.
7346         (begin_protect_partials, end_protect_partials): Remove.
7347         (add_partial_entry): Remove.
7348         * except.h: Remove prototypes.
7349
7350         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7351         expand_decl_cleanup_eh.
7352
7353         PR c++/5636
7354         * tree.h (CLEANUP_EH_ONLY): New macro.
7355         * stmt.c (expand_decl_cleanup_eh): New fn.
7356         (expand_cleanups): Check CLEANUP_EH_ONLY.
7357         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7358         Use expand_decl_cleanup_eh.
7359         (expand_stmt): Adjust.
7360         * c-common.h: Adjust prototype.
7361
7362 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7363
7364         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7365         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7366         (cris_target_asm_function_epilogue): Ditto.
7367         (cris_initial_frame_pointer_offset): Ditto.
7368         (cris_simple_epilogue): Ditto.
7369         (cris_expand_builtin_va_arg): Variable-size types come in
7370         by-reference.
7371
7372 2002-04-03  David S. Miller  <davem@redhat.com>
7373
7374         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7375         little-endian.
7376         (set_fast_math): Correct 'fsr' type.
7377
7378 2002-04-03  Richard Henderson  <rth@redhat.com>
7379
7380         PR opt/3569
7381         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7382         * toplev.c (check_global_declarations): Use it.
7383         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7384         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7385         (LANG_HOOKS_DECLS): Add it.
7386         * langhooks.c (lhd_warn_unused_global_decl): New.
7387         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7388         * c-objc-common.c (c_warn_unused_global_decl): New.
7389         * c-tree.h (c_warn_unused_global_decl): Declare.
7390         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7391
7392 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7393
7394         * langhooks-def.h (lhd_set_decl_assembler_name,
7395         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7396         (LANG_HOOKS_INITIALIZER): Update.
7397         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7398         * langhooks.h (struct lang_hooks): New hook.
7399         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7400         (lang_set_decl_assembler_name): Remove.
7401         (init_obstacks): Don't set hook.
7402         (decl_assembler_name): New function.
7403         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7404         (decl_assembler_name): New.
7405         (lang_set_decl_assembler_name): Remove.
7406
7407 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7408
7409         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7410         works properly with .hidden symbols.
7411         * configure: Rebuilt.
7412         * config.in: Rebuilt.
7413         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7414         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7415         properly with .hidden symbols.
7416
7417 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7418
7419         PR middle-end/6102
7420         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7421         USE argument.
7422
7423 2002-04-03  Richard Henderson  <rth@redhat.com>
7424
7425         PR opt/4120
7426         * sched-rgn.c (sets_likely_spilled): New.
7427         (sets_likely_spilled_1): New.
7428         (add_branch_dependences): Use it.
7429
7430 2002-04-02  Richard Henderson  <rth@redhat.com>
7431
7432         PR opt/4311
7433         * loop.h (LOOP_FIRST_PASS): New.
7434         * loop.c (strength_reduce): Mind it when deciding to unroll.
7435         * toplev.c (rest_of_compilation): Set it.
7436
7437 2002-04-02  David S. Miller  <davem@redhat.com>
7438
7439         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7440         mems_ok_for_ldd_peep when the order of the loads being examined
7441         is reversed.
7442         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7443         existing comment to increase comprehension of this situation.
7444
7445 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7446
7447         * config/sh/sh.md: Don't use union real_extract.
7448
7449 2002-04-02  Richard Henderson  <rth@redhat.com>
7450
7451         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7452
7453 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7454
7455         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7456         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7457         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7458         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7459         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7460         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7461         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7462         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7463         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7464         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7465         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7466         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7467         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7468         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7469         Include as many configury headers via tm_file as possible.  This
7470         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7471         * config/openbsd-oldgas.h: New file.
7472         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7473         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7474         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7475         config/i386/i386-coff.h, config/i386/i386-interix.h,
7476         config/i386/iscdbx.h, config/i386/linux-aout.h,
7477         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7478         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7479         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7480         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7481         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7482         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7483         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7484         config/i386/vxi386.h: Do not directly include configury headers.
7485         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7486         Directly include configury headers that are no longer automatically
7487         included by the above headers.
7488         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7489         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7490         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7491         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7492         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7493         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7494         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7495         (TARGET_VERSION): Define.
7496         * config/i386/beos-elf.h, config/i386/freebsd.h,
7497         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7498         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7499         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7500         config/i386/sco5.h, config/i386/sysv4.h
7501         (TARGET_VERSION): Do not need to protect.
7502         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7503         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7504         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7505         config/i386/i386-interix.h, config/i386/linux-aout.h,
7506         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7507         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7508         (YES_UNDERSCORES): Do not define - not needed.
7509         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7510         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7511         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7512         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7513         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7514         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7515         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7516         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7517
7518 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
7519             Richard Henderson  <rth@redhat.com>
7520
7521         PR c/5484
7522         * function.c (assign_temp): Accept either type or decl argument.
7523         Detect variables whose size is too large to fit into an integer.
7524         * stmt.c (expand_decl): Pass the decl, not the type.
7525
7526 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7527
7528         * protoize.c: Match include directory usage with cppdefault.c.
7529
7530 2002-04-03  Jeffrey A Law  (law@redhat.com)
7531             Hans-Peter Nilsson  <hp@bitrange.com>
7532
7533         * combine.c (simplify_comparison): Avoid narrowing a comparison
7534         with a paradoxical subreg when doing so would drop signficant bits.
7535
7536 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
7537
7538         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7539         if POINTERS_EXTEND_UNSIGNED is defined.
7540
7541 2002-04-02  Richard Henderson  <rth@redhat.com>
7542
7543         PR opt/3967
7544         * local-alloc.c (contains_replace_regs): LO_SUM may contain
7545         replace regs.
7546
7547 2002-04-02  Richard Henderson  <rth@redhat.com>
7548
7549         * doc/standards.texi: Document required freestanding libc entry points.
7550
7551 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
7552
7553         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7554         associated splitter.  Remove MQ constraint.
7555         (ctrdi_internal4): Correct CCmode clobber.
7556
7557 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7558
7559         * milli64.S ($$dyncall): New function.
7560         * t-linux (LIB1ASMFUNCS): Revise module list.
7561         (LIB1ASMSRC): Use pa/milli64.S.
7562
7563 2002-04-02  Richard Henderson  <rth@redhat.com>
7564
7565         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7566         rename solaris_sys_varargs_h.
7567
7568 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7569
7570         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7571         the same mode as its component.
7572
7573 2002-04-02  Richard Henderson  <rth@redhat.com>
7574
7575         PR opt/190
7576         * final.c (this_is_asm_operands): Export.
7577         * output.h (this_is_asm_operands): Declare.
7578         * config/i386/i386.c (print_operand): Error odd asm operands.
7579
7580 2002-04-02  Richard Henderson  <rth@redhat.com>
7581
7582         PR opt/420
7583         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7584
7585 2002-04-01  Richard Henderson  <rth@redhat.com>
7586
7587         PR target/1538
7588         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7589         * fixinc/fixincl.x: Rebuild.
7590
7591 2002-04-01  Richard Henderson  <rth@redhat.com>
7592
7593         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7594         (atomic_alloc, atomic_free): New.
7595         (SIZE, MASK_FOR, PTR_IN): New.
7596         (emergency_reg_state, emergency_reg_state_free): New.
7597         (emergency_labeled_state, emergency_labeled_state_free): New.
7598         (reg_state_alloced, labeled_state_alloced): New.
7599         (alloc_reg_state, free_reg_state): New.
7600         (alloc_label_state, free_label_state, free_label_states): New.
7601         (push, pop, dup_state_stack, free_state_stack): Use them.
7602         (desc_label_state): Likewise.
7603         (uw_frame_state_for): Free label states and state stack.
7604         (uw_update_reg_address): Eliminate warnings.
7605
7606 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
7607
7608         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7609         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7610
7611 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7612
7613         * c-decl.c (grokdeclarator): Update.
7614         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7615         * c-tree.h (c_mark_addressable): New.
7616         * c-typeck.c (default_function_array_conversion, build_unary_op,
7617         build_array_ref, convert_for_assignment): Update.
7618         (mark_addressable): Rename.
7619         * calls.c (try_to_integrate, expand_call): Use langhook.
7620         * expr.c (expand_expr): Use langhook.
7621         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7622         * langhooks.h (struct lang_hooks): New hook.
7623         * stmt.c (expand_asm_operands): Use langhook.
7624         * tree.h (mark_addressable): Remove.
7625 objc:
7626         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7627
7628 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7629
7630         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7631         in previous change.
7632
7633 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7634
7635         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7636         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7637
7638 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7639
7640         * c-common.c (unsigned_conversion_warning, convert_and_check,
7641         unsigned_type, signed_type, shorten_compare,
7642         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7643         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7644         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7645         New.
7646         * c-decl.c (grokdeclarator): Update.
7647         * c-format.c (check_format_types): Update.
7648         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7649         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7650         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7651         * convert.c (convert_to_integer): Use new hooks.
7652         * expmed.c (make_tree): Use new hooks.
7653         * expr.c (store_expr): Use new hooks.
7654         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7655         all_ones_mask_p, unextend, fold): Use new hooks.
7656         * langhooks.h (struct lang_hooks_for_types): New hooks.
7657         * tree.h (signed_or_unsigned_type, signed_type,
7658         unsigned_type): Remove.
7659 objc:
7660         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7661         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7662
7663 2002-03-31  Richard Henderson  <rth@redhat.com>
7664
7665         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7666         (desc_frgr_mem): Fix reference to f16-f31.
7667
7668 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7669
7670         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7671         RTVEC_ELT): Const-ify.
7672         * varray.h (VARRAY_CHECK): Const-ify.
7673         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7674         ggc_mark_rtvec, ggc_mark): Const-ify.
7675
7676 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7677
7678         * diagnostic.c: Include langhooks-def.h.
7679         * Makefile.in (diagnostic.o): Update.
7680
7681 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7682
7683         * c-common.c (c_unsafe_for_reeval): Rename.
7684         * c-common.h (c_unsafe_for_reeval): Rename.
7685         * c-decl.c (finish_incomplete_decl): Rename.
7686         (c_init_decl_processing): Don't set langhook.
7687         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7688         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7689         * c-objc-common.c (c_objc_common_init): Don't set langhook.
7690         * c-tree.h (finish_incomplete_decl): Rename.
7691         * langhooks-def.h (lhd_unsafe_for_reeval): New.
7692         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7693         (LANG_HOOKS_INITIALIZER): Update.
7694         * langhooks.c (lhd_unsafe_For_reeval): New.
7695         * langhooks.h (struct langhooks): New hooks.
7696         * toplev.c (incomplete_decl_finalize_hook): Remove.
7697         (wrapup_global_declarations): Update.
7698         * tree.c (lang_unsafe_for_reeval): Remove.
7699         (unsafe_for_reeval): Update.
7700         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7701         Remove.
7702 objc:
7703         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7704         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7705
7706 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7707
7708         * diagnostic.c (print_error_function): Remove.
7709         (default_print_error_function): Rename.
7710         (report_error_function): Update.
7711         * diagnostic.h (print_error_function): Remove.
7712         (default_print_error_function): Remove.
7713         * langhooks-def.h (struct diagnostic_context): Predeclare.
7714         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7715         (LANG_HOOKS_INITIALIZER): Update.
7716         * langhooks.h (struct diagnostic context): Predeclare.
7717         (struct lang_hooks): New hook.
7718
7719 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7720
7721         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7722         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7723         !flag_pic.
7724         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7725         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7726         of PIC_OFFSET_TABLE_REGNUM thruout.
7727         * config/rs6000/rs6000.md: Likewise.
7728         * config/rs6000/darwin.h: Likewise.
7729
7730 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7731
7732         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7733         unsigned HOST_WIDE_INT, not unsigned int.
7734
7735 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7736
7737         PR middle-end/6096, middle-end/6098, middle-end/6099
7738         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7739         CODE_LABELs.
7740         (fill_slots_from_thread): Likewise.
7741
7742 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7743
7744         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7745         floating fields in float regs.
7746         (function_arg_record_value_2): Likewise.
7747
7748 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7749
7750         * config/mmix/mmix.md (define_constants): Remove misleading
7751         FIXME.  Add MMIX_fp_rO_OFFSET.
7752         ("nonlocal_goto_receiver"): Don't have stack-frame address of
7753         saved rO as part of the pattern.  Remove FIXME.
7754         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
7755         here, at output-time.
7756
7757 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7758
7759         PR middle-end/6100
7760         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7761         REG_BR_PRED.
7762         (output_v9branch): Likewise.
7763
7764 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
7765
7766         * gcc.c: Revert previous patch for now.
7767         * config/i386/djgpp.h: Likewise.
7768
7769 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7770
7771         * config/mmix/crti.asm (_init): Register _fini with atexit.
7772         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7773
7774 2002-03-31  Richard Henderson  <rth@redhat.com>
7775
7776         PR target/3997
7777         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7778         (ASM_OUTPUT_DEF_FROM_DECLS): New.
7779
7780 2002-03-31  Richard Henderson  <rth@redhat.com>
7781
7782         * libgcc2.c (__bb_exit_func): Make static.
7783
7784         * config/alpha/alpha.md (trap): New.
7785
7786 2002-03-31  Richard Henderson  <rth@redhat.com>
7787
7788         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7789         promoted argument types; build trap.
7790         (expand_builtin_trap): New.
7791         (expand_builtin): Use it.
7792         * stmt.c (expand_nl_goto_receivers): Likewise.
7793         * expr.h (expand_builtin_trap): Declare.
7794         * libfuncs.h (LTI_abort, abort_libfunc): New.
7795         * optabs.c (init_optabs): Init abort_libfunc.
7796
7797 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
7798
7799         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7800         (LINK_COMMAND_SPEC): ... from here.
7801         (init_gcc_specs): Duplicate it here too, omitting
7802         shared_name in the second copy.
7803         (init_spec): Test for duplicate
7804         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7805
7806 2002-03-30  David S. Miller  <davem@redhat.com>
7807
7808         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7809         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7810
7811 2002-03-30  Roger Sayle <roger@eyesopen.com>
7812             Richard Henderson  <rth@redhat.com>
7813
7814         * regmove.c (combine_stack_adjustments_for_block): Avoid
7815         emitting a stack adjustment of zero bytes.  Let delete_insn
7816         update bb->head.
7817
7818 2002-03-30  Richard Henderson  <rth@redhat.com>
7819
7820         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7821         (sparc_emitting_epilogue): New.
7822         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7823         * config/sparc/sparc-protos.h: Update.
7824         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7825         (TARGET_SWITCHES): Update.
7826         * config/sparc/sparc.md (return): Remove.
7827         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7828         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7829         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7830         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7831         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7832         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7833         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7834         Remove MASK_EPILOGUE.
7835         * doc/invoke.texi: Update.
7836
7837 2002-03-30  Daniel Berlin  <dan@dberlin.org>
7838
7839         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7840         CPP will start the file for us.
7841
7842 2002-03-30  Richard Henderson  <rth@redhat.com>
7843
7844         PR target/5446
7845         * config/ia64/ia64.c (group_barrier_needed_p): Special case
7846         prologue_allocate_stack.
7847         (ia64_single_set): Use insn codes for recognition of special
7848         cases, not rtl matching.
7849         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7850
7851 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
7852
7853         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7854
7855 2002-03-30  Richard Henderson  <rth@redhat.com>
7856
7857         PR target/6032
7858         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7859         or -fomit-frame-pointer with profiling.
7860         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7861         (FUNCTION_PROFILER): Do nothing.
7862         (PROFILE_HOOK): New.
7863         * config/sparc/sparc.c (sparc_override_options): Don't check
7864         code models for profiling.
7865         (sparc_function_profiler): Remove.
7866         (sparc_profile_hook): New.
7867         * config/sparc/sparc-protos.h: Update.
7868
7869 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7870
7871         PR optimization/6086
7872         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7873         of SUBREG of volatile MEM or because the MEM was mode dependent,
7874         return CLOBBER instead of unmodified SUBREG.
7875
7876 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7877
7878         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7879         when not optimizing.
7880
7881         * toplev.c (rest_of_compilation): Cann mark_constant_function
7882         only when optimizing.
7883
7884         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7885         are NULL.
7886
7887         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7888         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7889         (try_optimize_cfg): clear all AUX fields.
7890
7891         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7892         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7893         (ix86_address_cost): Be prepared for SUBREGed registers.
7894         (legitimate_address_p): Accept SUBREGed registers.
7895
7896 2002-03-29  Richard Henderson  <rth@redhat.com>
7897
7898         PR target/5672
7899         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7900
7901 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7902
7903         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7904         for aggregate and TFmode types.
7905
7906 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
7907
7908         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7909
7910 2002-03-29  Richard Henderson  <rth@redhat.com>
7911
7912         PR target/5886
7913         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7914         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7915
7916 2002-03-29  Richard Henderson  <rth@redhat.com>
7917
7918         PR target/6041
7919         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7920         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7921         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7922         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7923         conditional.
7924         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7925
7926 2002-03-29  Dale Johannesen <dalej@apple.com>
7927
7928         * loop.c (combine_movables): Do allow combination of pseudos.
7929
7930 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
7931
7932         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7933         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7934         No functional change except ...
7935         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
7936         * doc/install.texi (*-*-freebsd*): Document port configuration.
7937
7938 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7939
7940         * Makefile.in (convert.o, calls.o, expmed.o): Update.
7941         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
7942         Use new hooks.
7943         * builtin-types.def (BT_PTRMODE): Update.
7944         * c-common.c (type_for_size): Rename c_common_type_for_size.
7945         (type_for_mode): Similarly.
7946         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
7947         Use new hook.
7948         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
7949         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
7950         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
7951         Redefine.
7952         * c-typeck.c (common_type, comptypes, default_conversion):
7953         Use new hooks.
7954         * calls.c: Include langhooks.h.
7955         (emit_library_call_value_1): Use new hooks.  Avoid redundant
7956         calls.
7957         * convert.c: Include langhooks.h
7958         (convert_to_pointer, convert_to_integer): Use new hooks.
7959         * except.c (init_eh): Similarly.
7960         * expmed.c: Include langhooks.h.
7961         (expand_mult_add): Use new hooks.
7962         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
7963         try_casesi): Similarly.
7964         * fold-const.c (optimize_bit_field_compare, make_range,
7965         decode_field_reference, fold_truthop, fold): Similarly.
7966         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
7967         put_var_into_stack): Similarly.
7968         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
7969         LANG_HOOKS_TYPE_FOR_SIZE): New.
7970         (LANG_HOOKS_TYPES_INITIALIZER): Update.
7971         * langhooks.h (lang_hooks_for_types): New hooks.
7972         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
7973         * tree.c (get_unwidened, get_narrower): Similarly.
7974         * tree.h (type_for_mode, type_for_size): Remove.
7975         * varasm.c (force_const_mem): Use new hooks.
7976         * utils2.c (nonbinary_modular_operation): Update.
7977 objc:
7978         * objc-act.c (handle_impent): Update.
7979         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
7980         Redefine.
7981
7982 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
7983
7984         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
7985         * config/ia64/ia64.c (basereg_operand): New.
7986         * config/ia64/ia64-protos.h (basereg_operand): Declare.
7987         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
7988
7989 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
7990
7991         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
7992         unwind information when frame_pointer_needed.
7993         (mmix_assemble_integer): Tweak wording in comment.
7994
7995 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7996
7997         * Makefile.in (except.o): Update.
7998         * except.c: Include langhooks.h.
7999         (init_eh): Use langhook.
8000         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8001         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8002         (LANG_HOOKS_INITIALIZER): Update.
8003         * langhooks.h (lang_hooks_for_types): New.
8004         (struct lang_hooks): Add it.
8005         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8006         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8007 config:
8008         * alpha/alpha.c: Include langhooks.h.
8009         (alpha_build_va_list): Use langhook.
8010         * d30v/d30v.c: Include langhooks.h.
8011         (d30v_build_va_list): Use langhook.
8012         * i386/i386.c: Include langhooks.h.
8013         (ix86_build_va_list): Use langhook.
8014         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8015         * s390/s390.c: Include langhooks.h.
8016         (s390_build_va_list): Use langhook.
8017         * stormy16/stormy16.c: Include langhooks.h.
8018         (stormy16_build_va_list): Use langhook.
8019
8020 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8021
8022         PR c++/5964
8023         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8024         attributes.
8025         (length): Compute variable length for branches/calls/jumps here.
8026         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8027         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8028         define branch_type attribute.
8029         (divsi3_sp32): Maximum length is 6 not 7.
8030         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8031         call_address_untyped_struct_value_sp32,
8032         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8033         * config/sparc/sparc.c (empty_delay_slot): New function.
8034         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8035         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8036
8037 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8038
8039         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8040         nonzero_bits if not needed.
8041         (nonzero_bits) [XOR]: Likewise.
8042         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8043         reg_last_set_mode and mode are both MODE_INT, but not equal.
8044         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8045         in nonzero_bits_mode for MODE_INT modes.
8046
8047 2002-03-28  Richard Henderson  <rth@redhat.com>
8048
8049         PR target/5715
8050         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8051         to GAS.  Correct drift between alternatives.
8052
8053 2002-03-28  Richard Henderson  <rth@redhat.com>
8054
8055         PR target/6087
8056         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8057
8058 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8059
8060         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8061         emulation to the linker.
8062
8063 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8064
8065         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8066         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8067
8068 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8069
8070         * combine.c (simplify_and_const_int): Make sure to apply mask
8071         when force_to_mode returns a constant integer.  PR3311.
8072
8073 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8074
8075         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8076
8077 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8078
8079         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8080         and Objective-C Dialect Options.
8081
8082 2002-03-28  Richard Henderson  <rth@redhat.com>
8083
8084         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8085         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8086
8087 2002-03-28  Richard Henderson  <rth@redhat.com>
8088
8089         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8090         on to c_expand_body.
8091         * c-tree.h (finish_function): Update decl.
8092         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8093
8094 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8095
8096         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8097
8098 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8099
8100         * rtlanal.c: Include flags.h
8101         (may_trap_p): Do not mark FP operations if trapping
8102         if !flag_trapping_math
8103         * Makefile.in (rtlanal.o): Add dependency on flag.h
8104         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8105
8106 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8107
8108         * mips.md: Use dconst1, not 1.0, as first argument of
8109         REAL_VALUE_LDEXP.  Don't use union real_extract.
8110
8111 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8112
8113         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8114         rather than $target.  Heed program_prefix and
8115         program_transform_name.  Search for gas in cross-compiler case too.
8116         "test -x" rather than "test -f".
8117         (gcc_cv_ld): Likewise.
8118         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8119         (gcc_cv_objdump): Likewise.
8120         * configure: Regenerate.
8121
8122 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8123
8124         * Makefile.in (attribs.o): Update.
8125         * attribs.c: Include langhooks.h.
8126         (decl_attributes): Use langhook.
8127         * c-decl.c (insert_default_attributes): Rename.
8128         * c-tree.h (c_insert_default_attributes): New.
8129         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8130         (LANG_HOOKS_INITIALIZER): Update.
8131         * langhooks.h (struct lang_hooks): New hook.
8132         * tree.h (insert_default_attributes): Remove.
8133 objc:
8134         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8135
8136 2002-03-27  Andreas Schwab  <schwab@suse.de>
8137
8138         * config/i386/i386.c (classify_argument): Also check for
8139         QUAL_UNION_TYPE.
8140
8141 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8142
8143         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8144         any more.
8145
8146 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8147
8148         * i960.md (ret): Set PC.
8149         (nonlocal_goto): Fix expander.
8150         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8151         some jump or call.
8152
8153 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8154
8155         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8156         of libcall regions.
8157
8158 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8159
8160         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8161         assigning to BLOCK_FOR_INSN directly.
8162
8163 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8164
8165         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8166
8167 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8168
8169         * c-common.c (c_expand_expr): Fix prototype.
8170         * c-common.h (c_expand_expr): Always declare, update.
8171         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8172         * c-objc-common.c (c_objc_common_init): No global hook.
8173         * expr.c (expand_expr): Use langhook.
8174         * expr.h (enum expand_modifier): Conditionally declare.
8175         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8176         (LANG_HOOKS_INITIALIZER): Update.
8177         * langhooks.c (lhd_expand_expr): New.
8178         * langhooks.h (struct lang_hooks): New hook.
8179         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8180         (lang_independent_init): Don't default hook.
8181 objc:
8182         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8183
8184 2002-03-27  Richard Henderson  <rth@redhat.com>
8185
8186         PR target/6054
8187         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8188         TARGET_CONST_GP.  Simplify conditions.
8189
8190 2002-03-27  Richard Henderson  <rth@redhat.com>
8191
8192         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8193         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8194         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8195
8196 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8197
8198         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8199         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8200         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8201         Remove unnecessary masks.
8202         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8203         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8204         -mwindows, -mdll switches and their negations.
8205
8206 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8207
8208         * gcc-common.c (lang_mark_false_label_stack): Remove.
8209         * ggc.h (lang_mark_false_label_stack): Similarly.
8210
8211 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8212
8213         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8214
8215         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8216         or __rtems_ is defined.
8217
8218 2002-03-26  Richard Henderson  <rth@redhat.com>
8219
8220         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8221         if a non-trivial load was emitted.
8222         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8223         in high+extra+low case.
8224
8225 2002-03-26  Richard Henderson  <rth@redhat.com>
8226
8227         * config.gcc (sparc*-solaris): Use float_format=sparc.
8228
8229 2002-03-26  Richard Henderson  <rth@redhat.com>
8230
8231         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8232         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8233         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8234         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8235         (WINT_TYPE_SIZE): Fix at 32.
8236
8237 2002-03-26  Richard Henderson  <rth@redhat.com>
8238
8239         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8240         until after eh landing pad generation.
8241         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8242         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8243
8244 2002-03-26  Richard Henderson  <rth@redhat.com>
8245
8246         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8247
8248 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8249
8250         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8251         and warning switches.
8252         (cc1_options):  Likewise.
8253
8254 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8255
8256         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8257         Restore more of the signal context.  Set no_reg_stack_frame.
8258         * config/ia64/unwind-ia64.c (unw_state_record):
8259         Add no_reg_stack_frame, comments.
8260         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8261         (uw_update_context): Adjust bsp when unwinding from leaf,
8262         but not signal frame.
8263
8264 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8265
8266         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8267
8268 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8269
8270         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8271
8272 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8273
8274         PR target/5621
8275         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8276         "Add a pool_range attribute", which was lost during the ARM/Thumb
8277         merge.
8278
8279 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8280
8281         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8282         a register into the MAC16 accumulator.
8283
8284 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8285
8286         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8287         (Warning Options): Document -Wswitch-enum.
8288         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8289         -Wswitch.
8290         (warn_switch_enum): Define variables.
8291         * flags.h (warn_switch_enum): Declare variables.
8292         * stmt.c (expand_end_case_type): When warn_switch_enum /
8293         -Wswitch-enum, perform switch checks.
8294         Fix PR c/5044.
8295
8296 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8297
8298         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8299         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8300         (reload_muladdsi_compare0_scratch): Delete.
8301
8302 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8303
8304         * doc/install.texi (*-*-freebsd*): Update.
8305
8306 2002-03-26  Richard Henderson  <rth@redhat.com>
8307
8308         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8309         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8310
8311         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8312         types from the normal argument frame.
8313
8314         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8315         variable sized objects by reference.
8316         (sparc_va_arg): Receive them by reference too.
8317
8318 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8319
8320         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8321         code to not restoring global registers.
8322
8323 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8324
8325         * Makefile.in (ggc-common.o): Update.
8326         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8327         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8328         * c-tree.h (c_mark_tree): New.
8329         * ggc-common.c: Include langhooks.h.
8330         (gcc_mark_trees): Use new langhook.
8331         * ggc-callbacks.c: Delete file.
8332         * ggc.h (lang_mark_tree): Remove.
8333         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8334         (LANG_HOOKS_INITIALIZER): Update.
8335         * langhooks.h (struct lang_hooks): New hook.
8336 objc:
8337         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8338
8339 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8340
8341         * doc/cpp.texi: Exclude entire Top node from printed manual.
8342         Move option index after directive index.  Insert page breaks
8343         before GFDL and concept index.  Index environment variables
8344         with command line options.
8345         * doc/cppenv.texi: Use @vtable for environment variable list.
8346         Add paragraph explaining semantics of empty elements in path
8347         variables.  Exclude a cross-reference to Fishkill from the
8348         manpage.  Remove an unnecessary cross-reference of the entry
8349         right above the referer.  Don't use @anchor in text that goes
8350         into manpage.
8351         * doc/cppopts.texi: Cross-reference the environment variables
8352         section, not the specific environment variable, for consistency.
8353
8354 2002-03-25  Richard Henderson  <rth@redhat.com>
8355
8356         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8357         anywhere in the block.  Don't refer to insns that have been
8358         removed from the chain.  Iterate backward through the new insns.
8359         Don't refer to edges that have been removed.
8360
8361 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8362
8363         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8364         test for overflow of constant.
8365
8366 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8367
8368         PR target/2623
8369         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8370         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8371         these patterns on arm_archv4.
8372
8373 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8374
8375         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8376         int".
8377
8378 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8379
8380         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8381         float_handled, float_handler, float_signal, set_float_handler,
8382         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8383         * toplev.h: Don't prototype do_float_handler.
8384
8385         * c-lex.c: Fold parse_float into lex_number.  Make warning
8386         about portability of hex float constants more informative, and
8387         don't issue it on top of a syntax error.
8388         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8389         their callers.
8390         * real.h: Define REAL_VALUE_ABS here...
8391         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8392         simplify_unary_real, simplify_binary_real, and
8393         simplify_binary_is2orm1 into their callers.
8394         * tree.c: Fold build_real_from_int_cst_1 into caller.
8395
8396         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8397
8398         * tsystem.h: Include float.h here...
8399         * libgcc2.c: ... not here.
8400
8401 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8402
8403         Fixes for: PR bootstrap/3591, target/5676
8404         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8405         defined.  Do not disable exceptions or rtti.
8406         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8407         mcore.h.  Disable exceptions and rtti, since they are not
8408         supported by EPOC.
8409
8410 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8411
8412         * c-decl.c (maybe_build_cleanup): Remove.
8413         * expr.c (expand_expr): Use langhook.
8414         * langhooks-def.h (lhd_return_null_tree,
8415         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8416         (LANGHOOKS_INITIALIZER): Update.
8417         * langhooks.c (lhd_return_null_tree): New.
8418         * langhooks.h (struct lang_hooks): New hook.
8419         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8420         * tree.h (maybe_build_cleanup): Remove.
8421
8422 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8423
8424         * regrename.c (build_def_use): Move recog_memoized
8425         before extract_insn.
8426
8427 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8428
8429         PR target/6043
8430         * expr.c (emit_group_store): Handle storing into CONCAT.
8431
8432 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8433
8434         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8435         corresponding MATCH_DUP.
8436
8437 2002-03-24  Richard Henderson  <rth@redhat.com>
8438
8439         * unroll.c (unroll_loop): Zero label_map.
8440
8441         * gcse.c: Include except.h.
8442         * Makefile.in (gcse.o): Update.
8443
8444 2002-03-24  Richard Henderson  <rth@redhat.com>
8445
8446         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8447         Do resolve_unique_section before shared data clause.
8448
8449 2002-03-24  Richard Henderson  <rth@redhat.com>
8450
8451         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8452
8453 2002-03-24  Richard Henderson  <rth@redhat.com>
8454
8455         * recog.c (peephole2_optimize): Split blocks when EH insns are
8456         generated in the middle of a block.  Do global life update if
8457         zapped EH edges.
8458
8459 2002-03-24  Richard Henderson  <rth@redhat.com>
8460
8461         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8462
8463 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8464
8465         preprocessor/3951
8466         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8467         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8468         (init_dependency_output): Don't make no_output decision here.
8469
8470 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8471
8472         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8473         warn_switch.  Update description.
8474         (expand_end_case_type): Call check_for_full_enumeration_handling
8475         when warn_switch.
8476
8477 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8478
8479         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8480         (m68hc11_split_move): Call it to see if the source and destination
8481         operands use the same direction auto inc/dec mode, otherwise make the
8482         source an offsetable memory operand and generate an add.
8483
8484 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8485
8486         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8487         register for operand 2.
8488         ("*subsi3_zero_extendqi"): Likewise.
8489         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8490         bits so that it is compatible with a pop.
8491         ("*andhi3_gen"): Likewise.
8492         ("xorhi3"): Likewise.
8493
8494 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8495
8496         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8497         -pedantic here...
8498         (cpp_post_options): ... not here.
8499
8500 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8501             Aldy Hernandez  <aldyh@redhat.com>
8502
8503         Removal of separate preprocessor cpp0.
8504
8505         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8506         cpp0, install-common): Update.
8507         * c-common.c (flag_preprocess_only): New.
8508         (c_common_init): Preprocess for -E.
8509         * c-common.h (flag_preprocess_only): New.
8510         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8511         * c-objc-common.c (c_init_decl_processing): Exit quickly
8512         for NULL return from c_common_init.
8513         * cpplib.h (cpp_preprocess_file): New.
8514         * cppmain.c (main, general_init, pfile, progname): Remove.
8515         (do_preprocessing): Rename cpp_preprocess_file, don't call
8516         cpp_finish.  Don't close stdout here.
8517         (setup_callbacks): Update prototype.
8518         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8519         Update.
8520         * tradcpp.c (main): Ignore -quiet.
8521 objc:
8522         * lang-specs.h (default_compilers): Preprocess with cc1obj.
8523
8524 2002-03-24  Richard Henderson  <rth@redhat.com>
8525
8526         PR optimization/5742
8527         * machmode.def: Add inner mode field to complex modes.
8528         * config/mips/mips.c (mips_function_value): Always define.  Add
8529         new argument to handle libcalls.
8530         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8531         (FUNCTION_VALUE): Likewise.
8532         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8533         * config/mips/mips-protos.h: Update.
8534
8535 2002-03-23  Richard Henderson  <rth@redhat.com>
8536
8537         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8538         * config/sparc/sparc-protos.h: Update.
8539         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8540
8541 2002-03-23  Richard Henderson  <rth@redhat.com>
8542
8543         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8544         _start or _init begins the text segment.
8545
8546 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
8547
8548         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
8549         not HOST_WIDEST_INT.
8550         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8551
8552 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
8553
8554         PR java/5489
8555         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8556         operand argument to output_return_instruction.
8557         * arm.c (arm_print_operand, case 'd'): If the operand is
8558         const_true_rtx then just return.
8559         (arm_print_operand, case 'D'): If the operand is const_true_rtx
8560         then abort.
8561
8562 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8563
8564         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8565         (Warning Options): Document -Wswitch-default.
8566         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
8567         -Wswitch.
8568         (warn_switch_default): Define variable.
8569         (warn_switch): Update comment.
8570         * flags.h (warn_switch_default): Declare variable.
8571         (warn_switch): Update comment.
8572         * stmt.c (expand_end_case): Check for and, when
8573         warn_switch_no_default, warn of a missing default case.
8574
8575 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
8576
8577         * real.h (N): Special case 128 bit doubles.
8578
8579         * combine.c (simplify_comparison): When widening modes, ignore
8580         sign extension on CONST_INTs.
8581
8582 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8583
8584         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8585         passed to adjust_address.  Fix comment formatting.
8586
8587
8588 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
8589
8590         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8591         Always make REAL_VALUE_TYPE a struct containing an array of
8592         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
8593         big it is.  Don't declare or use union real_extract.
8594
8595         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8596         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8597         (print_operand), config/arm/arm.c (output_move_double),
8598         config/arm/arm.md (consttable_4, consttable_8),
8599         config/romp/romp.c (output_fpops), config/s390/s390.h
8600         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8601         (xtensa_output_literal): Don't use union real_extract.
8602
8603         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8604         (sfmode_constant_to_ulong), config/ns32k/merlin.h
8605         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8606         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8607         (PRINT_OPERAND): Don't use local version of union
8608         real_extract.
8609
8610         * config/convex/convex.c (check_float_value), config/vax/vax.c
8611         (vax_float_literal), config/m88k/m88k.md (divdf3),
8612         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8613         config/pdp11/pdp11.c (output_move_quad): Don't do host
8614         arithmetic on target floating point quantities.
8615
8616         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8617         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8618
8619         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8620         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8621
8622         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8623         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8624         INFINITY.
8625         * print-rtl.c (print_rtx): Disable code which needs
8626         floating-point emulator.
8627         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8628         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8629         depending on HOST_FLOAT_FORMAT to be defined properly.
8630
8631         * config/1750a/1750a.c (get_double, float_label): Delete.
8632         (print_operand): Delete huge commented-out chunk.  Use
8633         REAL_VALUE_TO_DECIMAL.
8634         * config/1750a/1750a-protos.h: Delete prototypes of deleted
8635         functions.
8636         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8637         IEEE_FLOAT_FORMAT.
8638         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8639         Use REAL_VALUE_TO_DECIMAL as ELF version does.
8640         * config/m88k/m88k.c (real_power_of_2_operand,
8641         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8642         real_extract out of the union; run the input through
8643         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8644         from that into the union.
8645         * config/pdp11/pdp11.c (output_move_double): Rearrange
8646         parentheses to make automatic indenter happy.
8647
8648         * doc/tm.texi (Cross-compilation): Rename node to "Floating
8649         Point" and rewrite to describe current situation.  Also adjust
8650         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8651         match code.
8652         * doc/rtl.texi: Adjust cross reference.
8653
8654 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8655
8656         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8657         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8658         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8659         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8660         prevent use of sp as a reload register.
8661         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8662         non_acc_reg_operand.
8663         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8664         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8665         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8666         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8667
8668 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8669
8670         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8671         * cpplex.c (unterminated): Delete.
8672         (parse_string): No string literal may extend over multiple
8673         lines.  Suppress the error when preprocessing assembly.
8674         * cppmain.c (scan_translation_unit): Strings are single-line.
8675
8676         * doc/cpp.texi: Update to match.
8677
8678 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8679
8680         PR optimization/5854
8681         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8682         Shut up warnings.
8683         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8684         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8685         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8686         const0 if scratch register was not allocated.
8687         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8688         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8689         with GEN_INT (...).
8690         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8691         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8692         with GEN_INT (...) everywhere.  Remove constraints in define_split
8693         patterns.
8694         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8695         require scratch register for setting 0 into regs/non-pushable memory.
8696
8697 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8698
8699         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8700         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8701
8702 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
8703
8704         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
8705         * cppinit.c (cpp_create_reader):  On by default.
8706         (cpp_handle_option):  Handle -W[no-]endif-labels.
8707         (cpp_post_options):  Also enable if -pedantic.
8708         * cpplib.c (do_else):  Use it.
8709         (do_endif):  Likewise.
8710         * doc/cppopts.texi:  Document new option.
8711         * doc/invoke.texi:  Document new option.
8712
8713 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
8714
8715         * config/i386/i386.c, config/i386/i386.md: Change all occurences
8716         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8717
8718 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8719
8720         * flow.c (calculate_global_regs_live): Clear aux fields of
8721         ENTRY and EXIT.
8722
8723 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8724
8725         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8726         REG or MEM subregs, pass rtx * instead of rtx to it.
8727         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8728         rtx * instead of rtx to alter_subreg.
8729         * config/m32r/m32r.c (gen_split_move_double): Likewise.
8730         * config/pj/pj.c (pj_output_rval): Likewise.
8731
8732 2002-03-22  Richard Henderson  <rth@redhat.com>
8733
8734         PR target/3177
8735         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8736         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8737         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8738         (ia64_expand_prologue): Look at int_regs, not words, for number
8739         of incomming int regs.
8740
8741 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
8742
8743         * expr.c (expand_expr): A RESULT_DECL is part of a call.
8744
8745 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
8746
8747         * toplev.c (flag_loop_optimize, flag_crossjumping):
8748         New static variables.
8749         (rest_of_compilation): Conditionalize crossjumping and
8750         loop optimizer.
8751         (parse_options_and_default_flags): Default loop_optimize and
8752         crossjumping.
8753         (lang_independent_options): Add -fcrossjumping and -floop-optimize
8754         * invoke.texi (crossjumping, loop-optimize): Document.
8755
8756 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8757
8758         * real.c (eiisneg): Move outside #ifdef NANS.
8759
8760 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8761
8762         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8763         frequencies match; avoid match on different loop depths.
8764         (try_crossjump_to_bb): Kill tests that no longer brings time
8765         savings.
8766         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8767         updating code.
8768         (split_edge): Likewise.
8769
8770         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8771         variable.
8772
8773         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8774         * cfgrtl.c: Include insn-config.h
8775         (split_block) Dirtify block in presence of conditional execution
8776
8777 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8778
8779         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8780         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8781         (function_arg): Constify CUMULATIVE_ARGS.
8782         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8783         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8784         (UNITS_PER_DOUBLE): New macro.
8785         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
8786         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
8787         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
8788         fp_regs and stack_words.
8789         (EABI_FLOAT_VARARGS_P): New macro.
8790         * config/mips/mips.c (struct mips_arg_info): New.
8791         (mips_arg_info): New function.
8792         (function_arg_advance): Use it.  Add adjustment instructions here
8793         rather than in function_arg.
8794         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
8795         for VOIDmode at the beginning of the function.
8796         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
8797         (function_arg_pass_by_reference): Likewise.
8798         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8799         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8800         (mips_va_start): Likewise.  Use the new stack_words field of
8801         CUMULATIVE_ARGS to set up overflow area.  Reformat.
8802         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
8803         doubles and other types, aligning the overflow pointer for non-doubles
8804         too.  Remove some code duplication.  Replace hard-coded constants.
8805
8806 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8807
8808         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8809         (CLASS_UNITS): Undefine.
8810         (CLASS_MAX_NREGS): Use FP_INC.
8811         * config/mips/mips.c (compute_frame_size): Likewise.
8812         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8813
8814 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8815
8816         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8817         prototype, and handle lexing numbers and identifiers.
8818         (parse_identifier): Update to new form of parse_slow.
8819         (parse_number): Fast path only, use parse_slow otherwise.
8820         (_cpp_lex_direct): Update calls to parse_number.
8821
8822 2002-03-21  DJ Delorie  <dj@redhat.com>
8823
8824         * bb-reorder.c (make_reorder_chain_1): Protect against
8825         when redundant edges are omitted.
8826         * predict.c (dump_prediction): Likewise.
8827
8828 2002-03-21  Richard Henderson  <rth@redhat.com>
8829
8830         PR target/5996
8831         * fixinc/inclhack.def (solaris_stdio_tag): New.
8832         * fixinc/fixincl.x: Regenerate.
8833
8834 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
8835
8836         PR c/5597
8837         * c-typeck.c (process_init_element): Flag non-static
8838         initialization of a flexible array member as illegal.
8839
8840 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
8841
8842         * config/rs6000/t-linux64: New.
8843         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8844         t-ppccomm.  Use t-rs6000 and t-linux64.
8845         (powerpc64-*-gnu* <tmake_file>): Likewise.
8846         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8847         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8848         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8849
8850 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
8851
8852         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8853         flag_really_no_inline instead of optimize == 0.
8854
8855         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8856
8857         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8858
8859         * flags.h (flag_really_no_inline): New.
8860
8861         * c-common.c (c_common_post_options): Initialize
8862         flag_really_no_inline.
8863
8864         * toplev.c (flag_really_no_inline): New.
8865
8866 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
8867
8868         * config/avr/avr.md (length): Fix length computation for
8869         conditional branches.
8870
8871 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8872
8873         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8874         sdbout.o, profile.o): Update.
8875         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8876         langhook.
8877         * c-common.h (gettags): Move here from tree.h.
8878         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8879         insert_block, getdecls, kept_level_p, global_bindings_p): New.
8880         * dbxout.c (dbxout_init): Use getdecls langhook.
8881         * expr.c (expand_expr): Use insert_block langhook.
8882         * fold-const.c: Include langhooks.h.
8883         (fold_range_test, fold_binary_op_with_conditional_arg,
8884         fold): Use global_bindings_p langhook.
8885         * integrate.c (expand_inline_function): Use insert_block langhook.
8886         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8887         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8888         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8889         LANG_HOOKS_GETDECLS): New.
8890         (LANG_HOOKS_INITIALIZER): Update.
8891         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8892         langhook.
8893         * langhooks.h (struct lang_hooks_for_decls): New.
8894         (struct lang_hooks): Update.
8895         * profile.c: Include langhooks.h.
8896         (output_func_start_profiler): Use new langhooks.
8897         * sdbout.c: Include langhooks.h.
8898         (sdbout_init, sdbout_finish): Use getdecls langhook.
8899         * stmt.c: Include langhooks.h.
8900         (expand_fixup, fixup_gotos): Use new langhooks.
8901         * stor-layout.c: Include langhooks.h.
8902         (variable_size): Use global_bindings_p langhook.
8903         * toplev.c (compile_file): Use getdecls langhook.
8904         * tree-inline.c (remap_block): Use insert_block langhook.
8905         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8906         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8907
8908 2002-03-21  Richard Henderson  <rth@redhat.com>
8909
8910         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8911         constants in .data when -fpic.
8912
8913 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8914
8915         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8916         where appropriate.
8917
8918 2002-03-21  Tom Tromey  <tromey@redhat.com>
8919
8920         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
8921
8922 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8923
8924         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8925
8926         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8927
8928 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
8929             Richard Henderson  <rth@redhat.com>
8930
8931         PR c/5354
8932         * c-common.c (c_expand_expr): Preserve result of a statement
8933         expression if needed.
8934
8935 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
8936
8937         PR bootstrap/4195
8938         * genrecog.c (maybe_both_true_mode): Remove.
8939         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
8940         * machmode.def (Pmode): Likewise.
8941
8942 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
8943
8944         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
8945         (nonlocal_mentioned_p_1): New function.
8946         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
8947         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
8948         (mark_constant_function): Recognize pure functions.
8949         * rtl.h (global_reg_mentioned_p): New prototype.
8950         * rtlanal.c (global_reg_mentioned_p,
8951         global_reg_mentioned_p_1): New function.
8952
8953 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8954
8955         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
8956         UNIX assert.h.
8957         * fixinc/fixincl.x: Regenerate.
8958
8959 2002-03-20  Jason Merrill  <jason@redhat.com>
8960
8961         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
8962
8963 2002-03-20  Michael Meissner  <meissner@redhat.com>
8964
8965         * doc/invoke.texi (Optimize Options): Document that -O2 sets
8966         -fstrict-aliasing.
8967
8968 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
8969
8970         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
8971         ".literal_position" directive before the constant pool.
8972
8973 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8974
8975         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
8976         Add Craig Rodrigues.
8977         Add Brad Lucier to testers.
8978
8979 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
8980
8981         PR target/4792
8982         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
8983         to if_then_else.
8984         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
8985         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
8986         instead of insn_extract.
8987
8988 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
8989
8990         PR bootstrap/4192
8991         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
8992
8993         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
8994         stmt if some case has been output.
8995
8996 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
8997
8998         PR c/5972
8999         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9000         movsfcc_1, movdfcc_1): Add %O2.
9001         * config/i386/i386.c (print_operand): Handle %ON.
9002         Print . before float condition codes in Sun as cmov syntax.
9003         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9004         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9005         no longer true.
9006
9007 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9008
9009         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9010         return instruction if PC was popped.
9011
9012 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9013
9014         * config/xtensa/xtensa.md: Remove unused type attributes.
9015         (adddi_carry, subddi_carry): Change type attribute to "multi".
9016
9017 2002-03-19  Dale Johannesen  <dalej@apple.com>
9018
9019         PR optimization/5999, middle-end/5731
9020         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9021         multiplications by reciprocals.
9022
9023 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9024
9025         * Makefile.in: Update.
9026         * c-common.c: Include langhooks.h.
9027         (inline_forbidden_p): Use new hook.
9028         * diagnostic.c: Include langhooks.h.
9029         (format_with_decl, announce_function,
9030         default_print_error_function): Use new hook.
9031         * dwarf2out.c (dwarf2_name): Use new hook.
9032         * function.c: Include langhooks.h.
9033         (init_function_start): Use new hook.
9034         * langhooks-def.h (lhd_decl_printable_name): New.
9035         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9036         (LANGHOOKS_INITIALIZER): Update.
9037         * langhooks.c (lhd_decl_printable_name): New.
9038         * langhooks.h (struct lang_hooks): New hook.
9039         * toplev.c (decl_name, decl_printable_name): Remove.
9040         (open_dump_file): Use new hook.
9041         (process_options): Remove old hook.
9042         * tree.h (decl_printable_name): Remove.
9043 objc:
9044         * objc-act.c (objc_init): Remove old hook.
9045         (objc_printable_name): Export.
9046         * objc-act.h (objc_printable_name): New.
9047         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9048
9049 2002-03-19  Jim Blandy  <jimb@redhat.com>
9050
9051         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9052         the start_source_file debug hook, not the current line number.
9053
9054 2002-03-19  Richard Henderson  <rth@redhat.com>
9055
9056         * flow.c (EH_USES): Provide default.
9057         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9058         * doc/tm.texi (EH_USES): New.
9059
9060         * config/ia64/ia64.c (ia64_eh_uses): New.
9061         * config/ia64/ia64-protos.h: Update.
9062         * config/ia64/ia64.h (EH_USES): New.
9063
9064 2002-03-19  Richard Henderson  <rth@redhat.com>
9065
9066         * varasm.c (output_constant_def): Fix stupid typo.
9067
9068 2002-03-19  Richard Henderson  <rth@redhat.com>
9069
9070         PR 5879
9071         * except.c (current_function_has_exception_handlers): New.
9072         * except.h: Declare it.
9073         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9074         Combine tests that disable all sibcalls for the function.
9075
9076 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9077
9078         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9079         for INTEGER_CST.
9080
9081 2002-03-19  Richard Henderson  <rth@redhat.com>
9082
9083         PR 5977, 5991
9084         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9085         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9086
9087 2002-03-19  Jim Blandy  <jimb@redhat.com>
9088
9089         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9090         name, even if the replacement list contains no tokens, as required
9091         by Dwarf.
9092
9093 2002-03-19  Jason Merrill  <jason@redhat.com>
9094
9095         * varasm.c (globalize_decl): Get the name from the RTL, not
9096         DECL_ASSEMBLER_NAME.
9097
9098         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9099
9100 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9101
9102         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9103         subdi_carry): Define.
9104
9105 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9106
9107         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9108         about -fpic/-fPIC if extra_warnings set.
9109
9110 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9111
9112         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9113         TREE_STRING_POINTER.
9114         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9115
9116 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9117
9118         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9119         in favor of SP if FRAME_POINTER_REQUIRED is false.
9120
9121 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9122
9123         * emit-rtl.c (gen_int_mode): New function.
9124         * rtl.h: Prototype for it.
9125         * combine.c (make_extraction, simplify_comparison), expmed.c
9126         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9127         (convert_modes, store_field), optabs.c (expand_fix),
9128         simplify-rtx.c (neg_const_int, simplify_unary_real),
9129
9130         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9131         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9132
9133 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9134
9135         PR c/5656
9136         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9137         convert_parm_for_inlining.
9138         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9139         Define.
9140         * langhooks-def.h: Likewise.
9141         * objc/objc-lang.c: Likewise.
9142         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9143         function.
9144         * tree-inline.c (initialize_inlined_parameters):
9145         Call convert_parm_for_inlining lang hook if needed.
9146         * c-typeck.c (c_convert_parm_for_inlining): New function.
9147         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9148
9149 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9150
9151         * calls.c (precompute_arguments): Do not assume that temporaries
9152         can be destroyed after expanding the argument.
9153         (expand_call): Likewise.
9154
9155 2002-03-15  Eric Christopher  <echristo@redhat.com>
9156
9157         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9158         Fix register preference on last change.
9159         * config/mips/mips.c (mips_return_in_memory): New function.
9160         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9161         * config/mips/mips-protos.h: Declare.
9162         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9163         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9164
9165 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9166
9167         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9168         a register too.
9169         (anddi3, iorsi3): Likewise.
9170
9171         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9172         use %gprel for symbols that are going to be placed in linkonce
9173         sections.
9174
9175         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9176         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9177         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9178         not needed.  Disregard leaf_function_p().
9179         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9180         mips16 frame pointer.
9181         * config/mips/mips.md (store ra): Only to small SP offsets.
9182         2001-08-22  Graham Stott  <grahams@redhat.com>
9183         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9184         return a REG rtx for the return address register.
9185
9186 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9187
9188         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9189         constant-pool addresses as "mode-dependent".
9190         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9191
9192 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9193
9194         PR target/5740
9195         * expr.c (emit_group_load): Use extract_bit_field if
9196         needed for CONCAT arguments.
9197
9198 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9199
9200         PR target/4863
9201         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9202         offset to the base of the table.
9203         (thumb_tablejump): Matcher for Thumb tablejump insn.
9204         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9205         as the difference of two labels.
9206         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9207         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9208         tables in the code.
9209         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9210         * arm.c (get_jump_table_size): If the table is not in the text
9211         section, return zero.
9212
9213 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9214
9215         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9216         of gen_rtx_SUBREG.
9217         (arm_reload_out_hi): Use gen_lowpart instead of
9218         gen_rtx_SUBREG to access QImode components.
9219         * config/arm/arm.md: Disable zero_extend split for QImode
9220         subregs in BIG_ENDIAN mode.
9221         (storehi_bigend): Match use of least significant byte.
9222         (storeinthi): Remove extraneous SUBREG.
9223         Add missing construction of operands[2].
9224         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9225         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9226         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9227
9228 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9229
9230         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9231         any_operand.
9232
9233 2002-03-17  Richard Henderson  <rth@redhat.com>
9234
9235         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9236         explicitly.
9237
9238 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9239
9240         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9241         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9242
9243 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9244
9245         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9246
9247         * predict.c (estimate_bb_frequencies): Delete unused variables.
9248
9249 2002-03-17  Richard Henderson  <rth@redhat.com>
9250
9251         * config/ia64/ia64.c (ia64_attribute_table): Move before
9252         targetm definition.  Make static.
9253
9254 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9255
9256         * c-common.h (yyparse, c_common_parse_file): New.
9257         * c-lang.c: Include c-common.h.
9258         (LANG_HOOKS_PARSE_FILE): Redefine.
9259         * c-lex.c: Include c-common.h.
9260         (yyparse): Rename c_common_parse_file.  Call yyparse.
9261         * c-parse.in (yyparse): Remove macro.
9262         * c-tree.h (yyparse_1): Remove.
9263         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9264         (LANG_HOOKS_INITIALIZER): Update.
9265         * langhooks.h (struct lang_hoooks): New hook parse_file.
9266         * toplev.c (compile_file): Use parse_file hook.
9267         * tree.h (yyparse): Remove.
9268         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9269
9270 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9271
9272         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9273         float_truncate, not fix.
9274         ("*truncdfsf2_real"): Ditto.
9275         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9276
9277         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9278
9279 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9280
9281         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9282         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9283         where appropriate.  Make the second reference to
9284         leaf_function_p a function call, as intended.  Reindented.
9285
9286         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9287         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9288
9289         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9290         add register to non-constant into sp.
9291
9292         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9293         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9294         (mips16_gp_pseudo_rtx): Lose.
9295         (INIT_EXPANDERS): Deleted.
9296         * config/mips/mips.c (mips_init_machine_status): New.
9297         (mips_free_machine_status): New.
9298         (mips_mark_machine_status): New.
9299         (override_options): Set them.
9300         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9301         (struct machine_function): ... new.  Replaced all references.
9302         (mips_add_gc_roots): Don't mark them.
9303         (embedded_pic_fnaddr_reg): New, extracted from...
9304         (embedded_pic_offset): ... here.
9305         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9306         (movsi): Likewise.
9307
9308 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9309
9310         * cppinit.c: Revert -MD removal.
9311
9312 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9313
9314         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9315         soft registers by default for 68HC12.
9316         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9317         when compiling with -fomit-frame-pointer.
9318         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9319         (expand_epilogue): Likewise.
9320         (m68hc11_gen_rotate): Use exg when rotating by 8.
9321
9322 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9323
9324         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9325         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9326         (splits): Remove unused add splits.
9327         ("*addhi3_68hc12"): Tune constraints.
9328         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9329         constant fits in 8-bits and D is dead use abx/aby instructions.
9330         ("*addhi3"): Remove extern declaration of ix_reg.
9331         ("*subsi3"): Optimize and provide new split.
9332         ("subhi3"): Cleanup.
9333         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9334         (arith splits): For 68hc12 save the address register on the stack
9335         and do the arithmetic operation with a pop.
9336
9337 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9338
9339         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9340         allocating QImode in address registers.
9341         ("*movqi_m68hc11"): Likewise.
9342
9343 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9344
9345         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9346
9347 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9348
9349         * cppinit.c (print_help): Display -MD and -MMD.
9350         Don't display usage string.  Update assertion syntax and
9351         typo.
9352         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9353         (cpp_handle_option): Update.
9354
9355 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9356
9357         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9358         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9359         and define it so that regardless of target CPU size,
9360         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9361         of "int" rather than "long."
9362
9363 2002-03-15  Richard Henderson  <rth@redhat.com>
9364
9365         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9366         size as a tree.
9367
9368 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9369
9370         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9371         ("tstqi" split): Avoid using memory for tstqi on address register.
9372         (splits): Remove constraints.
9373         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9374         ("cmpdf", "cmpsf"): Remove since not used.
9375         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9376         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9377
9378 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9379
9380         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9381         ("neghi2"): Tighten constraints.
9382         ("one_cmplsi2"): Optimize and simplify split.
9383         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9384
9385 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9386
9387         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9388         and split of AND operation to clear the upper bits.
9389         ("*logicalsi3_zextqi"): Likewise.
9390         ("*logicallhi3_zexthi_ashift8"): Likewise.
9391         ("*logicalsi3_silshr16"): Likewise.
9392         ("logicalsi3_silshl16"): Likewise.
9393         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9394
9395 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9396
9397         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9398         (m68hc11_indirect_p): New function.
9399         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9400         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9401         TARGET_M6812.
9402         (asm_print_register): Likewise.
9403         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9404         (m68hc11_indirect_p): Declare.
9405         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9406         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9407         (TARGET_SWITCHES): New option -mrelax.
9408         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9409         destination.
9410         ("iorsi3", "xorsi3"): Likewise.
9411         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9412         ("*andhi3_mem"): New to handle destination in memory with bclr
9413         and a scratch register.
9414         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9415         ("*andhi3_const"): New when operand2 is constant.
9416         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9417         ("*andhi3_gen"): Cleanup of the old "andhi3".
9418         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9419         ("xorqi3"): Update constraints.
9420
9421 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9422
9423         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9424         for reg_equiv_memory_loc when the operand is a register that does
9425         not get a hard register (stack location).
9426         (tst_operand): After reload, accept all memory operand.
9427         (symbolic_memory_operand): Fix detection of symbolic references.
9428         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9429         accept symbols and any constant.
9430
9431 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9432
9433         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9434         note on the insn that sets the soft frame register.
9435         (must_parenthesize): ix and iy are also reserved names.
9436         (print_operand_address): One more place where parenthesis are required
9437         to avoid confusion with register names.
9438         (m68hc11_gen_movhi): Allow push of stack pointer.
9439         (m68hc11_check_z_replacement): Fix handling of parallel with a
9440         clobber.
9441         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9442         the replacement register is.
9443         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9444         and D8_REGS classes.
9445         (MODES_TIEABLE_P): All modes are tieable except QImode.
9446
9447 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9448
9449         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9450         (___subdi3): Likewise.
9451         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9452         (__map_data_section): Optimize 68hc11 case.
9453
9454 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9455
9456         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9457         than a shift to avoid adding a register with itself.
9458         (m68hc11_memory_move_cost): Take into account NO_REGS.
9459         (m68hc11_register_move_cost): Update and use memory move cost
9460         for soft registers.
9461         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9462         it gives more opportunities to cse to optimize.
9463         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9464         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9465
9466 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9467
9468         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9469         * c-common.def (CLEANUP_STMT): New tree node.
9470         * c-common.h (CLEANUP_DECL): New macro.
9471         (CLEANUP_EXPR): Likewise.
9472         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9473         * expr.c (expand_expr): Tidy.
9474         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9475         * tree-inline.c (initialize_inlined_parameters): Clean up
9476         new local variables.
9477
9478 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9479
9480         PR bootstrap/4128
9481         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9482         before movrXX only, use reg_overlap_mentioned_p.
9483         Only special case NE if just one insn can be generated.
9484
9485 2002-03-15  Jason Merrill  <jason@redhat.com>
9486
9487         * varasm.c (assemble_variable): Call resolve_unique_section before
9488         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
9489         of error_mark_node.
9490
9491 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9492
9493         PR target/5170
9494         * arm.md (split pattern for thumb shiftable immediates): Add comment
9495         explaining non-obvious test.
9496
9497 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9498
9499         PR target/5712
9500         * arm.md (movaddr, movaddr_insn): Delete.
9501
9502 2002-03-15  Jason Merrill  <jason@redhat.com>
9503
9504         * toplev.c (wrapup_global_declarations): Clarify variable handling.
9505         -fkeep-static-consts doesn't apply to comdats.
9506
9507 2002-03-14  Richard Henderson  <rth@redhat.com>
9508
9509         * c-decl.c: Include c-pragma.h.
9510         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9511         (finish_function): Tidy.
9512         * c-pragma.c: Include c-common.h.
9513         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9514         (handle_pragma_weak): Use them.
9515         (init_pragma): Register pending_weaks.
9516         * c-pragma.h (maybe_apply_pragma_weak): Declare.
9517         * print-tree.c (print_node): Print DECL_WEAK.
9518         * varasm.c (mark_weak_decls): Remove.
9519         (remove_from_pending_weak_list): Remove.
9520         (add_weak): Remove.
9521         (asm_emit_uninitialised): Call globalize_decl for weak commons.
9522         (weak_decls): Make a tree_list.
9523         (declare_weak): Cons weak_decls directly.
9524         (globalize_decl): Remove weak_decls elements directly.
9525         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
9526         symbols.  Don't pretend to handle aliases.
9527         (init_varasm_once): Update weak_decls registry.
9528         * Makefile.in: Update dependencies.
9529
9530 2002-03-14  Richard Henderson  <rth@redhat.com>
9531
9532         PR target/5312
9533         * config/ia64/ia64.c: Include tm_p.h last.
9534         (gen_nop_type): Remove duplicate definition.
9535         (cycle_end_fill_slots): Set sched_data for second L slot.
9536         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9537         (nop_cycles_until): Fix typos.
9538
9539 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9540
9541         PR optimization/5891
9542         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9543
9544 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9545
9546         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9547           descriptors correctly.
9548
9549 2002-03-14  Michael Meissner  <meissner@redhat.com>
9550
9551         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9552         100, allowing MAX_UNROLLED_INSNS to be overridden.
9553
9554         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9555         --param.
9556
9557         * unroll.c (params.h): Include.
9558         (MAX_UNROLLED_INSNS): Delete, now in params.h.
9559
9560         * doc/invoke.texi (--param max-unroll-insns): Document.
9561
9562         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9563
9564 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9565
9566         * arm.md: Fix warnings about constraints in peepholes and splits.
9567
9568 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
9569
9570         * cpphash.h (struct lexer_state): Remove line_extension member.
9571         * cpplib.c (dequote_string, do_linemarker): New functions.
9572         (linemarker_dir): New data object.
9573         (DIRECTIVE_TABLE): No longer need to interpret #line in
9574         preprocessed source.  Delete obsolete comment about return
9575         values of handlers.
9576         (end_directive, directive_diagnostics, _cpp_handle_directive):
9577         Don't muck with line_extension.
9578         (directive_diagnostics): No need to issue warnings for
9579         linemarkers here.
9580         (_cpp_handle_directive): Issue warnings for linemarkers here,
9581         when appropriate.  Dispatch linemarkers to do_linemarker, not
9582         do_line.
9583         (do_line): Code to handle linemarkers split out to do_linemarker.
9584         Convert escape sequences in filename argument, both places.
9585
9586         * cppmacro.c (quote_string): Rename cpp_quote_string and
9587         export.  All callers changed.
9588         * cpplib.h (cpp_quote_string): Prototype.
9589         * cppmain.c (print_line): Call cpp_quote_string on to_file
9590         before printing it.
9591
9592         * doc/cpp.texi: Document that escapes are now interpreted in
9593         #line and in linemarkers, and that non-printing characters are
9594         converted to octal escapes when linemarkers are generated.
9595
9596 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
9597
9598         * emit-rtl.c (try_split): Use delete_insns.
9599         * recog.c (split_all_insns): Fix terminating condition.
9600
9601 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9602             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9603
9604         PR target/5828
9605         * arm.c (arm_output_epilogue): Fix floating-point register save
9606         adjustment when using a frame pointer.
9607
9608 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
9609
9610         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9611         * config/mips/mips.c (compute_frame_size): Retrofit them here.
9612         (save_restore_insns, mips_expand_epilogue): And here.
9613         (build_mips16_call_stub): And here.
9614         (mips_function_value): Use the new macros to decide whether a single
9615         or complex float can be returned in floating-point registers.  Return
9616         a parallel rtx in the complex case.
9617
9618 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9619
9620         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9621         call after liveness analysis.
9622
9623         * recog.c (split_insn): Use delete_insn_and_edges.
9624
9625         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9626         instructions to have branch prediction notes.
9627         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9628
9629 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
9630
9631         * configure.in: Don't pass -Wno-long-long to a ADA compiler
9632         that doesn't support it.
9633         * configure: Regenerate.
9634
9635 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9636
9637         PR target/5626
9638         * config/sparc/sparc.md (normal_branch, inverted_branch,
9639         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9640         inverted_fp_branch): Adjust calls to output_cbranch.
9641         Set length attribute.
9642         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9643         output_v9branch.  Set length attribute.
9644         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9645         predicates.
9646         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9647         (output_cbranch): Likewise.  Handle far branches.
9648         (output_v9branch): Handle far branches.
9649         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9650         Adjust prototypes.
9651         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9652         noov_compare64_op predicates.
9653
9654 2002-03-13  Jason Merrill  <jason@redhat.com>
9655
9656         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9657         into the function and constify it.
9658         * gthr-dce.h, gthr-solaris.h: Likewise.
9659
9660 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
9661
9662         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9663         * config/rs6000/rs6000.c (rs6000_va_arg): Use
9664         std_expand_builtin_va_arg if not ABI_V4.
9665
9666 2002-03-13  Jason Merrill  <jason@redhat.com>
9667
9668         * varasm.c (globalize_decl): New fn.
9669         (assemble_start_function): Use it.
9670         (asm_emit_uninitialized): Use it.
9671         (assemble_alias): Use it.
9672         (assemble_variable): Use it.
9673
9674 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
9675
9676         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9677         2002-03-12 internal visibility change.
9678         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9679         visibility into SYMBOL_REF_FLAG.
9680
9681 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
9682
9683         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9684         VOIDmode operand.  Add compile-time optimization for constant results.
9685
9686 2002-03-12  Jason Merrill  <jason@redhat.com>
9687
9688         * c-typeck.c (convert_for_assignment): Don't allow conversions
9689         between pointers and references.  Only allow lvalues to convert to
9690         reference.
9691
9692 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
9693
9694         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9695         before prologue, to avoid scheduling problems.
9696
9697 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9698
9699         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9700         (ELIMINABLE_REGS): Add sfp->sp.
9701         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9702
9703 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9704
9705         PR optimization/5892
9706         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9707
9708 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9709
9710         * loop.c (basic_induction_var): Don't call convert_modes if mode
9711         classes are different.
9712
9713 2002-03-12  Richard Henderson  <rth@redhat.com>
9714
9715         PR optimization/5901
9716         * function.c (reposition_prologue_and_epilogue_notes): Position
9717         the markers after/before the last/first insn not deleted.
9718
9719 2002-03-12  Richard Henderson  <rth@redhat.com>
9720
9721         PR optimization/5878
9722         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9723         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9724         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9725
9726         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9727         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9728         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9729
9730         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9731         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9732         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9733         also.  Don't set it if not flag_pic.
9734         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9735         to be INVALID_REGNUM when not used.
9736
9737 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
9738
9739         * expmed.c (store_bit_field): Reset alias set for memory.
9740         (extract_bit_field): Same.
9741
9742 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9743
9744         * c-common.c (c_tree_code_type, c_tree_code_length,
9745         c_tree_code_name, add_c_tree_codes): Delete.
9746         * c-common.h (add_c_tree_codes): Delete.
9747         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9748         Define.
9749         * c-objc-common.c (c_objc_common_init): Don't call
9750         add_c_tree_codes, instead set lang_unsafe_for_reeval.
9751         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9752         objc_tree_code_name, add_objc_tree_codes): Delete.
9753         (objc_init): Don't call add_objc_tree_codes.
9754         * objc/objc-lang.c (tree_code_type, tree_code_length,
9755         tree_code_name): Define.
9756         * toplev.c (lang_independent_init): Don't set
9757         tree_code_length[IDENTIFIER_NODE].
9758         * tree.c (tree_code_type, tree_code_length, tree_code_name):
9759         Delete definitions, moved to language front-ends.
9760         * tree.def (IDENTIFIER_NODE): Hardwire the length.
9761         * tree.h (tree_code_type, tree_code_length, tree_code_name):
9762         Const-ify.
9763         (tree_code_length): Change type to unsigned char.
9764
9765 2002-03-12  Richard Henderson  <rth@redhat.com>
9766
9767         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9768         internal visibility change.
9769
9770 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9771
9772         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9773         validize_mem() instead of change_address to avoid clobbering
9774         memory attributes.
9775
9776 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
9777
9778         * c-lex.h (position_after_whitespace): Remove.
9779
9780 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
9781
9782         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9783         (lex_string): Use unsigned char pointers.
9784
9785 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
9786
9787         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9788         is not a valid memory_operand.
9789
9790 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9791
9792         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9793         * config/xtensa/lib1funcs.asm: Fix copyright to include
9794         special case for libgcc files.
9795         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9796         (__divsi3): Likewise.
9797         (__umodsi3): Likewise.
9798         (__modsi3): Likewise.
9799         * config/xtensa/lib2funcs.S: Fix copyright to include
9800         special case for libgcc files.
9801
9802 2002-03-12  Tom Rix  <trix@redhat.com>
9803
9804         * collect2.c (resolve_lib_name): Move outside of
9805         OBJECT_FORMAT_COFF ifdef.
9806         (ignore_library): Same.
9807
9808 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9809
9810         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9811
9812 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9813
9814         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9815         to function_section before writing out the constant pool.
9816
9817 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
9818
9819         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9820         zero_constant.
9821         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9822
9823 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
9824
9825         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9826         (adddi3): Likewise.
9827         (movdf): Likewise.
9828         (movdi): Likewise.
9829         (cmpsi splitter): Likewise.
9830         (modsi3): Fail if <= 0.
9831         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9832         redundant test when HOST_BITS_PER_WIDE_INT != 32.
9833         (reg_or_sub_cint64_operand): Likewise.
9834         (num_insns_constant_wide): Optimize sign extension.
9835         (rs6000_legitimize_address): Likewise.
9836
9837 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
9838
9839         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9840         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9841
9842 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
9843
9844         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9845         address calculation.
9846
9847 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
9848
9849         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9850         scratch register to DImode / TImode.
9851         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9852         register used does not overlap the target.
9853
9854 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9855
9856         * Makefile.in (debug.o): Depend on debug.h.
9857         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9858         * debug.c (do_nothing_debug_hooks): Likewise.
9859         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9860         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9861         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9862         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9863         * dwarfout.c (dwarf_debug_hooks): Likewise.
9864         * integrate.c (output_inline_function): Likewise.
9865         * objc/objc-act.c (synth_module_prologue): Likewise.
9866         * sdbout.c (sdb_debug_hooks): Likewise.
9867         * toplev.c (debug_hooks): Likewise.
9868         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9869
9870 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9871
9872         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9873         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9874         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9875         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9876         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9877         * defaults.h (POINTER_SIZE): Define.
9878         * doc/tm.texi (POINTER_SIZE): Document default.
9879
9880 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9881
9882         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9883
9884 2002-03-11  Richard Henderson  <rth@redhat.com>
9885
9886         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9887         if rebuild_label_notes_after_reload.
9888
9889 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
9890
9891         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
9892         emit pic register load if "internal" visibility.
9893         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9894         (cris_expand_builtin_va_arg): Do all computations on trees.
9895
9896 2002-03-11  Richard Henderson  <rth@redhat.com>
9897
9898         * rtlanal.c: Include recog.h.
9899         (keep_with_call_p): Fix thinko.
9900         * Makefile.in (rtlanal.o): Update dependencies.
9901
9902 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
9903
9904         * genflags.c (gen_insn): Use IS_VSPACE.
9905         * genoutput.c (output_insn_data): Likewise.
9906         (process_template): Likewise.
9907
9908 2002-03-11  Richard Henderson  <rth@redhat.com>
9909
9910         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9911
9912 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9913
9914         * Makefile.in: Update.
9915         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9916         Update documentation.
9917         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9918         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9919
9920 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
9921
9922         * Makefile.in: Give texi2pod its input file as a command line
9923         argument, not on stdin.
9924
9925 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
9926             Daniel Berlin  <dan@dberlin.org>
9927
9928         C++ alias analysis improvement.
9929         * alias.c (record_component_aliases): Record aliases for base
9930         classes too.
9931
9932 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
9933
9934         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
9935
9936 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
9937
9938         * toplev.c (vms_fopen): Remove, not needed.
9939
9940         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
9941
9942         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
9943
9944         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
9945         for FP, already done later.
9946
9947         * toplev.c (debug_args): Add entry for VMS_DEBUG.
9948         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
9949
9950 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
9951
9952         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
9953         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
9954         LARGEST_EXPONENT_IS_NORMAL for the given mode.
9955         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
9956         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
9957         (ediv, emul, eldexp, esqrt): Likewise.
9958         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
9959         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
9960         (saturate): New function.
9961         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
9962         (make_nan): Use a saturation value instead of a NaN if
9963         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
9964         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
9965         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
9966         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
9967         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
9968         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
9969         !ROUND_TOWARDS_ZERO.
9970         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
9971         (ROUND_TOWARDS_ZERO): Document.
9972
9973 2002-03-11  Andreas Jaeger  <aj@suse.de>
9974
9975         * cfg.c (dump_flow_info): Remove unused variable.
9976
9977 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
9978
9979         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
9980         computations on trees.
9981
9982 2002-03-10  Richard Henderson  <rth@redhat.com>
9983
9984         PR 5693:
9985         * reload.c (copy_replacements_1): New.
9986         (copy_replacements): Use it to recurse through the rtx.
9987
9988 2002-03-10  Richard Henderson  <rth@redhat.com>
9989
9990         * loop.c (strength_reduce): Compute number of iterations as
9991         unsigned HOST_WIDE_INT.
9992
9993 2002-03-10  Richard Henderson  <rth@redhat.com>
9994
9995         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
9996         to move away from the end of the block.
9997
9998 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
9999
10000         PR preprocessor/5899
10001         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10002
10003 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10004
10005         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10006
10007         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10008
10009 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10010
10011         * config/mmix/mmix.c: Improve comments.
10012         (mmix_target_asm_function_prologue): Drop variable
10013         empty_stack_frame.  Don't allocate unused slot above fp.
10014         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10015         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10016         brace in first column.
10017         (enum reg_class): Ditto.
10018         (FIRST_PARM_OFFSET): Now 0.
10019         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10020
10021 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10022
10023         * combine.c (make_extraction): Fix error in last change.
10024
10025 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10026
10027         * c4x.c (c4x_fp_reglist): Const-ify.
10028         * cris.c (cris_print_operand): Likewise.
10029         * i386.c (ix86_va_arg): Likewise.
10030         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10031         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10032         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10033         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10034         * mcore.h (regno_reg_class): Likewise.
10035         * mips.c (gen_int_relational): Likewise.
10036         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10037         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10038         * pdp11.c (move_costs): Likewise.
10039         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10040         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10041         Likewise.
10042         * s390.h (regclass_map): Likewise.
10043         * sh.c (shift_amounts): Likewise.
10044         * sh.md (rotlsi3): Likewise.
10045
10046 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10047
10048         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10049         (ne0+5): Use new clobber to generate proper shift pattern.
10050         Patch by Michael Matz <matz@kde.org>.
10051
10052 2002-03-09  Andreas Schwab  <schwab@suse.de>
10053
10054         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10055
10056 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10057
10058         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10059
10060 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10061
10062         PR middle-end/5877
10063         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10064         even for non-representable constants.
10065
10066 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10067
10068         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10069         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10070         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10071         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10072         (pop_function_context): Compute MAY_SHARE parameter for
10073         fixup_var_refs.
10074         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10075         (gen_mem_addressof): Call fixup_var_refs with new parm.
10076
10077         * combine.c (make_extraction): Don't make extension of CONST_INT.
10078
10079 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10080
10081         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10082         in o32 and o64 ABIs.
10083         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10084         but getting fixed-size structs passed in registers regardless of
10085         padding in o32 and o64 ABIs.
10086
10087         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10088         offset before loading address of argument passed by transparent
10089         reference.
10090
10091 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10092
10093         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10094
10095 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10096
10097         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10098         marker such that registers after it are saved.
10099
10100 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10101
10102         * sparc.c (arith_4096_operand): Fix error in last change.
10103
10104 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10105
10106         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10107         defaults for MEABI.
10108
10109 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10110
10111         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10112         vectors.
10113
10114 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10115
10116         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10117
10118 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10119
10120         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10121         removed; fix return value.
10122         * combine.c (combine_instructions): Dirtify blocks where we failed to
10123         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10124         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10125
10126 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10127
10128         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10129
10130 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10131
10132         * recog.c (peephole2_optimize): Re-distribute EH edges.
10133
10134 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10135
10136         * expr.c (expand_expr): Use unsave lang hook.
10137         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10138         (LANG_HOOKS_INITIALIZER): Update.
10139         * langhooks.h (struct lang_hooks): New hook unsave.
10140         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10141         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10142         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10143         (unsave_expr_now): Remove.
10144         * tree.h (unsave_expr_now, lang_unsave,
10145         lang_unsave_expr_now): Remove.
10146         (lhd_unsave): New.
10147
10148 2002-03-08  Andreas Jaeger  <aj@suse.de>
10149
10150         * flow.c (propagate_block_delete_insn): Remove unused variable.
10151
10152 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10153
10154         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10155         insn length for memory load/store.
10156
10157 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10158
10159         * doc/install.texi (--with-libiconv-prefix): Document.
10160
10161 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10162
10163         * doc/sourcebuild.texi: Fix typo.
10164
10165 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10166
10167         PR c/3711
10168         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10169         trees.
10170
10171 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10172
10173         * rtl.c (copy_most_rtx): Move from here ...
10174         * emit-rtl.c (copy_most_rtx): ... to here.
10175
10176 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10177
10178         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10179         SUBTARGET_CPP_SIZE_SPEC.
10180         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10181
10182         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10183
10184 2002-03-07  Matt Hiller  <hiller@redhat.com>
10185
10186         * gensupport.c (first_dir_md_include): Renamed from include;
10187         change all references.
10188         (last_dir_md_include): Renamed from last_include; change all
10189         references.
10190         (init_md_reader): Unconditionally initialize base_dir whether or
10191         not filename is a relative path.
10192
10193 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10194
10195         * config/fp-bit.c (_unord_f2): Compile it in even if
10196         US_SOFTWARE_GOFAST is enabled.
10197
10198         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10199         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10200         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10201         NULL_RTX, try reversing the comparison and the operands.
10202
10203 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10204
10205         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10206         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10207         and MATCH_OP_DUP.
10208
10209 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10210
10211         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10212
10213 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10214
10215         * basic-block.h (fixup_abnormal_edges): Declare.
10216         * reload1.c (fixup_abnormal_edges): New function.
10217         * reg-stack.c (convert_regs): Use it.
10218
10219         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10220
10221         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10222
10223 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10224
10225         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10226         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10227         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10228         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10229         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10230         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10231         unless x and y could be infinite.
10232         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10233         Check that the common type of both arguments is a real, even for
10234         targets without unordered comparisons.  Allow an integer argument
10235         to be compared against a real.
10236         (expand_tree_builtin): Use expand_unordered_cmp.
10237         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10238         * cse.c (fold_rtx): Likewise.  Fix indentation.
10239         * fold-const.c (fold_real_zero_addition_p): New.
10240         (fold): Use it, and the new HONOR_... macros.
10241         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10242         * jump.c (reversed_comparison_code_parts): After searching for
10243         the true comparison mode, use HONOR_NANS to decide whether it
10244         can be safely reversed.
10245         (reverse_condition_maybe_unordered): Remove IEEE check.
10246         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10247         to decide which simplifications are valid.  Allow the following
10248         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10249         and (a - -b) to (a + b).
10250         (simplify_relational_operation): Use HONOR_NANS.
10251         * doc/tm.texi: Document the MODE_HAS_... macros.
10252
10253 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10254
10255         * combine.c (simplify_comparison): If simplifying a logical shift
10256         right and compare with constant, force the comparison to unsigned.
10257
10258 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10259
10260         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10261
10262         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10263         -mabi=no-altivec
10264         (alt_reg_names): Remove % for vrsave.
10265
10266 2002-03-06  Richard Henderson  <rth@redhat.com>
10267
10268         PR optimization/5844
10269         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10270         if used indicates we've already emitted one copy of an operand.
10271         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10272         (gen_split): Supply a non-null used.
10273
10274 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10275
10276         * reload1.c (reload): Unshare all rtl after reload is done.
10277
10278         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10279         but simply fail if the expression is too complex to simplify.
10280         (simplify_gen_binary): Handle simplify_plus_minus failures.
10281
10282 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10283
10284         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10285         consistently call delete_trivially_dead_insns after CSE and GCSE;
10286         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10287         after liveness2; update comment in last crossjumping.
10288         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10289
10290 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10291
10292         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10293         after completing fast dead code elimination.
10294
10295         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10296         COMPARE operator.
10297
10298 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10299
10300         * version.c:  Fix misplaced leading blanks on first line.
10301
10302 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10303
10304         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10305
10306 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10307
10308         * cfgcleanup.c (mentions_nonequal_regs): New function.
10309         (thread_jump): Use it.
10310         * toplev.c (rest_of_compilation): Run jump threading after
10311         liveness.
10312
10313 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10314
10315         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10316         patch.
10317
10318 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10319
10320         * predict.c (estimate_bb_frequencies): Do not reload the
10321         frequencies from notes.
10322
10323 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10324
10325         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10326         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10327
10328         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10329         delete_noop_moves): Return indeger.
10330         * flow.c (ndead): New variable.
10331         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10332         BB argument; update callers.
10333         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10334         (life_analysis): Do not call purge_all_dead_edges.
10335         (update_life_info): Return number of deleted insns; print statistics.
10336         (update_life_info_in_dirty_blocks): likewise.
10337         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10338         return number of insns deleted.
10339
10340         * cse.c: Include timevar.h
10341         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10342         iterate until stabilizes; print statistics; return number of killed
10343         insns.
10344         * Makefile.in: (cse.o): Add timevar.h dependency
10345         * rtl.h (delete_trivially_dead_insns): New.
10346         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10347         * toplev.c (rest_of_compilation): Update callers.
10348
10349         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10350         (try_optimize_cfg): Do not update liveness.
10351         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10352         removal stabilizes; use delete_trivially_dead_insns.
10353
10354         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10355
10356 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10357
10358         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10359         callbacks when processing assembly language.
10360
10361 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10362
10363         * pa.h (ASM_FILE_END): Define.
10364         * som.h (ASM_FILE_END): Delete.
10365
10366         * pa.c (function_arg): Don't pass floats in general registers in
10367         indirect calls if TARGET_ELF32.
10368
10369 2002-03-05  Richard Henderson  <rth@redhat.com>
10370
10371         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10372
10373 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10374
10375         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10376
10377 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10378
10379         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10380         -r command line.  Don't hide any symbols if not building
10381         shared libgcc.
10382
10383 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10384
10385         * cfg.c (dump_flow_info): Warn about profile mismatches.
10386         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10387         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10388
10389 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10390
10391         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10392         wide volatile memory by parts.
10393
10394 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10395
10396         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10397         is NULL.
10398
10399 2002-03-05  Richard Henderson  <rth@redhat.com>
10400
10401         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10402
10403 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10404
10405         * toplev.c (documented_lang_options): Document more
10406         language-specific options.
10407         * doc/invoke.texi (Warning Options): Correct documentation for
10408         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10409         * c-decl.c (c_decode_option): Use a table to handle warning options.
10410
10411 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10412
10413         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10414         parameter to mmix_encode_section_info.
10415         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10416         relocatably.  Always produce ELF, not mmo if linking relocatably.
10417         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10418         first is non-zero, don't add symbol prefix.
10419         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10420         prototype accordingly.
10421
10422 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10423
10424         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10425
10426 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10427
10428         * configure.in: Increase required makeinfo version to 4.1.
10429         * configure: Regenerate.
10430
10431 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10432
10433         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10434         elsewhere now.
10435
10436 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10437
10438         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10439         * doc/invoke.texi: Fix @math uses.
10440
10441 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10442
10443         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10444         removal
10445
10446 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10447
10448         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10449         (powerpc-*-eabisimaltivec*): Same.
10450
10451         * config/rs6000/t-ppcendian: New.
10452
10453 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10454
10455         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10456         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10457         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10458
10459 2002-03-03  Richard Henderson  <rth@redhat.com>
10460
10461         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10462
10463 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10464
10465         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10466         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10467         tree.c, config/m68k/m68k.c:
10468         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10469         REAL_ARITHMETIC blocks unconditional.  Delete some further
10470         #ifdef blocks predicated on REAL_ARITHMETIC.
10471         * flags.h, toplev.c: Delete remaining references to
10472         flag_pretend_float.
10473
10474         * doc/invoke.texi: Remove documentation of -fpretend-float.
10475         * doc/tm.texi: Describe the various REAL_* macros as provided by
10476         real.h, not by the target configuration files.
10477
10478         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10479         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10480         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10481         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10482         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10483         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10484         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10485         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10486         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10487         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10488         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10489         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10490         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10491         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10492         config/xtensa/xtensa.h:
10493         Do not define, undefine, or mention in comments any of
10494         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10495         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10496         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10497         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10498         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10499         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10500         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10501         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10502         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10503
10504 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10505
10506         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10507         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10508         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10509         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10510         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10511         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10512         Delete.
10513         * defaults.h (BITS_PER_WORD): Define.
10514         * doc/tm.texi (BITS_PER_WORD): Document default value.
10515
10516         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10517         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10518         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10519
10520 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10521
10522         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10523         lieu of explicit sizeof/sizeof.
10524         * i386.c (override_options, ix86_init_mmx_sse_builtins,
10525         ix86_expand_builtin): Likewise.
10526         * mips.c (mips_add_gc_roots): Likewise.
10527         * mmix.c (mmix_output_condition): Likewise.
10528         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10529         altivec_init_builtins): Likewise.
10530         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10531         * cppexp.c (Nsuff, parse_number): Likewise.
10532         * cppinit.c (builtin_array_end): Likewise.
10533         * gcc.c (n_default_compilers, process_command): Likewise.
10534         * genpreds.c (output_predicate_decls): Likewise.
10535         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10536         * lcm.c (N_ENTITIES): Likewise.
10537         * stor-layout.c (set_sizetype): Likewise.
10538
10539 2002-03-03  Richard Henderson  <rth@redhat.com>
10540
10541         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10542         for types or labels.
10543
10544 2002-03-03  Richard Henderson  <rth@redhat.com>
10545
10546         * c-decl.c (start_decl): Initialized variables are not common.
10547
10548 2002-03-02  Per Bothner  <per@bothner.com>
10549
10550         * gcc.c (option_map):  Suport new --bootclasspath option.
10551         --CLASSPATH is now just an alias for --classpath.
10552
10553 2002-03-02  Richard Henderson  <rth@redhat.com>
10554
10555         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10556         load if "internal" visibility.
10557         * doc/extend.texi: Document visibility meanings.
10558
10559 2002-03-02  Richard Henderson  <rth@redhat.com>
10560
10561         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10562         to functions as well.
10563
10564 2002-03-02  Richard Henderson  <rth@redhat.com>
10565
10566         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10567         (handle_visibility_attribute): Don't call assemble_visibility.
10568         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10569         without asmspec.  Invoke assemble_alias when needed.
10570         * varasm.c (maybe_assemble_visibility): New.
10571         (assemble_start_function, assemble_variable, assemble_alias): Use it.
10572
10573 2002-03-02  Richard Henderson  <rth@redhat.com>
10574
10575         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10576         invoke ENCODE_SECTION_INFO with first call flag.
10577
10578         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10579         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10580         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10581         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10582         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10583         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10584         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10585         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10586         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10587         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10588         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10589         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10590         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10591         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10592         config/mcore/mcore-protos.h, config/mcore/mcore.c,
10593         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10594         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10595         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10596         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10597         config/sh/sh.h, config/sparc/sparc.h,
10598         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10599         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10600         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10601         FIRST argument.  As needed, examine it and do nothing.
10602
10603         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10604         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10605         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10606
10607         * config/arm/t-pe (pe.o): Add dependencies.
10608
10609 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10610
10611         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10612         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10613         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10614         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10615         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10616         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10617         * defaults.h (BITS_PER_UNIT): Define.
10618         * doc/tm.texi (BITS_PER_UNIT): Document default value.
10619
10620 2002-03-02  Kazu Hirata  <kazu@hxi.com>
10621
10622         * config/h8300/h8300-protos.h: Add a prototype for
10623         compute_a_shift_length.
10624         * config/h8300/h8300.c (h8300_asm_insn_count): New.
10625         (compute_a_shift_length): Likewise.
10626         (h8300_adjust_insn_length): Do not adjust insn length of shift
10627         insns.
10628         * config/h8300/h8300.md (anonymous shift patterns): Use
10629         compute_a_shift_length.
10630
10631 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10632
10633         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10634         trunc_int_for_mode.
10635
10636         * emit-rtl.c (offset_address): Call update_temp_slot_address.
10637
10638 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10639
10640         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10641         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10642         * flags.h (flag_zero_initialized_in_bss): Declare.
10643         * toplev.c (flag_zero_initialized_in_bss): New flag.
10644         (lang_independent_options): Add flag_zero_initialized_in_bss.
10645         * tree.c (initializer_zerop): New function.
10646         * tree.h (initializer_zerop): Declare.
10647         * varasm.c (assemble_variable): If we can emit bss, put zero
10648         initializers in the bss section.
10649
10650 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
10651
10652         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10653         like more than one symbol per .weak directive.
10654
10655 2002-03-01  Richard Henderson  <rth@redhat.com>
10656
10657         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10658         adjust argument_pointer by pretend_args_size.
10659         (ia64_va_start): Adjust va_start address by -pretend_args_size.
10660
10661 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10662
10663         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10664
10665 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
10666
10667         * toplev.c (rest_of_compilation): Delete dead jumptables before
10668         loop.
10669         * flow.c (delete_dead_jumptables): Make global.
10670         * rtl.h (delete_dead_jumptables): Declare.
10671
10672 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
10673
10674         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10675         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10676         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10677
10678 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10679
10680         * config/h8300/h8300-protos.h: Fix formatting.
10681         * config/h8300/h8300.c: Likewise.
10682         * config/h8300/h8300.h: Likewise.
10683
10684 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10685
10686         * config/h8300/h8300.c (print_operand): Support 16-bit
10687         constant addresses.
10688         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10689
10690 2002-02-28  Richard Henderson  <rth@redhat.com>
10691
10692         * expmed.c (store_bit_field): Prevent generation of CONCATs;
10693         pun complex values as integers; use gen_lowpart instead of
10694         gen_rtx_SUBREG.
10695         (extract_bit_field): Likewise.
10696
10697 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
10698             David Edelsohn  <edelsohn@gnu.org>
10699
10700         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10701         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10702         (SUPPORTS_WEAK): Likewise.
10703         * output.h (add_weak): Add tree param.
10704         * varasm.c (add_weak): Likewise.  Save decl.
10705         (struct weak_syms): Add decl field.
10706         (mark_weak_decls): New function.
10707         (init_varasm_once): ggc_add_root mark_weak_decls.
10708         (assemble_start_function): Use ASM_WEAKEN_DECL.
10709         (assemble_variable): Likewise.
10710         (assemble_alias): Likewise.
10711         (declare_weak): Pass decl to add_weak.
10712         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10713         (remove_from_pending_weak_list): Declare and define for
10714         ASM_WEAKEN_DECL.
10715         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10716         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10717         * defaults.h (SUPPORTS_WEAK): Likewise.
10718         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10719         .weak for code sym.  Do emit .size for descriptor sym.
10720         (ASM_DECLARE_FUNCTION_SIZE): Define.
10721         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10722         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
10723         .lglobl unless TARGET_XCOFF.  Formatting fixes.
10724         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10725         .weak for code sym.
10726         (HANDLE_PRAGMA_WEAK): Remove.
10727         (ASM_WEAKEN_LABEL): Remove.
10728         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10729
10730 2002-03-01  Jason Merrill  <jason@redhat.com>
10731
10732         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10733         (TARGET_EXPR_CLEANUP): New macro.
10734
10735 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
10736
10737         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10738         to take ptr_extend into account as third type of extension.
10739         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10740         fields used by SUBREG_PROMOTED_UNSIGNED_P.
10741         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10742         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10743         * calls.c (precompute_arguments): Use new macro.
10744         (expand_call): Ditto.
10745         * combine.c (nonzero_bits): Ditto.
10746         (record_promoted_value): Ditto.
10747         * expr.c (store_expr): Ditto.
10748         (expand_expr): Ditto.
10749         * function.c (assign_parms): Ditto.
10750
10751 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
10752
10753         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10754         override -shared and -shared-libgcc.
10755
10756 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
10757
10758         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10759         of "ultrasparc".
10760         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
10761         to be broken.
10762
10763 2002-02-28  Richard Henderson  <rth@redhat.com>
10764
10765         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10766         4 cycle latency from MM producers.
10767         (ia64_internal_sched_reorder): Likewise with pipeline flush.
10768
10769 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
10770
10771         * mklibgcc.in: Don't use GNU make extension.
10772
10773 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10774
10775         * c-parse.in (STATIC): New terminal.
10776         (scspec): New non-terminal.  Update productions accordingly.
10777         (program): Remove bogus ifc / end ifc.
10778         (array_declarator): Simplify production using STATIC.
10779
10780 2002-02-28  Jim Meyering  <meyering@lucent.com>
10781
10782         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10783         \a still means TARGET_BELL.
10784
10785 2002-02-28  Richard Henderson  <rth@redhat.com>
10786
10787         * haifa-sched.c (sched_emit_insn): New.
10788         (schedule_block): Use last_scheduled_insn to track last insn.
10789         * sched-int.h (sched_emit_insn): Prototype.
10790         * config/ia64/ia64.c (last_issued): Remove.
10791         (ia64_variable_issue): Don't set it.
10792         (nop_cycles_until): Use sched_emit_insn.
10793
10794 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
10795
10796         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10797         extended constants.
10798
10799 2002-02-28  Kazu Hirata  <kazu@hxi.com>
10800
10801         * config/h8300/h8300.c: Fix formatting.
10802         * config/h8300/h8300.h: Likewise.
10803
10804 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10805
10806         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10807         which may overwrite the high byte of the frame pointer.
10808
10809 2002-02-28  Bo Thorsen  <bo@suse.de>
10810
10811         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10812         (STARTFILE_SPEC): Add 64 bit files.
10813         (ENDFILE_SPEC): Likewise.
10814
10815 2002-02-28  Jason Merrill  <jason@redhat.com>
10816
10817         * c-decl.c (finish_function): Only warn about missing return
10818         statement with -Wreturn-type.
10819
10820 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
10821
10822         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10823
10824         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10825         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10826
10827 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
10828
10829         * basic-block.h (BB_REACHABLE): Renumber.
10830         (BB_DIRTY, BB_NEW): New flags.
10831         (clear_bb_flags): Declare.
10832         (update_life_info_in_dirty_blocks): Declare.
10833         * cfg.c (clear_bb_flags): New function.
10834         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10835         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10836         reorder_insns, emit_insn_after): Mark block as dirty.
10837         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10838         (update_life_info_in_dirty_blocks): New function.
10839         * recog.c (apply_change_group): Dirtify block.
10840
10841         * cse.c (cse_insn): Reorder emitting of jump insn to keep
10842         cfg consistent.
10843         * gcse.c (delete_null_pointer_checks): Likewise.
10844
10845         * toplev.c (dump_file_index): Move cse2 after bp,
10846         add DFI_null
10847         (dump_file_info): Similary.
10848         (rest_of_compilation): Avoid most of CFG rebuilds;
10849         do first if converision after null pointer checks, do cse2
10850         after branch prediction; avoid full liveness rebuild after
10851         initializing subregs.
10852         * invoke.texi (-d options): Document -du, renumber.
10853
10854         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10855         (notice_new_block): Do not set BB_UPDATE_LIFE.
10856         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10857          merge_blocks_move_successor_nojumps, merge_blocks,
10858          try_crossjump_to_edge): Likewise.
10859         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10860         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10861         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10862         (merge_of_block): Do not use life_data_ok.
10863         (find_if_case_1): Do not use SET_UPDATE_LIFE.
10864         (if_convert): Use BB_DIRTY mechanizm to update life.
10865         * lcm.c (optimize_mode_switching): Update
10866         update_life_info_in_dirty_blocks
10867
10868 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10869
10870         * Makefile.in (integrate.o): Update.
10871         * c-decl.c (copy_lang_decl): Rename.
10872         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10873         * integrate.c: Include langhooks.h.
10874         (copy_decl_for_inlining): Update to use langhook.
10875         * langhooks-def.h (lhd_do_nothing_t,
10876         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10877         (LANG_HOOKS_INITIALIZER): Update.
10878         * langhooks.c (lhd_do_nothing_t): New.
10879         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10880         * tree.h (copy_lang_decl): Remove.
10881 objc:
10882         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10883
10884 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
10885
10886         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10887         POST_DEC, and POST_MODIFY.
10888
10889 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10890
10891         * c-typeck.c (digest_init): Remove unused parameter; all
10892         callers changed.
10893
10894 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
10895
10896         * expmed.c (expand_shift): Correctly test for low part of a
10897         subreg.
10898
10899 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
10900
10901         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10902         insn UIDs with insn addresses.
10903
10904 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10905
10906         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10907         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10908         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10909         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10910         gcc.c, toplev.c: Delete code implementing -traditional mode.
10911
10912         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10913         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10914         Document removal of -traditional mode for compilation, and
10915         remove documentation only relevant to that mode.
10916
10917         * config/nextstep.h, config/ptx4.h, config/svr4.h,
10918         config/convex/convex.h, config/d30v/d30v.h,
10919         config/i386/dgux.h, config/i386/osf1elf.h,
10920         config/i386/osfelf.h, config/i386/osfrose.h,
10921         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10922         config/m68k/hp310.h, config/m88k/dgux.h,
10923         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10924         config/m88k/m88k.h, config/m88k/openbsd.h,
10925         config/mips/abi64.h, config/mips/osfrose.h,
10926         config/mips/svr4-5.h, config/mips/svr4-t.h,
10927         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10928         config/stormy16/stormy16.h: Remove all references to
10929         -traditional from target specs.  Delete all mention of the
10930         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
10931         delete a couple of commented-out definitions of
10932         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10933         to -traditional.
10934
10935         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
10936         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
10937
10938 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10939
10940         * mklibgcc.in: Don't use \n in a line subject to
10941         interpretation by echo.
10942
10943 2002-02-27  Graham Stott  <grahams@redhat.com>
10944
10945         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
10946         Constify NAME.
10947
10948         * loop.c (prescan_loop): Handle PARALLEL.
10949
10950         * unroll.c (loop_iterations): Return 0 if the add_val for
10951         a BIV is REG.
10952
10953         * final.c (output_operand_lossage): Constify PFX_STR.
10954
10955         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
10956
10957 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10958
10959         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
10960         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
10961
10962 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
10963
10964         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10965
10966 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10967
10968         * cpplex.c (_cpp_lex_token): Handle directives in macro
10969         arguments.
10970         * cpplib.c (_cpp_handle_directive): Save and restore state
10971         if parsing macro args when entering a directive.
10972         * cppmacro.c (collect_args): No need to handle directives
10973         in macro arguments.
10974         (enter_macro_context, replace_args): Use the original macro
10975         definition in case it was redefined whilst collecting arguments.
10976 doc:
10977         * cpp.texi: Update.
10978
10979 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
10980
10981         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
10982         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
10983         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
10984         method on AIX.
10985         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
10986         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
10987         (load_toc_v4_PIC_2): Same.
10988
10989 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
10990
10991         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
10992
10993 2002-02-26  Richard Henderson  <rth@redhat.com>
10994
10995         * config/alpha/alpha.md (ashldi_se): Re-enable.
10996
10997 2002-02-26  Richard Henderson  <rth@redhat.com>
10998
10999         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11000         MODULE_LOCAL_P; improve commentary.
11001
11002 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11003
11004         * doc/cpp.texi: Clarify documentation of relationship between
11005         #line and #include.
11006
11007 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11008
11009         * config/h8300/h8300-protos.h: Update the prototype for
11010         compute_logical_op_length.  Add the prototype for
11011         compute_logical_op_cc.
11012         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11013         code from operands.
11014         (compute_logical_op_cc): New.
11015         * config/h8300/h8300.md: Combine all the logical op patterns
11016         in HImode and SImode.  Use compute_logical_op_cc.
11017
11018 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11019
11020         * config/i386/i386.c (print_operand): Don't append ATT-style
11021         length suffixs to x87 opcodes when in Intel mode.
11022
11023 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11024
11025         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11026         (init_emit_once): Update calls.
11027         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11028         (init_syntax_once): Prototype.
11029
11030 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11031
11032         * pa-linux.h (LIB_SPEC): Update definition.
11033         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11034
11035 2002-02-26  Richard Henderson  <rth@redhat.com>
11036
11037         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11038         if we emitted a stop bit.
11039
11040 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11041
11042         * configure.in (libgcc_visibility): Substitute.
11043         * configure: Rebuilt.
11044         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11045         defined symbols .hidden.
11046
11047 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11048
11049         * attribs.c (c_common_attribute_table): Add visibility.
11050         (handle_visibility_attribute): New function.
11051         * varasm.c (assemble_visibility): New function.
11052         * output.h (assemble_visibility): Add prototype.
11053         * tree.h (MODULE_LOCAL_P): Define.
11054         * crtstuff.c (__dso_handle): Use visibility attribute.
11055         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11056         for MODULE_LOCAL_P symbols too.
11057         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11058         MODULE_LOCAL_P symbols the same way as local symbols.
11059         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11060         into .sdata/.sbss by the user.
11061         * doc/extend.texi (Function Attributes): Document visibility
11062         attribute.
11063
11064 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11065
11066         PR debug/5770
11067         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11068         STRING_CST initializer spanning the whole variable without
11069         embedded zeros.
11070         If expand_expr returned MEM, don't use it.
11071
11072 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11073
11074         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11075         generate a die for the lexical block.
11076
11077 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11078
11079         * config/h8300/h8300-protos.h: Add a prototype for
11080         compute_logical_op_length.
11081         * config/h8300/h8300.c (compute_logical_op_length): New.
11082         * config/h8300/h8300.md (anonymous logical patterns): Use
11083         compute_logical_op_length for length.
11084
11085 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11086
11087         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11088         for vectors.
11089         (gen_type_die): Same.
11090
11091         * attribs.c (handle_vector_size_attribute): Set debug information.
11092
11093 2002-02-26  Daniel Egger  <degger@fhm.edu>
11094
11095         * config/rs6000/rs6000.md: Swap define_insn attributes to
11096         fix incorrect generation of merge high instructions instead
11097         of merge low.
11098
11099 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11100
11101         * c-typeck.c (really_start_incremental_init): Use
11102         bitsize_zero_node for vectors.
11103
11104 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11105
11106         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11107         ("*set_vrsave_internal"): Same.
11108
11109 2002-02-25  Richard Henderson  <rth@redhat.com>
11110
11111         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11112         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11113
11114 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11115
11116         PR target/5755
11117         * config/i386/i386.c (ix86_return_pops_args): Only pop
11118         fake structure return argument if it was passed on the stack.
11119
11120 2002-02-25  Jason Merrill  <jason@redhat.com>
11121
11122         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11123         RESULT_DECL.
11124
11125 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11126
11127         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11128         link with shared_name only.
11129         * doc/invoke.texi (Link Options): Document new behavior.
11130
11131 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11132
11133         * c-typeck.c (push_init_level): Handle vectors.
11134
11135 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11136
11137         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11138         operands of SPARC_SETHI_P.
11139         (input_operand): Likewise.
11140         (sparc_emit_set_const32): Likewise.
11141         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11142         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11143         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11144         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11145         (movdi_insn_sp64_vis): Likewise.
11146         (movdi split, movdf split): Use SETHI32.
11147         * doc/md.texi: Document SPARC constraints L, M and N.
11148
11149 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11150
11151         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11152         ("*set_vrsave_internal"): use mfspr for Darwin.
11153
11154         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11155         gen_get_vrsave_internal.
11156
11157 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11158
11159         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11160
11161 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11162
11163         * cpplex.c (cpp_interpret_charconst): Get signedness or
11164         otherwise of wide character constants correct.
11165         * cppexp.c (lex): Get signedness of wide charconsts correct.
11166
11167 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11168
11169         * optabs.c (widen_operand): Only call convert_modes for
11170         promoted SUBREG if signedness matches.
11171         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11172
11173 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11174
11175         * cpplib.c (glue_header_name): Use local buffer to build up
11176         header name.
11177
11178 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11179
11180         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11181
11182 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11183
11184         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11185         H8/300[HS] separately.
11186         * config/h8300/h8300.md: Remove the early clobber constraint
11187         from bit field patterns.
11188
11189 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11190
11191         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11192         register_operand.
11193         (mulhisi3): Likewise.
11194         (umulqisi3): Likewise.
11195         (umulhisi3): Likewise.
11196
11197 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11198
11199         * cppinit.c (output_deps): Correct test for stdout output.
11200         (init_dependency_output): Cure warning.
11201
11202 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11203
11204         * expr.c (store_expr): When converting expression to promoted
11205         equivalent type, allow using SUBREG_REG of TARGET as the target
11206         of the expansion of EXP.
11207         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11208         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11209         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11210         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11211         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11212
11213 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11214
11215         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11216         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11217         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11218
11219 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11220
11221         PR optimization/5747
11222         * loop.c (scan_loop): Update reg info if move_movables created new
11223         pseudos.
11224
11225 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11226
11227         * gcc.c (init_gcc_spec): Revert last change.
11228
11229 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11230
11231         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11232         gpc_reg_operand constraint.
11233
11234 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11235
11236         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11237         Simplify comparison of `low'.
11238         (add_operand): Fix formatting.
11239         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11240         (mask_operand): Disallow mask to wrap in 64-bit mode.
11241         (rs6000_stack_info): Remove redundant test setting push_p.
11242         (output_toc): Fix formatting.
11243         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11244         cc_reg_not_cr0_operand constraint.
11245         (booldi3, boolcdi3 splitters): Same.
11246
11247 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11248
11249         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11250
11251 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11252
11253         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11254         gcc invoked with -shared-libgcc.
11255
11256 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11257
11258         PR c++/5748
11259         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11260         decl if any of elements was TREE_USED.
11261
11262 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11263
11264         * config/sparc/sol2.h: Don't include sys/mman.h.
11265         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11266         (arith_4096_operand): Don't throw high bits away.
11267         (const64_operand): Take sign extension of CONST_INTs into account.
11268         (const64_high_operand, sparc_emit_set_const32): Likewise.
11269         (GEN_HIGHINT64): Likewise.
11270         (sparc_emit_set_const64_quick1): Likewise.
11271         (const64_is_2insns): Likewise.
11272         (print_operand): Use trunc_int_for_mode for sign extension.
11273         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11274         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11275         chars.  Assume CONST_INT is already properly sign-extended.
11276         (movdi split): Sign-extend each SImode part.
11277         (andsi3 split): Don't mask high bits off, so that result
11278         remains properly sign-extend.
11279         (iorsi3 split): Likewise.
11280         (xorsi3 split): Likewise.
11281
11282 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11283
11284         * fold-const.c (fold): Fix typo in comments.
11285
11286 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11287
11288         * Makefile.in (langhooks.o): Update dependencies.
11289
11290 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11291
11292         * langhooks.c: Include flags.h.
11293
11294 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11295
11296         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11297
11298         * c-common.c (c_common_post_options): Set inline trees by
11299         default.
11300
11301         * doc/extend.texi (Function Attributes): Document always_inline
11302         attribute.
11303         Update documentation about inlining when not optimizing.
11304
11305         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11306
11307         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11308         unless DECL_ALWAYS_INLINE.
11309
11310         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11311         unless DECL_ALWAYS_INLINE.
11312         (c_disregard_inline_limits): Disregard if always_inline set.
11313
11314         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11315         Disregard if always_inline set.
11316         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11317         unless DECL_ALWAYS_INLINE.
11318
11319         * attribs.c (handle_always_inline_attribute): New.
11320         (c_common_attribute_table): Add always_inline.
11321
11322         * config/rs6000/altivec.h: Add prototypes for builtins
11323         requiring the always_inline attribute.
11324
11325 2002-02-21  Eric Christopher  <echristo@redhat.com>
11326
11327         * expmed.c (store_bit_field): Try to simplify the subreg
11328         before generating a new one when when the mode size of
11329         value is less than maxmode.
11330
11331 2002-02-21  Richard Henderson  <rth@redhat.com>
11332
11333         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11334         than gen_rtx_PLUS to form the sum.
11335         * explow.c (force_reg): Rearrange to not allocate new pseudo
11336         when force_operand returns a register.
11337         * expr.c (expand_assignment): Allow offset_rtx expansion to
11338         return a sum.  Do not force addresses into registers.
11339         (expand_expr): Likewise.
11340         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11341         to canonicalize arithmetic that didn't simpify.
11342         (simplify_plus_minus): New argument force; update
11343         all callers.  Don't split CONST unless we can do something with it,
11344         and wouldn't lose the constness of the operands.
11345
11346         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11347         that we generated earlier.
11348
11349 2002-02-21  Tom Tromey  <tromey@redhat.com>
11350
11351         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11352         (output_line_info): Use constant `1', with a long explanatory
11353         comment.
11354         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11355
11356 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11357
11358         * jump.c (redirect_jump): If old label has no UID, don't try to
11359         delete it.
11360
11361 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11362
11363         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11364         If input is constant, do shifts at compile time.
11365
11366 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11367
11368         * doc/extend.texi: Fix some more overfull hboxes.
11369
11370 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11371
11372         PR optimization/4994
11373         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11374         register moves.
11375
11376 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11377
11378         PR c++/4574
11379         * expr.h (expand_and): Add mode argument.
11380         * expmed.c (expand_and): Add mode argument.
11381         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11382         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11383         * except.c (expand_builtin_extract_return_addr): Likewise.
11384         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11385         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11386         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11387         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11388         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11389         gen_rtx (CONST_INT, VOIDmode, x).
11390
11391 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11392
11393         PR c/4697:
11394         * stmt.c (warn_if_unused_value): Move side effects test once more.
11395
11396 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11397
11398         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11399         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11400
11401 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11402
11403         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11404         SUBREG or ZERO_EXTEND.
11405
11406 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11407
11408         * sh.h (current_function_anonymous_args): Remove.
11409         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11410         of current_function_varargs and current_function_stdarg is set.
11411         * sh.c (sh_expand_prologue): Check current_function_varargs /
11412         current_function_stdarg / TARGET_SH5 instead of
11413         current_function_anonymous_args.
11414
11415         * sh64.h (TARGET_VERSION): Define.
11416
11417 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11418
11419         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11420         VRSAVE_REGNO on TARGET_ALTIVEC.
11421
11422 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11423
11424         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11425         bits of SImode const_int.
11426         (includes_rshift_p): Likewise.
11427         (print_operand): Call mask_operand and mask64_operand with correct
11428         mode.
11429         (rs6000_output_function_epilogue): Pad traceback table to word.
11430         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11431         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11432         mask64_operand with correct mode.
11433         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11434
11435 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11436
11437         PR debug/4461
11438         * varasm.c (get_pool_constant_mark): New.
11439         * rtl.h (get_pool_constant_mark): Add prototype.
11440         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11441         be represented if it has not been output.
11442
11443 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11444
11445         * combine.c (do_SUBST): Sanity check substitutions of
11446         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11447         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11448         CONST_INT into its operand.
11449         (known_cond): Likewise, for ZERO_EXTEND.
11450         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11451         allow for simplification of wide modes.  Reject CONST_INTs in
11452         ZERO_EXTEND when their actual mode is not given.
11453
11454 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11455
11456         * c-decl.c (pushdecl): If no global declaration is found for an
11457         extern declaration in block scope, try a limbo one.
11458
11459 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11460
11461         PR c++/4401
11462         * c-common.c (pointer_int_sum): Moved from...
11463         * c-typeck.c (pointer_int_sum): ...here.
11464         * c-common.h (pointer_int_sum): Add prototype.
11465
11466 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11467
11468         PR c++/5713
11469         * c-decl.c (duplicate_decls): Return 0 if issued error about
11470         redeclaration.
11471
11472 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11473             Jakub Jelinek  <jakub@redhat.com>
11474
11475         PR c/4389
11476         * tree.c (host_integerp): Ensure that the constant integer is
11477         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11478         when pos is zero or non-zero respectively.  Clarify comment.
11479         * c-format.c (check_format_info_recurse): Fix host_integerp
11480         usage; the pos argument should be zero when assigning to a
11481         signed HOST_WIDE_INT.
11482
11483 2002-02-20  Richard Henderson  <rth@redhat.com>
11484
11485         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11486         of the operand, rather than assuming TImode.
11487         (ix86_expand_binop_builtin): Cope with commutative patterns
11488         using nonimmediate_operand for both operands.
11489         (ix86_expand_timode_binop_builtin): Likewise.
11490         (ix86_expand_store_builtin): Validate operand 1.
11491         (ix86_expand_unop1_builtin): Likewise.
11492
11493 2002-02-20  Philip Blundell  <philb@gnu.org>
11494
11495         PR 5705
11496         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11497
11498 2002-02-20  Richard Henderson  <rth@redhat.com>
11499
11500         PR c/5615
11501         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11502
11503 2002-02-20  Tom Tromey  <tromey@redhat.com>
11504
11505         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11506         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11507         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11508         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11509         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11510         unconditionally.
11511
11512 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11513
11514         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11515           for (const_int 0) in X not just INTVAL.
11516
11517 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11518
11519         * doc/extend.texi: Avoid or reduce overfull hboxes.
11520
11521 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
11522
11523         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11524         operations if the field does not start at a mode boundary.
11525
11526 2001-02-20      Joel Sherrill <joel@OARcorp.com>
11527
11528         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11529         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11530         Also done for -Acpu and -Amachine.
11531
11532 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11533
11534         * cppinit.c (init_dependency_output): Take deps output file
11535         from -o if none given with -MF.  Suppress normal output.
11536         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11537         * doc/cpp.texi, doc/invoke.texi: Update.
11538
11539 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11540
11541         * toplev.c (output_quoted_string): Write unprintable
11542         characters with octal escapes.
11543
11544 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11545
11546         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11547         really_call_used[VRSAVE_REGNO] if not Altivec.
11548
11549 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
11550
11551         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11552         MODE_MASK.
11553         (constant_pool_expr_1): Fix formatting.
11554         (rs6000_legitimize_reload_address): Likewise.
11555
11556 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11557
11558         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11559         now that we have one.
11560
11561 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11562
11563         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
11564         end of first block of bitfields (which was only seven bits);
11565         rename dummy to unused_1; remove comment which is no longer true.
11566
11567 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11568
11569         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11570
11571 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11572
11573         PR 5399
11574         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11575         if generating PIC.
11576
11577         PR 5054
11578         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11579         arm_is_longcall_p rather than inspecting call-type cookie
11580         directly.
11581         (call_value_insn) [TARGET_THUMB]: Likewise.
11582
11583 2002-02-19  Graham Stott  <grahams@redhat.com>
11584
11585         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11586
11587 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11588
11589         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11590         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11591         (FP_SAVE_INLINE): Delete.
11592
11593         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11594         * config/rs6000/eabi.asm: Remove ABI save restore routines.
11595         * config/rs6000/t-ppccomm: Build crtsavres.o.
11596         * config/rs6000/crtsavres.asm: New file.
11597
11598 2002-02-19  Philip Blundell  <philb@gnu.org>
11599
11600         * config/arm/arm.c (use_return_insn): Don't reject interrupt
11601         functions.
11602         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11603         (output_return_instruction): Allow interrupt functions to return with
11604         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
11605         (arm_expand_prologue): Subtract 4 before stacking LR in an
11606         interrupt function.
11607
11608 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11609
11610         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11611         decl, not just FUNCTION_DECL.
11612         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11613         (arm_assemble_integer): Likewise.
11614         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11615         marked local.
11616
11617 2002-02-19  matthew green  <mrg@eterna.com.au>
11618
11619         * config.gcc (sparc-*-netbsdelf*): Enable target.
11620         (sparc64-*-netbsd*): New target.
11621         * config/sparc/netbsd-elf.h: New file.
11622         * config/sparc/t-netbsd64: New file.
11623
11624 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11625
11626         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11627
11628 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
11629
11630         * doc/invoke.texi: explicitly list the style guidelines that
11631         -Weffc++ checks for.
11632
11633 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
11634
11635         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11636
11637 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11638
11639         PR other/5718
11640         * gcc.c (cpp_unique_options): Treat -o as indicating object file
11641         only if not -E.  If -E, pass -o through to the preprocessor.
11642
11643 2002-02-19  Kazu Hirata  <kazu@hxi.com>
11644
11645         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11646         register number with an appropriate macro.
11647
11648 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11649
11650         * doc/rtl.texi (Constants): Close @code tag.
11651
11652 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
11653
11654         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11655         ("mmx_uavgv4hi3"): Same.
11656         ("pmulhrwv4hi3"): Same.
11657
11658         * tree-inline.c (walk_tree): Handle vectors.
11659
11660         * c-common.c (constant_expression_warning): Handle vectors.
11661         (overflow_warning): Same.
11662
11663         * sched-deps.c (sched_analyze_2): Handle vectors.
11664
11665         * rtlanal.c (rtx_unstable_p): Handle vectors.
11666         (rtx_varies_p): Same.
11667         (count_occurrences): Same.
11668         (regs_set_between_p): Same.
11669         (modified_between_p): Same.
11670         (modified_in_p): Same.
11671         (volatile_insn_p): Same.
11672         (volatile_refs_p): Same.
11673         (side_effects_p): Same.
11674         (may_trap_p): Same.
11675         (inequality_comparisons_p): Same.
11676         (replace_regs): Same.
11677         (computed_jump_p_1): Same.
11678
11679         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11680         argument.
11681         (inner_mode_array): New.
11682         (copy_rtx): Handle vectors.
11683         (copy_most_rtx): Same.
11684         (rtx_equal_p): Same.
11685         (get_mode_alignment): Adjust for vectors.
11686
11687         * resource.c (mark_referenced_resources): Handle vectors.
11688         (mark_set_resources): Same.
11689
11690         * reload1.c (eliminate_regs): Handle vectors.
11691         (elimination_effects): Same.
11692         (scan_paradoxical_subregs): Same.
11693
11694         * reload.c (subst_reg_equivs): Handle vectors.
11695
11696         * regrename.c (scan_rtx): Handle vectors.
11697
11698         * regclass.c (reg_scan_mark_refs): Handle vectors.
11699
11700         * recog.c (find_single_use_1): Handle vectors.
11701
11702         * local-alloc.c (equiv_init_varies_p): Handle vectors.
11703         (contains_replace_regs): Same.
11704         (memref_referenced_p): Same.
11705
11706         * integrate.c (copy_rtx_and_substitute): Handle vectors.
11707         (subst_constants): Same.
11708
11709         * genattrtab.c (attr_copy_rtx): Handle vectors.
11710         (encode_units_mask): Same.
11711         (clear_struct_flag): Same.
11712         (count_sub_rtxs): Same.
11713
11714         * gcse.c (want_to_gcse_p): Handle vectors.
11715         (oprs_unchanged_p): Same.
11716         (hash_expr_1): Same.
11717         (oprs_not_set_p): Same.
11718         (expr_killed_p): Same.
11719         (compute_transp): Same.
11720         (store_ops_ok): Same.
11721
11722         * function.c (purge_addressof_1): Do not allow paradoxical subregs
11723         of vectors.
11724         (fixup_var_refs_1): Same.
11725         (instantiate_virtual_regs_1): Same.
11726
11727         * fold-const.c (operand_equal_p): Handle vectors.
11728         (fold): Same.
11729         (rtl_expr_nonnegative_p): Same.
11730
11731         * flow.c (mark_used_regs): Handle vectors.
11732
11733         * df.c (df_uses_record): Handle vectors.
11734
11735         * cselib.c (cselib_subst_to_values): Handle vectors.
11736         (cselib_mem_conflict_p): Same.
11737         (hash_rtx): Same.
11738
11739         * cse.c (canon_reg): Handle vectors.
11740         (fold_rt): Same.
11741         (cse_process_notes): Same.
11742         (count_reg_usage): Same.
11743         (canon_hash): Same.
11744
11745         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11746
11747         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11748
11749         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11750         (gen_rtx): Handle CONST_VECTOR.
11751         (gen_const_vector_0): New.
11752         (copy_rtx_if_shared): CONST_VECTORs can be shared.
11753         (reset_used_flags): Same.
11754         (copy_insn_1): Same.
11755         (initializer_constant_valid_p): Handle VECTOR_CST.
11756
11757         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11758
11759         * doc/rtl.texi (Constants): Document const_vector.
11760         (CONST0_RTX): Update for vectors.
11761         (RTL sharing): Same.
11762
11763         * print-tree.c (print_node): Add case for VECTOR_CST.
11764
11765         * tree.h (TREE_VECTOR_CST_ELTS): New.
11766         (struct tree_vector): New.
11767         (union tree_node): Add vector node.
11768         (build_vector): Add prototype.
11769
11770         * tree.def (VECTOR_CST): New.
11771
11772         * tree.c (build_vector): New.
11773
11774         * expmed.c (make_tree): Handle CONST_VECTOR.
11775
11776         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11777         (CONST_VECTOR_ELT): New.
11778         (CONST_VECTOR_NUNITS): New.
11779
11780         * machmode.h (GET_MODE_INNER): New.
11781         (DEF_MACHMODE): Accept 8th arg.
11782
11783         * machmode.def: Add 8th argument for vector inner mode.
11784         Add inner vector modes for vectors.
11785
11786         * rtl.def (VEC_CONST): Remove.
11787         (CONST_VECTOR): New.
11788
11789         * expr.c (clear_storage): Allow vectors.
11790         (is_zeros_p): Handle VECTOR_CST.
11791
11792         * varasm.c (output_constant_pool): Handle vectors.
11793         (rtx_const): Add veclo and vechi fields.
11794         (kind): Add RTX_VECTOR.
11795         (decode_rtx_const): Add case for vector.
11796
11797         * config/rs6000/rs6000-protos.h: Add zero_constant.
11798
11799         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11800         constants.  Force easy vector constants into memory.
11801         (easy_vector_constant): New.
11802         (emit_easy_vector_constant): New.
11803         (rs6000_legitimize_reload_address): Do not generate bad reloads on
11804         darwin.
11805
11806         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11807         instruction does.
11808         ("altivec_lvxl"): Same.
11809         (altivec_lvebx): Same.
11810         (altivec_lvehx): Same.
11811         (altivec_lvewx): Same.
11812         ("*movv4si_const0"): New.
11813         ("*movv4sf_const0"): New.
11814         ("*movv8hi_const0"): New.
11815         ("*movv16qi_const0"): New.
11816
11817 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11818
11819         * config/h8300/h8300.c (notice_update_cc): Use
11820         cc_status.value2.
11821
11822 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11823
11824         * config/h8300/h8300.md (divmod patterns): Change the
11825         constraints for operands[1] to register_operand.
11826
11827 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11828
11829         * config/h8300/h8300-protos.h: Remove the prototype for
11830         p_operand.
11831         * config/h8300/h8300.c (p_operand): Remove.
11832         * config/h8300/h8300.md: Replace p_operand with
11833         const_int_operand.
11834
11835 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11836
11837         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11838         comment.
11839         (output_return_instruction): Allow use of LDR to unstack
11840         return addresss even for interrupt handlers or when
11841         interworking.  If compiling for ARMv5, use interworking-safe
11842         return instructions by default.  Remove duplicated code and
11843         lengthy "strcat" sequences.
11844
11845 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11846
11847         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11848         (LINK_EH_SPEC): Define.
11849         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11850
11851 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
11852
11853         * config/s390/s390.c (s390_emit_prologue): Do not set the
11854         frame_related flag for call-clobbered registers.
11855
11856 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
11857
11858         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11859         (construct_container): Fix handling of SSE operands.
11860         (ix86_expand_builtin): Fix handling of 64bit pointers.
11861         (mmx_maskmovq_rex): New pattern.
11862
11863 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
11864
11865         * regrename.c (kill_set_value): Handle subregs properly.
11866
11867 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
11868
11869         * objc/objc-act.c (handle_impent): Remove leading '*'
11870         from objc_class_name.
11871
11872 2002-02-17  Richard Henderson  <rth@redhat.com>
11873
11874         * config/alpha/alpha.c (some_small_symbolic_operand,
11875         some_small_symbolic_operand_1, split_small_symbolic_operand,
11876         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11877         Handle small SYMBOL_REFs anywhere, not just inside memories.
11878         * config/alpha/alpha-protos.h: Update.
11879         * config/alpha/alpha.h (PREDICATE_CODES): Update.
11880         * config/alpha/alpha.md (small symbolic operand splitter): Update.
11881
11882 2002-02-17  Roland McGrath  <roland@frob.com>
11883
11884         * config.gcc (powerpc-*-gnu-gnualtivec*,
11885         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11886         * config/rs6000/gnu.h: New file.
11887         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11888         Grok "gnu" in rs6000_abi_name.
11889         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11890         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11891         Grok -mcall-gnu analogous to -mcall-linux et al.
11892         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11893         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11894         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11895
11896 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
11897
11898         PR c/3444:
11899         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11900         shortening.
11901
11902 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11903
11904         * config/cris/cris.h: Undefine STARTFILE_SPEC and
11905         ENDFILE_SPEC before (re)defining them.
11906
11907 2002-02-17  Kazu Hirata  <kazu@hxi.com>
11908
11909         * config/h8300/h8300.c: Fix formatting.
11910         * config/h8300/h8300.h: Likewise.
11911
11912 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11913
11914         * doc/tm.texi: Explain why empty strings should not be
11915         marked for translation.
11916
11917 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11918
11919         * final.c (output_operand_lossage): Changed to accept
11920         printf style arguments. Change calls where necessary.
11921         * output.h (output_operand_lossage): Change declaration
11922         accordingly. Update copyright.
11923         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11924         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11925         Update copyright date where necessary.
11926
11927         * config/i386/i386.c (print_operand): Likewise. Remove use of
11928         sprintf.
11929
11930         * config/cris/cris.c (cris_operand_lossage): Likewise.
11931         Rename parameter so that exgettext recognizes it as
11932         translatable message.
11933         (LOSE_AND_RETURN): Rename parameter to msgid.
11934
11935 2002-02-17  Kazu Hirata  <kazu@hxi.com>
11936
11937         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
11938         hard coded register number with an appropriate macro.
11939         (HARD_REGNO_MODE_OK): Likewise.
11940         (ARG_POINTER_REGNUM): Likewise.
11941         (STATIC_CHAIN_REGNUM): Likewise.
11942         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11943         * config/h8300/h8300.md (define_constants): Define more
11944         register numbers.
11945
11946 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11947
11948         * config/i386/i386.h: Don't mark empty strings for translation.
11949
11950 2002-02-16  H.J. Lu <hjl@gnu.org>
11951
11952         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
11953
11954 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
11955
11956         * cppinit.c (merge_include_chains): Check for brack being
11957         NULL before attempting to merge it with qtail.
11958
11959 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
11960
11961         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
11962         DBX_DEBUG.
11963
11964 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11965
11966         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
11967
11968 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11969
11970         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
11971         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
11972         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
11973
11974 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11975
11976         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
11977         now only if !TARGET_FIX.
11978         (*movsi_nt_vms_fix): New pattern.
11979
11980 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
11981
11982         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
11983         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
11984         (alpha_sa_mask, alpha_sa_size): Reflect above change.
11985         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
11986         (alpha_start_function, alpha_expand_epilogue): Likewise.
11987         (unicosmk_gen_dsib): Likewise.
11988
11989 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11990
11991         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
11992
11993 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
11994
11995         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
11996         check_and_change_labels, s390_final_chunkify): Delete.
11997         (s390_split_branches, s390_chunkify_pool): New functions.
11998         (s390_function_prologue): Call them.
11999
12000         * config/s390/s390.h (S390_REL_MAX): Delete.
12001         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12002
12003         * config/s390/s390.md (cjump, icjump, jump): Fix length
12004         attribute calculation.
12005
12006
12007 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12008
12009         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12010         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12011
12012 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12013
12014         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12015         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12016         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12017
12018 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12019
12020         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12021
12022 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12023
12024         * reload.c (find_dummy_reload): Check that an output register
12025         is valid for its mode.
12026
12027 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12028
12029         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12030         to simplify it.
12031
12032         * function.c (assign_parms): Demote promoted argument passed by
12033         transparent reference.
12034
12035 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12036
12037         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12038         -Acpu() and -Amachine() to eliminate warnings.
12039
12040 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12041
12042         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12043
12044 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12045
12046         * config/h8300/h8300-protos.h: Update the prototype for
12047         const_costs.
12048         * config/h8300/h8300.c (const_costs): Treat SET as a little
12049         more expensive operation.
12050         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12051         reference to const_costs.
12052
12053 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12054
12055         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12056
12057 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12058
12059         PR c/5503:
12060         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12061         use arguments from newtype.
12062
12063 2002-02-13  Eric Christopher  <echristo@redhat.com>
12064
12065         * config/mips/mips.c (override_options): Add check for march/mipsX
12066         on the same command line. Fix error message in cpu processing.
12067         Remove architecture and ISA checks.
12068
12069 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12070
12071         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12072
12073         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12074
12075 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12076
12077         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12078         alternatives.
12079         ("*movv8hi_internal1"): Same.
12080         ("*movv16qi_internal1"): Same.
12081         ("*movv4sf_internal1"): Same.
12082
12083         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12084         not push_reload for altivec modes.
12085
12086 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12087
12088         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12089         all RTEMS targets including removal of #includes from config/*/rtems*.h
12090         file and adding them to tm_file setting. Added xm_defines=POSIX to
12091         many targets.
12092         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12093         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12094         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12095         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12096         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12097         config/m68k/rtemself.h: Ditto.
12098         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12099         config/mips/rtems64.h: Ditto.
12100         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12101         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12102         Ditto.
12103         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12104         config/sparc/rtemself.h: Ditto.
12105         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12106         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12107         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12108         more like arm-elf.
12109         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12110         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12111         target made more similar to i386-elf.
12112         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12113         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12114         be similar to config/m68k/t-m68kelf.
12115         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12116
12117 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12118
12119         * regmove.c (kill_value): Handle subregs.
12120
12121 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12122
12123         * i386.md (mul patterns): Allow memory operand to be first;
12124         add expanders where needed; fix constraints.
12125         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12126         Allow memory operand to be the first.
12127
12128         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12129         operands.
12130
12131 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12132
12133         PR c/5681:
12134         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12135         GET_MODE (x).
12136
12137 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12138
12139         PR optimization/5547:
12140         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12141         all valid IA-32 address modes involving non-scaled %ebx and
12142         GOT/GOTOFF as displacement.
12143
12144 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12145
12146         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12147         after emitting ltorg insns.
12148
12149         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12150         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12151         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12152         *abssf2): Fix "op_type" attribute.
12153
12154 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12155
12156         * mkconfig.sh: Avoid using a subshell redirect.
12157         ($output.T): Change to $(output)T.
12158         (ENABLE_NLS): Remove unneeded undef.
12159
12160         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12161         * config/alpha/x-vms (libsubdir): Define.
12162
12163         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12164         register frame procedures. Optimize retrieving context.
12165
12166         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12167         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12168         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12169
12170 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12171
12172         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12173         Make same change as for find_base_value.
12174
12175 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12176
12177         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12178         of QImode and SImode.
12179
12180 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12181
12182         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12183         length computation of movsi.
12184         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12185
12186 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12187
12188         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12189         operands[2] to register_operand.
12190
12191 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12192
12193         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12194
12195 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12196
12197         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12198         for altivec_lvx* and altivec_stvx*.
12199         ("*movv4si_internal"): Add constraint for loading from GPRs.
12200         ("*movv8hi_internal1"): Same.
12201         ("*movv16qi_internal1"): Same.
12202         ("*movv4sf_internal1"): Same.
12203
12204         * config/rs6000/rs6000.c (altivec_register_operand): New.
12205
12206         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12207         altivec_register_operand.
12208
12209 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12210
12211         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12212         handle SYMBOL_REF.
12213
12214 2002-02-13  Stan Shebs  <shebs@apple.com>
12215
12216         * c-typeck.c (digest_init): Handle vectors.
12217         (really_start_incremental_init): Same.
12218         (pop_init_level): Same.
12219         (process_init_element): Same.
12220
12221         * varasm.c (output_constant): Same.
12222
12223         * expr.c (clear_storage): Same.
12224         (store_constructor): Same.
12225
12226 2002-02-12  Eric Christopher  <echristo@redhat.com>
12227
12228         * explow.c (hard_function_value): Add comment explaining
12229         signed/unsigned comparison.
12230
12231 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12232
12233         * jump.c (never_reached_warning): Add finish argument.
12234         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12235         real insn after end.
12236         * rtl.h (never_reached_warning): Adjust prototype.
12237         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12238         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12239         never_reached_warning.
12240
12241 2002-02-12  Graham Stott  <grahams@redhat.com>
12242
12243         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12244
12245 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12246
12247         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12248         logical shifts on H8/300.
12249         (shift_alg_si): Improve several shifts on H8/300.
12250         (get_shift_alg): Likewise.
12251
12252 2002-02-12  Graham Stott  <grahams@redhat.com>
12253
12254         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12255
12256 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12257
12258         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12259         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12260
12261 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12262
12263         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12264         non-CONST_INT through default_assemble_integer.
12265         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12266         <case 8>: Abort for CONST_DOUBLE.
12267
12268 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12269
12270         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12271         is specified.
12272         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12273         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12274
12275 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12276
12277         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12278
12279 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12280
12281         * regrename.c (regrename_optimize): Don't accept a
12282         part-clobbered register if the replaced register is not part
12283         clobbered.
12284
12285         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12286         take padding into account when computing the argument value.
12287
12288         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12289
12290         * combine.c (try_combine): Apply substitutions in
12291         CALL_INSN_FUNCTION_USAGE too.
12292
12293 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12294
12295         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12296         __builtin_altivec_abs*.
12297         (bdesc_abs): New.
12298
12299         * config/rs6000/rs6000.h (rs6000_builtins): Add
12300         ALTIVEC_BUILTIN_ABS*.
12301
12302         * config/rs6000/altivec.h: Use const char for builtins expecting
12303         literals.
12304         (vec_abs): New versions for C and C++.
12305         (vec_abss): Same.
12306
12307 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12308
12309         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12310         using Pmode.
12311
12312 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12313
12314         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12315         constant definition from h8300.md.
12316         (FRAME_POINTER_REGNUM): Likewise.
12317         * config/h8300/h8300.md (define_constants): Add FP_REG.
12318
12319 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12320
12321         * config/h8300/h8300.c (print_operand): Remove redundant code.
12322
12323 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12324
12325         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12326         * config/h8300/h8300.c (byte_reg): Make it static.
12327
12328 2002-02-10  Richard Henderson  <rth@redhat.com>
12329
12330         PR c/5623
12331         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12332
12333 2002-02-10  Richard Henderson  <rth@redhat.com>
12334
12335         PR c++/5624
12336         * tree.c (append_random_chars): Don't abort if main_input_filename
12337         does not exist.
12338
12339 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12340
12341         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12342
12343 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12344
12345         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12346         (pushhi1): Likewise.
12347
12348 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12349
12350         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12351         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12352
12353 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12354
12355         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12356         remove MASK_VIS.
12357         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12358
12359 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12360
12361         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12362         a half of an SImode register on H8/300.
12363
12364 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12365
12366         * i386.md (movdi_2): Add missing '!'.
12367
12368 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12369
12370         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12371         definitions.
12372
12373 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12374
12375         * config/h8300/h8300.md (length): Correct the distance valid
12376         for the short branch.
12377
12378 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12379
12380         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12381
12382 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12383
12384         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12385         registers in SImode.
12386         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12387         part-clobbered.
12388
12389         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12390         patch.
12391
12392         Contribute sh64-elf.
12393         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12394         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12395         (sh_cannot_modify_jumps_p): New function.
12396         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12397         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12398         (sh_ms_bitfield_layout_p): New function.
12399         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12400                     Zack Weinberg  <zack@codesourcery.com>
12401         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12402         expand_simple_binop instead of expand_binop.
12403         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12404         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12405         use of .quad and .uaquad.
12406         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12407         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12408         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12409         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12410         movdi_const_16bit): Make sure all CONSTs have modes.
12411         (sym2PIC): Ditto, but by adjusting all callers.
12412         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12413         if the prologue calls the SHmedia argument decoder or register
12414         saver.
12415         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12416         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12417         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12418         (sh_expand_epilogue): Don't emit USE of return target register.
12419         (prepare_move_operands): Legitimize DImode PIC addresses.
12420         (sh_media_register_for_return): Skip tr0, used to initialize the
12421         PIC register.
12422         (sh_expand_prologue): Remove explicit USE of return register.
12423         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12424         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12425         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12426         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12427         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12428         EXTRA_CONSTRAINT_T.
12429         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12430         (MOVI_SHORI_BASE_OPERAND_P): New.
12431         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12432         (EXTRA_CONSTRAINT_T): Define in terms of them.
12433         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12434         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12435         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12436         alternatives supporting TARGET_REGS.
12437         (UNSPEC_GOTPLT): New constant.
12438         (movdi split): Move incrementing of LABEL_NUSES...
12439         (movdi_const, movdi_const_32bit): Here.  Use
12440         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12441         (movdi_const_16bit): New.
12442         (call, call_value) [flag_pic]: Use GOTPLT.
12443         (call_pop, call_value_pop): New expands.
12444         (call_pop_compact, call_pop_rettramp): New insns.
12445         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12446         (sibcall) [flag_pic]: Use GOT.
12447         (builtint_setjmp_receiver): Remove bogus, unused expand.
12448         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12449         (*pt, *ptb, ptrel): New insns.
12450         (sym2GOT): Handle DImode GOT.
12451         (sym2GOTPLT, symGOTPLT2reg): New expands.
12452         (sym2PIC): New expand.
12453         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12454         (shcompact_return_tramp_i): Use return register explicitly.
12455         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12456         disable flag_reorder_blocks.
12457         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12458         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12459         clobbers, for clarity.
12460         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12461         restoring of r0 in macl as MAYBE_DEAD.
12462         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12463         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12464         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12465         alter_subreg all over.
12466         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12467         reload, instead of emitting instructions that would require
12468         reloading.
12469         (casesi_load_media): Add missing modes.
12470         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12471         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12472         as used if the argument decoder is called.
12473         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12474         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12475         Pmode, then extend it to DImode if necessary.
12476         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12477         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12478         constants in FPU-enabled SHmedia, let them be loaded from memory.
12479         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12480         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12481         Adjust whitespace in assembly output templates.
12482         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12483         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12484         mode of if_then_else.
12485         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
12486         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12487         sh.h.
12488         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
12489                     Joern Rennecke <amylaar@redhat.com>
12490         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12491         (SUBTARGET_CPP_PTR_SPEC): New.
12492         (SUBTARGET_CPP_SPEC): Remove.
12493         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12494         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12495         Fix typo in previous checkin.
12496         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
12497         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12498         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
12499                     Alexandre Oliva  <aoliva@redhat.com>
12500         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12501         what single FP register can hold for SHmedia target.
12502         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12503                     Alexandre Oliva  <aoliva@redhat.com>
12504         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12505         Do not split into SUBREG.
12506         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
12507         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12508         and added new functions as specified in SH5 ABI r9.
12509         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
12510         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12511         8-byte boundary.
12512         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
12513         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12514         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
12515         and consttable_window_ends.
12516         2001-06-03  Graham Stott  <grahams@redhat,com>
12517         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12518         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
12519         * config/sh/sh.c (print_operand): Handle floating-point pair,
12520         vector and matrix registers.
12521         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12522         vector modes into account.
12523         * config/sh/sh.md (movv2sf): Split move between registers into
12524         movdf.
12525         (movv4sf, movv16sf): Introduce insns that get split only after
12526         reload.
12527         * config/sh/shmedia.h: Fix Copyright dates.
12528         * config/sh/ushmedia.h: Likewise.  Move loop counter
12529         declarations into conditionals that uses them.
12530         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12531         loop boundary.
12532         * config/sh/sshmedia.h: Fix Copyright dates.
12533         (sh_media_PUTCFG): Fix constraints.
12534         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
12535         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12536         ptrmemfunc_vbit_in_delta for SH5.
12537         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
12538         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12539         * invoke.texi: Likewise.
12540         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12541         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12542         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12543         GCC_pop_shmedia_regs_nofpu): New global symbols.
12544         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12545         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12546         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12547         compact function with nonlocal labels.
12548         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12549         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12550         (initial_elimination_offset): Account for their stack space.
12551         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12552         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12553         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12554         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12555         least one of the operands to be a register.
12556         (movv2sf): Likewise.  Renamed to movv2sf_i.
12557         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12558         prepare_move_operands() before emitting SHmedia insns.
12559         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
12560         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12561         Don't save nor initialize r12.  Don't mis-align the stack.
12562         Pad the code with a nop.
12563         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
12564         stack.
12565         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
12566         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12567         [__SHMEDIA__]: Implement.
12568         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
12569         * config/sh/sh.md: Set latency of `pt' closer to reality.
12570         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12571         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12572         Set move, load and store type attributes.
12573         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12574         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12575         profiling.
12576         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12577         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12578         * config/sh/sh.c (sh_media_register_for_return): New function.
12579         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12580         branch-target register.
12581         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12582         * config/sh/sh.md (return_media_i): Use any call-clobbered
12583         branch-target register.
12584         (return_media): If r18 wasn't copied in the prologue, copy it
12585         here.
12586         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12587         Clear class FP0_REGS.
12588         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12589         from elf.h.
12590         2001-03-08  DJ Delorie  <dj@redhat.com>
12591         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12592         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
12593         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12594         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
12595         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12596         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
12597         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12598         return value correctly for call_cookie.
12599         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
12600         * config/sh/crt1.asm (start): Modified so as to call
12601         ___setup_argv_and_call_main.
12602         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
12603         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12604         SHmedia mode.
12605         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
12606         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12607         (STRIP_NAME_ENCODING): Use it.
12608         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
12609         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
12610         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12611         prepare_scc_operands().
12612         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12613         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12614         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
12615         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12616         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
12617         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12618         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12619         used in shcompact_incoming_args.
12620         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12621         change.
12622         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12623         mode.
12624         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12625         Adjust accordingly.
12626         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12627         Simplify.  Adjust.  Add sanity check.
12628         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12629         FPU_SINGLE_BIT.
12630         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12631         TARGET_SHCOMPACT.
12632         (udivsi3, divsi3): Use them.
12633         (force_mode_for_call): New insn.
12634         (call, call_value, sibcall_value): Emit it before SHcompact
12635         calls.
12636         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
12637         * config/sh/sh.md (call, call_value, sibcall): Make sure the
12638         call cookie is non-NULL before taking its value.
12639         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
12640         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12641         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
12642         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12643         block.
12644         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12645         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12646         temporary for stack adjusts.  Use MACL and MACH to pass
12647         arguments to shcompact_incoming_args.
12648         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
12649         clobber r1.
12650         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12651         (nested_trampoline): Load static chain address into r1.
12652         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12653         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
12654         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12655         fp_arith_reg_operand().
12656         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
12657         * config/sh/sh.md (casesi): Sign-extend the first two operands,
12658         and use signed compares for them.
12659         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12660         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
12661         ones properly aligned.
12662         (find_barrier): Account for extra alignment needed for 8-byte wide
12663         constants.
12664         (machine_dependent_reorg): Require a label for the second 4-byte
12665         constant after an 8-byte one.
12666         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12667         change.
12668         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12669         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12670         last_float when switching float modes.
12671         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12672         auto-increment for general-purpose registers.
12673         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12674         result.
12675         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12676         for stack adjust.
12677         * config/sh/sh.c (sh_builtin_saveregs): Support using all
12678         registers for varargs.
12679         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
12680         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12681         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12682         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12683         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12684         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
12685         call_cookie accordingly.
12686         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12687         (SHCOMPACT_BYREF): Likewise.
12688         (SHCOMPACT_FORCE_ON_STACK): New macro.
12689         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12690         (sh_builtin_saveregs): Likewise.
12691         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12692         shcompact_incoming_args): Use new shift values.  Support
12693         sequences of consecutive and non-consecutive pushes/pops.
12694         * config/sh/sh.md (return): Don't explicitly use PR_REG.
12695         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
12696         * config/sh/sh.h (TEXT_SECTION): Define.
12697         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12698         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12699         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12700         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12701         return values on FPU-enabled SHmedia.
12702         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12703         FPU-enabled SHmedia.
12704         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12705         value is returned in a non-FP reg and is not returned by
12706         reference.
12707         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12708         jump_ind.
12709         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
12710         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12711         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12712         quad-aligned to be passed by callee-copy reference.
12713         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
12714         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12715         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12716         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
12717         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12718         copying low-numbered FP regs to r7 and r8.
12719         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12720         FP regs to general-purpose regs only if the copy was passed on the
12721         stack.
12722         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12723         copying FP reg to r9.
12724         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12725         copy FP regs to general-purpose regs only in outgoing calls.
12726         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12727         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
12728         HOST_WIDE_INT.
12729         * config/sh/sh.h (struct sh_args): Document all fields.
12730         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12731         passed partially on the stack should not consider making
12732         sibcalls.
12733         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12734         stack_regs only for incoming calls.  When passing FP args,
12735         make sure there are FP regs available before modifying
12736         call_cookie.
12737         (SHCOMPACT_BYREF): Pass double args in general-purpose
12738         registers by reference.
12739         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
12740         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12741         attempt to generate sibcalls if the caller got any arguments
12742         by reference.
12743         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12744         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12745         to 8-byte boundaries.
12746         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12747         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12748         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12749         stored in the stack.
12750         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12751         for the offsets to have the ISA bit set.
12752         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
12753         invocation.  Use beq instead of bgt to mark end of sequence of
12754         loads.
12755         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
12756         bgt to mark end of sequence of stores.
12757         * config/sh/sh.c (arith_operand): Don't check whether
12758         CONST_OK_FOR_J for now.
12759         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12760         instead of long for conversion.
12761         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
12762         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12763         before passing it to fprintf.
12764         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
12765         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12766         Call set_fpscr before reading/writing SR.
12767         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12768         Call set_fpscr.
12769         * config/sh/lib1funcs.asm: Add `.align 2' directives before
12770         SHmedia code.
12771         (FMOVD_WORKS): Define on SH5 with FPU.
12772         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
12773         setting.
12774         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12775         _fpscr_values.
12776         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
12777         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12778         address.
12779         (ia_main_table): Ditto.
12780         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
12781         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12782         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12783         the definitions from sh.h.
12784         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12785         TARGET_SH5.
12786         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12787         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12788         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12789         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
12790         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12791         Increment LABEL_NUSES.
12792
12793         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12794         TARGET_SH5.
12795         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12796         defined.
12797         * config/sh/elf.h (SIZE_TYPE): Likewise.
12798         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12799         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12800         shcompact_incoming_args): Load switch table addresses using
12801         datalabel.
12802         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12803         (NO_BUILTIN_SIZE_TYPE): Define.
12804         (SIZE_TYPE): Don't define.
12805         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12806         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12807         definition of __SH5__=32 for -m5-compact-nofpu.
12808         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12809         ADDR_DIFF_VEC.
12810         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
12811         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12812         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
12813         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12814         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12815         (INSN_LENGTH_ALIGNMENT): Likewise.
12816         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12817         * config/sh/sh.md (call, call_value, sibcall): Simplify
12818         copying of non-branch-target register.
12819         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12820         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
12821         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12822         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12823         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12824         floating-point values as structs.
12825         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12826         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12827         general-purpose register.
12828         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12829         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
12830         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12831         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12832         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12833         (ENCODE_SECTION_INFO): Enclose variables and constants in
12834         DATALABEL unspecs.
12835         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12836         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12837         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12838         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12839         only for LABEL_REFs.  For SYMBOL_REFs, prepend
12840         SH_DATALABEL_ENCODING to the symbol name.
12841         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12842         convert_mode().
12843         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
12844         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12845         UNSPEC_DATALABEL.
12846         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12847         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12848         (DATALABEL_REF_P): Don't require CONST.
12849         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12850         REL label.
12851         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
12852         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12853         right.
12854         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
12855         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12856         Use shallow_copy_rtx and PUT_MODE to change the mode of
12857         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12858         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12859         on SHmedia using GENERAL_REGs.
12860         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12861         bltu_media_i): Fix reversion of conditions.
12862         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
12863         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12864         * config/sh/sh.c (output_far_jump): Save r13 in macl.
12865         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
12866         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12867         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
12868         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12869         (GCC_nested_trampoline): Likewise.
12870         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12871         * config/sh/sh.c (gen_datalabel_ref): Define.
12872         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12873         (INITIALIZE_TRAMPOLINE): Likewise.
12874         (TRAMPOLINE_ADJUST_ADDRESS): Define.
12875         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12876         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12877         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12878         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12879         (ic_invalidate): Adjust for SH5.
12880         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12881         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12882         _nested_trampoline.
12883         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
12884         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12885         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12886         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
12887         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12888         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12889         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
12890         * config/sh/sh.c (target_reg_operand): Match only target-branch
12891         registers and pseudos that aren't virtual registers.
12892         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12893         Copy operands that don't match target_reg_operand to pseudos.
12894         (call_media, call_value_media, sibcall_media): Use
12895         target_reg_operand instead of target_operand.
12896         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
12897         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12898         * config/sh/sh.c (target_reg_operand): Match hardware registers
12899         other than branch-target registers.
12900         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12901         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12902         (fpscr_values) [SH5 == 32]: Define.
12903         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12904         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12905         Handle function addresses coming in SUBREGs.
12906         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
12907         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12908         shcompact_return_trampoline): Use datalabel where appropriate.
12909         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
12910         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12911         general-purpose register to copy one branch-target register to
12912         another.
12913         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
12914         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12915         SYMBOL_REFs with VOIDmode.
12916         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12917         bltu_media_i): New insns.
12918         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
12919         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12920         (INIT_CUMULATIVE_ARGS): Likewise.
12921         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
12922         * machmode.def (V16SFmode): New mode.
12923         * c-common.c (type_for_mode): Support V2SF and V16SF.
12924         * tree.c (build_common_tree_nodes_2): Likewise.
12925         * tree.h (tree_index): Likewise.
12926         * calls.c (emit_call_1): Take args_so_far.  Adjust all
12927         callers.  Introduce CALL_POPS_ARGS.
12928         * tm.texi (CALL_POPS_ARGS): Document.
12929         * config/sh/crt1.asm: Implement in SHmedia mode.
12930         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12931         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12932         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12933         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12934         Implement divsi and udivsi in SHmedia mode.  Introduce
12935         SHcompact trampolines.
12936         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
12937         only in SHmedia64.
12938         (regno_reg_class): Rewrite.
12939         (fp_reg_names): Remove.
12940         (sh_register_names, sh_additional_register_names): New.
12941         (print_operand): Added `u'.  Support SUBREGs in addresses.
12942         Add parentheses around shifted CONSTs.
12943         (output_file_start): Output .mode and .abi directives.
12944         (shiftcosts, addsubcosts, multcosts): Adjust.
12945         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
12946         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
12947         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
12948         bytes, not registers.  Take into account the need for the
12949         SHcompact incoming args trampoline.  Adjust all callers.
12950         (sh_expand_prologue): Take stack_regs into account.  Call
12951         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
12952         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
12953         stack aligned as per SH5 ABI.
12954         (sh_builtin_saveregs): Support SH5 ABI.
12955         (sh_build_va_list, sh_va_start): Likewise.
12956         (initial_elimination_offset): Take alignment into account.
12957         Compute location of PR according to the SH5 stack frame.
12958         (arith_reg_operand): Reject branch-target registers.
12959         (shmedia_6bit_operand): New.
12960         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
12961         (target_reg_operand): Match DImode only.  Accept SUBREGs.
12962         (target_operand): New.
12963         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
12964         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
12965         SIBCALL_REGS for SHmedia.
12966         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
12967         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
12968         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
12969         (TARGET_SWITCHES): New SH5 flags.
12970         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
12971         VALID_REGISTER_P to disable unsupported registers.
12972         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
12973         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
12974         (FUNCTION_ARG_PADDING): Define.
12975         (FASTEST_ALIGNMENT): Adjust.
12976         (SH_REGISTER_NAMES_INITIALIZER): New.
12977         (sh_register_names): Declare.
12978         (DEBUG_REGISTER_NAMES): Define.
12979         (REGISTER_NAMES): Define based on sh_register_names.
12980         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
12981         (sh_additional_register_names): Declare.
12982         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
12983         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
12984         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
12985         (REGISTER_NATURAL_MODE): Define.
12986         (FIRST_PSEUDO_REGISTER): Adjust.
12987         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
12988         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
12989         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
12990         (VECTOR_MODE_SUPPORTED_P): Define.
12991         (REG_CLASS_CONTENTS): Adjust.
12992         (SMALL_REGISTER_CLASSES): Adjust.
12993         (REG_ALLOC_ORDER): Adjust.
12994         (INDEX_REG_CLASS): Adjust.
12995         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
12996         (CONST_OK_FOR_LETTER_P): Adjust.
12997         (PREFERRED_RELOAD_CLASS): Adjust.
12998         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
12999         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13000         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13001         (FIRST_FP_PARM_REG): Adjust.
13002         (CALL_POPS_ARGS): Define.
13003         (FUNCTION_ARG_REGNO_P): Adjust.
13004         (struct sh_args): New fields.
13005         (GET_SH_ARG_CLASS): Adjust.
13006         (INIT_CUMULATIVE_ARGS): Adjust.
13007         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13008         (FUNCTION_ARG_ADVANCE): Adjust.
13009         (FUNCTION_ARG): Adjust.
13010         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13011         (FUNCTION_ARG_CALLEE_COPIES): Define.
13012         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13013         (STRICT_ARGUMENT_NAMING): Define.
13014         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13015         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13016         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13017         (SETUP_INCOMING_VARARGS): Adjust.
13018         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13019         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13020         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13021         (SUBREG_OK_FOR_INDEX_P): Adjust.
13022         (EXTRA_CONSTRAINT_S): Update.
13023         (EXTRA_CONSTRAINT_T): New.
13024         (EXTRA_CONSTRAINT): Adjust.
13025         (GO_IF_LEGITIMATE_INDEX): Adjust.
13026         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13027         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13028         (MOVE_MAX): Adjust.
13029         (MAX_MOVE_MAX): Define.
13030         (Pmode): Adjust.
13031         (CONST_COSTS): Adjust.
13032         (REGISTER_MOVE_COST): Adjust.
13033         (BRANCH_COST): Adjust.
13034         (TEXT_SECTION_ASM_OP): Adjust.
13035         (DBX_REGISTER_NUMBER): Adjust.
13036         (ASM_OUTPUT_DOUBLE_INT): New.
13037         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13038         (PREDICATE_CODES): Adjust.
13039         (PROMOTE_MODE): Adjust.
13040         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13041         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13042         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13043         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13044         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13045         (TR0_REG, TR1_REG, TR2_REG): New.
13046         (XD0_REG): Renumber.
13047         (UNSPEC_COMPACT_ARGS): New.
13048         (type): Added pt and ptabs.
13049         (length): Default to 4 on SHmedia.  Default pt length to 12
13050         and     20 on SHmedia32 and SHmedia64, respectively.
13051         (pt): New function unit.
13052         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13053         Add whitespace between operands of SHmedia instructions.
13054         (movdicc): Fix.
13055         (adddi3_media, addsi3_media): Adjust constraints.
13056         (subsi3) [SHmedia]: Force operand 1 into a register.
13057         (udivsi3_i1_media, udivsi3_i4_media): New.
13058         (udivsi3): Support SHmedia.
13059         (divsi3_i1_media, divsi3_i4_media): New.
13060         (divsi3): Support SHmedia.
13061         (anddi3, iordi3, xordi3): Adjust constraints.
13062         (zero_extendhidi2, zero_extendqidi2): New.
13063         (extendsidi2, extendhidi2, extendqidi2): New.
13064         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13065         (pop_e, pop_fpul, pop_4): Likewise.
13066         (movsi_media): Support FP and BT registers.
13067         (movsi_media_nofpu): New.  Adjust splits to DImode.
13068         (lduw, ldub): Renamed to zero_extend* above.
13069         (movqi_media): Fix typo.
13070         (movdi_media): Support FP and BT registers.
13071         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13072         (movdi_const_32bit): New.
13073         (shori_media): Require immediate operand.  Use `u' for output.
13074         (movdf_media, movsf_media): Simplified.
13075         (movdf_media_nofpu, movsf_media_nofpu): New.
13076         (movdf, movsf): Adjust
13077         (movv2sf, movv2sf, movv16sf): New.
13078         (beq_media, beq_media_i): Adjust constraints.  Don't use
13079         scratch BT register.
13080         (bne_media, bne_media_i): Likewise.
13081         (bgt_media, bgt_media_i): Likewise.
13082         (bge_media, bge_media_i): Likewise.
13083         (bgtu_media, bgtu_media_i): Likewise.
13084         (bgeu_media, bgeu_media_i): Likewise.
13085         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13086         bunordered): Emit jump insn.  Force operands to registers when
13087         needed.
13088         (jump_media, jump): Simplify.
13089         (call_compact, call_compact_rettramp): New.
13090         (call_value_compact, call_value_compact_rettramp): New.
13091         (call_media, call_value_media): Simplify.
13092         (sibcall_compact, sibcall_media): New.
13093         (call, call_value): Adjust for SHmedia and SHcompact.
13094         (sibcall, sibcall_value, untyped_call): Likewise.
13095         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13096         (indirect_jump): Adjust for SHmedia.
13097         (casesi_jump_media): New.
13098         (nop): Re-enable for SHmedia.
13099         (call_site): Restrict to SH1.
13100         (casesi): Adjust for SHmedia.
13101         (casesi_shift_media, casesi_load_media): New.
13102         (return): Explicitly use PR register.  Call return trampoline
13103         on SHcompact.
13104         (return_i): Explicitly use PR register.
13105         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13106         (return_media): Adjust.
13107         (shcompact_incoming_args): New.
13108         (epilogue): Adjust.
13109         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13110         (movstrsi): Disable on SH5.
13111         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13112         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13113         (subsf3, subsf3_media): Likewise.
13114         (mulsf3, mulsf3_media, mac_media): Likewise.
13115         (divsf3, divsf3_media): Likewise.
13116         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13117         (floatsisf2, fux_truncsfsi2): Likewise.
13118         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13119         constraints.
13120         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13121         (cmpunsf_media, cmpsf): Likewise.
13122         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13123         (abssf2, abssf2_media): Likewise.
13124         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13125         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13126         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13127         (floatsidf2, fix_truncdfsi2): Likewise.
13128         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13129         constraints.
13130         (cmpeqdf_media, cmpgtdf_media): Likewise.
13131         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13132         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13133         (absdf2, absdf2_media): Likewise.
13134         (extendsfdf2, extendsfdf2_media): Likewise.
13135         (truncsfdf2, truncsfdf2_media): Likewise.
13136         * config/sh/sh64.h: New file.
13137         * config/sh/t-sh64: New file.
13138         * config/sh/shmedia.h: New file.
13139         * config/sh/ushmedia.h: New file.
13140         * config/sh/sshmedia.h: New file.
13141         * configure.in: Added sh64-*-elf.
13142         * configure: Rebuilt.
13143         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13144         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13145         (reg_class_from_letter): Use `b' for TARGET_REGS.
13146         (print_operand): Support `%M', `%m', `AND' and
13147         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13148         (andcosts): Adjust for SHmedia.
13149         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13150         Likewise.
13151         (target_reg_operand): New function.
13152         * config/sh/sh-protos.h (target_reg_operand): Declare.
13153         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13154         FP registers on SH5.
13155         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13156         on SH4.
13157         (TARGET_REGISTER_P): New macro.
13158         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13159         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13160         (EXTRA_CONSTRAINT_S): New macro.
13161         (EXTRA_CONSTRAINT): Adjust.
13162         (FLOAT_TYPE_SIZE): Define to 32.
13163         (Pmode): DImode on SHmedia.
13164         (CONST_COSTS): Adjust for SHmedia literals.
13165         (PREDICATE_CODES): Added target_reg_operand.
13166         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13167         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13168         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13169         (cmpdi): Accept SHmedia.
13170         (movdicc_false, movdicc_true): New insns.
13171         (movdicc): New expand.
13172         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13173         no_new_pseudos.
13174         (addsi3_media): Match `S' constraint.
13175         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13176         (negdi2): Expand for SHmedia.
13177         (one_cmpldi2): New expand.
13178         (zero_extendsidi2): Change from expand to insn.
13179         (extendsidi2): Add constraints.
13180         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13181         LD/ST address.  Fix SI immediate loading split.
13182         (movhi_media, movqi_media, lduw, ldub): New insns.
13183         (movhi, movqi): Accept SHmedia.
13184         (shori_media, movdi_media): Relax input constraints.  Split
13185         symbolic constants.
13186         (movdf_media, movsf_media): New insn.  New split to movdi.
13187         (movdf, movsf): Match on SHmedia.
13188         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13189         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13190         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13191         (bunordered): New expand.
13192         (jump_compact): Renamed from `jump'.
13193         (jump_media): New insn.
13194         (jump): New expand.
13195         (call_media, call_value_media): New insns.
13196         (call, call_value): Adjust.
13197         (indirect_jump_compact): Renamed from `indirect_jump'.
13198         (indirect_jump_media): New insn.
13199         (indirect_jump): New expand.
13200         (untyped_call, return): Accept SHmedia.
13201         (return_media): New insn.
13202         (prologue, epilogue, blockage): Accept SHmedia.
13203         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13204         (sunordered): New expand.
13205         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13206         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13207         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13208         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13209         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13210         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13211         abssf2_media): New insns.
13212         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13213         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13214         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13215         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13216         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13217         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13218         absdf2_media): New insns.
13219         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13220         (extendsfdf2_media, truncdfsf2_media): New insns.
13221         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13222         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13223         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13224         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13225         * config/sh/sh.md (adddi3): New expand.
13226         (adddi3_media, adddi3z_media): New insns.
13227         (adddi3_compact): Renamed from adddi3.
13228         (addsi3_media): Use add.l r63 to add constant zero.
13229         (subdi3): New expand.
13230         (subdi3_media): New insn.
13231         (subdi3_compact): Renamed from subdi3.
13232         (mulsidi3): New expand.
13233         (mulsidi3_media): New insn.
13234         (mulsidi3_compact): Renamed from mulsidi3.
13235         (umulsidi3): New expand.
13236         (umulsidi3_media): New insn.
13237         (umulsidi3_compact): Renamed from umulsidi3.
13238         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13239         (ashlsi3, ashrsi3, lshrsi3): Use them.
13240         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13241         (ashldi3, ashrdi3, lshrdi3): Use them.
13242         (zero_extendsidi2): New expand.
13243         (extendsidi2): New insn.
13244         (movsi_media): New insn.  Split to movdi to load constants.
13245         (movsi): Enable for shmedia.
13246         (movdi_media): New insn.  Use shori_media to load wide constants.
13247         (short_media): New insn.
13248         (movdi): Enable for shmedia.
13249         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13250         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13251         (SUBTARGET_CPP_SPEC): Added `!m5'.
13252         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13253         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13254         to all other SH variants.
13255         (TARGET_DEFAULT): Set to SH1_BIT.
13256         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13257         (BITS_PER_WORD): Raise to 64 on shmedia.
13258         (MAX_BITS_PER_WORD): Change to 64.
13259         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13260         (INT_TYPE_SIZE): Keep as 32.
13261         (UNITS_PER_WORD): Raise to 8 on shmedia.
13262         (MIN_UNITS_PER_WORD): Keep as 4.
13263         (POINTER_SIZE): Raise to 64 on shmedia.
13264         (CONST_OK_FOR_J): New macro.
13265         (CONST_OK_FOR_LETTER_P): Use it.
13266         (processor_type): Add PROCESSOR_SH5.
13267         * config/sh/sh.md: Conditionalize all expands, insns and
13268         splits to TARGET_SH1.
13269         (cpu): Added sh5.
13270         (addsi3_compact): Renamed from...
13271         (addsi3): Now an expand.
13272         (addsi3_media, subsi3_media): New insns.
13273         (subsi3): Don't negate constants with SHmedia.
13274
13275         * hooks.c: New file.
13276         * hooks.h: New file.
13277         * Makefile.in (HOOKS_H): New.
13278         (TARGET_DEF_H): Added $(HOOKS_H).
13279         (OBJS): Added hooks.o.
13280         (cfgcleanup.o, bb-reorder.o): Added target.h.
13281         (hooks.o): Added dependencies.
13282         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13283         (TARGET_INITIALIZER): this.
13284         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13285         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13286         * bb-reorder.c: Include target.h.
13287         (reorder_basic_blocks): Skip if cannot modify jumps.
13288         * cfgcleanup.c: Include target.h.
13289         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13290
13291 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13292
13293         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13294         Protect jump delay slot instructions with .set noreorder and
13295         .set nomacro.
13296
13297 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13298
13299         * config/mips/mips.md (casesi_internal_di): Calculate
13300         the index into the target offset table correctly.
13301
13302 2002-02-08  Richard Henderson  <rth@redhat.com>
13303
13304         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13305         * final.c (output_addr_const): Accept and discard SUBREG.
13306         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13307         mark them unknown instead.
13308         (simplify_subtraction): Handle RTX_UNKNOWN.
13309         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13310
13311 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13312
13313         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13314
13315 2002-02-08  Richard Henderson  <rth@redhat.com>
13316
13317         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13318
13319 2002-02-08  Andreas Jaeger  <aj@suse.de>
13320
13321         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13322         * config/i386/t-linux64: New file.
13323
13324 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13325
13326         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13327         * c-parse.in (compstmt): Clear last_expr_type.
13328
13329 2002-02-07  Richard Henderson  <rth@redhat.com>
13330
13331         * loop.c (strength_reduce): Sink final_value when not
13332         eliminating a biv.
13333
13334 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13335
13336         * config/sparc/freebsd.h: Fix mismatched spec {.
13337
13338 2002-02-07  Richard Henderson  <rth@redhat.com>
13339
13340         * cfgrtl.c: Include recog.h and insn-config.h.
13341         (keep_with_call_p): Fix general_operand invocation.
13342         * Makefile.in (cfgrtl.o): Update dependencies.
13343
13344 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13345
13346         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13347         comment.  Accept HImode only if TARGET_H8300.
13348
13349 2002-02-07  Eric Christopher  <echristo@redhat.com>
13350
13351         * config/mips/crtn.asm: Cleanup #ifdefs.
13352
13353 2002-02-07  Eric Christopher  <echristo@redhat.com>
13354
13355         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13356         register 7 as RA instead of $31.
13357         * config/mips/crtn.asm: Ditto.
13358         * config/mips/mips.c (mips_move_2words): Add case for
13359         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13360         (compute_frame_size): Fix typo.
13361         (save_restore_insns): Ditto.  Make documentation about using
13362         register $7 as return register more precise.
13363         (mips_expand_epilogue): Fix comment. Add code to work around not
13364         being able to add to the stack pointer directly.
13365         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13366         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13367         epilogue.
13368
13369 2002-02-07  Tom Rix  <trix@redhat.com>
13370
13371         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13372         immediates in ldu and stdu DS opcode field.
13373         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13374         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13375         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13376
13377 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13378
13379         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13380         offset for stack bias.
13381
13382 2002-02-07  H.J. Lu <hjl@gnu.org>
13383
13384         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13385
13386 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13387
13388         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13389
13390 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13391
13392         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13393         * i386.c (x86_order_regs_for_local_alloc): New global function.
13394         * i386.h (REG_ALLOC_ORDER): CLeanup.
13395         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13396
13397 2002-02-07  Richard Henderson  <rth@redhat.com>
13398
13399         PR optimization/2463
13400         * alias.c (find_base_value): Recall base values for fixed hard regs.
13401         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13402
13403 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13404
13405         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13406         length.
13407
13408 2002-02-06  Richard Henderson  <rth@redhat.com>
13409
13410         PR c/5609
13411         * stmt.c (resolve_operand_name_1): Take more care with mixed
13412         named and unnamed operands.
13413
13414 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13415             Jan Hubicka  <jh@suse.cz>
13416
13417         * loop.c (remove_constant_addition): Avoid clobbering a shared
13418         CONST expression.
13419
13420 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13421
13422         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13423         * config/s390/t-linux64: New file.
13424         * config/s390/libgcc-glibc.ver: New file.
13425
13426 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13427
13428         * config/s390/linux64.h: Delete file.
13429         * config/s390/s390x.h: New file.
13430         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13431         as target header file.
13432         * config/s390/linux.h (TARGET_VERSION): Define depending on
13433         DEFAULT_TARGET_64BIT.
13434         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13435         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13436         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13437         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13438         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13439         (EXTRA_SPEC): New define.
13440         * config/s390/s390.h (TARGET_VERSION): Define depending on
13441         DEFAULT_TARGET_64BIT.
13442         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13443
13444 2002-02-06  Jason Merrill  <jason@redhat.com>
13445
13446         * c-decl.c (finish_function): Warn about a non-void function with
13447         no return statement and no abnormal exit.
13448         (current_function_returns_abnormally): New variable.
13449         (start_function): Clear it.
13450         (struct c_language_function): Add returns_abnormally.
13451         (push_c_function_context): Save it.
13452         (pop_c_function_context): Restore it.
13453         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13454         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13455         an explicit return type.
13456         * c-tree.h: Declare current_function_returns_abnormally.
13457         (C_FUNCTION_IMPLICIT_INT): New macro.
13458         * c-typeck.c (build_function_call): Set it.
13459         (c_expand_return): Set current_function_returns_value even if the
13460         value is erroneous.
13461
13462 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13463
13464         PR c/5420:
13465         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13466         unsafe for reevaluation.
13467
13468 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13469
13470         PR c/5482:
13471         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13472         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13473
13474 2002-02-06  Richard Henderson  <rth@redhat.com>
13475
13476         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13477         be a general_operand.  Dest for function value must be a pseudo.
13478
13479 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13480
13481         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13482         as SYMBOL_REFs from the constant pool.
13483
13484 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
13485
13486         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13487         passed by invisible reference.
13488
13489 2002-02-05  Richard Henderson  <rth@redhat.com>
13490
13491         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13492
13493 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
13494
13495         Implement using "base addresses" in insn operands as default.
13496         * config/mmix/mmix.c (mmix_conditional_register_usage): if
13497         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13498         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13499         used to read the rtx value.
13500         (mmix_target_asm_function_epilogue): Fix spacing.
13501         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13502         (mmix_legitimate_address): Ditto.
13503         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13504         should be loaded with a GETA insn.  Don't allocate needless extra
13505         char for nul termination and fix misleading comment.
13506         (mmix_print_operand_address): Handle constants if
13507         TARGET_BASE_ADDRESSES.
13508         (mmix_output_register_setting): Use base addressing if
13509         TARGET_BASE_ADDRESSES and the number of insns is 3.
13510         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13511         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13512         to use R as constraint, add LDA to match s.
13513         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13514         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13515         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13516         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13517         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13518         order with other fixed registers.
13519         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13520         other parameter/call-clobbered registers.
13521         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13522         -mbase-addresses, -mno-base-addresses.
13523         (MMIX Options): Ditto.
13524
13525 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13526
13527         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13528
13529 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
13530
13531         * config/rs6000/altivec.h: Change elem to _S_elem.
13532
13533 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13534
13535         * config/netbsd.h (WCHAR_TYPE): Define.
13536         (WCHAR_TYPE_SIZE): Ditto.
13537         (WINT_TYPE): Ditto.
13538         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13539         (WCHAR_UNSIGNED): Ditto.
13540         (WCHAR_TYPE_SIZE): Ditto.
13541         (WINT_TYPE): Ditto.
13542         * config/arm/netbsd.h: Likewise.
13543         * config/i386/netbsd-elf.h: Likewise.
13544         * config/i386/netbsd.h: Likewise.
13545         * config/m68k/netbsd-elf.h: Likewise.
13546         * config/m68k/netbsd.h: Likewise.
13547         * config/ns32k/netbsd.h: Likewise.
13548         * config/sparc/netbsd.h: Likewise.
13549         * config/vax/netbsd.: Likewise.
13550
13551 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
13552
13553         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13554         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
13555         (TARGET_INITIALIZER): this.
13556         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13557         (BITFIELD_NBYTES_LIMITED): Markup fix.
13558         * tree.h (default_ms_bitfield_layout_p): Declare.
13559         (record_layout_info): Added prev_field.
13560         * tree.c (default_ms_bitfield_layout_p): New fn.
13561         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13562         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13563         * stor-layout.c: Include target.h.
13564         (start_record_layout): Initialize prev_field.
13565         (place_field): Handle MS bit-field layout, and disregard
13566         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13567         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
13568         * Makefile.in (stor-layout.o): Adjust dependencies.
13569
13570 2002-02-05  Jason Merrill  <jason@redhat.com>
13571
13572         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13573
13574 2002-02-05  Andreas Jaeger  <aj@suse.de>
13575
13576         * crtstuff.c: Fix comments.
13577
13578 2002-02-05  Richard Henderson  <rth@redhat.com>
13579
13580         PR fortran/3393
13581         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13582         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13583
13584         PR fortran/3392
13585         * config/mips/mips.c (function_arg): Handle TImode.
13586         (function_arg_advance): Likewise.
13587
13588 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13589
13590         * config/rs6000/altivec.h (vec_step_help): Rename to
13591         __vec_step_help.
13592
13593 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13594
13595         * config/rs6000/altivec.h: Fix typos.
13596
13597 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13598
13599         * config/arm/netbsd.h: Correct a comment.
13600
13601 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13602
13603         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13604         building void typed builtins.
13605
13606         * config/rs6000/altivec.h (vec_ld*): Fix typos.
13607         (vec_step): Implement for C++.
13608
13609 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13610
13611         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13612
13613 2002-02-04  Richard Henderson  <rth@redhat.com>
13614
13615         * combine.c (nonzero_bits): Re-introduce special case for
13616         sp/fp/ap wrt REGNO_POINTER_ALIGN.
13617
13618 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13619
13620         * doc/extend.texi: Warn about unsupported usage of altivec
13621         builtins.
13622
13623         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13624         (altivec_predicate_*): New.
13625
13626         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13627         Add C++ version of vec_*() functions.
13628
13629         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13630         (bdesc_2arg): Remove altivec predicates.
13631         (altivec_expand_builtin): Handle predicates.
13632         (altivec_init_builtins): Handle predicates.
13633         (altivec_expand_predicate_builtin): New.
13634
13635 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13636
13637         * pa.c (DO_FRAME_NOTES): Move forward.
13638         (store_reg): Revise handling of frame notes.
13639         (load_reg): Likewise.
13640         (set_reg_plus_d): Likewise.
13641         (hppa_expand_prologue): Likewise.
13642         (hppa_expand_epilogue): Likewise.
13643
13644 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13645
13646         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13647
13648 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13649
13650         PR c/4475, c++/3780:
13651         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13652         * c-common.h (SWITCH_TYPE): Define.
13653         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13654         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13655         Rename spareness variable to sparseness.
13656         (expand_end_case_type): Renamed from expand_end_case, use orig_type
13657         if non-NULL instead of TREE_TYPE (orig_index).
13658         * tree.h (expand_end_case_type): Renamed from expand_end_case.
13659         (expand_end_case): Define using expand_end_case_type.
13660         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13661         to expand_end_case_type.
13662         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13663
13664 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13665
13666         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13667         (BIGGEST_ALIGNMENT): Change to 128.
13668
13669 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13670
13671         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13672
13673 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13674
13675         * pa.md (call_internal_reg_64bit): Remove unused variable.
13676
13677 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
13678
13679         * config/arm/arm.h (machine_function): Add uses_anonymous_args
13680         field.
13681         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13682         * config/arm/arm.c (current_function_anonymous_args): Delete,
13683         replace uses with cfun->machine->uses_anonymous_args.
13684         (arm_reorg): Do not reset uses_anonymous_args.
13685
13686         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13687         any geenral register.
13688
13689 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
13690
13691         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13692         the entry block.
13693
13694 2002-02-04  Richard Henderson  <rth@redhat.com>
13695
13696         * combine.c (force_to_mode): Remove STACK_BIAS code.
13697         (nonzero_bits): Likewise.  Replace sp/fp special case with
13698         REGNO_POINTER_ALIGN.
13699
13700         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13701         (HARD_FRAME_POINTER_REGNUM): New.
13702         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13703         (FIXED_REGS, CALL_USED_REGS): Update.
13704         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13705         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13706         (HARD_REGNO_NREGS): Update for SFP.
13707         (STACK_POINTER_OFFSET): Include bias here ...
13708         (FIRST_PARM_OFFSET): ... not here.
13709         (STACK_BIAS): Remove.
13710         (INIT_EXPANDERS): New.
13711         (STARTING_FRAME_OFFSET): Do not include bias.
13712         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13713         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13714         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13715         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13716         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13717         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13718         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13719         (MUST_SAVE_REGISTER): Likewise.
13720         (sparc_flat_function_prologue): Likewise.
13721         (sparc_flat_function_epilogue): Likewise.
13722         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13723         (sparc_init_modes): SFP is GENERAL_REGS.
13724         (sparc_builtin_saveregs): SFP does not have bias applied.
13725
13726 2002-02-04  Richard Henderson  <rth@redhat.com>
13727
13728         * config/alpha/alpha.c (current_function_is_thunk): Don't check
13729         current_function_is_thunk.
13730         (alpha_sa_mask): Distinguish between current_function_is_thunk
13731         called from ASM_OUTPUT_MI_THUNK and not.
13732         (alpha_does_function_need_gp): Thunks always need gp.
13733         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13734         (alpha_output_mi_thunk_osf): New.
13735         * config/alpha/alpha-protos.h: Update.
13736         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13737
13738 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
13739
13740         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13741         function types, not when they're taken away.
13742
13743 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
13744
13745         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13746         CODE_LABEL and jump table when replacing a table jump with a
13747         simple jump.
13748
13749 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13750
13751         * config/s390/s390-protos.h (legitimize_la_operand,
13752         s390_secondary_input_reload_class, s390_plus_operand,
13753         s390_expand_plus_operand): Add prototypes.
13754
13755         config/s390/s390.c (s390_secondary_input_reload_class,
13756         s390_plus_operand, s390_expand_plus_operand): New functions.
13757
13758         (struct s390_address): New member 'pointer'.
13759         (s390_decompose_address): Compute it.
13760         (legitimate_la_operand_p): Use it.
13761         (legitimize_la_operand): New function.
13762         (movti, movdi, movdf splitters): Call it.
13763
13764         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13765         (PREDICATE_CODES): Add s390_plus_operand.
13766
13767         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13768         (la_ccclobber): Allow GENERAL_REGS as output operand.
13769
13770         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13771         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13772         (*la_64, *la_31, reload_indi, reload_insi): ... these.
13773
13774 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13775
13776         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13777         register names for regular asm () construct.
13778
13779 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13780
13781         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13782         registers.
13783
13784 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13785
13786         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13787         pat for recog.
13788
13789 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
13790
13791         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13792         constant pool to be identical by string address and index.
13793
13794 2002-02-04  Anthony Green  <green@redhat.com>
13795
13796         * output.h (SECTION_OVERRIDE): Define.
13797         * varasm.c (named_section): Obey SECTION_OVERRIDE.
13798
13799 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
13800
13801         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13802         by existing arm*-*-netbsd* (a.out) target.
13803         (ns32k-*-netbsdelf*): Likewise.
13804         (sparc-*-netbsdelf*): Likewise.
13805         (vax-*-netbsdelf*): Likewise.
13806
13807 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
13808
13809         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13810         headers and libobjc headers.
13811
13812 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
13813
13814         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13815         (_mingw.h): Remove duplicate include.
13816
13817 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
13818
13819         * config.gcc: Set cpu_type to m68k for 68010, as well.
13820         (m68010-*-netbsdelf*): New...
13821         (m68k*-*-netbsdelf*): ...targets.
13822         * config/m68k/netbsd-elf.h: New file.
13823
13824 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13825
13826         * config/h8300/h8300.c (hand_list): Move inside function_arg.
13827
13828 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13829
13830         * config/h8300/h8300.c (h8_push_ops): Move inside
13831         h8300_init_once.
13832         (h8_pop_ops): Likewise.
13833         (h8_move_ops): Likewise.
13834
13835 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13836
13837         * config/h8300/h8300.c (os_task): Make it static.
13838         (monitor): Likewise.
13839         (pragma_saveall): Likewise.
13840
13841 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
13842
13843         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13844         constant is a valid sign-extension for Pmode.
13845
13846 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13847
13848         * config/h8300/h8300.c: Fix formatting.
13849
13850 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13851
13852         * config/h8300/h8300.md: Fix formatting.
13853
13854 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13855
13856         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13857         predicates of operands[1].  Split the patterns for each
13858         processor variant.
13859
13860 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13861
13862         * config/h8300/h8300.md (xor patterns): Tighten the predicates
13863         of operands[1] to register_operand.
13864
13865 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
13866
13867         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13868         * cpphash.c (_cpp_init_hashtable): Similarly.
13869         * cppinit.c (cpp_create_reader): Default the signed_char flag.
13870         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13871         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13872         (cpp_handle_option): Handle the new options.
13873         * cpplex.c (cpp_interpret_charconst): Use new flag.
13874         * cpplib.h (struct cpp_options): New member signed_char.
13875         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13876         (cpp_options): Handle -fsigned-char and -funsigned-char.
13877         (static_specs): Remove signed_char_spec.
13878         (do_spec1): Don't handle %c.
13879         * system.h: Poison SIGNED_CHAR_SPEC.
13880         * tradcif.y (yylex): Use flag_signed_char.
13881         * tradcpp.h (flag_signed_char): New.
13882         * tradcpp.c (flag_signed_char): New.
13883         (main): Handle new command-line options.
13884         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13885 config:
13886         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13887         * avr/avr.h: Remove old comments.
13888         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13889         (CC1_SPEC): Pass -fsigned-char if -mic*.
13890         (SIGNED_CHAR_SPEC): Remove.
13891 doc:
13892         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13893
13894 2002-02-01  Eric Christopher  <echristo@redhat.com>
13895
13896         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13897         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13898         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13899         (ASM_OUTPUT_REG_POP): Ditto.
13900
13901 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
13902
13903         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13904         patch.
13905
13906 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
13907
13908         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13909
13910 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
13911
13912         PR c/5304:
13913         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13914         unconditionally.
13915
13916 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
13917
13918         * cfganal.c: Include tm_p.h.
13919         (keep_with_call_p): Fix the test that determines if a register holds
13920         the return value of a call.
13921
13922 2002-02-01  DJ Delorie  <dj@redhat.com>
13923
13924         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13925         we are given conflicting registers, switch to the other one we
13926         had allocated for us.
13927         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13928         as TImode so we know when the "other" register is available.
13929
13930 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
13931
13932         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13933         sparc/sparc_bi.h.
13934
13935 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
13936
13937         * cfganal.c (keep_with_call_p): New function.
13938         (flow_call_edges_add): Prevent splitting a block between a call and
13939         a single-set instruction that should be kept in the same block.
13940
13941 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13942
13943         * doc/install.texi (avr): Update outdated URL.
13944
13945 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
13946
13947         * config/stormy16/stormy16.md (pushqi): New.
13948         (popqi): New.
13949         (pushhi): New.
13950         (pophi): New.
13951         (movhi): Remove stack operands.
13952         (movqi): Likewise.
13953         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
13954         nonimmediate_nonstack_operand.
13955         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
13956         New.
13957         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
13958         New.
13959
13960 2002-01-31  Jason Merrill  <jason@redhat.com>
13961
13962         * Makefile.in (c-parse.c): Handle .output file.
13963         * objc/Make-lang.in (objc-parse.c): Likewise.
13964
13965 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
13966
13967         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
13968         the -me[lb] option is given.  Don't output the default flag
13969         twice.
13970
13971 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
13972
13973         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
13974         the primary source file; this has not been done yet.
13975         * c-decl.c (c_expand_body): Reset input_filename from
13976         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
13977
13978 2002-01-31  Kazu Hirata  <kazu@hxi.com>
13979
13980         * rtlanal.c (subreg_regno_offset): Do not use
13981         SUBREG_REGNO_OFFSET.
13982         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
13983         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
13984
13985 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
13986
13987         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
13988         version rather than GNATS version in --version output.
13989
13990 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
13991
13992         * ifcvt.c (noce_process_if_block): Make a copy of the destination
13993         when copying back from a temporary.
13994
13995 2002-01-30  Richard Henderson  <rth@redhat.com>
13996
13997         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
13998         and new_dest are the same.
13999
14000 2002-01-30  Richard Henderson  <rth@redhat.com>
14001
14002         PR opt/5076
14003         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14004         * rtl.c (note_insn_name): Update.
14005         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14006         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14007         to perform loop rotation.
14008         (expand_exit_loop_top_cond): New.
14009         * tree.h (expand_exit_loop_top_cond): Declare it.
14010         * c-semantics.c (genrtl_while_stmt): Use it.
14011         (genrtl_for_stmt): Likewise.
14012
14013 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14014
14015         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14016         arguments to 64-bit boundaries on 64-bit ABIs.
14017
14018 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14019
14020         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14021
14022 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14023
14024         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14025         invalid type.
14026
14027 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14028
14029         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14030         * config/sparc/sparc_bi.h: Remove file.
14031         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14032
14033 2002-01-30  Richard Henderson  <rth@redhat.com>
14034
14035         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14036
14037 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14038
14039         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14040
14041 2002-01-30  Jason Merrill  <jason@redhat.com>
14042
14043         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14044         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14045         (reg_save): Use DW_CFA_offset_extended_sf instead.
14046
14047         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14048
14049 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14050
14051         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14052         in cselib_lookup.
14053
14054 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14055
14056         * rs6000.md ("*call_value_local32"): Remove constraints.
14057         ("*call_value_local64"): Same.
14058         ("*call_value_indirect_nonlocal_aix32"): Same.
14059         ("*call_value_nonlocal_aix32"): Same.
14060         ("*call_value_indirect_nonlocal_aix64"): Same.
14061         ("*call_value_nonlocal_aix64"): Same.
14062         ("*call_value_nonlocal_sysv"): Same.
14063
14064 2002-01-29  Richard Henderson  <rth@redhat.com>
14065
14066         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14067
14068 2002-01-29  Richard Henderson  <rth@redhat.com>
14069
14070         * expr.c (force_operand): Ignore flag_pic for detecting pic
14071         address loads.
14072         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14073         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14074         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14075         instead of open-coded loop.
14076         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14077         be fixed when in use.
14078
14079 2002-01-29  Richard Henderson  <rth@redhat.com>
14080
14081         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14082         * sched-rgn.c (propagate_deps): Update them.
14083         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14084         clobbers list when either gets too long.
14085
14086 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14087
14088         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14089         and INDEX_REGS the same as GENERAL_REGS.
14090         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14091
14092 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14093
14094         * tree.c (build_nonstandard_integer_type): Correct prototype.
14095
14096 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14097
14098         * config/s390/s390.md (movstrsico, movstrdix_64,
14099         movstrsix_31): Remove, replace by ...
14100         (movstrdi_short, movstrsi_short, movstrdi_long,
14101         movstrsi_long): ... these.  New.
14102         (movstrdi, movstrsi): Adapt.
14103
14104         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14105         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14106         Remove unnecessary CC clobber.
14107         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14108         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14109
14110         (divmoddi4): Don't partially initialize TImode register.
14111
14112 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14113
14114         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14115
14116 2002-01-29  Richard Henderson  <rth@redhat.com>
14117
14118         * flow.c (print_rtl_and_abort): Remove.
14119         (print_rtl_and_abort_fcn): Remove.
14120         (verify_local_live_at_start): Use dump_bb instead.
14121         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14122         (verify_wide_reg_1): Return 2 on mode test failure.
14123
14124 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14125
14126         PR c/3325, c/3326, c/2511, c/3347
14127         * c-decl.c (enum_decl_context): Remove BITFIELD.
14128         (grokdeclarator): Take bitfield width as an input.
14129         Ensure bitfields are given the correct type.  Perform
14130         bitfield width validation with build_bitfield_integer_type
14131         rather than waiting for finish_struct.
14132         (grok_typename, grok_typename_in_parm_context, start_decl,
14133         push_parmdecl, grokfield, start_function): Update calls to
14134         grokdeclarator.
14135         (build_bitfield_integer_type): New function.
14136         (finish_struct): Move bitfield validation to grokdeclarator
14137         and build_bitfield_integer_type.
14138         * tree.c (build_nonstandard_integer_type): New function.
14139         * tree.h (build_nonstandard_integer_type): New prototype.
14140 objc:
14141         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14142
14143 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14144
14145         PR other/1502:
14146         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14147         don't ignore unrecognized -W* options.
14148         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14149         * cpplib.h (cpp_handle_option): Adjust prototype.
14150         * c-decl.c (c_decode_options): Pass 0 as last argument to
14151         cpp_handle_option.
14152
14153         PR c/2896:
14154         * gcc.c (cpp_unique_options): Split from cpp_options.
14155         (cpp_options): Source cpp_unique_options.
14156         (default_compilers): Use cpp_unique_options instead of cpp_options
14157         when used together with cc1_options.
14158         (static_specs): Add cpp_unique_options.
14159         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14160         when used together with cc1_options.
14161
14162 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14163
14164         * config/h8300/h8300-protos.h: Update the prototype of
14165         output_a_shift.
14166         * config/h8300/h8300.c (output_a_shift): Remove an unused
14167         argument 'insn'.  Remove redundant code.
14168         * config/h8300/h8300.md: Adust to the new prototype of
14169         output_a_shift.
14170
14171 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14172
14173         * config/h8300/h8300-protos.h: Update the prototypes of
14174         emit_a_rotate and expand_a_rotate.
14175         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14176         first argument to 'enum rtx_code'.
14177         (expand_a_rotate): Likewise.
14178
14179 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14180
14181         * config/h8300/h8300-protos.h: Update the prototype of
14182         output_simode_bld.
14183         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14184         'log2'.
14185         * config/h8300/h8300.md: Adjust to the new prototype.
14186
14187 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14188
14189         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14190         redundant code.
14191
14192 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14193
14194         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14195         is a fixed register before returning pic_offset_table_rtx.
14196         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14197         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14198
14199 2002-01-28  Jason Merrill  <jason@redhat.com>
14200
14201         * dwarf2.h: Sync with src version.
14202
14203 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14204
14205         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14206         BT_FN_VOID_PTR_VAR.
14207         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14208         * doc/extend.texi (__builtin_prefetch): Update documentation:
14209         first argument is now const void ptr.
14210
14211 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14212
14213         * config/h8300/h8300-protos.h: Remove an unused prototype.
14214
14215 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14216
14217         * toplev.c (lang_independent_init): Round up identifier size.
14218
14219 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14220
14221         * config.gcc: Revert previous change.
14222
14223 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14224
14225         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14226
14227 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14228
14229         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14230         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14231         other non-elf netbsd config frags.
14232         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14233         collect2 will does that.
14234         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14235         shared-lib frobbing will work.
14236
14237 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14238
14239         * config/h8300/h8300.h: Fix formatting.
14240         * config/h8300/h8300.md: Likewise.
14241
14242 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14243
14244         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14245         the old, removed AAA_standards fix.
14246         * fixinc/fixincl.x: Rebuilt.
14247
14248 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14249
14250         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14251         atexit call in crtbegin, hooked in after call to frame_dummy;
14252         register EH before registering __fini__start.
14253
14254 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14255
14256         * config/rs6000/altivec.h: Remove spurious semicolons.
14257
14258 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14259
14260         * config/h8300/h8300.md: Replace dead bit extraction patterns
14261         with ones that work.
14262
14263 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14264
14265         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14266         if not STRICT_ALIGNMENT.
14267         * rtl.h (MEM_ALIGN): Likewise.
14268
14269 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14270
14271         * doc/invoke.texi (-fdump-translation-unit): Revert this
14272         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14273
14274 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14275
14276         * config/h8300/h8300.md (define_constants): New.
14277         (anonymous patterns) Use defined constants appropriately.
14278
14279 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14280
14281         * config/h8300/h8300.c (function_arg): Remove redundant code.
14282
14283 2002-01-26  Richard Henderson  <rth@redhat.com>
14284
14285         * sched-deps.c (reg_pending_uses_head): New.
14286         (reg_pending_barrier): Rename from reg_pending_sets_all.
14287         (find_insn_list): Don't mark inline.
14288         (find_insn_mem_list): Remove.
14289         (add_dependence_list, add_dependence_list_and_free): New.
14290         (flush_pending_lists): Replace only_write param with separate
14291         for_read and for_write parameters.  Update all callers.  Use
14292         add_dependence_list_and_free.
14293         (sched_analyze_1): Do not add reg dependencies here; just set
14294         the pending bits.  Use add_dependence_list.
14295         (sched_analyze_2): Likewise.
14296         (sched_analyze_insn): Replace schedule_barrier_found with
14297         reg_pending_barrier.  Add all dependencies for pending reg
14298         uses, sets, and clobbers.
14299         (sched_analyze): Don't add reg dependencies for calls, just
14300         set pending bits.  Use regs_invalidated_by_call.  Treat
14301         sched_before_next_call as a normal list, not a fake insn.
14302         (init_deps): No funny init for sched_before_next_call.
14303         (free_deps): Free pending mems lists.  Don't zero reg_last.
14304         (init_deps_global): Init reg_pending_uses.
14305         (finish_deps_global): Free it.
14306         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14307         (find_insn_mem_list): Remove.
14308         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14309         (propagate_deps): Use them.  Zero temp mem lists.
14310
14311 2002-01-26  Richard Henderson  <rth@redhat.com>
14312
14313         * Makefile.in (CRTSTUFF_CFLAGS): New.
14314         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14315         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14316         crtstuff.c instead of alpha assembly version.
14317         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14318         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14319         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14320         (__do_global_dtors_aux): Mark used.
14321         (frame_dummy, __do_global_ctors_aux): Mark used.
14322         (fini_dummy, init_dummy): Remove.
14323
14324         * config/alpha/crtbegin.asm: Remove file.
14325         * config/alpha/crtend.asm: Remove file.
14326         * config/alpha/t-crtbe: Remove file.
14327         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14328         (LINK_EH_SPEC): New.
14329
14330         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14331         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14332         calling constructors.
14333         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14334
14335         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14336         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14337         CRT_END_INIT_DUMMY hack.
14338         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14339         FORCE_{INIT,FINI}_SECTION_ALIGN.
14340
14341         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14342         FORCE_{INIT,FINI}_SECTION_ALIGN.
14343
14344         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14345         invocation sequence.
14346         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14347
14348         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14349         (FORCE_CODE_SECTION_ALIGN): New.
14350
14351 2002-01-26  Richard Henderson  <rth@redhat.com>
14352
14353         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14354
14355 2002-01-26  Richard Henderson  <rth@redhat.com>
14356
14357         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14358         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14359
14360 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14361
14362         * config/h8300/h8300.md: Remove bit extraction patterns that
14363         cannot be triggered.
14364         Restrict each bit extraction pattern to a variant on which the
14365         pattern is tested.
14366
14367 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14368
14369         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14370
14371 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14372
14373         * config/h8300/h8300.md: Remove bit test patterns that cannot
14374         be triggered.
14375         Restrict each bit test pattern to a variant on which the
14376         pattern is tested.
14377
14378 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14379
14380         * builtins.c (expand_builtin_strncat): Remove redundant check for
14381         INTEGER_CST.
14382
14383 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14384
14385         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14386         default setting.
14387         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14388         existing setting.
14389
14390 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14391
14392         * dbxout.c (dbxout_init): Use assemble_name rather than just
14393         stripping off the first character.
14394         (dbxout_source_file): Likewise.
14395
14396 2002-01-25  DJ Delorie  <dj@redhat.com>
14397
14398         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14399         using rtx_equal_p, not by comparing pointers.
14400
14401 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14402
14403         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14404         for PIC_OFFSET_TABLE_REGNUM.
14405         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14406
14407 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14408
14409         * config.gcc (x86_64-*-freebsd*): New target.
14410         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14411         value.
14412         (i[34567]86-*-freebsd*): Don't include svr4.h.
14413         * config/i386/freebsd64.h: New file.
14414
14415 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14416
14417         * config/alpha/x-vms (version): Make static.
14418
14419         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14420         in previous checkin.
14421
14422         * Makefile.in (install-headers-cp): New target.
14423         * config.gcc (alpha-dec-*vms*): Install headers with
14424         install-headers-cp
14425
14426 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14427
14428         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14429         avoid it's copies.
14430
14431 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14432
14433         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14434         of compare_tree_int.
14435         (expand_builtin_strncat): Likewise.
14436         * c-decl.c (finish_struct): Use tree_low_cst.
14437         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14438         * tree.c (compare_tree_int): Likewise.
14439
14440 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14441
14442         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14443         adjustments even if they are implemented by more than two insns.
14444
14445 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14446
14447         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14448         * df.h (struct ref): Kill B.
14449         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14450
14451         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14452         * flow.c (propagate_one_insn): Use it.
14453         (mark_used_regs): Handle NIL.
14454
14455 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14456
14457         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14458         to help folding.
14459
14460 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14461
14462         * rs6000.md (prefetch): Make address V4SI mode so that the address
14463         is restricted to legitimate form for instruction.
14464
14465 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14466
14467         * doc/install.texi (xtensa-*-elf): New target.
14468         (xtensa-*-linux*): New target.
14469         * doc/contrib.texi: Add myself.
14470
14471 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14472
14473         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14474         purpose register to hold an SImode (or smaller) value.
14475
14476 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14477
14478         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14479         registry only.
14480         * crtstuff.c: Likewise.
14481
14482 2002-01-25  Kazu Hirata  <kazu@hxi.com>
14483
14484         * config/h8300/h8300.md (negation patterns): Tighten
14485         predicates to register_operand.
14486
14487 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
14488
14489         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14490         mode, not Pmode.
14491
14492         * builtins.c (expand_builtin_prefetch): Same.
14493
14494 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14495
14496         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14497         modes.
14498
14499 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14500
14501         * config/h8300/h8300.c (print_operand): Remove support for
14502         operand character 'A'.
14503         * config/h8300/h8300.md (three anonymous patterns): Replace
14504         operand character 'A' with either 'T' or 'S'.
14505
14506 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14507
14508         * config/h8300/h8300.c (print_operand): Remove support for
14509         operand character 'U'.
14510
14511 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
14512
14513         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14514
14515 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
14516
14517         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14518         values to be assigned to the stack pointer.
14519
14520 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
14521
14522         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14523         to const_double needs to be done right for big-endian systems.
14524
14525 2002-01-24  Jason Merrill  <jason@redhat.com>
14526
14527         PR c++/2432
14528         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14529         to can_throw_internal.
14530
14531 2002-01-23  Richard Henderson  <rth@redhat.com>
14532
14533         * fold-const.c (fold): Change UINT_MAX test to check vs precision
14534         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
14535
14536 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14537
14538         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14539         (symGOT2reg): Use them, then set as GOT value as unchanging.
14540         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
14541         as a temporary, if possible.
14542         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
14543         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14544
14545 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14546
14547         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14548         accept to accept 0x80 as operands[2].
14549
14550 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14551
14552         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14553
14554 2002-01-23  Richard Henderson  <rth@redhat.com>
14555
14556         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14557
14558 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
14559
14560         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14561         (parmlist_or_identifiers_1): Verify that only a parmlist follows
14562         an attribute.
14563
14564 2002-01-23  Richard Henderson  <rth@redhat.com>
14565
14566         * expr.c (move_by_pieces_1): Extend size before negation.
14567
14568         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14569         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14570         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14571         * config/m68k/t-m68kelf: Likewise.
14572
14573 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
14574
14575         * config/xtensa/elf.h: New file.
14576         * config/xtensa/lib1funcs.asm: New file.
14577         * config/xtensa/lib2funcs.S: New file.
14578         * config/xtensa/linux.h: New file.
14579         * config/xtensa/t-xtensa: New file.
14580         * config/xtensa/xtensa-config.h: New file.
14581         * config/xtensa/xtensa-protos.h: New file.
14582         * config/xtensa/xtensa.c: New file.
14583         * config/xtensa/xtensa.h: New file.
14584         * config/xtensa/xtensa.md: New file.
14585         * config.gcc (xtensa-*-elf*): New target.
14586         (xtensa-*-linux*): New target.
14587         * cse.c (canon_hash): Compare rtx pointers instead of register
14588         numbers.  This is required for the Xtensa port.
14589         * integrate.c (copy_insn_list): Handle case where the static
14590         chain is in memory and the memory address has to be copied to
14591         a register.
14592         * doc/invoke.texi (Option Summary): Add Xtensa options.
14593         (Xtensa Options): New node.
14594         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14595
14596 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14597
14598         * diagnostic.c (internal_error): Do ICE suppression only
14599         when ENABLE_CHECKING is not defined.
14600
14601         * c-typeck.c (require_complete_type): Return error_mark_node
14602         if type is error_mark_node.
14603
14604 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
14605
14606         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14607         -Os and issue a warning.
14608
14609 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14610
14611         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14612         current (lack of) need for host configuration by hand.
14613
14614         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14615         references.  Documentation of some target macros moved from
14616         hostconfig.texi to tm.texi.
14617
14618 2002-01-23  Will Cohen  <wcohen@redhat.com>
14619
14620         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14621         defined.
14622
14623 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14624
14625         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14626         operand[3].
14627
14628 2002-01-23  Jason Merrill  <jason@redhat.com>
14629
14630         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14631
14632         * function.c (assign_parms): Don't put args of inline functions
14633         into registers when not optimizing.
14634
14635 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
14636
14637         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14638         (prologue_use): New pattern.
14639         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14640         preference to gen_rtx_USE.
14641         (thumb_expand_prologue): Use gen_prologue_use in preference to
14642         gen_rtx_USE.
14643         (thumb_expand_epilogue): Use gen_prologue_use in preference to
14644         gen_rtx_USE.
14645
14646 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
14647
14648         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14649
14650 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14651
14652         PR c/3504
14653         * doc/extend.texi: Correct documentation of __alignof__.
14654
14655 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
14656
14657         * params.h: Rename arguments of DEFPARAM so that it will be
14658         recognized as a translation keyword.
14659
14660 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14661
14662         * extend.texi: Document altivec functions.
14663         Fix N-bit adjectives in X86 builtin documentation.
14664
14665 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14666
14667         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14668         auto_inc_dec values.
14669
14670 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
14671
14672         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14673         after backslash.
14674         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14675
14676 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14677
14678         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14679
14680 2002-01-22  Richard Henderson  <rth@redhat.com>
14681
14682         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14683         copy_insn not copy_rtx.
14684
14685 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
14686
14687         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14688         "nonzero" as that might add "1" bits.  Ensure "constop" is
14689         properly sign extened.
14690         (force_to_mode): Tweak for sign extended constop.
14691
14692 2002-01-22  Richard Henderson  <rth@redhat.com>
14693
14694         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14695         for_each_rtx instead of assuming we're already looking at the MEM.
14696         (split_small_symbolic_mem_operand): Likewise.
14697         * config/alpha/alpha.h (PREDICATE_CODES): Update.
14698         * config/alpha/alpha.md (small symbolic memory splitters): Update.
14699
14700 2002-01-22  Richard Henderson  <rth@redhat.com>
14701
14702         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14703         sequence number for the literal.
14704         (divmoddi_internal_er): Likewise.
14705
14706 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14707
14708         PR java/4972
14709         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14710         in LIBICONV variable.
14711         * configure: Regenerated.
14712
14713 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
14714
14715         * dependence.c (build_def_use): Remove array_idx.
14716
14717         * dwarfout.c (last_filename): Remove.
14718         (output_compile_unit_die): Remove last_filename.
14719
14720 2002-01-22  Roger Sayle  <roger@eyesopen.com>
14721             Richard Henderson  <rth@redhat.com>
14722
14723         PR opt/3640
14724         * fold-const.c (fold): Optimize unsigned comparisons against
14725         UINT_MAX (and similar unsigned constants).
14726
14727 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
14728
14729         * Makefile.in (loop.o): Depend on OPTABS_H.
14730         * loop.c (emit_prefetch_instructions): Check the prefetch operand
14731         against the predicate.
14732
14733         PR target/5379
14734         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14735         for the address operand.
14736
14737 2002-01-22  Richard Henderson  <rth@redhat.com>
14738
14739         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14740
14741 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14742
14743         PR other/5450
14744         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14745         preprocessor flags.
14746
14747 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
14748
14749         * config.gcc (x86_64-*-netbsd*): New target.
14750         * config/i386/netbsd64.h: New file.
14751
14752 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14753
14754         * regrename.c (kill_value): Fix typo.
14755
14756 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14757
14758         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14759
14760         * config/rs6000/rs6000.h: Same.
14761
14762         * function.c (instantiate_virtual_regs): Remove
14763         STARTING_FRAME_PHASE.
14764         (assign_stack_local_1): Same.
14765         Calculate frame phase.
14766
14767 2002-01-22  Nick Clifton  <nickc@redhat.com>
14768
14769         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14770         variable declaration to outer scope in order to simplify
14771         future extensions.
14772         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14773         arm_hard_regno_mode_ok.
14774         * config/arm/arm-protos.h: Add a prototype for
14775         arm_hard_regno_mode_ok.
14776         * config/arm/arm.c (soft_df_operand): Remove now redundant
14777         check for DImode values using IP_REGNUM.
14778         (nonimmediate_soft_df_operand): Remove now redundant check for
14779         DImode values using IP_REGNUM.
14780         (arm_hard_regno_mode_ok): New function. New check: make sure
14781         that DImode values are not stored in IP_REGNUM.
14782
14783         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14784         note with a USE.
14785         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14786
14787 2002-01-22  Jason Merrill  <jason@redhat.com>
14788
14789         * c-semantics.c (genrtl_compound_stmt): Only check nesting
14790         consistency if this COMPOUND_STMT is scoped.
14791
14792 2002-01-22  Kazu Hirata  <kazu@hxi.com>
14793
14794         * predict.c: Fix formatting.
14795         * print-tree.c: Likewise.
14796         * protoize.c: Likewise.
14797         * real.h: Likewise.
14798         * rtl.h: Likewise.
14799         * sbitmap.h: Likewise.
14800         * scan.c: Likewise.
14801         * sched-deps.c: Likewise.
14802         * sched-vis.c: Likewise.
14803         * sdbout.c: Likewise.
14804         * sibcall.c: Likewise.
14805         * ssa.c: Likewise.
14806         * ssa-ccp.c: Likewise.
14807         * ssa-dce.c: Likewise.
14808         * stmt.c: Likewise.
14809         * stor-layout.c: Likewise.
14810         * system.h: Likewise.
14811
14812 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14813
14814         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14815         if fits in bounds of base type.
14816
14817         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14818         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14819         (add_bound_info, default): If can't find a context, make a
14820         SAVE_EXPR.
14821         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14822
14823 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
14824
14825         * c-typeck.c (parser_build_binary_op): If result from
14826         build_binary_op is ERROR_MARK just return error_mark_node without
14827         further processing.
14828
14829 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
14830
14831         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14832         Split a.out-specific bits into...
14833         * config/netbsd-aout.h: ...this.
14834         * config/netbsd-elf.h: New file.
14835         * config/alpha/netbsd-elf.h: Remove.
14836         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14837         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14838         (STARTFILE_SPEC): Remove redundant definition.
14839         (ENDFILE_SPEC): Likewise.
14840         (LINK_SPEC): Likewise.
14841         (CPP_SPEC): Likewise.
14842         (ASM_SPEC): Likewise.
14843         (LIB_SPEC): Likewise.
14844         (SWITCH_TAKES_ARG): Likewise.
14845         (TARGET_MEM_FUNCTIONS): Likewise.
14846         (CPP_PREDEFINES): Redefine.
14847         (ASM_FINAL_SPEC): Remove redefinition.
14848         (ASM_COMMENT_START): Redefine.
14849         (FUNCTION_PROFILER): Define.
14850         (TARGET_VERSION): Redefine.
14851         Comment and formatting cleanup.
14852         * config/i386/netbsd.h: Include <netbsd-aout.h>.
14853         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14854         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14855         big- or little-endian.
14856         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14857         * config.gcc (*-*-netbsd*): Add definitions common to all
14858         NetBSD configs.
14859         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14860         gnu_ld definitions.  Add netbsd-elf.h to and remove
14861         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
14862         tmake_file, and don't lose previous tmake_file contents.
14863         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14864         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14865         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
14866         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14867         (mipsel-*-netbsd*): Rename this to...
14868         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
14869         mips/little.h to tm_file for mips*el-*.
14870         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14871         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14872         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14873
14874 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14875
14876         * pa-protos.h (reg_before_reload_operand): New function prototype.
14877         * pa.c (reg_before_reload_operand): New function implementation.
14878         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
14879         contraints to "*m".
14880
14881 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14882
14883         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14884
14885 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14886
14887         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14888         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14889         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14890         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14891         (ENDFILE_SPEC): Undefine.
14892         (STARTFILE_SPEC): Redefine for PA.
14893
14894 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14895
14896         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14897
14898 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
14899
14900         * config.gcc: Add entries to supported PowerPC --with-cpu
14901         types.
14902
14903 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
14904
14905         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14906         true for 64-bit mode only SSE registers in 32-bit mode.
14907
14908 2002-01-21  Kazu Hirata  <kazu@hxi.com>
14909
14910         * unwind-dw2.c: Fix formatting.
14911         * unwind-dw2-fde.c: Likewise.
14912         * unwind-dw2-fde.h: Likewise.
14913         * unwind-pe.h: Likewise.
14914         * varasm.c: Likewise.
14915         * varray.h: Likewise.
14916
14917 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
14918
14919         Remove workaround for register stack overwrite bug in mmix.
14920         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14921         support for TARGET_REG_STACK_FILL_BUG.
14922         * config/mmix/mmix.h: Remove member has_call_without_parameters.
14923         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14924         Delete.
14925         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14926         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14927         -mno-reg-stack-fill-bug-workaround.
14928         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14929         machine member has_call_without_parameters.
14930         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14931         -mreg-stack-fill-bug-workaround and
14932         -mno-reg-stack-fill-bug-workaround.
14933         (MMIX Options): Ditto.
14934
14935 2002-01-21  Kazu Hirata  <kazu@hxi.com>
14936
14937         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
14938         as appropriate.
14939         Remove redundant code.
14940
14941 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
14942
14943         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
14944         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14945         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14946         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
14947         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
14948         out target macro definitions and non-target-specific comments
14949         mostly taken from old versions of the manual.
14950
14951 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14952
14953         * config/h8300/h8300.h: Fix comment formatting.
14954         * config/ia64/aix.h: Likewise.
14955         * config/ia64/ia64-protos.h: Likewise.
14956         * config/ia64/ia64.c: Likewise.
14957         * config/ia64/ia64.h: Likewise.
14958         * config/ia64/ia64intrin.h: Likewise.
14959         * config/ia64/linux.h: Likewise.
14960         * config/ia64/unwind-aix.c: Likewise.
14961         * config/ia64/unwind-ia64.c: Likewise.
14962
14963 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14964
14965         * config/h8300/h8300.c: Revise comments about shift code.
14966
14967 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14968
14969         * config/h8300/h8300.c (function_arg): Update a comment.
14970
14971 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14972
14973         * config/h8300/h8300.md: Update the comments at the beginning
14974         of the file.
14975
14976 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14977
14978         * config/i370/i370.c: Fix comment formatting.
14979         * config/i370/i370.h: Likewise.
14980         * config/i370/i370.md: Likewise.
14981         * config/i370/linux.h: Likewise.
14982
14983 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14984
14985         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
14986
14987         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
14988         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
14989         in incomplete case.
14990
14991 2002-01-20  Graham Stott  <grahams@redhat.com>
14992
14993         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
14994
14995 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14996
14997         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
14998
14999 2002-01-19  Tom Rix  <trix@redhat.com>
15000
15001         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15002
15003 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15004
15005         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15006
15007         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15008         STARTING_FRAME_PHASE.
15009         (STARTING_FRAME_PHASE): New.
15010         (instantiate_virtual_regs): Check saneness of
15011         STARTING_FRAME_PHASE.
15012
15013         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15014
15015 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15016
15017         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15018
15019 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15020
15021         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15022         be used for bootstrapping GCC 3.0.
15023
15024 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15025
15026         * config/h8300/h8300.md: Fix an insn length.
15027
15028 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15029
15030         * bitmap.h: Fix comment formatting.
15031         * combine.c: Likewise.
15032         * cppfiles.c: Likewise.
15033         * c-pragma.h: Likewise.
15034         * c-typeck.c: Likewise.
15035         * df.c: Likewise.
15036         * dwarf2out.c: Likewise.
15037         * function.c: Likewise.
15038         * gcc.c: Likewise.
15039         * genattrtab.c: Likewise.
15040         * gthr-win32.h: Likewise.
15041         * haifa-sched.c: Likewise.
15042         * predict.c: Likewise.
15043         * rtlanal.c: Likewise.
15044         * rtl.h: Likewise.
15045         * unwind-dw2-fde.h: Likewise.
15046         * unwind-pe.h: Likewise.
15047         * vmsdbgout.c: Likewise.
15048
15049 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15050
15051         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15052         if type_required and passed decl.
15053
15054 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15055
15056         * config.gcc (cpu_type): Include altivec.h in powerpc
15057         extra_headers.
15058         Same for darwin.
15059
15060         * config/rs6000/altivec.h: New.
15061
15062 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15063
15064         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15065         handling information.
15066         * doc/trouble.texi (Interoperation): Add libstdc++ information
15067         for AIX.
15068         (Misunderstandings): Add template instantiation and static template
15069         member information for AIX.
15070
15071 2002-01-17  Jason Merrill  <jason@redhat.com>
15072
15073         * dbxout.c (dbxout_type): Support const and volatile.
15074
15075         * except.c (add_partial_entry): Remove backwards compatibility code.
15076         (end_protect_partials): Likewise.
15077
15078 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15079
15080         * config/ia64/ia64.md (prologue_use): New.
15081         * config/ia64/ia64.c (ia64_expand_prologue): Use
15082         gen_prologue_use instead of gen_rtx_USE.
15083         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15084         as CODE_FOR_pred_rel_mutex.
15085         (ia64_sched_reorder2): Likewise.
15086
15087 2002-01-16  Eric Christopher  <echristo@redhat.com>
15088
15089         * config/mips/r3900.h: Reformat.
15090         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15091         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15092         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15093         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15094         * config/mips/t-elf: Remove mips3 multilib.
15095
15096 2002-01-16  H.J. Lu <hjl@gnu.org>
15097
15098         * config/mips/linux.h: Include "mips/abi64.h".
15099
15100 2002-01-16  H.J. Lu <hjl@gnu.org>
15101
15102         * config/mips/t-linux: New.
15103
15104         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15105
15106         * config/mips/linux.h: Don't include "gofast.h".
15107         (INIT_SUBTARGET_OPTABS): Removed.
15108
15109 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15110
15111         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15112         output_a_shift.
15113         * config/h8300/h8300.c: Likewise.
15114         * config/h8300/h8300.md: Likewise.
15115
15116 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15117
15118         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15119         spaces after an opcode name.
15120         (pushqi1_h8300hs): Likewise.
15121         (pushhi1_h8300hs): Likewise.
15122
15123 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15124
15125         * doc/extend.texi: Replace "option" with "attribute"
15126         appropriately.
15127
15128 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15129
15130         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15131         (and:DI () (const_int -8)).
15132         (split_small_symbolic_mem_operand): Split
15133         (mem (and:DI () (const_int -8)).
15134
15135 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15136
15137         PR target/5309:
15138         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15139         same way as TYPE_IMUL.
15140         (ultrasparc_sched_reorder): Likewise.
15141         * config/sparc/sparc.md (type): Add comment to update
15142         ultrasparc_sched_reorder when making changes.
15143
15144 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15145
15146         * doc/invoke.texi: Change the dump file name of block
15147         reordering pass from 28.bbro to 29.bbro.
15148         Mention -dk option.
15149
15150 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15151
15152         * i386.md (minsf splitter): Fix pasto.
15153
15154 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15155
15156         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15157         to frame pointer initialisation instruction.
15158         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15159         initialisation instruction.
15160         (soft_df_operand): Do not accept the IP register.
15161         (nonimmediate_soft_df_operand): Do not accept the IP register.
15162
15163 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15164
15165         PR target/5357:
15166         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15167         MASK_V8 being both set.
15168
15169 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15170
15171         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15172         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15173         config/s390/s390.md (call, call_value): Add GOT register to
15174         CALL_INSN_FUNCTION_USAGE where needed.
15175         (call_exp, call_value_exp): New.
15176
15177 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15178
15179         * config/arm/arm.c: General formatting tidy up.
15180
15181 2002-01-16  Graham Stott  <grahams@redhat.com>
15182
15183         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15184         cast and when casting an integer literal to "rtx" pointer.
15185         (expand_call): Likewise.
15186         * flow.c (try_pre_increment): Likewise.
15187         (find_use_as_address): Likewise.
15188         * integrate.c (expand_iline_function): Likewise.
15189         * regmove.c (try_auto_increment): Likewise.
15190
15191 2002-01-16  Graham Stott  <grahams@redhat.com>
15192
15193         * sched-rgn.c (passed): Use sbitmap_free.
15194         (header): Likewise.
15195         (inner): Likewise.
15196         (in_queue): Likewise.
15197         (in_stack): Likewise.
15198
15199 2002-01-15  Eric Christopher  <echristo@redhat.com>
15200
15201         * flow.c (propagate_one_insn): Change to use fatal_insn.
15202
15203 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15204
15205         * expmed.c (extract_fixed_bit_field): Remove unused code.
15206         * system.h: Poison SLOW_ZERO_EXTEND.
15207         * doc/tm.texi: Remove.
15208         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15209         * config/arm/arm.h: Likewise.
15210         * config/avr/avr.h: Likewise.
15211         * config/clipper/clipper.h: Likewise.
15212         * config/convex/convex.h: Likewise.
15213         * config/d30v/d30v.h: Likewise.
15214         * config/dsp16xx/dsp16xx.h: Likewise.
15215         * config/elxsi/elxsi.h: Likewise.
15216         * config/fr30/fr30.h: Likewise.
15217         * config/h8300/h8300.h: Likewise.
15218         * config/i370/i370.h: Likewise.
15219         * config/i386/i386.h: Likewise.
15220         * config/m68k/m68k.h: Likewise.
15221         * config/mips/mips.h: Likewise.
15222         * config/ns32k/ns32k.h: Likewise.
15223         * config/pdp11/pdp11.h: Likewise.
15224         * config/pj/pj.h: Likewise.
15225         * config/s390/s390.h: Likewise.
15226         * config/sh/sh.h: Likewise.
15227         * config/stormy16/stormy16.h: Likewise.
15228         * config/v850/v850.h: Likewise.
15229         * config/vax/vax.h: Likewise.
15230         * config/we32k/we32k.h: Likewise.
15231
15232 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15233
15234         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15235         (altivec_lvsl): Change constraint to b.
15236         (altivec_lvsr): Same.
15237         (altivec_lvebx): Same.
15238         (altivec_lvehx): Same.
15239         (altivec_lvewx): Same.
15240         (altivec_lvxl): Same.
15241         (altivec_lvx): Same.
15242         (altivec_stvx): Add parallel.
15243         (altivec_stvxl): Same.
15244         (altivec_stvehx): Same.
15245         (altivec_stvebx): Same.
15246         (altivec_stvebx): Same.
15247
15248 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15249
15250         * config.gcc: Change altivec.h to altivec-defs.h.
15251
15252         * config/rs6000/altivec.h: Delete.
15253
15254         * config/rs6000/altivec-defs.h: Add.
15255
15256 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15257
15258         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15259         and UMOD modes.
15260
15261         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15262         less than or equal to eight bytes.
15263
15264         * vax.md (andsi3): Remove constraints and change SET destination
15265         operand type to nonimmediate_operand.
15266         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15267         when it is a CONST_INT.
15268
15269 2002-01-15  Jason Merrill  <jason@redhat.com>
15270
15271         * c-common.def (FILE_STMT): New code.
15272         * c-common.c (statement_code_p): It's a statement.
15273         * c-common.h (stmt_tree_s): Add x_last_filename.
15274         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15275         (last_expr_filename): New macro.
15276         * c-semantics.c (begin_stmt_tree): Initialize it.
15277         (add_stmt): If the filename changed, also insert a
15278         FILE_STMT.
15279         (expand_stmt): Handle seeing one.
15280
15281 2002-01-15  Eric Christopher  <echristo@redhat.com>
15282
15283         * flow.c (propagate_one_insn): Add error message and print out
15284         insn for debugging.
15285
15286 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15287
15288         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15289         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15290         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15291         TRAMPOLINE_ALIGNMENT.
15292         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15293         to be in bits.
15294         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15295         PCC_BITFIELD_TYPE_MATTERS.
15296         * config/interix.h (STDC_VALUE): Remove.  Use
15297         STDC_0_IN_SYSTEM_HEADERS.
15298         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15299         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15300         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15301
15302 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15303
15304         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15305         not work on this platform currently.
15306
15307 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15308
15309         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15310         readonly_warning in _().
15311
15312 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15313
15314         * gcc.c (delete_if_ordinary): Backout previous change.
15315
15316 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15317
15318         * config/h8300/h8300.c (print_operand): Remove support for
15319         unused operand characters.
15320
15321         * read-rtl.c: Fix formatting.
15322         * real.c: Likewise.
15323         * recog.c: Likewise.
15324         * regclass.c: Likewise.
15325         * regmove.c: Likewise.
15326         * reg-stack.c: Likewise.
15327         * reload1.c: Likewise.
15328         * rtlanal.c: Likewise.
15329
15330 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15331
15332         * config/i386/i386.c: Fix formatting.
15333
15334 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15335
15336         * c-typeck.c (process_init_element): Don't save_expr
15337         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15338
15339 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15340
15341         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15342         emit optional traceback table if optimize_size or TARGET_ELF.
15343         * config/rs6000/rs6000.md (prefetch): New.
15344
15345 2002-01-15  Andreas Jaeger  <aj@suse.de>
15346
15347         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15348
15349 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15350
15351         * mips-tfile.c: Fix formatting.
15352
15353 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15354
15355         * unroll.c (final_reg_note_copy): Fix previous commit.
15356
15357 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15358
15359         * config/h8300/h8300-protos.h: Remove the prototype for
15360         eq_operator.
15361         * config/h8300/h8300.c (eq_operator): Remove.
15362
15363 2002-01-14  Richard Henderson  <rth@redhat.com>
15364
15365         * config/i386/i386.md (prefetch): Tidy.
15366         (prefetch_3dnow): Fix locality operand.
15367
15368 2002-01-14  Richard Henderson  <rth@redhat.com>
15369
15370         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15371         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15372
15373 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15374
15375         * reload1.c (reload_combine): Pass reg_sum replacement through
15376         copy_rtx in loop performing multiple changes.
15377
15378 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15379
15380         * except.c (remove_unreachable_regions): New.
15381         (free_eh_status): Clear exception_handler_labels.
15382         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15383         (find_exception_handler_labels): Don't add the same label more than
15384         once.
15385         (remove_exception_handler_label): Don't die if
15386         find_exception_handler_labels hasn't been called for the current
15387         function yet.
15388
15389 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15390
15391         * toplev.c (rest_of_compilation): Rebuild jump labels after
15392         gcse.
15393
15394 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15395
15396         * doc/extend.texi: Move documentation of X86 built-in functions
15397         here.
15398         * doc/invoke.texi: From here.
15399         * doc/sourcebuild.texi: Document location of documentation for
15400         machine built-in functions.
15401
15402 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15403
15404         * cppfiles.c (TEST_THRESHOLD): New macro.
15405         (SHOULD_MMAP): Ditto.
15406         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15407         be used.
15408
15409 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15410
15411         * unroll.c (final_reg_note_copy): Properly handle
15412         REG_LABEL
15413         (unroll_loops): Fix LOOP_CONDITION heuristics.
15414
15415 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15416
15417         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15418         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15419
15420 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15421
15422         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15423         threaded loop.
15424
15425 2002-01-14  Tom Rix  <trix@redhat.com>
15426
15427         * config/rs6000/rs6000.md: Fix typo with sradi.
15428
15429 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15430
15431         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15432         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15433         (clrstrdi, clrstrsi): Adapt callers.
15434
15435         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15436
15437         (movti splitter): Never use register 0 as base register.
15438
15439 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15440
15441         * combine.c (simplify_shift_const): Always generate new rtx
15442         for shift expression instead of reusing given expression.
15443
15444 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15445
15446         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15447         alpha_legitimize_address unless mode is Pmode.
15448
15449 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15450
15451         * doc/md.texi (Modifiers): Document the '*' constraint for the
15452         user.
15453
15454         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15455         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15456         for xstormy16 too.
15457
15458 2002-01-13  Richard Henderson  <rth@redhat.com>
15459
15460         * reload.c (find_reloads): Use a hard reg destination as reload reg
15461         for an input reload of the source.
15462
15463 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15464
15465         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15466         more generic.
15467
15468 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15469
15470         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15471         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15472
15473         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15474
15475 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15476
15477         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15478
15479 2002-01-12  Tom Rix  <trix@redhat.com>
15480
15481         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15482         TARGET_POWERPC64.
15483
15484 2002-01-12  Richard Henderson  <rth@redhat.com>
15485
15486         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15487
15488         * doc/invoke.texi: Update Alpha options.
15489
15490         * doc/invoke.texi: Update i386 built-in function lists.
15491
15492 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15493
15494         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15495         referencing outside.
15496
15497 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15498
15499         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15500         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15501         offsets, and change line folding.
15502         * optabs.c (expand_binop): Remove warnings.
15503         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15504
15505 2002-01-12  Graham Stott <grahams@redhat.com>
15506
15507         * attribs.c (handle_deprecated_attribute): constify WHAT.
15508         * diagnostic.c (warn_deprecated_use): Add braces, fixes
15509         dangling else warning and constify WHAT.
15510         * except.h (struct function, struct inline_remap): Move
15511         struct tag forward defs before all prototypes.
15512         (duplicate_eh_regions): Whitespace.
15513
15514 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
15515
15516         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15517         MODE_BASE_REG_CLASS.
15518         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15519
15520 2002-01-12  Richard Henderson  <rth@redhat.com>
15521
15522         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15523         (ix86_expand_vector_move): New.
15524         (bdesc_2arg): Remove andps, andnps, orps, xorps.
15525         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
15526         Remove old prefetch builtins.  Special case the logicals removed above.
15527         (ix86_expand_builtin): Likewise.
15528         (safe_vector_operand): Use V4SFmode, not TImode.
15529         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
15530         (ix86_expand_timode_binop_builtin): New.
15531         * config/i386/i386-protos.h: Update.
15532         * config/i386/i386.h (enum ix86_builtins): Update.
15533         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15534         Use ix86_expand_vector_move in vector move expanders.
15535         (movti_internal, movti_rex64): Add xorps alternative.
15536         (sse_clrv4sf): Rename and adjust from sse_clrti.
15537         (prefetch): Don't work so hard.
15538         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15539         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15540         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15541
15542 2002-01-11  Richard Henderson  <rth@redhat.com>
15543
15544         * config/i386/mmintrin.h: New file.
15545         * config/i386/xmmintrin.h: New file.
15546         * config.gcc (i?86-*-*): Add extra_headers.
15547         * simplify-rtx.c (simplify_unary_operation): Handle saturating
15548         truncation codes.
15549         (simplify_binary_operation): Handle saturating arithmetic codes.
15550         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15551         not the lowpart subreg.
15552         (ix86_expand_builtin): Return a TImode dummy register instead of 0
15553         on error.
15554         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15555
15556 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15557
15558         * conflict.c (conflict_graph_compute): Free regsets when finished.
15559         * ssa.c (compute_coalesced_reg_partition): Likewise.
15560
15561 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15562
15563         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15564         every where we allocate a register.
15565
15566 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15567
15568         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15569         * lcm.c (compute_earliest, compute_farthest): Likewise.
15570
15571 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15572
15573         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15574
15575 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15576
15577         * doc/rtl.texi (Insns): Fix 2 typos.
15578
15579 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
15580
15581         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
15582         options.  Use @table @gcctabopt for MMIX options.  Add index
15583         entries for MMIX options.  Start new paragraph with first
15584         heading of the machine-dependent options.
15585
15586 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15587
15588         PR other/5299
15589         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15590         * combine.c (force_to_mode): Same.
15591         * reload1.c (clear_reload_reg_in_use): Same.
15592
15593 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
15594
15595         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15596         and 'subtargets'.
15597
15598 2002-01-11  Andreas Jaeger  <aj@suse.de>,
15599             Brad Lucier <lucier@math.purdue.edu>
15600
15601         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15602         mcpu.
15603
15604 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
15605
15606         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15607         Protect with IN_LIBGCC.
15608         (LINK_EH_SPEC): Add required trailing space.
15609
15610 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15611
15612         * c-tree.h: Move function declarations so that they are listed
15613         under the filename which contains them.
15614         (check_identifier, finish_decl_top_level,
15615         lookup_name_current_level_global, shadow_record_fields): Remove.
15616
15617 2002-01-11  Andreas Jaeger  <aj@suse.de>
15618
15619         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15620         march.
15621
15622 2002-01-10  Richard Henderson  <rth@redhat.com>
15623
15624         * config/alpha/alpha.c (print_operand): Add 'J'.
15625         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15626         new operand with the sequence number for the lituse.  When splitting
15627         the insns, use gen_movdi_er_high_g and generate a sequence number.
15628         (gen_movdi_er_high_g): Print the sequence number if non-zero.
15629
15630 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
15631
15632         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15633         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15634         stvxl.
15635         (altivec_expand_builtin): Same.
15636         (altivec_expand_stv_builtin): New.
15637
15638         * config/rs6000/rs6000.h (rs6000_builtins): Same.
15639
15640         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15641         ("altivec_lvehx"): New.
15642         ("altivec_lvewx"): New.
15643         ("altivec_lvxl"): New.
15644         ("altivec_lvx"): New.
15645         ("altivec_stvx"): New.
15646         ("altivec_stvebx"): New.
15647         ("altivec_stvehx"): New.
15648         ("altivec_stvewx"): New.
15649         ("altivec_stvxl"): New.
15650
15651 2002-01-10  Richard Henderson  <rth@redhat.com>
15652
15653         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15654         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
15655         care not to delete instructions twice.
15656
15657 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15658
15659         * toplev.c: Don't declare environ (it's not used anywhere).
15660         * configure.in: Don't check for declaration of environ.
15661         * config/i386/xm-mingw32.h: Don't #define environ.
15662         * config.in, configure: Regenerate.
15663
15664 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15665
15666         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15667         * configure: Regenerate.
15668
15669         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15670         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15671         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15672         alpha/xm-vms.h.
15673         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15674         LIMITS_H_TEST here, not in m68k/x-next.
15675         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15676         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15677
15678         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15679         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15680         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
15681
15682         * config/i386/x-djgpp: Renamed i386/t-djgpp.
15683         * config/m88k/x-dolph: Renamed m88k/t-dolph.
15684         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15685         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
15686         replacement of quadlib.asm with quadlib.c.
15687
15688         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15689         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15690         config/rs6000/xm-beos.h: Delete file.
15691
15692         * config.gcc: Update to match above changes.
15693
15694 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15695
15696         * config/h8300/h8300.h: Fix comment typos.
15697         * config/h8300/h8300.md: Likewise.
15698         * config/h8300/lib1funcs.asm: Likewise.
15699
15700 2002-01-10  Dale Johannesen  <dalej@apple.com>
15701
15702         PR optimization/5269
15703         * unroll.c (precondition_loop_p): Make *increment be the correct
15704         sign when n_iterations known, to avoid confusing caller.
15705
15706 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15707
15708         * doc/extend.texi (deprecated): Fix a typo.
15709
15710 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
15711
15712         * basic-block.h (update_br_prob_note): Declare.
15713         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15714         (try_forward_edges): Care negative frequencies and update note.
15715         (outgoing_edges_match): Tweek conditional merging heuristics.
15716         (try_crossjump_to_edge): use update_br_prob_note.
15717         * cfglayout.c (fixup_reorder_chain): Likewise.
15718         * cfrtl.c (update_br_prob_note): New.
15719         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15720
15721         * i386.c (ix86_decompose_address): Return -1 if address contains
15722         shift.
15723         (legitimate_address_p): Require ix86_decompose_address to return 1.
15724
15725         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15726         (cprop_insn): Likewise.
15727
15728 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15729
15730         * toplev.c: Fix formatting.
15731         * tree.c: Likewise.
15732         * tree-dump.c: Likewise.
15733         * unroll.c: Likewise.
15734         * unwind-dw2.c: Likewise.
15735         * unwind-dw2-fde.c: Likewise.
15736         * unwind-dw2-fde-glibc.c: Likewise.
15737         * unwind-sjlj.c: Likewise.
15738
15739 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15740
15741         * doc/invoke.texi: Document PDP-11 options.
15742
15743 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15744
15745         * config/h8300/h8300.h: Fix formatting.
15746
15747 2002-01-10  Ira Ruben   <ira@apple.com>
15748
15749         Add __attribute__ ((deprecated)).
15750         * extend.texi: Document __attribute__ ((deprecated)).
15751         * invoke.texi: Document -Wno-deprecated-declarations.
15752         * testsuite/g++.dg/other/deprecated.C: New C++ test.
15753         * testsuite/gcc.dg/deprecated.c: New C test.
15754         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15755         (c_common_attribute_table): Add "deprecated" entry.
15756         (handle_deprecated_attribute): New function.
15757         * c-decl.c (deprecated_states): New enum.
15758         deprecated_state: State of "deprecated" handling.
15759         (start_decl): Set deprecated_state based on attributes.
15760         (grokdeclarator): Test for deprecated uses, propagate attribute.
15761         * c-typeck.c (build_component_ref): Test for deprecated fields.
15762         (build_external_ref): Test for deprecated primaries.
15763         * diagnostic.c (warn_deprecated_use) New function to issue
15764         warnings about __attribute__ ((depricated)) references.
15765         * flags.h (warn_deprecated_decl): Extern declared for
15766         -W[no-]deprecated-declarations option.
15767         * print-tree.c (print_node): Show deprecated flag status.
15768         * toplev.c (warn_deprecated_decl): Defined.
15769         (W_options): Added "deprecated-declaration".
15770         * toplev.h (warn_deprecated_use): Extern declared.
15771         * tree.h (struct tree_common): Define deprecated_flag.
15772         (TREE_DEPRECATED): New macro to access flag.
15773         * cp/call.c (build_call): Test for deprecated calls.
15774         * cp/class.c (add_implicitly_declared_members): Set global
15775         flag to tell grokdeclarator to not issue deprecated warnings.
15776         * cp/cp-tree.h: Add extern for adding_implicit_members.
15777         * cp/decl.c (deprecated_states): New enum.
15778         (start_decl): Set deprecated_state based on attributes.
15779         (grokdeclarator): Test for deprecated uses, propagate attribute.
15780         * cp/lex.c (do_identifier): Test for deprecated primaries.
15781         * cp/typeck.c (build_component_ref): Test for deprecated fields.
15782
15783 2002-01-10  Ira Ruben   <ira@apple.com>
15784
15785         Fix to assign attributes to inline member functions.
15786         * cp/decl.c (start_method): Handle attrlist.
15787
15788 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15789
15790         * combine.c (expand_field_assignment): Use subreg_lsb().
15791
15792 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
15793
15794         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15795         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15796         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15797         Recurse for any operand of AND as long as constant is non-zero.
15798
15799 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15800
15801         * config/h8300/h8300.md: Remove constraints from expanders.
15802
15803 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15804
15805         * varasm.c: Fix formatting.
15806         * varray.c: Likewise.
15807         * vmsdbgout.c: Likewise.
15808         * xcoffout.c: Likewise.
15809
15810 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
15811
15812         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15813         update edge probabilities to match.
15814
15815 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15816
15817         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15818         dependencies.
15819         * doc/languages.texi, doc/sourcebuild.texi: New files.
15820         * doc/configfiles.texi: Make a subsubsection.  Update.
15821         * doc/configterms.texi: Add @node.  Remove warning that this isn't
15822         instructions for building GCC.
15823         * doc/makefile.texi: Make a subsection.
15824         * doc/gccint.texi: Update.
15825
15826 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
15827
15828         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15829
15830 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15831
15832         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15833
15834 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
15835
15836         * optabs.c (expand_fix): Look for wider integer modes first.
15837
15838         * i386.md (mov?f): Avoid the fake const double trick for medium
15839         memory model.
15840         (min?f*/max?f*): Prohibit memory operands for i387 variant.
15841         (fop_df_4): Disable for SSE compilation.
15842
15843 2002-01-10  Graham Stott  <grahams@redhat.com>
15844
15845         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15846         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15847
15848 2002-01-10  Richard Henderson  <rth@redhat.com>
15849
15850         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15851
15852 2002-01-10  Richard Henderson  <rth@redhat.com>
15853
15854         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15855         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
15856
15857 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15858
15859         * combine.c (can_combine_p): Fix a comment typo.
15860
15861 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
15862
15863         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15864         empty list correctly.  Change loop index $t to $f for
15865         consistency with rest of Makefile.
15866
15867 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
15868
15869         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15870         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15871
15872         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15873         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15874         (altivec_init_builtins): Same.
15875         (altivec_expand_unop_builtin): Return NULL_RTX on error.
15876         (altivec_expand_binop_builtin): Same.
15877         (altivec_expand_ternop_builtin): Same.
15878         (bdesc_dst): New.
15879
15880         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15881         ("altivec_vctuxs"): Fix typo.
15882         ("altivec_vnmsubfp"): Same.
15883         ("altivec_dssall"): New.
15884         ("altivec_mfvscr"): New.
15885         ("altivec_dss"): New.
15886         ("altivec_lvsl"): New.
15887         ("altivec_lvsr"): New.
15888         ("altivec_dstt"): New.
15889         ("altivec_dstst"): New.
15890         ("altivec_dststt"): New.
15891         ("altivec_dst"): New.
15892
15893         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15894         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15895
15896 2002-01-09  Richard Henderson  <rth@redhat.com>
15897
15898         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15899
15900 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
15901
15902         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15903         function.
15904         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15905         prototype.
15906         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15907
15908 2002-01-09  Kazu Hirata  <kazu@hxi.com>
15909
15910         * read-rtl.c: Fix formatting.
15911         * real.c: Likewise.
15912         * regclass.c: Likewise.
15913         * regrename.c: Likewise.
15914         * reg-stack.c: Likewise.
15915         * reload1.c: Likewise.
15916         * reload.c: Likewise.
15917         * rtl.c: Likewise.
15918
15919 2002-01-09  Kazu Hirata  <kazu@hxi.com>
15920
15921         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15922         to extract items in the expr_list chain.
15923
15924 2002-01-09  Richard Henderson  <rth@redhat.com>
15925
15926         * config/vax/vax.c (vax_rtx_cost): Never abort.
15927
15928         * config/vax/vax.h (REAL_ARITHMETIC): Define.
15929
15930 2002-01-09  Jan Hubicka  <jh@suse.cz>
15931
15932         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15933
15934 2002-01-09  Richard Henderson  <rth@redhat.com>
15935
15936         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
15937         Unify code from various alternatives.
15938
15939 2002-01-09  Richard Henderson  <rth@redhat.com>
15940
15941         * regrename.c (copy_value): Ignore the copy if the source register
15942         is present in the value chain with a narrower mode.
15943
15944 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
15945
15946         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
15947         for the c4x target. Also improve layout.
15948
15949 2002-01-09  Richard Henderson  <rth@redhat.com>
15950
15951         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
15952         * config/m32r/m32r.md (and ior xor splitters): Swap operands
15953         to match insn patterns.
15954
15955 2002-01-09  Richard Henderson  <rth@redhat.com>
15956
15957         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
15958         (copyprop_hardreg_forward_1): Likewise.
15959
15960 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15961
15962         * pa.md (decrement_and_branch_until_zero): Change predicate for
15963         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
15964
15965 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
15966
15967         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
15968         gets undefined. For Darwin.
15969
15970 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15971
15972         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
15973
15974 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15975
15976         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
15977
15978 2002-01-08  Richard Henderson  <rth@redhat.com>
15979
15980         * regrename.c (copy_value): Ignore overlapping copies.
15981
15982 2002-01-08  Richard Henderson  <rth@redhat.com>
15983
15984         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
15985         as needed to avoid shared structure.
15986
15987 2002-01-08  Kazu Hirata  <kazu@hxi.com>
15988
15989         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
15990         H8/300H and H8/S.
15991
15992 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15993
15994         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
15995         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
15996         documentation of obsolete macros.
15997         * system.h: Poison these macros.
15998         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
15999         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16000         config/c4x/c4x.h, config/clipper/clipper.h,
16001         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16002         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16003         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16004         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16005         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16006         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16007         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16008         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16009         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16010         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16011         config/sparc/sparc.h, config/stormy16/stormy16.h,
16012         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16013         definitions and commented out definitions of obsolete macros.
16014         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16015         of MAX_INT_TYPE_SIZE.
16016
16017 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16018
16019         * config/s390/s390.c (s390_preferred_reload_class): Never
16020         return ADDR_REGS if it isn't a subset of the given class.
16021         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16022         FP_REGS, but all superclasses as well.
16023
16024         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16025
16026         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16027         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16028         must not be a const_int.
16029
16030 2002-01-08  Richard Henderson  <rth@redhat.com>
16031
16032         * Makefile.in (toplev.o): Depend on options.h.
16033         (gcc.o): Depend on specs.h.
16034
16035 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16036
16037         * expr.c (store_expr): Convert VOIDmode constants back to target's
16038         mode.
16039
16040 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16041
16042         * doc/invoke.texi: Markup gcc as @command.  Refer to
16043         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16044         of http://gcc.gnu.org/thanks.html.
16045
16046 2002-01-08  Dale Johannesen  <dalej@apple.com>
16047
16048         * config/rs6000/rs6000.md: Add missing int register
16049         target case to movdf_low.
16050
16051 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16052
16053         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16054         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16055         (cppinit.o): Depend on except.h.
16056         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16057         s-specs): New rules.
16058
16059         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16060         Don't create specs.h/options.h/gencheck.h here.  Remove
16061         unnecessary variable settings from last argument of AC_OUTPUT.
16062         * config.in, configure: Regenerate.
16063         * intl.c: Hardcode package name as "gcc".
16064
16065         * cppinit.c: Include except.h.
16066         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16067         appropriate.
16068         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16069         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16070         (!)USING_SJLJ_EXCEPTIONS.
16071         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16072
16073 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16074
16075         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16076         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16077         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16078         documentation of obsolete macros.
16079         * system.h: Poison these macros.
16080         * config/d30v/d30v.h, config/ns32k/encore.h,
16081         config/stormy16/stormy16.h: Remove definitions and commented out
16082         definitions of obsolete macros.
16083
16084 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16085
16086         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16087         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16088         warnings.
16089
16090 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16091
16092         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16093         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16094         to insn adjusting stack/frame pointer.
16095         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16096         accept operands that cause the insn to be non-splittable.
16097
16098 2002-01-08  Graham Stott  <grahams@redhat.com>
16099
16100         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16101         (C_TYPE_FIELDS_VOLATILE): Likewise.
16102         (C_TYPE_BEING_DEFINED): Likewise.
16103         (C_IS_RESERVED_WORD): Likewise.
16104         (C_TYPE_VARIABLE_SIZE): Likewise.
16105         (C_DECL_VARIABLE_SIZE): Likewise.
16106         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16107         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16108         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16109         parenthesis.
16110         (C_DECL_ANTICIPATED): Likewise.
16111         (c_build_type_variant): Add parenthesis.
16112
16113 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16114
16115         * gcc.c (option_map): Remove --version.
16116         (process_command): Handle -fversion following the GNU Coding
16117         Standards.  Partially addresses PR other/704.
16118
16119 2002-01-08  Graham Stott  <grahams@redhat.com>
16120
16121         * combine.c (combine_instructions): Fix typo.
16122
16123 2002-01-08  Graham Stott  <grahams@redhat.com>
16124
16125         * debug.h: Use "tree" and "rtx" throughout.
16126
16127         * debug.c: Likewise.
16128
16129 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16130
16131         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16132         constant pool, use the pool's version of the symbol instead.
16133
16134 2002-01-07  Richard Henderson  <rth@redhat.com>
16135
16136         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16137         the original register was copied in a mode with a fewer number of
16138         hard registers than the desired mode.
16139         (copyprop_hardreg_forward_1): Likewise.
16140         (debug_value_data): Fix loop test.
16141         * toplev.c (parse_options_and_default_flags): Reenable
16142         -fcprop-registers at -O1.
16143
16144 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16145
16146         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16147         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16148
16149         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16150         predicates.
16151
16152         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16153
16154 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16155
16156         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16157         (pa_output_function_prologue): Output local label at the beginning of
16158         the prologue when profiling.
16159         (hppa_profile_hook): Use the local label rather than the function label.
16160         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16161
16162 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16163
16164         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16165         (altivec_expand_unop_builtin): Fix thinko.
16166         (altivec_expand_binop_builtin): Same.
16167         (altivec_expand_ternop_builtin): Same.
16168         (altivec_expand_builtin): Same.
16169
16170 2002-01-07  Richard Henderson  <rth@redhat.com>
16171
16172         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16173
16174 2002-01-07  Jason Merrill  <jason@redhat.com>
16175
16176         * unwind-dw2.c (execute_cfa_program): Use < again.
16177
16178 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16179
16180         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16181
16182 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16183
16184         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16185         Don't allow -1 - x -> ~x simplifications in the first pass.
16186
16187 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16188
16189         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16190         arguments.
16191         (altivec_expand_binop_builtin): Same.
16192         (altivec_expand_unop_builtin): Same.
16193         (print_operand): Fix typo.
16194         (bdesc_1arg): Add vupk* variants.
16195
16196         * rs6000.h (rs6000_builtins): Add vupk* enums.
16197
16198         * rs6000.md: Add altivec_vupk* variants.
16199
16200 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16201
16202         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16203         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16204         and last update dates.
16205
16206 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16207
16208         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16209
16210 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16211
16212         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16213         * config/avr/avr.h (CPP_SPEC): Likewise.
16214         (LINK_SPEC): Likewise.
16215         (CRT_BINUTILS_SPECS): Likewise.
16216         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16217         * doc/invoke.texi (AVR Options): Document them.
16218
16219 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16220
16221         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16222         LABEL_NUSES.
16223
16224 2002-01-07  Graham Stott  <grahams@redhat.com>
16225
16226         * config/i386/i386.h: Update copyright date.
16227         (HALF_PIC_PTR): Add parenthesis.
16228         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16229         (CONSTANT_ALIGNMENT): Add parenthesis.
16230         (DATA_ALIGNMENT): Likewise.
16231         (LOCAL_ALIGNMENT): Likewise.
16232         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16233         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16234         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16235         (HARD_REGNO_NREGS): Add paranethesis.
16236         (VALID_SSE_REG_MODE): Whitespace.
16237         (VALID_MMX_REG_MODE): Whitespace.
16238         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16239         (ix86_hard_regno_mode_ok): Add parenthesis.
16240         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16241         (RETURN_IN_MEMORY): Whitespace.
16242         (N_REG_CLASSES): Add parenthesis.
16243         (INTEGER_CLASS_P): Add parenthesis and wrap.
16244         (FLOAT_CLASS_P): Likewise.
16245         (SSE_CLASS_P): Likewise.
16246         (MMX_CLASS_P): Likewise.
16247         (MAYBE_INTEGER_CLASS_P): Likewise.
16248         (MAYBE_FLOAT_CLASS_P): Likewise.
16249         (MAYBE_SSE_CLASS_P): Likewise.
16250         (MAYBE_MMX_CLASS_P): Likewise.
16251         (Q_CLASS_P): Likewise.
16252         (GENERAL_REGNO_P): Uppercase macro parameter.
16253         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16254         (FP_REGNO_P): Likewise.
16255         (ANY_FP_REGNO_P): Uppercase macro parameter.
16256         (SSE_REGNO_P): Likewise.
16257         (SSE_REGNO): Likewise.
16258         (SSE_REG_P): Likewise.
16259         (SSE_FLOAT_MODE_P): Likewise.
16260         (MMX_REGNO_P): Likewise.
16261         (MMX_REG_P):Likewise.
16262         (STACK_REG_P): Likewise.
16263         (NON_STACK_REG_P): Likewise.
16264         (STACK_TOP_P): Likewise.
16265         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16266         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16267         (SECONDARY_MEMORY_NEEDED): Likewise.
16268         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16269         (MD_ASM_CLOBBERS): Whitespace and wrap.
16270         (MUST_PASS_IN_STACK): Whitespace and wrap.
16271         (RETURN_POPS_ARGS): Add parenthesis.
16272         (INIT_CUMULATIVE_ARGS): Likewise.
16273         (FUNCTION_ARG): Likewise.
16274         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16275         (SETUP_INCOMING_VARARGS): Likewise.
16276         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16277         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16278         parenthsis.
16279         (EXPAND_BUILTIN_VA_ARG): Likewise.
16280         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16281         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16282         (INITIAL_ELIMINATION_OFFSET): Likewise.
16283         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16284         (REGNO_OK_FOR_BASE_P): Likewise.
16285         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16286         (REGNO_OK_FOR_DIREG_P): Likewise.
16287         (REG_OK_FOR_INDEX_P): Whitespace.
16288         (REG_OK_FOR_BASE_P): Whitespace.
16289         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16290         parenthesis.
16291         (FIND_BASE_TERM): Fix typo.
16292         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16293         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16294         (SYMBOLIC_CONST; Whitespace.
16295         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16296         (ENCODE_SECTION_INFO): Whitespace.
16297         (FINALIZE_PIC): Remove do { ... } while (0).
16298         (PROMOTE_MODE): Wrap in do { ... } while (0).
16299         (CONST_COSTS): Whitespace.
16300         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16301         (REGISTER_MOVE_COST): Add parenthesis.
16302         (MEMORY_MOVE_COST): Likewise.
16303         (EXTRA_CC_MODES): Whitespace.
16304         (SELECT_CC_MODE): Add parenthesis and whitespace.
16305         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16306         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16307         (ASM_OUTPUT_LABEL): Add paramethesis.
16308         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16309         (ASM_OUTPUT_REG_POP): Likewise.
16310         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16311         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16312
16313         * config/i386/i386.c: Update copyright.
16314         (CHECK_STACK_LIMIT): Add parenthesis.
16315         (AT_BP): Uppercase macro parameter.
16316         (x86_64_int_parameter_registers): Constify.
16317         (x86_64_int_return_registers): Likewise.
16318         (ix86_compare_op0): Use rtx.
16319         (construct_container): Constify INTREG parameter.
16320         (function_arg): Use rtx.
16321
16322         * diagnostic.h: Update copyright date.
16323         (output_buffer_state): Add parenthesis.
16324         (output_buffer_format_args): Likewise.
16325
16326         * combine.c (combine_instructions): Replace XEXP (links, 0)
16327         with link.
16328
16329 2002-01-06  H.J. Lu <hjl@gnu.org>
16330
16331         * cfgcleanup.c (thread_jump): Fix 2 typos.
16332
16333 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16334
16335         * config.gcc: Add support for --enable-altivec.
16336
16337 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16338
16339         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16340
16341 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16342
16343         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16344         __objc_class_name_*.
16345
16346 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16347
16348         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16349
16350 2002-01-06  Richard Henderson  <rth@redhat.com>
16351
16352         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16353         nop them out.  Increment label reference count for REG_LABEL.
16354         (fill_slots_from_thread): Frob label reference count around
16355         delete_related_insns.
16356
16357 2002-01-05  Richard Henderson  <rth@redhat.com>
16358
16359         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16360         jump threading.
16361
16362 2002-01-05  Richard Henderson  <rth@redhat.com>
16363
16364         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16365         * integrate.c (output_inline_function): Likewise.
16366         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16367         to remove_unnecessary_notes after emitting abstract instance.
16368         Force an emitted nested function to have its parent emited as well.
16369         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16370         for null.
16371         (rtl_for_decl_location): Do not look at reload data structures
16372         before reload has run.
16373
16374 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16375
16376         * cse.c: Fix formatting.
16377         * dwarf2asm.c: Likewise.
16378         * dwarf2out.c: Likewise.
16379         * explow.c: Likewise.
16380         * expmed.c: Likewise.
16381         * function.c: Likewise.
16382         * gcov.c: Likewise.
16383         * gencheck.c: Likewise.
16384         * genrecog.c: Likewise.
16385         * ggc-common.c: Likewise.
16386         * ggc-page.c: Likewise.
16387         * global.c: Likewise.
16388
16389 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16390
16391         * combine.c: Fix formatting.
16392
16393 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16394
16395         PR middle-end/1557
16396         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16397
16398 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16399
16400         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16401         as 1 for __powerpc64__ as well.
16402
16403         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16404
16405         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16406         return it.
16407
16408 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16409
16410         * lcm.c: Revert change, due to performance regression it causes on
16411         SPEC because it's slightly more conservative (sigh, I hate
16412         edge-based LCM).
16413
16414 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16415
16416         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16417
16418 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16419
16420         * doc/cppinternals.texi: Update.
16421
16422 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16423
16424         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16425         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16426         negatives.
16427         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16428         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16429         kludge for pre-october-14th mmix versions to handle new-found bug
16430         with PUSHJ/PUSHGO and the register stack.
16431         * config/mmix/mmix.h (struct machine_function): Rename member
16432         has_call_value_without_parameters to has_call_without_parameters.
16433         All referers changed.
16434         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16435         TARGET_MASK_BRANCH_PREDICT): New macros.
16436         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16437         -mno-reg-stack-fill-bug-workaround.
16438         * config/mmix/mmix.md ("call"): Set struct machine member
16439         has_call_without_parameters.
16440
16441 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16442
16443         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16444
16445 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16446
16447         * cfgcleanup.c: Include tm_p.h
16448         (mark_effect): Fix handling of hard register; fix handling of SET
16449
16450 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16451
16452         * config/h8300/h8300.md (anonymous patterns): Check that
16453         operands are registers before using REGNO on them.
16454
16455 2002-01-03  Roland McGrath  <roland@frob.com>
16456
16457         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16458
16459 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16460
16461         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16462         * c-common.h (genrtl_expr_stmt_value): Likewise.
16463         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16464         (expand_expr_stmt_value): Add maybe_last argument.
16465         Don't warn about statement with no effect if it is the last statement
16466         in expression statement.
16467         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16468         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16469         expand_expr_stmt_value.
16470         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16471         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16472         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16473         as maybe_last to expand_expr_stmt_value.
16474
16475 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16476
16477         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16478         be passed in, do not build it.
16479         (c_begin_if_stmt): New function.
16480         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16481         * c-common.h (c_expand_start_cond): Update prototype.
16482         (c_begin_if_stmt): Prototype new function.
16483         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16484         * c-parse.in (if_prefix): Use c_begin_if_stmt,
16485         c_begin_while_stmt and c_finish_while_stmt_cond.
16486
16487 2002-01-04  William Cohen  <wcohen@redhat.com>
16488
16489         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16490         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16491         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16492         * config/pa/som.h (ASM_FILE_START): Likewise.
16493
16494 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
16495
16496         * lcm.c: Include df.h.
16497         Add available_transfer_function prototype.
16498         (compute_available): Rework to use iterative dataflow framework.
16499         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16500         with bb_info in df.h
16501         (available_transfer_function): New function.
16502
16503         * Makefile.in (lcm.o): add df.h to dependencies.
16504
16505 2002-01-04  Richard Henderson  <rth@redhat.com>
16506
16507         * config/alpha/alpha.c (some_operand): Accept HIGH.
16508         (input_operand): Likewise; accept simple references to globals.
16509         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16510         (alpha_const_double_ok_for_letter_p): Likewise.
16511         (alpha_extra_constraint): Likewise.
16512         (alpha_preferred_reload_class): Likewise.  Do not force
16513         symbolic constants to memory.
16514         (alpha_legitimate_address_p): Accept simple references
16515         to small_symbolic_operand.
16516         (alpha_legitimize_address): New arg scratch.  Be prepared to be
16517         called when no_new_pseudos.  Emit simple symbolic references.
16518         Split integers into low, high, and rest.
16519         (alpha_expand_mov): Use alpha_legitimize_address.
16520         (some_small_symbolic_mem_operand): New.
16521         (split_small_symbolic_mem_operand): New.
16522         * config/alpha/alpha-protos.h: Update.
16523         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16524         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16525         (EXTRA_CONSTRAINT): Likewise.
16526         (PREFERRED_RELOAD_CLASS): Likewise.
16527         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16528         (PREDICATE_CODES): Update.
16529         * config/alpha/alpha.md: New post-reload splitters to convert
16530         simplfied symbolic operands to the form that references $29.
16531         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16532         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16533
16534 2002-01-03  Richard Henderson  <rth@redhat.com>
16535
16536         * local-alloc.c (function_invariant_p): Update commentary.
16537
16538 2002-01-04  H.J. Lu <hjl@gnu.org>
16539
16540         * toplev.c (rest_of_compilation): Fix a typo when calling
16541         cleanup_cfg.
16542
16543 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16544
16545         * c-common.c: Fix formatting.
16546         * diagnostic.c: Likewise.
16547         * doloop.c: Likewise.
16548         * dwarf2out.c: Likewise.
16549
16550 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16551
16552         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16553         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16554
16555 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16556
16557         * cpperror.c: Update comments and copyright.
16558         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16559         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16560
16561 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16562
16563         * collect2.c (main): Use strcmp when testing for "-shared".
16564
16565 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16566
16567         * cppmacro.c: Don't include intl.h.  Update comments.
16568         (new_number_token): Allocate enough buffer for 64-bit unsigned
16569         integers; update prototype.
16570         * cppmain.c: Update comments.
16571
16572 2002-01-03  William Cohen  <wcohen@redhat.com>
16573
16574         * function.h (struct function): Add profile.
16575         (current_function_profile): New.
16576         doc/extend.texi: Update documentation.
16577         * final.c (final_start_function): Use current_function_profile
16578         instead of profile_flag.
16579         (profile_after_prologue): Likewise.
16580         * function.c (expand_function_start): Likewise.
16581         (expand_function_start): Likewise.
16582         * config/alpha/alpha.c (direct_call_operand):
16583         (alpha_does_function_need_gp): Likewise.
16584         (alpha_expand_prologue): Likewise.
16585         * config/arm/arm.c (arm_expand_prologue): Likewise.
16586         thumb_expand_prologue: Likewise.
16587         * config/d30v/d30v.c (d30v_stack_info): Likewise.
16588         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16589         (fr30_expand_prologue): Likewise.
16590         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16591         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16592         * config/i386/i386.h (FINALIZE_PIC): Likewise.
16593         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16594         * config/i960/i960.c (i960_output_function_prologue): Likewise.
16595         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16596         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16597         (m32r_expand_prologue): Likewise.
16598         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16599         (m88k_expand_prologue): Likewise.
16600         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16601         * config/mips/mips.c (compute_frame_size): Likewise.
16602         (mips_expand_prologue): Likewise.
16603         (mips_can_use_return_insn): Likewise.
16604         * config/pa/elf.h (ASM_FILE_START): Likewise.
16605         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16606         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16607         * config/pa/som.h (ASM_FILE_START): Likewise.
16608         * config/romp/romp.c (romp_using_r14): Likewise.
16609         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16610         (rs6000_stack_info): Likewise.
16611         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16612         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16613         * config/v850/v850.c (compute_register_save_size): Likewise.
16614
16615 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
16616
16617         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16618         gen_lowpart_common fails, use gen_lowpart_SUBREG.
16619
16620 2002-01-03  Turly O'Connor  <turly@apple.com>
16621
16622         * darwin.c (machopic_output_possible_stub_label): Don't generate
16623         stub routines for pseudo-stubs which we've just defined.
16624
16625 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16626
16627         * builtins.c: Fix formatting.
16628         * c-typeck.c: Likewise.
16629         * combine.c: Likewise.
16630         * expr.c: Likewise.
16631         * loop.c: Likewise.
16632
16633 2002-01-03  Andreas Schwab  <schwab@suse.de>
16634
16635         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16636         and return true if _cpp_push_next_buffer pushed a new include
16637         file.
16638         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16639         _cpp_pop_file_buffer did not push a new file.
16640         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16641
16642 2002-01-02  Eric Christopher  <echristo@redhat.com>
16643
16644         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16645         FIND_REG_INC_NOTE call. Update copyright.
16646         * loop.c (canonicalize_condition): Ditto.
16647         * reorg.c (delete_scheduled_jump): Ditto.
16648
16649 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16650
16651         * gcse.c: Fix formatting.
16652
16653 2002-01-03  Graham Stott  <grahams@redhat.com>
16654
16655         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16656         forward defs for struct tags rtx_def, union_tree, rtvec_def
16657         also output corresponding typedefs for rtx, tree, and rtvec.
16658
16659         * system.h: Move forward defs for struct tags rtx_def, union_tree,
16660         rtvec_def along with corresponding typedefs for rtx, tree, and
16661         rtvec to config.h, hconfig.h, tconfig.h.
16662
16663 2002-01-03  Graham Stott  <grahams@redhat.com>
16664
16665         * tree.h: Update copyright date.
16666         (IS_EXPR_CODE_CLASS): Add parenthesis.
16667         (TREE_SET_CODE): Add whitespace.
16668         (TREE_CHECK): Add parenthesis.
16669         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16670         (CST_OR_CONSTRUCTOR_CHECK):
16671         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16672         (TREE_SYMBOL_REFERENCED): Whitespace.
16673         (INT_CST_LT): Likewise.
16674         (INT_CST_LT_UNSIGNED): Likewise.
16675         (tree_real_cst): Unwrap comment.
16676         (tree_string): Likewise.
16677         (tree_complex): Likewise.
16678         (IDENTIFIER_POINTER): correct cast.
16679         (SAVE_EXPR_CONTEXT): Whitespace.
16680         (EXPR_WFL_FILENAME_NODE): Likewise.
16681         (EXPR_WFL_FILENAME): Remove parenthesis.
16682         (DECL_ORIGIN): Add parenthesis.
16683         (DECL_FROM_INLINE): Use NULL_TREE.
16684         (build_int_2): Whitespace.
16685         (build_type_variant): Add parenthesis.
16686
16687         * gcc/jcf-parse.c: Update copyright date.
16688         (yyparse): Constify resource_filename.
16689
16690 2002-01-03  Graham Stott  <grahams@redhat.com>
16691
16692         * rtl.h: Update copyright date.
16693         (RTL_CHECK1): Wrap long line.
16694         (RTL_CHECK2): Likewise.
16695         (RTL_CHECKC1): Wrap long line and whitespace.
16696         (RTL_CHECKC2): Likewise.
16697         (XWINT): Whitespace.
16698         (XINT): Likewise.
16699         (XSTR): Likewise.
16700         (XEXP): Likewise.
16701         (XVEC): Likewise.
16702         (XMODE): Likewise.
16703         (XBITMAP): Likewise.
16704         (XTREE): Likewise.
16705         (XBBDEF): Likewise.
16706         (XTMPL): Likewise.
16707         (X0WINT): Likewise.
16708         (X0INT):Likewise.
16709         (X0UINT): Likewise.
16710         (X0STR): Likewise.
16711         (X0EXP): Likewise.
16712         (X0VEC): Likewise.
16713         (X0MODE): Likewise.
16714         (X0BITMAP): Likewise.
16715         (X0TREE): Likewise.
16716         (X0BBDEF): Likewise.
16717         (X0ADVFLAGS): Likewise.
16718         (X0CSELIB): Likewise.
16719         (X0MEMATTR): Likewise.
16720         (XCWINT): Likewise.
16721         (XCINT): Likewise.
16722         (XCUINT): Likewise.
16723         (XCSTR): Likewise.
16724         (XCEXP): Likewise.
16725         (XCVEC): Likewise.
16726         (XCMODE): Likewise.
16727         (XCBITMAP): Likewise.
16728         (XCTREE): Likewise.
16729         (XCBBDEF): Likewise.
16730         (XCADVFLAGS): Likewise.
16731         (XCCSELIB): Likewise.
16732         (XC2EXP): Likewise.
16733         (INSN_UID): Likewise.
16734         (PREV_INSN): Likewise.
16735         (PATTERN): Likewise.
16736         (INSN_CODE): Likewise.
16737         (PUT_REG_NOTE_KIND): Likewise.
16738         (CODE_LABEL_NUMBER): Likewise.
16739         (NOTE_SOURCE_FILE): Likewise.
16740         (NOTE_BLOCK): Likewise.
16741         (NOTE_EH_HANDLER): Likewise.
16742         (NOTE_RANGE_INFO): Likewise.
16743         (NOTE_LIVE_INFO): Likewise.
16744         (NOTE_BASIC_BLOCK): Likewise.
16745         (NOTE_EXPECTED_VALUE): Likewise.
16746         (NOTE_LINE_NUMBER): Likewise.
16747         (LABEL_NAME): Likewise.
16748         (LABEL_NUSES): Likewise.
16749         (LABEL_ALTERNATE_NAME): Likewise.
16750         (ADDRESSOF_DECL): Likewise.
16751         (JUMP_LABEL): Likewise.
16752         (LABEL_NEXTREF): Likewise.
16753         (REGNO): Likewise.
16754         (ORIGINAL_REGNO: Likewise.
16755         (HARD_REGISTER_NUM_P): Add parenthesis.
16756         (SUBREG_REG): Whitespace.
16757         (SUBREG_BYTE): Likewise.
16758         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16759         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16760         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16761         (ASM_OPERANDS_INPUT_VEC): Likewise.
16762         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16763         (ASM_OPERANDS_INPUT): Likewise.
16764         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16765         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16766         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16767         (ASM_OPERANDS_INPUT_MODE): Likewise.
16768         (ASM_OPERANDS_SOURCE_FILE): Likewise.
16769         (ASM_OPERANDS_SOURCE_LINE): Likewise.
16770         (MEM_SET_IN_STRUCT_P): Minor reformat.
16771         (TRAP_CONDITION): Whitespace.
16772         (TRAP_CODE): Likewise.
16773         (COND_EXEC_TEST): Likewise.
16774         (COND_EXEC_CODE): Likewise.
16775         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16776         (PHI_NODE_P): Add parenthesis.
16777         (plus_constant): Whitespace and add parenthesis.
16778
16779 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16780
16781         * config/avr/avr.c: Fix comment typos.
16782         * config/c4x/c4x.md: Likewise.
16783         * config/dsp16xx/dsp16xx.h: Likewise.
16784         * config/dsp16xx/dsp16xx.md: Likewise.
16785         * config/i386/i386.md: Likewise.
16786         * config/ia64/ia64.c: Likewise.
16787         * config/m32r/m32r.h: Likewise.
16788         * config/m68hc11/m68hc11.md: Likewise.
16789         * config/mmix/mmix.c: Likewise.
16790         * config/mn10200/mn10200.c: Likewise.
16791         * config/romp/romp.c: Likewise.
16792         * config/sh/sh.c: Likewise.
16793         * config/stormy16/stormy16.c: Likewise.
16794         * config/stormy16/stormy16.h: Likewise.
16795         * config/stormy16/stormy16.md: Likewise.
16796
16797 2002-01-03  Graham Stott  <grahams@redhat.com>
16798
16799         * loop.h: Update copyright date.
16800         (LOOP_MOVABLES): Fix typo.
16801         (LOOP_REGS): Likewise.
16802         (LOOP_IVS): Likewise.
16803
16804 2002-01-03  Graham Stott  <grahams@redhat.com>
16805
16806         * cppinit.c: Update copyright date.
16807         Don't include output.h
16808         * Makefile.in: Update copyright date.
16809         Update dependency.
16810
16811 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16812
16813         PR c/5226
16814         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16815         (-pthread) Add to RS/6000 options.
16816
16817 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16818
16819         * except.c: Fix comment typos.
16820         * loop.c: Likewise.
16821         * varasm.c: Likewise.
16822         * doc/tm.texi: Fix a typo.
16823
16824 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
16825
16826         * c-typeck.c (output_init_element): Allow initializing static storage
16827         duration objects with compound literals.
16828
16829 2002-01-02  Richard Henderson  <rth@redhat.com>
16830
16831         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16832         after abusing it.
16833
16834 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16835
16836         * gcc.c (default_compilers): Const-ify.
16837         * mips-tdump.c (stab_names): Likewise.
16838         * mips-tfile.c (map_coff_types, map_coff_storage,
16839         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16840         pseudo_ops_t, pseudo_ops): Likewise.
16841         * protoize.c (default_include): Likewise
16842
16843         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16844         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16845         Add array size in declaration.
16846         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16847         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16848         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16849         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16850         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16851         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16852         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16853         emtens, make_nan): Const-ify.
16854         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16855         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16856
16857 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
16858
16859         * config.gcc (ia64-*-*): Set extra_headers.
16860         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
16861         * config/alpha/t-osf: Remove.
16862         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16863
16864 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
16865
16866         * config/rs6000/t-aix43: Revert previous change.
16867
16868 2002-01-02  Jason Merrill  <jason@redhat.com>
16869
16870         * c-decl.c (c_expand_body): Call outlining_inline_function when
16871         emitting an inline function out of line.
16872
16873 2002-01-02  Richard Henderson  <rth@redhat.com>
16874
16875         * dwarf2out.c (limbo_die_node): Add created_for member.
16876         (new_die): New argument created_for.  Update all callers.
16877         (mark_limbo_die_list): New.
16878         (dwarf2out_init): Register limbo_die_list as a root.
16879         (dwarf2out_finish): Force insert limbo dies into their function
16880         context.
16881
16882 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
16883
16884         PR c++/5089
16885         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16886
16887 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16888
16889         * config/h8300/fixunssfsi.c: Update copyright.
16890         Fix comment typos.
16891         Fix formatting.
16892         * config/h8300/h8300.c: Update copyright.
16893         Eliminate warnings.
16894
16895 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16896
16897         * config/romp/romp.c: Fix comment formatting.
16898         * config/romp/romp.h: Likewise.
16899         * config/romp/romp.md: Likewise.
16900         * config/s390/s390.c: Likewise.
16901         * config/stormy16/stormy16.c: Likewise.
16902         * config/stormy16/stormy16.h: Likewise.
16903
16904 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
16905
16906         * c-common.h (genrtl_expr_stmt_value): Declare.
16907         * c-semantics.c (genrtl_goto_stmt): Redirect to...
16908         (genrtl_goto_stmt_value): ... this new function.  Pass new
16909         argument down to expand_expr_stmt_value, taking
16910         TREE_ADDRESSABLE into account.
16911         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16912         STMT_EXPR as addressable, i.e., one whose result we want.
16913         * expr.c (expand_expr): Don't save expression statement value
16914         of labeled_blocks or loop_exprs.
16915         * stmt.c (expand_expr_stmt): Redirect to...
16916         (expand_expr_stmt_value): ... this new function.  Use new
16917         argument to tell whether to save expression value.
16918         (expand_end_stmt_expr): Reset last_expr_type and
16919         last_expr_value if we don't have either.
16920         * tree-inline.c (declare_return_variable): Mark its use
16921         statement as addressable.
16922         * tree.h: Document new use of TREE_ADDRESSABLE.
16923         (expand_expr_stmt_value): Declare.
16924
16925 2002-01-01  Tom Rix  <trix@redhat.com>
16926
16927         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16928         rs6000_emit_allocate_stack.
16929
16930 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
16931
16932         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16933         ${srcdir}/ginclude/ to every entry in extra_headers.
16934         * configure: Regenerate.
16935         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
16936         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
16937         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
16938         * ginclude/proto.h: Rename to config/convex/proto.h.
16939
16940 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16941
16942         * attribs.c (handle_vector_size_attribute): Use host_integerp
16943         and tree_int_cst; remove warnings.
16944         * caller-save.c (insert_restore): Add cast to get rid of warning.
16945         (insert_save): Likewise.
16946         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
16947         * regmove.c (find_matches): Add temporary var to kill a warning.
16948
16949 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
16950
16951         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
16952         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
16953         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
16954         (vms-dwarf2eh.o): Add Makefile rule.
16955         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
16956         * config/alpha/vms-dwarf2eh.asm: New file.
16957
16958         * gcc.c (delete_if_ordinary): Delete all versions.
16959
16960 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
16961
16962         * config/mmix/mmix.md: Update FIXME to not mention
16963         define_constants.
16964         (MMIX_rJ_REGNUM): New define_constants constant.
16965         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
16966         "*movdicc_real"): Adjust contraints formatting.
16967         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
16968         for branch prediction.
16969         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
16970         output template.
16971         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
16972         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
16973         number.  Delete related FIXMEs.
16974         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
16975         from number to MMIX_rJ_REGNUM.
16976         (TARGET_MASK_BRANCH_PREDICT): New.
16977         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
16978         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
16979         value.  Add -mbranch-predict and -mno-branch-predict.
16980         (TARGET_VERSION): Drop date.
16981         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
16982         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
16983         for finding out global symbols.
16984         (mmix_asm_output_labelref): Revert condition for global symbol.
16985         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
16986         (mmix_print_operand_punct_valid_p): A '+' is valid.
16987
16988 See ChangeLog.6 for earlier changes.