OSDN Git Service

* cfgloop.c (flow_loops_find): Initialize first and last fields
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2
3         * cfgloop.c (flow_loops_find): Initialize first and last fields
4         correctly.
5
6 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7
8         * c-common.c (builtin_define_std): Correct logic.
9
10 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11
12         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
13         (output_call): Likewise.
14
15 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16
17         * pa.c: Move output.h include after tree.h include.
18         (pa_asm_output_mi_thunk): Constify identifier lab.
19
20 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
21
22         * config/ns32k/ns32k.h: Define named constants for the
23         bits in target_flags and use them.
24         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
25
26 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
27
28         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
29         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
30         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
31         default scheduling model.
32         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
33         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
34         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
35         * doc/install.texi (hppa*-*-*): Document default scheduling.
36
37 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
38
39         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
40
41 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
42
43         * config.gcc (ns32k-*-netbsd*): Set tm_file to
44         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
45         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
46         netbsd.h, or netbsd-aout.h.
47
48 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
49
50         * longlong.h (count_trailing_zeros): Add missing \, and clean up
51         whitespace in __ns32000__ case.
52
53 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
54
55         * expr.c (expand_expr): Output partially zeroed out vectors with
56         output_constant_def.
57
58 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
59
60         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
61         (sh-*-netbsdelf*)
62         (shl*-*-netbsdelf*): New targets.
63         * config/sh/netbsd-elf.h: New file.
64
65 2002-05-30  Richard Henderson  <rth@redhat.com>
66             Eric Botcazou  <ebotcazou@multimania.com>
67
68         PR optimization/6822
69         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
70         to unsigned int for op1 comparisons.  Use gen_int_mode.
71
72 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
73
74         * expmed.c (const_mult_add_overflow_p): New.
75         * expr.h: Declare it.
76         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
77         Don't eliminate the biv if the giv has a constant multiplier and
78         the rhs argument of the comparison does satisfy the predicate.
79         Use expand_mult_add to compute the replacement constant.
80
81 2002-05-30  Osku Salerma  <osku@iki.fi>
82
83         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
84         (c_common_get_alias_set): Handle it.
85         * doc/extend.texi: Document it.
86
87 2002-05-30  Richard Henderson  <rth@redhat.com>
88
89         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
90         * toplev.c (process_options): Don't check it.
91         * doc/tm.texi: Don't document it.
92         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
93         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
94         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
95         frame pointer optimization if current_function_profile.
96
97 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
98
99         * langhooks.c: Fix formatting.
100         * langhooks.h: Likewise.
101         * lcm.c: Likewise.
102         * libgcc2.c: Likewise.
103         * lists.c: Likewise.
104         * local-alloc.c: Likewise.
105         * loop.c: Likewise.
106         * loop.h: Likewise.
107
108 2002-05-30  Marc Espie <espie@openbsd.org>
109
110         * config.gcc (sparc64-*-openbsd*): New.
111         * config/sparc/openbsd1-64.h: New.
112         * config/sparc/openbsd64.h: New.
113
114 2002-05-30  Jeff Law <law@redhat.com>
115
116         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
117         a dead insn with a REG_RETVAL note when the entire libcall is not
118         dead and remove the associated REG_LIBCALL note at the same time.
119
120 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
121
122         * lcm.c (output.h): #include.
123         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
124         as an ordinary block.
125         (optimize_mode_switching): Don't pretend that the exit block is
126         an ordinary block, or handle sucessors of entry block specially.
127         Instead, split edges from entry block and to exit block, and
128         put a computing definition on the thus gained post-entry-block,
129         and a need on the pre-exit-block.
130
131 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
132
133         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
134         * rtl.texi: Document 'B'
135
136 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
137
138         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
139         at run-time.
140         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
141
142 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
143
144         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
145         const0_rtx instead of NULL_RTX when in error.
146         (altivec_expand_abs_builtin): Same.
147         (rs6000_expand_binop_builtin): Same.
148         (altivec_expand_predicate_builtin): Same.
149         (altivec_expand_stv_builtin): Same.
150         (rs6000_expand_ternop_builtin): Same.
151         (altivec_expand_builtin): Same.
152
153 2002-05-29  David S. Miller  <davem@redhat.com>
154
155         * rtl.h (clear_emit_caches): Delete.
156         * integrate.c (output_inline_function): Don't call it.
157         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
158         (clear_emit_caches): Delete definition.
159         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
160
161 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
162
163         * config/mmix/mmix.c: Include real.h.
164         (mmix_constant_address_p): Remove redundant test before switch.
165
166 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
167
168         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
169         only if not already defined.
170
171 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
172
173         * config/h8300/h8300-protos.h: Remove prototypes for
174         ok_for_bclr and small_power_of_two.
175         * config/h8300/h8300.c (small_power_of_two): Remove.
176         (ok_for_blcr): Likewise.
177         (fix_bit_operand): Make WHAT deal with an integer instead of a
178         constraint character.
179         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
180         (CONST_OK_FOR_P): Likewise.
181         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
182         CONST_OK_FOR_P any more.
183         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
184         of fix_bit_operand.
185         (iorqi3): Likewise.
186         (xorqi3): Likewise.
187
188 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
189
190         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
191         (CPP_PREDEFINES): Make sure this is undefined.
192         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
193         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
194         or -U__MIPSEB__ before defining one or the other.  Instead,
195         use %(subtarget_endian_default) if neither -EB nor -EL are
196         specified.
197         (SUBTARGET_EXTRA_SPECS): Define.
198         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
199         %(netbsd_cpp_spec).
200
201 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
202
203         * doc/md.texi (Patterns): Note pattern condition pitfall
204         for unnamed insn.
205
206 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
207
208         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
209         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
210         ternary operations from here...
211         (rs6000_expand_builtin): ...to here.
212         New argument expandedp.
213         Change all instances of altivec_expand_binop_builtin to
214         rs6000_expand_binop_builtin.
215         (altivec_expand_unop_builtin): Rename to
216         rs6000_expand_unop_builtin.
217         (altivec_expand_binop_builtin): Rename to
218         rs6000_expand_binop_builtin.
219         (altivec_expand_ternop_builtin): Rename to
220         rs6000_expand_ternop_builtin.
221
222 2002-05-29  Richard Henderson  <rth@redhat.com>
223
224         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
225         (TARGET_BI_ARCH): Likewise.
226         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
227         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
228         (TARGET_64BIT_DEFAULT): Default to 0.
229         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
230
231 2002-05-29  Richard Henderson  <rth@redhat.com>
232
233         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
234         (get_pc_thunk_name): New.
235         (output_set_got): Use it.
236         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
237         into linkonce sections.
238
239 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
240
241         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
242         (CPP_PREDEFINES): Make sure this is undefined.
243         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
244         (CPP_SUBTARGET_SPEC): Don't provide different versions for
245         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
246         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
247         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
248         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
249         (CPP_PREDEFINES): Make sure this is undefined.
250         (SUBTARGET_EXTRA_SPECS): Define.
251         (CPP_SPEC): Use %(netbsd_cpp_spec).
252
253 2002-05-29  Jeff Law <law@redhat.com>
254
255         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
256
257         * flow.c (propagate_one_insn): Do not remove a dead insn if it
258         contains a REG_RETVAL note.
259
260         * haifa-sched (sched_analyze): Remove another useless clearing
261         of SCHED_GROUP_P I missed yesterday.
262
263         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
264         * pa.c (pa_asm_output_mi_thunk): New function.
265         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
266
267 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
268             Marek Michalkiewicz  <marekm@amelek.gda.pl>
269
270         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
271         (avr_asm_only_p): Make non-static.
272         (enum avr_arch): Remove.
273         (avr_arch_types): New.
274         (avr_mcu_types): Update.
275         (avr_override_options): Use avr_arch_types table instead of switch.
276         * avr.h (CPP_PREDEFINES): Die.
277         (avr_base_arch_macro, avr_extra_arch_macro): New.
278         (TARGET_CPU_CPP_BUILTINS): New.
279         (CPP_SPEC, EXTRA_SPECS): Simplify.
280         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
281         CPP_AVR5_SPEC): Die.
282
283 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
284
285         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
286         NETBSD_OS_CPP_BUILTINS_AOUT.
287         (SUBTARGET_EXTRA_SPECS): Define.
288         (CPP_SPEC): Use %(netbsd_cpp_spec).
289
290 2002-05-29  Richard Henderson  <rth@redhat.com>
291
292         * config/i386/i386.c (ix86_output_function_epilogue): New.
293         (TARGET_ASM_FUNCTION_EPILOGUE): New.
294         (pic_label_name): Remove.
295         (pic_labels_used): New.
296         (ix86_asm_file_end): Emit one pc load stub for each register used.
297         (output_set_got): Generate deep pc load to any register.
298         (ix86_select_alt_pic_regnum): New.
299         (ix86_save_reg): Don't save pic register if we can find a valid
300         call-clobbered replacement.
301         (ix86_expand_prologue): If we found a valid replacement, renumber
302         pic_offset_table_rtx.
303         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
304         pic_offset_table_rtx after reload.
305         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
306         * config/i386/i386.md (set_got): Make insn, not expander.
307         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
308
309 2002-05-29  Richard Henderson  <rth@redhat.com>
310
311         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
312         alignment for alloca.
313
314 2002-05-29  Richard Henderson  <rth@redhat.com>
315
316         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
317         (print_operand_address): Only add rip for symbolic addresses
318         for which we do not have another relocation type.
319
320 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
321
322         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
323         (EXTRA_SPECS): Add netbsd_cpp_spec.
324         (CPP_SPEC): Use %(netbsd_cpp_spec).
325         (CPP_PREDEFINES): Remove.
326         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
327         (EXTRA_SPECS): Define.
328         (CPP_SPEC): Use %(netbsd_cpp_spec).
329         (CPP_PREDEFINES): Remove.
330
331 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
332
333         PR preprocessor/6844
334         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
335         NUL.
336
337 2002-05-29  Eric Christopher  <echristo@redhat.com>
338
339         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
340         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
341
342 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
343
344         * config/fr30/fr30.md: Remove previous restriction on splits.
345         Enforce conformance through gen_lowpart and cont_int_operand.
346         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
347         as the assembler does not support ".bss".
348
349 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
350
351         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
352         (CPP_PREDEFINES): Remove.
353         (SUBTARGET_EXTRA_SPECS): Define.
354         (CPP_SPEC): Use %(netbsd_cpp_spec).
355         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
356         (CPP_PREDEFINES): Remove.
357         (SUBTARGET_EXTRA_SPECS): Define.
358         (CPP_SPEC): Use %(netbsd_cpp_spec).
359         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
360         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
361         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
362         Add netbsd_cpp_spec.
363         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
364
365 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
366             Zack Weinberg <zack@codesourcery.com>
367
368         * cppexp.c (cpp_num): Move to cpplib.h.
369         (CPP_ERROR): Remove.
370         (interpret_float_suffix, interpret_int_suffix): New.
371         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
372         (cpp_classify_number, cpp_interpret_integer): New.
373         (interpret_number): Remove.
374         (eval_token): Update to use new routines.
375         * cpphash.h (cpp_num_part): Move to cpplib.h.
376         * cppinit.c (cpp_post_options): Set warn_long_long.
377         * cpplib.h (struct cpp_options): Add warn_long_long.
378         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
379         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
380         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
381         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
382         cpp_interpret_integer): New.
383
384 2002-05-29  Joel Sherrill <joel@OARcorp.com>
385
386         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
387
388 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
389
390         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
391         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
392         (CPP_SUBTARGET_SPEC): Define.
393         (SUBTARGET_EXTRA_SPECS): Define.
394         (CPP_SPEC): Remove.
395
396 2002-05-29  Chris Lattner  <sabre@nondot.org>
397
398         * ssa.c (rename_insn_1): Rename uses of undefined registers to
399         prevent confusion if/when the register is defined.
400
401 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
402
403         PR target/6838
404         * config/cris/cris.md: Fix typos and thinkos in comments.
405         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
406         second alternative.
407         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
408         ("*mov_sideqi_mem"): Similar, but for operand 3.
409         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
410         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
411         Remove spurious mode specifier on operand 2.
412
413 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
414
415         * config/h8300/h8300-protos.h: Remove the prototype for
416         o_operand.
417         Add prototypes for single_one_operand and single_zero_operand.
418         * config/h8300/h8300.c (o_operand): Remove.
419         (single_one_operand): New.
420         (single_zero_operand): Likewise.
421         (print_operand): For 'V' operand, and the operand with 0xff.
422         For 'V' and 'W' operands, do not and the bit position with 7.
423         * config/h8300/h8300.md (various anonymous patterns): Replace
424         use of exact_log2 with single_one_operand/single_zero_operand.
425
426 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
427
428         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
429
430 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
431
432         * config/s390/s390.c (legitimate_pic_operand_p): Do not
433         accept symbolic LARL operands.
434         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
435         epilogue insns.
436
437 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
438
439         * config/s390/s390.md (cmpstr_64/31): Mark whole
440         input registers as used.
441
442 2002-05-28  Richard Henderson  <rth@redhat.com>
443
444         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
445         not current_function_uses_pic_offset_table and
446         current_function_uses_const_pool; examine current_function_profile.
447         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
448         input to blockage if needed.
449         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
450         (legitimize_pic_address): Likewise.  Set regs_ever_live for
451         pic_offset_table_rtx when invoked during reload.
452         * config/i386/i386.h (FINALIZE_PIC): Remove.
453         * config/i386/i386.md (tablejump): Reformat.  Do not set
454         current_function_uses_pic_offset_table.
455         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
456         (blockage): Accept anything as operand 0.
457
458 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
459
460         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
461         common CPP built-ins for all NetBSD a.out targets.
462         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
463         common CPP built-ins for all NetBSD ELF targets.
464         * config/netbsd.h: Add missing notice.
465         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
466         for all NetBSD targets.
467         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
468         for all NetBSD targets using an LP64 code model.
469         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
470         NetBSD targets.
471
472 2002-05-28  Richard Henderson  <rth@redhat.com>
473
474         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
475         update if UPDATE_LIFE_LOCAL.
476
477 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
478
479         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
480
481 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
482                           Jason R. Thorpe <thorpej@wasabisystems.com>
483
484         config/sh reorganization to factor out endianness and coff:
485
486         * config/sh/little.h: New file.
487         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
488         defined, define to 0 to select big-endian.
489         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
490         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
491         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
492         * config/sh/t-be: New file.
493         * config/sh/t-le: New file.
494
495         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
496         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
497         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
498         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
499         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
500         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
501         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
502         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
503         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
504         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
505         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
506         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
507         (LINK_SPEC): Define to SH_LINK_SPEC.
508         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
509         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
510         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
511         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
512         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
513         * config/sh/coff.h: New file.
514         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
515         (TARGET_OBJFMT_CPP_BUILTINS): Define.
516         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
517         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
518         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
519         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
520         (PTRDIFF_TYPE): Likewise.
521         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
522         (CPP_PREDEFINES): Don't define.
523         (TARGET_OBJFMT_CPP_BUILTINS): Define.
524         (LINK_SPEC): Define to SH_LINK_SPEC.
525         (LINK_EMUL_PREFIX): Redefine.
526         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
527         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
528         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
529         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
530         (TARGET_OS_CPP_BUILTINS): Define.
531         (TARGET_DEFAULT): Redefine.
532         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
533         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
534         (LINK_SPEC): Don't redefine.
535         (LINK_DEFAULT_CPU_EMUL): Redefine.
536         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
537         * sh.c (sh_asm_named_section): Don't declare / define.
538         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
539         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
540         (sh64-*-elf* tm_file): Likewise.
541         (sh-*-rtemself* tm_file): Likewise.
542         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
543         (sh-*-linux* tmake_file): Add sh/t-le.
544         (sh-*-rtems* tm_file): Add sh/coff.h
545         (sh-*-* tm_file): Likewise.
546
547 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
548
549         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
550         CONSTANT_POOL_ADDRESS_P.
551
552         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
553
554 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
555             Jeff Law <law@redhat.com>
556
557         * optabs.c (expand_binop): Fix nwords sign warnings.
558         generate pseudo for add_optab.
559
560         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
561         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
562
563 2002-05-28      Marc Espie <espie@openbsd.org>
564
565         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
566         inherited from gas.h.
567         (ASM_QUAD):  Undef.  OpenBSD does not support it.
568
569 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
570
571         * doc/install.texi (binaries): Change mingw binaries
572         link to www.mingw.org.
573
574 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
575
576         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
577
578 2002-05-28  Richard Henderson  <rth@redhat.com>
579
580         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
581         bottom alignment for leaf functions.
582
583 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
584
585         * config/pa/milli32.S, config/pa/lib1funcs.asm,
586         config/sparc/sol2-g1.asm: Delete unused files.
587
588 2002-05-28  Richard Henderson  <rth@redhat.com>
589
590         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
591
592         * flow.c (calculate_global_regs_live): Rename call_used to
593         invalidated_by_call.  Initialize from regs_invalidated_by_call
594         instead of call_used_regs.
595
596         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
597         DECL_EXTERNAL.
598
599 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
600
601         * tree.h: Don't include real.h.
602         Forward-declare struct realvaluetype.
603         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
604         contain it.
605         (TREE_REAL_CST_PTR): New accessor.
606         (TREE_REAL_CST): Update.
607         * real.h: Include machmode.h.
608         (realvaluetype): Make it struct realvaluetype, not a typedef.
609         (build_real): Prototype here.
610
611         * tree.c: Include real.h.
612         (build_real): Allocate the REAL_VALUE_TYPE as a separate
613         object in GC memory, set TREE_REAL_CST_PTR to point to it.
614         (build_real_from_int_cst): Use build_real.
615         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
616         REAL_CST.
617
618         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
619         fold-const.c, print-tree.c, real.c: Include real.h.
620         * Makefile.in: Update dependency lists.
621
622 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
623
624         * basic-block.h (last_basic_block): Declare.
625         (expunge_block_nocompact): Declaration removed.
626         (compact_blocks): Declare.
627         * cfg.c (last_basic_block): New variable.
628         (expunge_block_nocompact): Removed.
629         (expunge_block): Do not compact basic blocks.
630         (compact_blocks): New.
631         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
632         longer change.
633         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
634         last_basic_block.
635         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
636         real positions of blocks.
637         (delete_unreachable_blocks): Simplified -- quadratic behavior now
638         cannot occur.
639         (cleanup_cfg): Compact blocks.
640         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
641         basic_block_info varray.
642         (flow_delete_block): Comment update.
643         (back_edge_of_syntactic_loop_p): Modify position check code.
644         (verify_flow_info): Update checking.
645         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
646         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
647         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
648         indices no longer change.
649         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
650         last_basic_block.
651         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
652         * profile.c (branch_prob): Compact blocks.
653         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
654         last_basic_block.
655
656 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
657
658         * config/h8300/h8300.md (two anonymous patterns): New.
659
660 2002-05-28  David S. Miller  <davem@redhat.com>
661
662         * config/sparc/sparc.md (cpu): Tidy.
663         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
664         'trap'.
665         (in_call_delay): Delete reference to 'return' type.
666         (eligible_for_return_delay, in_return_delay, define_delay
667         referencing those): Delete.
668         (rest of file): Use new type attributes as appropriate.
669         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
670         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
671         * config/sparc/ultra1_2.md (us1_single): New reservation.
672         (us1_ialuX): Likewise.
673         * config/sparc/ultra3.md (us3_single): Likewise.
674         (us3_ialuX): Likewise.
675         (us3_imul, us3_idiv): Tweak.
676
677 2002-05-28  Richard Henderson  <rth@redhat.com>
678
679         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
680         STRING_CST.
681
682 2002-05-28  Richard Henderson  <rth@redhat.com>
683
684         * config.gcc: Obsolete mn10200.
685
686 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
687
688         * cppexp.c (interpret_number): Optimize for single-digit
689         and less-than-half-precision cases.
690         (num_trim, num_positive, num_div_op): Cast constants.
691
692 2002-05-27  Bo Thorsen  <bo@suse.de>
693
694         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
695         3.1 branch. The file was made by Jakub Jelinek.
696         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
697         support so multilib doesn't break. And don't define this at all
698         when -Dinhibit_libc is used.
699         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
700         * config/i386/t-linux64: Implement full multilib support. Patch
701         originally done by Andreas Jaeger and Jakub Jelinek.
702
703 2002-05-27  Roger Sayle  <roger@eyesopen.com>
704
705         * c-common.c: Add support for __attribute__((nothrow)) to specify
706         that a function cannot throw an exception (using TREE_NOTHROW).
707         (handle_nothrow_attribute): New function to process this attribute.
708
709         * doc/extend.texi: Document the new nothrow function attribute.
710
711 2002-05-27  H.J. Lu  (hjl@gnu.org)
712
713         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
714         (num_positive): Likewise.
715         (num_div_op): Likewise.
716
717 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
718
719         * c-common.c (c_common_init): Always use intmax_t.
720
721 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
722
723         * c-common.c (c_common_init): Use intmax_t for now.
724
725 2002-05-24  Andrew Haley  <aph@redhat.com>
726
727         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
728         if T is a boolean type.
729
730 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
731
732         * basic-block.h (last_basic_block): Defined as synonym for
733         n_basic_blocks.
734         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
735         flow_depth_first_order_compute, flow_preorder_transversal_compute,
736         flow_dfs_compute_reverse_init): Replaced relevant occurences of
737         n_basic_blocks with last_basic_block.
738         * cfgbuild.c (make_edges): Likewise.
739         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
740         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
741         * combine.c (combine_instructions): Likewise.
742         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
743         iterative_dataflow_bitmap): Likewise.
744         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
745         calc_idoms, idoms_to_doms): Likewise.
746         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
747         Likewise.
748         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
749         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
750         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
751         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
752         delete_null_pointer_checks, compute_code_hoist_vbeinout,
753         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
754         compute_store_table, build_store_vectors): Likewise.
755         * haifa-sched.c (sched_init): Likewise.
756         * ifcvt.c (if_convert): Likewise.
757         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
758         pre_edge_lcm, compute_available, compute_nearerout,
759         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
760         Likewise.
761         * predict.c (estimate_probability, process_note_prediction,
762         note_prediction_to_br_prob): Likewise.
763         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
764         * recog.c (split_all_insns, peephole2_optimize): Likewise.
765         * regrename.c (copyprop_hardreg_forward): Likewise.
766         * resource.c (init_resource_info): Likewise.
767         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
768         init_regions, schedule_insns): Likewise.
769         * ssa-ccp.c (ssa_const_prop): Likewise.
770         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
771         * ssa.c (compute_dominance_frontiers,
772         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
773
774         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
775         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
776         sizes consistently.
777
778 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
779
780         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
781         new.
782         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
783         hoist_insn_after, hoist_insn_to_edge): New.
784
785 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
786
787         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
788         (PROP_FINAL): Include.
789         * flow.c (life_analysis, update_life_info,
790         init_propagate_block_info, mark_set_1, mark_used_rgs):
791         Support SCAN_DEAD_STORE.
792
793 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
794
795         * c-common.c (c_common_init): Set CPP arithmetic precision.
796         * cppexp.c (cpp_num_part): Move typedef ...
797         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
798         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
799         (sanity_checks): Update.
800
801 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
802
803         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
804         (mkheaders): New rule.
805         (install-mkheaders): New rule.
806         * configure.in (all_outputs): Add mkheaders.
807         * configure: Regenerate.
808         * mkheaders.in: New file.
809
810 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
811
812         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
813
814 2002-05-26  Andreas Jaeger  <aj@suse.de>
815
816         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
817
818 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
819
820         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
821         right_shift): Remove.
822         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
823         HIGH_PART): New.
824         (struct op): Use cpp_num.
825         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
826         num_part_mul, num_unary_op, num_binary_op, num_negate,
827         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
828         num_div_op, num_lshift, num_rshift, append_digit): New.
829         (interpret_number, parse_defined, eval_token, reduce): Update
830         for two-integer arithmetic.
831         (binary_handler): New typedef.
832         (optab): Update.
833         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
834         (_cpp_parse_expr, reduce): Update to handle two-integers.
835         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
836
837 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
838
839         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
840         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
841         branch insn into account, do not assume 1.
842         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
843         over single word insn.  Handle upper half of I/O space too.
844         * config/avr/avr.md (*sbrx_branch): Use it.
845         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
846         (*sbix_branch, *sbix_branch_bit7): Likewise.
847         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
848         Use RTL peepholes to optimize register operand sign tests.
849
850 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
851
852         * config/avr/avr.c (avr_asm_only_p): New variable.
853         (avr_override_options): Set it here if AVR1.
854         (asm_file_start): Test it here, report an error if set.
855
856 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
857
858         * alias.c: Fix formatting.
859         * attribs.c: Likewise.
860         * bb-reorder.c: Likewise.
861         * bitmap.c: Likewise.
862         * bitmap.h: Likewise.
863         * builtins.c: Likewise.
864
865 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
866
867         * reload.c (find_valid_class): Accept new argument DEST,
868         choose class accordingly.
869         (push_reload): Update callers.
870
871 2002-05-26  Andreas Jaeger  <aj@suse.de>
872
873         * combine.c (combine_instructions): Do not indent #if for
874         traditional C.
875
876 2002-05-25  Richard Henderson  <rth@redhat.com>
877
878         * c-pragma.c (apply_pragma_weak): Convert value identifier to
879         string for decl_attributes.
880         (handle_pragma_weak): Call assemble_alias if we're modifying
881         an existing decl.
882
883 2002-05-25  Richard Henderson  <rth@redhat.com>
884
885         PR target/6788
886         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
887         using rtl instead of fprintf.
888         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
889         * config/sparc/sparc-protos.h: Update.
890
891 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
892
893         * Makefile.in (C_COMMON_H): Fix.
894         Update other targets.
895         * c-common.c: Don't include c-lex.h.
896         (builtin_define_with_value): Make static and prototype.
897         (builtin_define_std): Move from c-lex.h.
898         * c-common.h (init_c_lex): Move from c-lex.h.
899         * c-decl.c: Don't include c-lex.h.
900         (make_pointer_declarator): Move from c-parse.in.
901         * c-lex.c: Don't include c-lex.h.
902         * c-lex.h: Remove.
903         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
904         (make_pointer_declarator): Move to c-decl.c.
905         * c-pragma.c: Don't include c-lex.h.
906         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
907         * c-tree.h (make_pointer_declarator): New.
908 doc:
909         * passes.texi, tm.texi: Update.
910 objc:
911         * Make-lang.in: Update and correct.
912         * objc-act.c: Don't include c-lex.h or cpplib.h.
913 treelang:
914         * treetree.c: Don't include c-lex.h.
915 config:
916         * darwin-c.c: Don't include c-lex.h.
917         * c4x/c4x-c.c: Don't include c-lex.h.
918         * c4x/t-c4x: Update.
919         * i370/i370-c.c: Don't include c-lex.h.
920         * i370/t-i370: Update.
921         * i960/i960-c.c: Don't include c-lex.h.
922         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
923         * i960/t-960bare: Update.
924         * i960/t-vxworks: Update.
925         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
926         * rs6000/t-darwin: Update.
927         * rs6000/t-rs6000-c-rule: Update.
928         * v850/v850-c.c: Don't include c-lex.h.
929         * v850/v850.c: Don't include c-lex.h or cpplib.h.
930
931
932 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
933
934         * tree.def: Fix typos.
935         * doc/install.texi: Likewise.
936
937 2002-05-25  Richard Henderson  <rth@redhat.com>
938
939         * configure.in (HAVE_AS_TLS): Add ia64 test.
940         * configure: Rebuild.
941         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
942         (override_options): Set it.
943         (TARGET_HAVE_TLS): New.
944         (sdata_symbolic_operand): Look for 's'.
945         (tls_symbolic_operand): New.
946         (ia64_expand_load_address): Abort for tls symbols.
947         (gen_tls_get_addr): New.
948         (gen_thread_pointer): New.
949         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
950         (rtx_needs_barrier): Add new unspecs.
951         (ia64_encode_section_info): Handle tls symbols.
952         (ia64_strip_name_encoding): Strip two encoding chars.
953         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
954         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
955         (TARGET_OPTIONS): Add tls-size.
956         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
957         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
958         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
959         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
960         (movsf, movdf): Likewise.
961         (movdi_symbolic): Use match_scratch.  Don't split if we won't
962         have a scratch availiable.
963         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
964         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
965         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
966         * config/ia64/ia64-protos.h: Update.
967         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
968         sdata_symbolic_operand.
969         (ASM_OUTPUT_LABELREF): Strip two characters.
970
971 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
972
973         * combine.c (simplify_set): Remove an unnecessary subreg.
974
975 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
976
977         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
978
979         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
980
981 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
982
983         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
984
985 2002-05-25  Roger Sayle  <roger@eyesopen.com>
986
987         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
988         (cond (compare x y) 0) into the equivalent (cond x y).
989
990 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
991
992         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
993
994 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
995
996         * config.gcc: Remove all stanzas for previously obsoleted
997         systems.  Where necessary, add explicit error stanzas to
998         prevent removed systems from being misidentified as something
999         else.  Begin a fresh obsoletions list, with the systems that
1000         were reprieved last round.
1001         * doc/install.texi: Remove all mention of dead targets.
1002         * fixinc/mkfixinc.sh: Likewise.
1003
1004         * config/arm/arm.h: Bit 31 of target_flags is no longer
1005         reserved.
1006
1007         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1008         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1009         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1010         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1011         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1012         config/alpha/osf12.h, config/alpha/osf2or3.h,
1013         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1014         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1015         config/clipper/clipper-protos.h, config/clipper/clipper.c,
1016         config/clipper/clipper.h, config/clipper/clipper.md,
1017         config/clipper/clix.h, config/convex/convex-protos.h,
1018         config/convex/convex.c, config/convex/convex.h,
1019         config/convex/convex.md, config/convex/fixinc.convex,
1020         config/convex/proto.h, config/elxsi/elxsi-protos.h,
1021         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1022         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1023         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1024         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1025         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1026         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1027         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1028         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1029         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1030         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1031         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1032         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1033         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1034         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1035         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1036         config/m68k/altos3068.h, config/m68k/apollo68.h,
1037         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1038         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1039         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1040         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1041         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1042         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1043         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1044         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1045         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1046         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1047         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1048         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1049         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1050         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1051         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1052         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1053         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1054         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1055         config/mips/dec-osf1.h, config/mips/elflorion.h,
1056         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1057         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1058         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1059         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1060         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1061         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1062         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1063         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1064         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1065         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1066         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1067         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1068         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1069         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1070         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1071         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1072         Delete file.
1073
1074 2002-05-24  Richard Henderson  <rth@redhat.com>
1075
1076         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1077         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1078         * config/i386/i386.c (tls_model_chars): Add leading space.
1079         (tls_symbolic_operand): Don't bias by 1.
1080         (legitimize_address): Don't unbias by 1.
1081
1082 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1083
1084         * lcm.c (optimize_mode_switching): Change bb used as indices
1085         to bb->index.
1086
1087 2002-05-24  Richard Henderson  <rth@redhat.com>
1088
1089         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1090         of update_life_info_in_dirty_blocks.
1091
1092 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1093
1094         PR other/6782
1095         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1096
1097 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1098
1099         PR preprocessor/6780
1100         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1101
1102 2002-05-24  Jim Blandy  <jimb@redhat.com>
1103
1104         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1105         entry with a type code of zero, marking the end of the compilation
1106         unit's macro info.
1107
1108 2002-05-24  Richard Henderson  <rth@redhat.com>
1109
1110         * varasm.c (asm_output_bss): Always output one byte.
1111         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1112
1113 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1114
1115         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1116         namespace.
1117
1118 2002-05-24  Andreas Jaeger  <aj@suse.de>
1119
1120         * ggc-page.c (alloc_page): Cast variables of type size_t to
1121         unsigned long, adjust printf format string.
1122         (ggc_alloc): Likewise.
1123         (ggc_print_statistics): Likewise.
1124         (ggc_print_statistics): Correct printf format string for SCALE to
1125         use unsigned long.
1126
1127 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1128
1129         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1130
1131 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1132             Zack Weinberg     <zack@codesourcery.com>
1133
1134         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1135         quoted strings.
1136         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1137         directive in assembly file.
1138         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1139         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1140         * config/pj/pj.h (ASM_FILE_START): Likewise.
1141         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1142         * config/avr/avr.c (asm_file_end): Likewise.
1143         * toplev.c (output_quoted_string): Handle possibly signed plain
1144         char.
1145         * toplev.h (output_clean_symbol_name): Declare
1146         * toplev.c (output_clean_symbol_name): Define.
1147         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1148         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1149
1150 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1151
1152         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1153
1154 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1155
1156         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1157         of size of unsigned.
1158
1159 2002-05-23  Richard Henderson  <rth@redhat.com>
1160
1161         * configure.in (HAVE_AS_TLS): New test.
1162         * config.in, configure: Rebuild.
1163         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1164         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1165         (override_options): Set it.
1166         (tls_model_chars, tls_symbolic_operand): New.
1167         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1168         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1169         (local_exec_symbolic_operand): New.
1170         (get_pic_label_name): Merge into output_set_got.
1171         (ix86_asm_file_end): Emit pic_label_name if defined.
1172         (legitimate_constant_p, constant_address_p): New.
1173         (legitimate_pic_operand_p): New.
1174         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1175         (legitimate_address_p): Likewise.
1176         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1177         (ix86_strip_name_encoding): New.
1178         (get_thread_pointer): New.
1179         (legitimize_address): Handle tls symbols.
1180         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1181         Remove UNSPEC_PLT.
1182         (struct machine_function): Add some_ld_name.
1183         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1184         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1185         (output_addr_const_extra): New.
1186         (maybe_get_pool_constant): New.
1187         (ix86_split_to_parts): Use it.
1188         (ix86_expand_move): Handle tls symbols.
1189         (ix86_tls_get_addr): New.
1190         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1191         (TARGET_OPTIONS): Add tls-dialect.
1192         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1193         (LEGITIMATE_CONSTANT_P): Likewise.
1194         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1195         (TARGET_STRIP_NAME_ENCODING): New.
1196         (ASM_OUTPUT_LABELREF): New.
1197         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1198         (OUTPUT_ADDR_CONST_EXTRA): New.
1199         (PREDICATE_CODES): Update.
1200         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1201         * config/i386/i386.md: Regroup and renumber unspec constants.
1202         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1203         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1204         (tls_global_dynamic, tls_local_dynamic_base): New.
1205         (tls_local_dynamic_once): New.
1206         * config/i386/i386-protos.h: Update.
1207
1208 2002-05-23  Richard Henderson  <rth@redhat.com>
1209
1210         * genemit.c (gen_insn): Print file:lineno comment before function.
1211         (main): likewise.
1212         * gensupport.c (struct queue_elem): Add filename member.
1213         (queue_pattern): Initialize it; update all callers.
1214         (process_include): Don't free filename.
1215         (read_md_rtx): Set read_rtx_filename.
1216
1217 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1218
1219         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1220
1221 2002-05-23  Richard Henderson  <rth@redhat.com>
1222
1223         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1224
1225 2002-05-23  Richard Henderson  <rth@redhat.com>
1226
1227         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1228         commentary from Mark.
1229
1230 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1231
1232         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1233         Use FOR_EACH_BB macros to iterate over basic block chain.
1234         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1235         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1236         Likewise.
1237         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1238         find_unreachable_blocks, create_edge_list, verify_edge_list,
1239         remove_fake_edges, add_noreturn_fake_exit_edges,
1240         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1241         Likewise.
1242         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1243         find_sub_basic_blocks): Likewise.
1244         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1245         Likewise.
1246         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1247         Likewise.
1248         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1249         Likewise.
1250         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1251         commit_edge_insertions, commit_edge_insertions_watch_calls,
1252         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1253         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1254         * conflict.c (conflict_graph_compute): Likewise.
1255         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1256         df_modified_p, df_refs_unlink, df_dump): Likewise.
1257         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1258         * final.c (compute_alignments): Likewise.
1259         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1260         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1261         count_or_remove_death_notes): Likewise.
1262         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1263         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1264         classic_gcse, compute_transp, cprop, compute_pre_data,
1265         compute_transpout, invalidate_nonnull_info,
1266         delete_null_pointer_checks_1, delete_null_pointer_checks,
1267         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1268         compute_store_table, build_store_vectors, store_motion): Likewise.
1269         * global.c (global_conflicts, mark_elimination): Likewise.
1270         * graph.c (print_rtl_graph_with_bb): Likewise.
1271         * haifa-sched.c (sched_init): Likewise.
1272         * ifcvt.c (if_convert): Likewise.
1273         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1274         compute_available, compute_nearerout, compute_rev_insert_delete,
1275         optimize_mode_switching): Likewise.
1276         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1277         * predict.c (estimate_probability, note_prediction_to_br_prob,
1278         propagate_freq, counts_to_freqs, expensive_function_p,
1279         estimate_bb_frequencies): Likewise.
1280         * profile.c (instrument_edges, get_exec_counts,
1281         compute_branch_probabilities, compute_checksum, branch_prob,
1282         find_spanning_tree): Likewise.
1283         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1284         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1285         Likewise.
1286         * regclass.c (scan_one_insn, regclass): Likewise.
1287         * regmove.c (mark_flags_life_zones, regmove_optimize,
1288         record_stack_memrefs): Likewise.
1289         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1290         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1291         * resource.c (find_basic_block): Likewise.
1292         * sched-ebb.c (schedule_ebbs): Likewise.
1293         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1294         find_single_block_region, find_rgns, schedule_insns)
1295         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1296         * ssa-ccp.c (optimize_unexecutable_edges,
1297         ssa_ccp_df_delete_unreachable_insns): Likewise.
1298         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1299         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1300         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1301         compute_coalesced_reg_partition, rename_equivalent_regs,
1302         convert_from_ssa): Likewise.
1303         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1304         process_for_unwind_directive): Likewise.
1305
1306         * df.c (FOR_ALL_BBS): Removed.
1307         * gcse.c (struct null_pointer_info): Type of current_block field
1308         changed.
1309         (struct reg_avail_info): Type of last_bb field changed.
1310         * config/ia64/ia64.c (block_num): Removed.
1311         (need_copy_state): Type changed.
1312         (last_block): New.
1313
1314 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1315
1316         * cppinit.c (mark_named_operators): Split out from init_builtins.
1317         (cpp_finish_options): Call it from here instead.
1318
1319 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1320
1321         * builtin-attrs.def: Update copyright years.
1322         (ATTR_NONNULL): New attribute identifier.
1323         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1324         attribute tree lists.
1325         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1326         format operand.
1327         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1328         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1329         attribute lists.  Chain the appropriate nonnull attribute.
1330         * c-format.c (check_format_arg): Remove null format string
1331         warning.
1332         * testsuite/gcc.dg/format/null-1.c: New test.
1333
1334 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1335
1336         * Makefile.in (ADAC): Define.
1337         (SYSLIBS): Define.
1338         (.SUFFIXES): Move before language makefile fragments.
1339         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1340
1341 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1342
1343         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1344         placed in common.
1345
1346 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1347
1348         * cfg.c (dump_flow_info): Print results of
1349         maybe_hot/probably_never_executed predicates.
1350         * toplev.c (open_dump_file): Print function frequency.
1351
1352 2002-05-23  David S. Miller  <davem@redhat.com>
1353
1354         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1355         regsets.
1356
1357 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1358
1359         * c-common.c (warn_nonnull): Declare.
1360         (c_common_attribute_table): Add "nonnull" attribute.
1361         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1362         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1363         check_function_arguments_recurse): New functions.
1364         * c-common.h (warn_nonnull): Declare extern.
1365         (check_function_arguments, check_function_arguments_recurse): New
1366         prototypes.
1367         * c-decl.c (c_decode_option): Add -Wnonnull option.
1368         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1369         format checking.
1370         (format_check_context): New structure.
1371         (check_format_info_recurse): Remove recursion and rename to...
1372         (check_format_arg): ...this.  Update comment.
1373         (check_format_info): Use check_function_arguments_recurse.
1374         * c-typeck.c (build_function_call): Call check_function_arguments
1375         instead of check_function_format.
1376         * doc/extend.texi: Document "nonnull" attribute.
1377         * doc/invoke.texi: Docuemnt -Wnonnull option.
1378         * testsuite/gcc.dg/nonnull-1.c: New test.
1379         * testsuite/gcc.dg/nonnull-2.c: New test.
1380
1381 2002-05-23  David S. Miller  <davem@redhat.com>
1382
1383         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1384         * cfgcleanup.c (cleanup_cfg): If it is set do not
1385         attempt to delete trivially dead insns.
1386         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1387         * toplev.c (rest_of_compilation): Document non-trivial aspect
1388         the RTL before optimize_save_area_alloca is run.
1389
1390 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1391
1392         * c-lex.c (indent_level): Remove.
1393         (cb_file_change, c_lex): Remove indent level handling.
1394         * c-lex.h (indent_level): Remove.
1395         * input.h (struct file_stack): Remove indent_level.
1396         * toplev.c (push_srcloc): Remove indent_level handling.
1397
1398 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1399
1400         PR target/6753
1401         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1402         of x in constraints for clarity.
1403         (sse_mov?fcc split): abort if op2 == op3.
1404         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1405         sse_movsfcc_const0_4): Add earlyclobber.
1406         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1407         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1408         Use Y instead of x in constraints.
1409
1410 2002-05-23  Richard Henderson  <rth@redhat.com>
1411
1412         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1413         (C++98 Thread-Local Edits): New subsection.
1414
1415         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1416         (ix86_arch): Set type to enum processor_type.
1417
1418         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1419         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1420
1421 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1422
1423         * configure.in: Fix as version test for binutils 2.12.1 releases
1424         (without dates).
1425         * configure: Rebuilt.
1426
1427 2002-05-23  Richard Henderson  <rth@redhat.com>
1428
1429         * config/i386/i386.c (get_pic_label_name): New.
1430         (load_pic_register): Remove.
1431         (output_set_got): New.
1432         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1433         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1434         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1435         (prologue_set_got, prologue_get_pc): Remove.
1436         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1437         (builtin_setjmp_receiver): Use gen_set_got.
1438         * config/i386/i386-protos.h: Update.
1439
1440 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1441
1442         * gcse.c (hash_expr): Do not use alias set for hashing.
1443
1444 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1445
1446         * dbxout.c (dbxout_class_name_qualifiers): New function.
1447         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1448
1449 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1450
1451         * cpperror.c (_cpp_begin_message): No special casing
1452         of CPP_FATAL_LIMIT.
1453         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1454         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1455         * cpplib.c (do_include_common): Use DL_ERROR.
1456         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1457         (DL_ICE): Renumber.
1458         * fix-header.c (read_scan_file): Update.
1459
1460 2002-05-22  Richard Henderson  <rth@redhat.com>
1461
1462         * config/i386/i386.c (ix86_expand_call): New function, extracted
1463         from md call patterns.  Add pic_offset_table_rtx to
1464         CALL_INSN_FUNCTION_USAGE when needed.
1465         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1466         (call_value_pop, call_value, untyped_call): Likewise.
1467         (call_exp, call_value_exp): Remove.
1468         * config/i386/i386-protos.h: Update.
1469
1470 2002-05-22  Richard Henderson  <rth@redhat.com>
1471
1472         * varasm.c (default_section_type_flags): Check for VAR_DECL
1473         before using DECL_THREAD_LOCAL.
1474
1475 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1476
1477         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1478         (STARTFILE_SPEC): Delete PE crt0.o.
1479         * config/rs6000/aix51.h: Same.
1480         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1481         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1482         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1483         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1484         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1485
1486 2002-05-22  Richard Henderson  <rth@redhat.com>
1487
1488         * varasm.c (default_section_type_flags): Handle tls data and
1489         default sections.
1490         (default_unique_section): Handle tls sections.
1491
1492 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1493
1494         * configure.in (CROSS): Define NATIVE_CROSS.
1495         * configure: Regenerate.
1496         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1497         (startfile_prefix_spec): New var.
1498         (static_specs): Add startfile_prefix_spec.
1499         (do_spec_2): Split out from..
1500         (do_spec): ..here.
1501         (main): Process startfile_prefix_spec.
1502         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1503         dynamic linker.
1504         (STARTFILE_PREFIX_SPEC): Define.
1505         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1506         absolute paths.
1507
1508 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1509
1510         * cpperror.c: Fix formatting.
1511         * cppexp.c: Likewise.
1512         * cppfiles.c: Likewise.
1513         * cpphash.c: Likewise.
1514         * cpphash.h: Likewise.
1515         * cppinit.c: Likewise.
1516         * cpplex.c: Likewise.
1517         * cpplib.c: Likewise.
1518         * cppmacro.c: Likewise.
1519         * cppmain.c: Likewise.
1520         * cppspec.c: Likewise.
1521
1522 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1523
1524         * combine.c (force_to_mode): Use gen_int_mode.
1525         Don't clear CONST_INT bits outside of mode.
1526
1527 2002-05-22  Richard Henderson  <rth@redhat.com>
1528
1529         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1530         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1531
1532 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1533
1534         PR c/6643
1535         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1536         if DECL_SIZE_UNIT is INTEGER_CST.
1537
1538 2002-05-22  Richard Henderson  <rth@redhat.com>
1539
1540         * flow.c (life_analysis): Delete broken reg_label check.
1541
1542 2002-05-22  Richard Henderson  <rth@redhat.com>
1543
1544         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1545         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1546
1547 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1548
1549         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1550         (embed-bb.c): New rule.
1551         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1552         * config/sh/embed_bb.c: Delete.
1553
1554 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1555
1556         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1557
1558 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1559
1560         * config/h8300/h8300.md (*andorqi3): New.
1561
1562 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1563
1564         PR preprocessor/6517
1565         * Makefile.in: Update.
1566         * c-common.c (c_common_post_options): Add preprocessor
1567         errors to the error count.
1568         * c-lang.c (c_post_options): Kill.
1569         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1570         * hooks.h: Add header guards.
1571         * langhooks-def.h: Include hooks.h.
1572         (LANG_HOOKS_POST_OPTIONS): Update.
1573         * langhooks.h (struct lang_hooks): Update post_options.
1574         * toplev.c (parse_options_and_default_flags): Update.
1575 objc:
1576         * objc-lang.c (objc_post_options): Kill.
1577         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1578
1579 2002-05-21  Bruce Korb  <bkorb@gnu.org>
1580
1581         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1582         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1583         * fixinc/fixincl.x: regen.
1584
1585 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
1586
1587         * cfgbuild.c: Fix formatting.
1588         * cfg.c: Likewise.
1589         * cfgcleanup.c: Likewise.
1590         * cfglayout.c: Likewise.
1591         * cfgloop.c: Likewise.
1592         * cfgrtl.c: Likewise.
1593
1594 2002-05-21  Richard Henderson  <rth@redhat.com>
1595
1596         * c-common.h (enum rid): Add RID_THREAD.
1597         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1598         (grokdeclarator): Grok __thread.
1599         * c-parse.in (reswords): Add __thread.
1600         (rid_to_yy): Add RID_THREAD.
1601
1602         * tree.h (DECL_THREAD_LOCAL): New.
1603         (struct tree_decl): Add thread_local_flag.
1604         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1605         * tree.c (staticp): TLS variables are not static.
1606
1607         * target-def.h (TARGET_HAVE_TLS): New.
1608         * target.h (have_tls): New.
1609         * output.h (SECTION_TLS): New.
1610         * varasm.c (assemble_variable): TLS variables can't be common for now.
1611         (default_section_type_flags): Handle .tdata and .tbss.
1612         (default_elf_asm_named_section): Handle SECTION_TLS.
1613         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1614
1615         * flags.h (flag_tls_default): Declare.
1616         * toplev.c (flag_tls_default): Define.
1617         (display_help): Display help for it.
1618         (decode_f_option): Set it.
1619
1620         * doc/extend.texi (Thread-Local): New node describing language-level
1621         thread-local storage.
1622         * doc/invoke.texi (-ftls-model): Document.
1623
1624         * fixinc/inclhack.def (thread_keyword): New.
1625         * fixinc/fixincl.x: Rebuild.
1626
1627 2002-05-21  Jeffrey A Law  <law@redhat.com>
1628
1629         * optabs.c (expand_binop): For double-word integer multiplies,
1630         do not compute intermediate results into something that is
1631         not a register (such as a SUBREG or MEM).
1632
1633         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1634         (ix86_sched_reorder): Make sure to initialize scheduling
1635         data even when there's only one insn in the ready queue.
1636
1637 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1638
1639         * genautomata.c (reserv_sets_hash_value): Fix a typo.
1640
1641 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1642
1643         * genautomata.c (reserv_sets_hash_value): Define hash_value as
1644         set_el_t.  Transform the hash value into unsigned.
1645         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1646         (transform_3): Add code to process `(A,B)+(D,E)'.
1647
1648 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
1649
1650         * reload1.c (do_output_reload): Run delete_output_reload
1651         only if optimizing.
1652
1653 2002-05-21  Roger Sayle  <roger@eyesopen.com>
1654
1655         PR middle-end/6600
1656         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1657         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
1658         (can_store_by_pieces): ... and here to limit the largest mode used.
1659         Add a comment to document this function.
1660
1661 2002-05-21  Richard Henderson  <rth@redhat.com>
1662
1663         * flow.c (life_analysis): Fix test for deleted label.
1664
1665 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1666
1667         * doc/tm.texi: Fix typo.
1668
1669 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
1670
1671         * c-common.c (c_common_init): Set options->unsigned_char from
1672         flag_signed_char.
1673         (cb_register_builtins): Define __STRICT_ANSI__ and
1674         __CHAR_UNSIGNED__ here...
1675         * cppinit.c (init_builtins): Not here.
1676         (cpp_create_reader): unsigned_char option defaults to 0, not
1677         !DEFAULT_SIGNED_CHAR.
1678         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1679         and -funsigned-char.
1680
1681         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1682         * cpphash.c (_cpp_init_hashtable): Don't set it.
1683         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1684         directly.  Clarify comment.
1685
1686 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1687
1688         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1689         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
1690         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
1691         BASIC_BLOCK (n_basic_blocks - 1).
1692         * cfganal.c (can_fallthru, flow_call_edges_add,
1693         flow_preorder_transversal_compute): Too.
1694         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1695         find_sub_basic_blocks): Too.
1696         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1697         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1698         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1699         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1700         * combine.c (this_basic_block): Type changed to basic_block.
1701         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1702         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1703         get_last_value, distribute_notes, distribute_links): Too.
1704         * final.c (compute_alignments): Too.
1705         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1706         * function.c (thread_prologue_and_epilogue_insns): Too.
1707         * gcse.c (compute_code_hoist_vbeinout): Too.
1708         * global.c (build_insn_chain): Too.
1709         * ifcvt.c (find_if_block, find_cond_trap): Too.
1710         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1711         * regmove.c (regmove_optimize): Too.
1712         * resource.c (find_basic_block): Too.
1713         * sched-ebb.c (schedule_ebbs): Too.
1714         * ssa-dce.c (find_control_dependence, find_pdom): Too.
1715
1716 2002-05-21  Andreas Jaeger  <aj@suse.de>
1717
1718         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1719
1720 2002-05-21  Richard Henderson  <rth@redhat.com>
1721
1722         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1723         unspec names, not numbers.
1724
1725 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
1726
1727         * doc/sourcebuild.texi: Mention snapshot-README and
1728         snapshot-index.html as needing updating for new front ends.
1729
1730 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1731
1732         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1733         disabling checking, and avoid multiple evaluation of RTX.
1734
1735 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
1736
1737         * bitmap.c (bitmap_find_bit): Return early if we have the correct
1738         element cached.
1739
1740 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
1741
1742         * profile.c (gen_edge_profiler):  Set alias set before the memory is
1743         used.
1744
1745 2002-05-20  David S. Miller  <davem@redhat.com>
1746
1747         * cselib.c (max_value_regs): New.
1748         (cselib_lookup, cselib_invalidate_regno): Initialize it when
1749         adding new entries to the REG_VALUES table and we are dealing with
1750         a hard register.
1751         (clear_table): Initialize it.
1752         (cselib_invalidate_regno): Use it to determine which hard
1753         registers to scan when mode is not VOIDmode.
1754
1755 2002-05-20  Duraid Madina   <duraid@fl.net.au>
1756
1757         * tradcpp.c (fixup_newlines): Use old-style function header.
1758
1759 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
1760
1761         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1762
1763 2002-05-20  H.J. Lu  (hjl@gnu.org)
1764
1765         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1766
1767         * config/mips/mips.h (DFMODE_NAN): Defined.
1768         (SFMODE_NAN): Likewise.
1769
1770 2002-05-20  Dale Johannesen  <dalej@apple.com>
1771
1772         * combine.c (cant_combine_insn_p):  Back out my
1773         previous patch.
1774
1775 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
1776
1777         * params.c: Fix formatting.
1778         * params.h: Likewise.
1779         * predict.c: Likewise.
1780         * prefix.c: Likewise.
1781         * print-rtl.c: Likewise.
1782         * print-tree.c: Likewise.
1783         * profile.c: Likewise.
1784
1785 2002-05-20  H.J. Lu  (hjl@gnu.org)
1786
1787         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1788
1789 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
1790
1791         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1792         switches straight on to the assembler, do not abbreviate them.
1793         * config/arm/elf.h (ASM_SPEC): As above.
1794         * config/arm/semi.h (ASM_SPEC): As above.
1795         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1796         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1797         -mcpu=xscale on to the assembler by default.
1798         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1799
1800 2002-05-20  Richard Henderson  <rth@redhat.com>
1801
1802         * cse.c (canon_hash): Reorder do_not_record test.  Always
1803         allow pic_offset_table_rtx.
1804
1805 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
1806
1807         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1808         (expand_binop): Ditto (3 times).
1809
1810 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
1811
1812         * Makefile.in (distclean): Remove QMTest stuff.
1813         (QMTEST_PATH): New variable.
1814         (QMTESTFLAGS): Likewise.
1815         (QMTESTRUNFLAGS): Likewise.
1816         (QMTEST): Likewise.
1817         (QMTEST_GPP_TESTS): Likewise.
1818         (QMTEST_DIR): Likewise.
1819         (QMTEST_DIR/context): New target.
1820         (qmtest-g++): Likeise.
1821         (qmtest-gui): Likewise.
1822         (QMTEST_DIR/gpp-expected.qmr): Likewise.
1823
1824 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
1825
1826         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1827         an altivec register if TARGET_ALTIVEC.
1828
1829         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1830         to ALTIVEC_VECTOR_MODE.
1831         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1832         (rs6000_va_arg): Vectors may go in registers if they are not
1833         altivec vectors.
1834
1835 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
1836
1837         * protoize.c: Fix formatting.
1838
1839 2002-05-19  Richard Henderson  <rth@redhat.com>
1840
1841         * gensupport.c (init_include_reader): Merge into ...
1842         (process_include): ... here.  Simplify composite path creation.
1843         Plug memory leaks.  Fix file/line number tracking.  Do not
1844         process_define_cond_exec.  Return void.
1845         (process_rtx): Don't check process_include return value.
1846
1847 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1848
1849         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1850         fields.
1851         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1852         traversing basic block chain.
1853         (create_basic_block_structure, create_basic_block): Declaration changed.
1854         (link_block, unlink_block): Declare.
1855         * cfg.c (entry_exit_blocks): Initialize new fields.
1856         (link_block, unlink_block): New.
1857         (expunge_block_nocompact): Unlink basic block.
1858         (dump_flow_info): Print prev_bb/next_bb fields.
1859         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1860         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1861         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1862         * cfgrtl.c (create_basic_block_structure, create_basic_block,
1863         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1864         (verify_flow_info): Check that list agrees with numbering.
1865
1866 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1867
1868         * c-common.c (preprocessing_asm): New macro.
1869         * c-lex.h (builtin_define, builtin_assert): Use pfile.
1870 doc:
1871         * tm.texi: Update.
1872 config/alpha:
1873         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1874         (CPP_SPEC): Simplify.
1875         (TARGET_CPU_CPP_BUILTINS): Update.
1876         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1877         (CPP_SPEC): Simplify.
1878         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1879         (TARGET_OS_CPP_BUILTINS): Update.
1880         * osf.h (CPP_XFLOAT_SPEC): Kill.
1881         (TARGET_OS_CPP_BUILTINS): Update.
1882         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1883         * osf5.h (CPP_XFLOAT_SPEC): Kill.
1884         * vms.h (CPP_SUBTARGET_SPEC): Kill.
1885         (TARGET_OS_CPP_BUILTINS): Update.
1886
1887 2002-05-19  Richard Henderson  <rth@redhat.com>
1888
1889         * varasm.c (default_binds_local_p): Fix typo.
1890
1891 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1892
1893         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1894         CONST_INT operand to the correct mode after adding 1 to it.
1895
1896 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
1897
1898         * config.gcc (powerpc-wrs-windiss*): New target.
1899
1900 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1901
1902         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1903         (ashrdi3): Use it.
1904
1905 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
1906
1907         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1908         alphasort.
1909         * config.in: Regenerated.
1910         * configure: Regenerated.
1911
1912 2002-05-19  Richard Henderson  <rth@redhat.com>
1913
1914         * target-def.h (TARGET_BINDS_LOCAL_P): New.
1915         * target.h (struct gcc_target): Move boolean fields to the end.
1916         Add binds_local_p.
1917         * varasm.c (default_binds_local_p): New.
1918         * output.h: Declare it.
1919
1920         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1921         * config/cris/cris.c (cris_encode_section_info): Likewise.
1922         * config/i386/i386.c (i386_encode_section_info): Likewise.
1923         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1924         * config/sh/sh.c (sh_encode_section_info): Likewise.
1925
1926         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1927         (TARGET_BINDS_LOCAL_P): New.
1928
1929 2002-05-19  Richard Henderson  <rth@redhat.com>
1930
1931         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1932         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1933         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1934
1935         * toplev.c (display_help): Kill -a -ax help.
1936
1937         * config/1750a/1750a.h, config/alpha/alpha.h,
1938         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1939         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1940         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1941         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1942
1943         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1944         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1945
1946         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1947         (ix86_output_function_block_profiler): Kill.
1948         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1949         (m68hc11_function_block_profiler): Kill.
1950         * config/m68hc11/m68hc11-protos.h: Update.
1951         * config/m88k/m88k.c (output_block_profiler): Kill.
1952         (output_function_block_profiler): Kill.
1953         * config/m88k/m88k-protos.h: Update.
1954
1955 2002-05-19  Richard Henderson  <rth@redhat.com>
1956
1957         * system.h (STRIP_NAME_ENCODING): Poison it.
1958         * output.h (STRIP_NAME_ENCODING): Remove.
1959         (default_strip_name_encoding): Declare.
1960         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1961         * target.h (strip_name_encoding): New.
1962         * varasm.c (default_strip_name_encoding): New.
1963
1964         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1965         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1966         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1967         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1968         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1969         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1970         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1971         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
1972         config/v850/v850.h: Use the hook, not the macro.
1973
1974         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1975         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
1976         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
1977         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
1978         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
1979         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
1980         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1981         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
1982         config/v850/v850.c, config/v850/v850.h:
1983         Move STRIP_NAME_ENCODING to out-of-line function and add
1984         TARGET_STRIP_NAME_ENCODING.
1985
1986         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
1987         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
1988         with TARGET_STRIP_NAME_ENCODING referencing existing function;
1989         make function static.
1990
1991         * xcoffout.c: Include target.h
1992         * Makefile.in (xcoffout.o): Update.
1993
1994         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
1995         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
1996         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
1997         reloc argument unused.
1998         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
1999
2000         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2001         STRIP_NAME_ENCODING docs.
2002
2003 2002-05-19  Andreas Jaeger  <aj@suse.de>
2004
2005         * gengenrtl.c: Add prototype for excluded_rtx.
2006
2007         * real.h: Add prototype for exact_real_truncate.
2008
2009 2002-05-18  Richard Henderson  <rth@redhat.com>
2010
2011         * system.h (ENCODE_SECTION_INFO): Poison it.
2012         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2013         * target.h (encode_section_info): New.
2014         * varasm.c (make_decl_rtl, output_constant_def): Use it.
2015         * hooks.c (hook_tree_int_void): New.
2016         * hooks.h: Declare it.
2017
2018         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2019         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2020         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2021         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2022         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2023         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2024         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2025         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2026         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2027         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2028         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2029         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2030         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2031         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2032         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2033         referencing existing function.  Make function static.
2034
2035         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2036         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2037         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2038         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2039         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2040         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2041         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2042         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2043         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2044         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2045         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2046         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2047         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2048         Move ENCODE_SECTION_INFO to out-of-line function and add
2049         TARGET_ENCODE_SECTION_INFO.
2050
2051         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2052         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2053
2054         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2055         from SUBTARGET_*
2056         (switch_to_section): Replace in_rdata case with in_readonly_data.
2057
2058         * config/h8300/h8300.c (h8300_encode_label): Make static.
2059         * config/h8300/h8300-protos.h: Update.
2060
2061         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2062         from rs6000_encode_section_info; make static.
2063         (rs6000_xcoff_encode_section_info): New.
2064
2065         * config/v850/v850.c (v850_encode_data_area): Make static.
2066         * config/v850/v850-protos.h: Update.
2067
2068         * config/vax/vax.c: Include flags.h.
2069         (vms_select_section): Fix typo.
2070
2071         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2072         ENCODE_SECTION_INFO docs.
2073
2074 2002-05-18  Richard Henderson  <rth@redhat.com>
2075
2076         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2077         REGISTER_TARGET_PRAGMAS.
2078         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2079
2080         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2081
2082 2002-05-18  Richard Henderson  <rth@redhat.com>
2083
2084         * system.h (SELECT_RTX_SECTION): Poison.
2085         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2086         * target.h (select_rtx_section): New.
2087         * varasm.c (output_constant_pool): Use it.
2088         (default_select_rtx_section, default_elf_select_rtx_section): New.
2089         * output.h: Declare them.
2090
2091         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2092         * config/darwin.c (machopic_select_rtx_section): ... here.
2093         * config/darwin-protos.h: Update.
2094
2095         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2096         * config/nextstep.c (machopic_select_rtx_section): ... here.
2097         (nextstep_select_section): Rename variable to avoid macro clash.
2098         * config/nextstep-protos.h: Update.
2099
2100         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2101         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2102         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2103         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2104         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2105         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2106         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2107         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2108         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2109         (SELECT_RTX_SECTION): Remove.
2110
2111         * config/darwin.h, config/elfos.h, config/nextstep.h,
2112         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2113         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2114         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2115         config/sparc/lynx.h, config/xtensa/xtensa.c
2116         (TARGET_ASM_SELECT_RTX_SECTION): New.
2117
2118         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2119         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2120         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2121         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2122         (ia64_aix_select_rtx_section): New.
2123         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2124         redefining.
2125         * config/mips/mips.c (mips_select_rtx_section): Make static.
2126         Support ELF SHF_MERGE features.
2127         * config/mips/mips-protos.h: Update.
2128         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2129         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2130         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2131         make static, fall back to default_elf_select_rtx_section.
2132         * config/rs6000/rs6000-protos.h: Update.
2133         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2134         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2135         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2136         * config/romp/romp.c (romp_select_rtx_section): New.
2137         * config/s390/s390.c (s390_select_rtx_section): New.
2138         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2139         declarations before target macro definition.
2140         (xtensa_emit_call): Use static buffer.
2141         (xtensa_select_rtx_section): New.
2142         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2143         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2144         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2145
2146         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2147         SELECT_RTX_SECTION docs.
2148
2149 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2150
2151         * i386.md (movsi/movdi): Fix template.
2152         (sse2 patterns): Set attributes consistently.
2153
2154         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2155
2156 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2157
2158         * optabs.c (complex_part_zero_p): New.
2159         * (expand_cmplxdiv_straight): Use it.
2160         * (expand_cmplxdiv_wide): Ditto.
2161         * (expand_binop): Ditto.
2162
2163 2002-05-18  Richard Henderson  <rth@redhat.com>
2164
2165         * final.c (HAVE_READONLY_DATA_SECTION): New.
2166         (shorten_branches): Use it instead of ifdefs.
2167         * varasm.c (enum in_section): Add in_readonly_data.
2168         (text_section, data_section): Tidy.
2169         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2170
2171         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2172         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2173         (READONLY_DATA_SECTION): Don't undef.
2174
2175         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2176         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2177         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2178
2179         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2180         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2181         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2182         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2183
2184         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2185         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2186         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2187         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2188         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2189         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2190         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2191         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2192         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2193
2194         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2195         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2196         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2197         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2198         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2199         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2200
2201         * config/elfos.h, config/netware.h, config/svr3.h,
2202         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2203         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2204         config/h8300/h8300.h, config/i386/i386-interix.h,
2205         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2206         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2207
2208         * config/elfos.h, config/netware.h, config/svr3.h,
2209         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2210         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2211         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2212         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2213
2214         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2215         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2216         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2217         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2218         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2219         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2220         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2221         config/rs6000/sysv4.h, config/v850/v850.h
2222         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2223         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2224
2225         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2226         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2227         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2228         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2229         * config/alpha/alpha.c (alpha_start_function): Likewise.
2230         (alpha_write_linkage): Likewise.
2231         * config/m32r/m32r.c (m32r_select_section): Likewise.
2232         * config/m88k/m88k.c (m88k_select_section): Likewise.
2233         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2234         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2235         (rs6000_elf_select_section): Likewise.
2236         * config/v850/v850.c (v850_select_section): Likewise.
2237
2238         * config/1750a/1750a.h, config/i860/sysv3.h
2239         (READONLY_DATA_SECTION_ASM_OP): New.
2240         READONLY_DATA_SECTION_ASM_OP.
2241         * config/i386/interix.c, config/i386/winnt.c
2242         (i386_pe_unique_section): Always use .rdata prefix.
2243         * config/pa/som.h (readonly_data): Always switch to read-only section.
2244         (READONLY_DATA_SECTION): Predicate on flag_pic.
2245         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2246         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2247         (READONLY_DATA_SECTION): Update.
2248
2249 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2250
2251         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2252         is used without -Wformat.
2253         * c-common.h (warn_format_zero_length): Declare extern.
2254         * c-decl.c (warn_options): Add "format-zero-length".
2255         * c-format.c (warn_format_zero_length): Declare.
2256         (set_Wformat): Set warn_format_zero_length for -Wformat.
2257         (check_format_info): Only warn about zero-length formats if
2258         warn_format_zero_length is true.  Include the format type
2259         name in the warning message.
2260         * doc/invoke.texi: Document -Wformat-zero-length.
2261         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2262
2263 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2264
2265         * timevar.c: Fix formatting.
2266         * tlink.c: Likewise.
2267         * toplev.c: Likewise.
2268         * tree-dump.c: Likewise.
2269         * tree-inline.c: Likewise.
2270
2271 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2272
2273         * cppinit.c (cpp_post_options): If preprocessed, turn off
2274         traditional.  If traditional, turn off column numbers.
2275         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2276         * cpptrad.c (handle_newline): Update line_base.
2277         (skip_comment): Handle -Wcomment.
2278
2279 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2280
2281         * cppinit.c (struct builtin): Remove unused fields.
2282         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2283         (operator_array): New - was second half of builtin_array.
2284         (init_builtins): Simplify loop over builtin_array/operator_array.
2285
2286 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2287
2288         * defaults.h (UNIQUE_SECTION): Remove.
2289         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2290
2291 2002-05-17  Richard Henderson  <rth@redhat.com>
2292
2293         * expr.c (init_expr_once): Don't use start/end_sequence.
2294         Use rtx_alloc instead of emit_insn.
2295         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2296         (lang_independent_init): ... not here.
2297
2298 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2299
2300         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2301
2302 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2303
2304         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2305         for fixed registers, possibly used for global register variables.
2306         (initial_elimination_offset, avr_output_function_prologue,
2307         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2308
2309 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2310
2311         * Makefile.in: Update for cpptrad.c.
2312         * cpphash.h (struct cpp_buffer): New members for buffer
2313         overlays.
2314         (struct cpp_reader): New members for traditional output.
2315         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2316         * cppinit.c (cpp_create_reader): Set trad_line.
2317         (cpp_destroy): Free trad_out_base if used.
2318         (cpp_read_main_file): Overlay an empty buffer if traditional.
2319         (cpp_finish_options): Don't do builtins.
2320         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2321         (cpp_handle_option): Handle it.
2322         * cpplex.c (continue_after_nul): New.
2323         (_cpp_lex_direct): Use handle_nul.
2324         * cpplib.h (struct cpp_options): New traditional option.
2325         * cpptrad.c: New file.
2326
2327 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2328
2329         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2330         and set the options flag.
2331         * cppinit.c (lang_flags): Remove objc.
2332         (lang_defaults): Remove OBJC and OBJCXX.
2333         (set_lang): Update.
2334         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2335         (cpp_handle_option): Remove -+ and -lang-objc++.
2336         For ObjC, just set a flag.
2337         (print_help): Update.
2338         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2339
2340 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2341
2342         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2343         bootstrap with -mips3.
2344
2345 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2346
2347         * final.c: Fix formatting.
2348         * fix-header.c: Likewise.
2349         * flow.c: Likewise.
2350         * fold-const.c: Likewise.
2351         * function.c: Likewise.
2352
2353 2002-05-17  David S. Miller  <davem@redhat.com>
2354
2355         PR c/6689, PR optimization/6615
2356         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2357         and make it a pointer to rtx.  Update comments.
2358         (update_equiv_regs): When scanning for equivalences, record
2359         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2360         it while making the equiv replacements.
2361
2362 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2363
2364         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2365
2366 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2367
2368         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2369         when encoding visibility into SYMBOL_REF_FLAG.
2370
2371 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2372
2373         * expr.c (force_operand): Fix reversed move.
2374
2375 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2376
2377         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2378         that can be ignored.
2379
2380 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2381
2382         * doc/install.texi (Final install): Recommend to install into a
2383         "clean" target directory.
2384
2385 2002-05-17  Richard Henderson  <rth@redhat.com>
2386
2387         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2388         for code blocks.  Tidy whitespace.
2389
2390 2002-05-17  Richard Henderson  <rth@redhat.com>
2391
2392         * hooks.c (hook_tree_bool_false): New.
2393         * hooks.h: Declare it.
2394         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2395         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2396         * target.h (select_section, unique_section): New.
2397         (in_small_data_p): New.
2398         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2399         (variable_section, output_constant_def_contents): Likewise.
2400         (default_select_section, default_unique_section): New.
2401         (categorize_decl_for_section, default_elf_select_section): New.
2402         * output.h: Declare them.
2403
2404         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2405         (TARGET_ASM_SELECT_SECTION): New.
2406         (SELECT_SECTION): Move ...
2407         * config/darwin.c (machopic_select_section): ... here.
2408         * config/darwin-protos.h: Update.
2409
2410         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2411         (SELECT_SECTION): Move ...
2412         * config/nextstep.c (nextstep_select_section): ... here.
2413         * config/nextstep-protos.h: Update.
2414
2415         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2416         (TARGET_ASM_SELECT_SECTION): New.
2417         * config/svr3.h (SELECT_SECTION): Remove.
2418
2419         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2420         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2421         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2422         (alpha_encode_section_info): Use it.
2423         * config/alpha/alpha-protos.h: Update.
2424         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2425         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2426         (TARGET_ASM_SELECT_SECTION): New.
2427         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2428
2429         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2430         (TARGET_ASM_UNIQUE_SECTION): New.
2431
2432         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2433         (avr_unique_section): Rename from unique_section; make static.
2434         * config/avr/avr-protos.h: Update.
2435         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2436
2437         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2438
2439         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2440         (TARGET_ASM_UNIQUE_SECTION): New.
2441         * config/i386/i386-interix.h: Likewise.
2442         * config/i386/win32.h: Likewise.
2443         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2444         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2445         * config/i386/sco5.h (SELECT_SECTION): Remove.
2446         (TARGET_ASM_SELECT_SECTION): New.
2447         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2448
2449         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2450         instead of SELECT_SECTION.
2451         * config/m68k/dpx2.h: Likewise.
2452         * config/rs6000/lynx.h: Likewise.
2453
2454         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2455         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2456         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2457         (ia64_in_small_data_p): New.
2458         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2459         (ia64_aix_select_section, ia64_aix_unique_section): New.
2460         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2461         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2462
2463         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2464         (TARGET_ASM_SELECT_SECTION): New.
2465         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2466         * config/m32r/m32r-protos.h: Update.
2467
2468         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2469         (SELECT_SECTION): Move ...
2470         * config/m88k/m88k.c (m88k_select_section): ... here.
2471
2472         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2473         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2474         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2475         (mcore_unique_section): Make static.
2476         * config/mcore/mcore-protos.h: Update.
2477
2478         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2479         (TARGET_ASM_UNIQUE_SECTION): New.
2480         * config/mips/elf64.h: Likewise.
2481         * config/mips/iris6gld.h: Likewise.
2482         * config/mips/linux.h: Likewise.
2483         * config/mips/mips-protos.h: Update.
2484         * config/mips/mips.c (mips_select_section): Add align argument.
2485         * config/mips/mips.h (SELECT_SECTION): Remove.
2486         (TARGET_ASM_SELECT_SECTION): New.
2487
2488         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2489         * config/mmix/mmix.c (mmix_select_section): Remove.
2490         (mmix_unique_section): Remove.
2491         * config/mmix/mmix-protos.h: Update.
2492
2493         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2494         (SELECT_SECTION): Move ...
2495         * config/pa/pa.c (pa_select_section): ... here.
2496         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2497
2498         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2499         from rs6000_select_section and make static.
2500         (rs6000_elf_unique_section): Similarly.
2501         (rs6000_xcoff_select_section): From xcoff.h.
2502         (rs6000_xcoff_unique_section): Likewise.
2503         * config/rs6000/rs6000-protos.h: Update.
2504         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2505         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2506         * config/rs6000/xcoff.h: Likewise.
2507
2508         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2509         (SELECT_SECTION): Move ...
2510         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2511
2512         * config/v850/v850.h (SELECT_SECTION): Move ...
2513         * config/v850/v850.c (v850_select_section): ... here.
2514         (TARGET_ASM_SELECT_SECTION): New.
2515
2516         * config/vax/vms.h (SELECT_SECTION): Move ...
2517         * config/vax/vax.c (vms_select_section): ... here.
2518         (TARGET_ASM_SELECT_SECTION): New.
2519
2520         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2521         for the target hooks.
2522
2523 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
2524
2525         * config/arm/arm.c (emit_multi_reg_push): Do not set
2526         RTX_FRAME_RELATED_P on the SEQUENCE.
2527
2528 2002-05-16  Richard Henderson  <rth@redhat.com>
2529
2530         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2531         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
2532
2533 2002-05-16  Richard Henderson  <rth@redhat.com>
2534
2535         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2536
2537         * config/ia64/ia64.c (saveable_obstack): Do not declare.
2538
2539 2002-05-16  Richard Henderson  <rth@redhat.com>
2540
2541         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2542         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2543         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2544         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2545         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2546         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2547         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2548         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2549         Revert "Basic block renumbering removal", and two followup patches.
2550
2551 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2552
2553         * lcm.c (optimize_mode_switching): Revert previous change.
2554
2555 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2556
2557         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2558         with only extant block numbers.
2559
2560 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2561
2562         * lcm.c (optimize_mode_switching): Fix typo.
2563
2564 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2565
2566         * flow.c (calculate_global_regs_live): Queue blocks in program order.
2567
2568 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2569
2570         * doc/install.texi (Configuration): Document PWDCMD.
2571
2572 2002-05-16  Dale Johannesen  <dalej@apple.com>
2573
2574         * combine.c (cant_combine_insn_p):  Reenable combinations
2575         involving hard regs unless CLASS_LIKELY_SPILLED_P.
2576
2577 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2578
2579         * c-common.c (cb_register_builtins): Handle more built-ins
2580         here rather than in gcc.c specs.
2581         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2582         (cpp_options): Pass -O flags even when only preprocessing.
2583         * toplev.c (set_fast_math_flags): New prototype.
2584         (fast_math_flags_set_p): New.
2585         (set_no_fast_math_flags): Remove.
2586         (decode_f_option): Update.
2587         * toplev.h (set_fast_math_flags): Update.
2588         (fast_math_flags_set_p): New.
2589         (set_no_fast_math_flags): Remove.
2590 config:
2591         * c4x/c4x.c (c4x_override_options): Update.
2592
2593 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
2594
2595         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2596         Default-define here.
2597         (builtin_define_with_value): Can now wrap the expansion in
2598         quotation marks if such is wanted.
2599         (cb_register_builtins): Update calls to builtin_define_with_value.
2600         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2601         here.
2602         (c_common_init): Set options->stdc_0_in_system_headers.
2603         * c-lex.h: Update prototype of builtin_define_with_value.
2604         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2605         and REGISTER_PREFIX.
2606
2607         * cppinit.c (VERS, ULP, C, X): Kill.
2608         (builtin_array): Remove entries for __VERSION__,
2609         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2610         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
2611         a constant.
2612         (init_builtins): Kill off a bunch of now-dead code.
2613         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2614         -fno-leading-underscore.
2615         (cpp_handle_option): Remove code to set user_label_prefix.
2616         (cpp_post_options): Likewise.
2617
2618         * cpplib.h (struct cpp_options): Remove user_label_prefix.
2619         (stdc_0_in_system_headers): New.
2620         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2621         stdc_0_in_system_headers) too to decide the value of __STDC__.
2622
2623         * tradcpp.c (user_label_prefix): Kill.
2624         (main): Remove code handling -f(no-)leading-underscore.
2625         (initialize_builtins): Don't define __REGISTER_PREFIX__
2626         or __USER_LABEL_PREFIX__.
2627         (install_value): Wrap compound statement in dummy loop so the
2628         macro works properly in an if statement.
2629
2630
2631 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
2632
2633         * loop.h (struct loop_info): Add member has_prefetch.
2634         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2635         (prescan_loop): Initialize has_prefetch.
2636         (struct prefetch_info): Change prefetch_in_loop and
2637         prefetch_before_loop from bit fields to ints.
2638         (emit_prefetch_instructions): Several small fixes.
2639         (check_dbra_loop): Don't reverse loop that uses prefetch.
2640
2641 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2642
2643         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2644         * configure.in: Likewise.
2645         * fixinc/check.tpl: Likewise.
2646         * fixinc/fixinc.dgux: Likewise.
2647         * fixinc/fixinc.svr4: Likewise.
2648         * fixinc/fixinc.winnt: Likewise.
2649         * fixinc/fixincl.sh: Likewise.
2650         * fixproto: Likewise.
2651         * configure: Regenerate.
2652
2653 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2654
2655         Basic block renumbering removal:
2656         * basic_block.h (struct basic_block_def): Renamed index to sindex,
2657         added prev_bb and next_bb fields.
2658         (n_basic_blocks): Renamed to num_basic_blocks.
2659         (last_basic_block): New, index of last basic block.
2660         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2661         traversing basic block chain.
2662         (BLOCK_NUM): index -> sindex.
2663         (create_basic_block_structure, create_basic_block): Declaration changed.
2664         (debug_num2bb): Declare.
2665         (expunge_block_nocompact): Declaration removed.
2666         (link_block, unlink_block, compact_blocks): Declare.
2667         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2668         * cfg.c (entry_exit_blocks): Initialize new fields.
2669         (clear_edges, alloc_block, expunge_block, cached_make_edge,
2670         redirect_edge_pred, dump_flow_info, dump_edge_info,
2671         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2672         free_aux_for_edges): Modified.
2673         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2674         (expunge_block_nocompact): Removed.
2675         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2676         find_unreachable_blocks, create_edge_list, print_edge_list,
2677         verify_edge_list, flow_edge_list_print, remove_fake_successors,
2678         remove_fake_edges, flow_reverse_top_sort_order_compute,
2679         flow_depth_first_order_compute, flow_preorder_transversal_compute,
2680         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2681         flow_dfs_compute_reverse_execute): Modified.
2682         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2683         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2684         Modified.
2685         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2686         merge_blocks_move_predecessor_nojumps,
2687         merge_blocks_move_successor_nojumps, merge_blocks,
2688         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2689         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2690         * cfglayout.c (skip_insns_after_block, label_for_bb,
2691         record_effective_endpoints, scope_to_insns_finalize,
2692         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2693         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2694         cfg_layout_duplicate_bb): Modified.
2695         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2696         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2697         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2698         flow_loops_find, flow_loop_outside_edge_p): Modified.
2699         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2700         flow_delete_block, compute_bb_for_insn, split_block,
2701         try_redirect_by_replacing_jump, redirect_edge_and_branch,
2702         force_nonfallthru_and_redirect, tidy_fallthru_edge,
2703         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2704         commit_edge_insertions, commit_edge_insertions_watch_calls,
2705         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2706         purge_all_dead_edges): Modified.
2707         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2708         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2709         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2710         Modified.
2711         * conflict.c (conflict_graph_compute): Modified.
2712         * df.c (FOR_ALL_BBS): Removed.
2713         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2714         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2715         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2716         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2717         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2718         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2719         * final.c (compute_alignments, final_scan_insn): Modified.
2720         * flow.c (verify_local_live_at_start, update_life_info,
2721         update_life_info_in_dirty_blocks, free_basic_block_vars,
2722         delete_noop_moves, calculate_global_regs_live,
2723         initialize_uninitialized_subregs, allocate_bb_life_data,
2724         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2725         mark_used_reg, count_or_remove_death_notes): Modified.
2726         * function.c (thread_prologue_and_epilogue_insns): Modified.
2727         * gcse.c (struct null_pointer_info): Change typo of current_block
2728         to basic_block.
2729         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2730         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2731         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2732         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2733         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2734         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2735         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2736         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2737         pre_delete, one_pre_gcse_pass, compute_transpout,
2738         invalidate_nonnull_info, delete_null_pointer_checks_1,
2739         free_code_hoist_mem, compute_code_hoist_vbeinout,
2740         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2741         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2742         compute_store_table, build_store_vectors, insert_insn_start_bb,
2743         insert_store, replace_store_insn, free_store_memory, store_motion):
2744         Modified.
2745         * global.c (global_alloc, global_conflicts, mark_elimination,
2746         build_insn_chain): Modified.
2747         * graph.c (print_rtl_graph_with_bb): Modified.
2748         * haifa-sched.c (sched_init): Modified.
2749         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2750         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2751         if_convert): Modified.
2752         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2753         compute_insert_delete, pre_edge_lcm, compute_available,
2754         compute_farthest, compute_nearerout, compute_rev_insert_delete,
2755         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2756         Modified.
2757         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2758         * loop.c (loop_dump_aux): Modified.
2759         * predict.c (combine_predictions_for_insn, estimate_probability,
2760         last_basic_block_p, process_note_prediction, process_note_predictions,
2761         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2762         expensive_function_p, estimate_bb_frequencies,
2763         compute_function_frequency): Modified.
2764         * print-rtl.c (print_rtx): Modified.
2765         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2766         get_exec_counts, compute_branch_probabilities, compute_checksum,
2767         branch_prob, find_spanning_tree): Modified.
2768         * recog.c (split_all_insns, peephole2_optimize): Modified.
2769         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2770         convert_regs_1, convert_regs_2, convert_regs): Modified.
2771         * regclass.c (scan_one_insn, regclass): Modified.
2772         * regmove.c (mark_flags_life_zones, regmove_optimize,
2773         combine_stack_adjustments): Modified.
2774         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2775         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2776         * reorg.c (dbr_schedule): Modified.
2777         * resource.c (find_basic_block, init_resource_info): Modified.
2778         * sbitmap.c (sbitmap_intersection_of_succs,
2779         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2780         sbitmap_union_of_preds): Modified.
2781         * sched-deps.c (init_dependency_caches): Modified.
2782         * sched-ebb.c (schedule_ebbs): Modified.
2783         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2784         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2785         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2786         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2787         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2788         ssa_const_prop): Modified.
2789         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2790         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2791         * ssa.c (remove_phi_alternative, find_evaluations,
2792         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2793         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2794         make_regs_equivalent_over_bad_edges,
2795         make_equivalent_phi_alternatives_equival,
2796         compute_conservative_reg_partition,
2797         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2798         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2799         Modified.
2800
2801 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
2802
2803         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2804
2805 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
2806
2807         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2808         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2809         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2810         calling CONSTANT_POOL_ADDRESS_P.
2811         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2812         to decide whether to define __arm__ or __thumb.
2813         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2814         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2815
2816 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2817
2818         * config/arc/arc.h (CPP_PREDEFINES): Remove.
2819         (CPP_SPEC): Update.
2820         (TARGET_CPU_CPP_BUILTINS): New.
2821
2822 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2823
2824         * cpphash.h (cpp_macro): Move here, and make expansion a union.
2825         * cppmacro.c (cpp_macro): Remove.
2826         (enter_macro_context, replace_args, warn_of_redefinition,
2827         _cpp_create_definition, cpp_macro_definition): Update.
2828
2829 2002-05-16  Jason Merrill  <jason@redhat.com>
2830
2831         * config/mips/mips.c (mips_output_external): Don't do sdata
2832         optimization for a variable with DECL_COMDAT set.
2833
2834 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2835
2836         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2837         Cleanups for accepting modifiers on pointers.
2838         Fix predicate typos.
2839         Allow long pointers as well as int pointers.
2840
2841 2002-05-15  Richard Henderson  <rth@redhat.com>
2842
2843         * varasm.c (merge_weak): Remove special case for extern and common.
2844
2845 2002-05-15  Matt Hiller  <hiller@redhat.com>
2846
2847         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2848         XFAILing.
2849         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2850         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2851         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2852         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2853         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2854         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2855
2856 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2857
2858         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2859
2860 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2861
2862         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2863         ("altivec_mfvscr"): Read from VSCR.
2864
2865         Add vscr sets for the following insns: altivec_vctuxs,
2866         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2867         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2868         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2869         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2870         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2871         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2872         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2873         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2874         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2875         altivec_vsum2sws, altivec_vsumsws.
2876
2877         * config/rs6000/rs6000.h: Add VSCR fixed register.
2878         (CALL_REALLY_USED_REGISTERS): Add vscr.
2879         (CALL_USED_REGISTERS): Same.
2880         (FIXED_REGISTERS): Same.
2881         (REG_ALLOC_ORDER): Same.
2882         (reg_class): Add VSCR_REGS.
2883         (REG_CLASS_NAMES): Same.
2884         (REG_CLASS_CONTENTS): Same.
2885         (VSCR_REGNO): New.
2886         (REGISTER_NAMES): Add vscr.
2887         (DEBUG_REGISTER_NAMES): Same.
2888         (ADDITIONAL_REGISTER_NAMES): Same.
2889         (FIRST_PSEUDO_REGISTER): Increment.
2890         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2891
2892 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
2893
2894         * fold-const.c (fold): Fix a typo.
2895
2896 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
2897
2898         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2899         comparison against the highest or lowest integer value before
2900         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2901         transformation and that of an unsigned comparison against 0
2902         right after.
2903
2904 2002-05-15  Richard Henderson  <rth@redhat.com>
2905
2906         * varasm.c (merge_weak): Error for any weakening after definition.
2907         Adjust weakening after use warning to catch more cases.
2908         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2909         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2910
2911 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
2912
2913         * invoke.texi (-malign-double): Re-add lost warning.
2914
2915         * i386-protos.h (x86_output_mi_thunk): Declare.
2916         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2917         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2918
2919         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2920         when flag_asynchronous_unwind_tables is set.
2921
2922         * flags.h (flag_reorder_functions): Declare.
2923         * function.c (prepare_function_start): Initialize frequnecy.
2924         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2925         * Makefile.in (predict.o): Add dependency on target.h and params.h
2926         * defaults.h (HOT_TEXT_SECTION_NAME,
2927         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2928         * predict.c (choose_function_section): New function.
2929         (estimate_bb_frequencies): Use it.
2930         * toplev.c (flag_reorder_functions): New global variable.
2931         (lang_independent_options): New.
2932         (parse_options_and_default_flags): Set.
2933         * varasm.c (assemble_start_function): Bypass functdion alignment
2934         for never executed functions.
2935         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2936         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2937         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2938         Document.
2939
2940         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
2941
2942         * predict.c: Inlude profile.h
2943         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2944         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2945         Use the information about maximal counter in the program.
2946
2947         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
2948
2949         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2950         probably_never_executed_bb_p): New functions.
2951         * cfgcleanup.c (outgoing_edges_match): Use them.
2952         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2953         (maybe_hot_bb_p, probably_cold_bb_p,
2954         probably_never_executed_bb_p): New functions.
2955
2956         * function.h (function): Add new field function_frequency.
2957         * predict.c (compute_function_frequency): New function.
2958         (estimate_probability): Call it.
2959
2960 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
2961
2962         PR optimization/5172, optimization/5200
2963         * gcse.c (gcse_main): Disable store_motion.
2964
2965 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
2966
2967         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2968         (c_common_nodes_and_builtins): Use it.
2969         (builtin_define_with_value): New function.
2970         (cb_register_builtins): Define __SIZE_TYPE__,
2971         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
2972         using builtin_define_with_value.  Use consistent notation when
2973         defining __GXX_WEAK__.
2974         (WCHAR_TYPE_SIZE): Don't redefine.
2975         (combine_strings): Don't use WCHAR_TYPE_SIZE.
2976
2977         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
2978         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
2979         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
2980         * tradcpp.c (initialize_builtins): Likewise.
2981         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
2982
2983         * c-lex.h (builtin_define_with_value): Prototype.
2984         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
2985         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
2986         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
2987
2988         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2989         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
2990         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
2991         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
2992         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
2993         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
2994         config/sparc/sol2-bi.h, config/sparc/sparc.h:
2995         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
2996         to __SIZE_TYPE__ etc from all spec strings. When this makes
2997         extra specs empty, delete them.
2998
2999 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3000
3001         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3002         for PA8000 or generating dwarf2 call frame information.
3003         (output_call): Remove DO_FRAME_NOTES check from return pointer
3004         optimization.
3005         (following_call): Return 0 when scheduling for PA8000 or generating
3006         dwarf2 call frame information.  Revise comment.
3007
3008 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3009
3010 config/alpha:
3011         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3012         and __IEEE_FP_INEXACT as appropriate.
3013         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3014         (CPP_SPEC): Remove ieee defines.
3015         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3016
3017 2002-05-14  Richard Henderson  <rth@redhat.com>
3018
3019         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3020         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3021
3022 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3023
3024         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3025         (CPP_SPEC): Update.
3026         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3027         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3028         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3029         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3030         (EXTRA_SPECS): Update.
3031         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3032         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3033         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3034         define TARGET_OS_CPP_BUILTINS if necessary.
3035
3036 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3037
3038         * gcc.c (cpp_options): Must pass -m* and -f* options
3039         to the front end even when only preprocessing.
3040         (cc1_options): Remove redundant -lang-c.
3041         * tradcpp.c (main): Ignore -m options.
3042 objc:
3043         * lang-specs.h: Similarly.
3044
3045 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3046
3047         * genautomata.c (transform_3): Add code for transformation
3048         `(A,B,...)+C -> A+C,B,...'.
3049
3050 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3051
3052         * final.c (end_final): Do not output profile_arcs constructor, when
3053         no functions are instrumented.
3054
3055 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3056
3057         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3058
3059 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3060
3061         * doc/install.texi: Remove special markup originally required for
3062         HTML generation with texi2html.
3063
3064 2002-05-14  Andreas Schwab  <schwab@suse.de>
3065
3066         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3067         SELECT_SECTION.
3068         (UNIQUE_SECTION): Define to get small data correctly.
3069
3070         * varasm.c (resolve_unique_section): Add third parameter
3071         flag_function_or_data_sections and use it instead of
3072         flag_function_sections.
3073         (assemble_start_function): Pass flag_function_sections.
3074         (asm_emit_uninitialised): Pass flag_data_sections.
3075         (assemble_variable): Likewise.
3076
3077 2002-05-14  Richard Henderson  <rth@redhat.com>
3078
3079         * config/i386/i386.md: Use define_constants for unspec numbers.
3080         * config/i386/i386.c: Likewise.
3081
3082 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3083
3084         * doc/contrib.texi: Update my entry.
3085
3086 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3087
3088         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3089         * fixinc/fixincl.x: Regenerated.
3090         * fixinc/tests/base/math.h: Update.
3091         * fixinc/tests/base/testing.h: Likewise.
3092
3093 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3094
3095         * genattr.c (gen_attr): Don't emit a comma after the last
3096         enumerator.
3097
3098 2002-05-13  Richard Henderson  <rth@redhat.com>
3099
3100         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3101         by non-local gotos.
3102         * recog.c (peephole2_optimize): Likewise.
3103
3104 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3105
3106         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3107         input to O_BINARY.
3108
3109 2002-05-13  Jeffrey A Law  (law@redhat.com)
3110
3111         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3112         Update prototype and callers.
3113         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3114         the mem_set_list which reference the stack pointer, as do
3115         calls to constant functions as they may clobber outgoing
3116         argument space.
3117
3118         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3119
3120         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3121         (ia32_multipass_dfa_lookahead): New function.
3122
3123 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3124
3125         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3126         (translate_options): Remove 'V'.
3127         (process_command): Similarly.
3128 doc:
3129         * invoke.texi: Remove documentation of 'V'.
3130
3131 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3132
3133         * config/s390/linux.h: Revert 2002-04-22 changes.
3134
3135 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3136
3137         * config/fr30/fr30.md: Only allow splits of immediate loads
3138         if the destination is a register.
3139
3140 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3141
3142         * Makefile.in (c-common.o, cppinit.o): Update.
3143         * c-common.c: Include except.h.
3144         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3145         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3146         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3147         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3148         CPP_PREDEFINES): Handle here.
3149 config:
3150         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3151         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3152         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3153         TARGET_OS_CPP_BUILTINS.
3154         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3155         (CPP_SPEC, EXTRA_SPECS): Update.
3156         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3157         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3158         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3159         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3160         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3161 doc:
3162         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3163         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3164
3165 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3166
3167         * emit-rtl.c (global_rtl): Update comment.
3168         (const_double_htab, const_double_htab_hash,
3169         const_double_htab_hash, lookup_const_double): New.
3170         (const_int_htab_hash, const_int_htab_eq): Remove const
3171         qualifiers, which cause tons of warnings with RTL checking on.
3172         (gen_rtx_CONST_DOUBLE): Deleted.
3173         (const_double_from_real_value): New function - bears some
3174         resemblance to the former immed_real_const_1.
3175         (immed_double_const): Moved here from varasm.c and
3176         simplified.
3177         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3178         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3179         (gen_rtx): Use immed_double_const.
3180         (init_emit_once): Initialize the const_double_htab.  Use
3181         REAL_VALUE_FROM_INT where possible.  Can now use
3182         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3183         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3184         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3185         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3186         (init_varasm_status, mark_varasm_status): Don't touch
3187         x_const_double_chain.
3188
3189         * output.h: Delete prototype for clear_const_double_mem.
3190         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3191         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3192         const_double_from_real_value, not immed_real_const_1, and use
3193         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3194         CONST_DOUBLE_ATOF.
3195         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3196         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3197         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3198         (gen_rtx_REG): Second arg is unsigned.
3199
3200         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3201         (excluded_rtx): New, return true for CONST_DOUBLE.
3202         (genmacro): Write nothing for excluded codes.
3203         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3204         * expr.c (expand_expr): Likewise.
3205         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3206         CONST_DOUBLE_CHAIN.
3207         * toplev.c (rest_of_compilation): Don't call
3208         clear_const_double_mem.
3209
3210         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3211         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3212         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3213         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3214         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3215         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3216         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3217         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3218
3219 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3220
3221         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3222
3223 2002-05-12  Tom Tromey  <tromey@redhat.com>
3224
3225         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3226
3227 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3228
3229         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3230         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3231         * gensupport.h: Prototype new routines.
3232         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3233         use of printf.
3234         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3235         (next_comma_elt): Use scan_comma_elt.
3236
3237         * config/i386/i386.md: Use new attribute notation to break up
3238         long lines in define_attr forms.
3239
3240 2002-05-12  Richard Henderson  <rth@redhat.com>
3241
3242         * expr.c (compress_float_constant): New.
3243         (emit_move_insn): Use it.
3244         (float_extend_from_mem): New.
3245         (init_expr_once): Initialize it.
3246         * real.c (exact_real_truncate): New.
3247
3248         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3249         dropped into memory; penalize for size.
3250         (RTX_COSTS): FLOAT_EXTEND is free.
3251         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3252         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3253
3254 2002-05-12  Richard Henderson  <rth@redhat.com>
3255
3256         * profile.h (profile_info): Add missing extern to declaration.
3257         * profile.c (profile_info): Define it.
3258
3259 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3260
3261         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3262         used for DImode and TImode.
3263
3264 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3265
3266         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3267         fake a newline.
3268
3269 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3270
3271         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3272         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3273         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3274         (rs6000_override_options): Handle -m(no-)longcall.
3275         (init_cumulative_args, output_mi_thunk): Check for both
3276         longcall and shortcall attributes on the function.
3277         (rs6000_attribute_table): Add "shortcall".
3278         (rs6000_handle_longcall_attribute): Update comment.
3279         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3280         altivec_expand_ternop_builtin): Add default clauses to switches
3281         to silence warnings.
3282
3283         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3284         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3285         (TARGET_OPTIONS): Add longcall and no-longcall.
3286
3287         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3288         call_value_nonlocal_sysv): Split by alternatives.  One pair
3289         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3290         the call cookie.  The other pair accepts only LR/CTR and has
3291         no restriction.
3292
3293         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3294         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3295         tmake_file.
3296         * config/rs6000/rs6000-c.c: New file.
3297         * config/rs6000/t-rs6000-c-rule: New file.
3298         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3299         Prototype rs6000_pragma_longcall.
3300
3301         * doc/extend.texi: Document shortcall attribute.
3302         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3303
3304 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3305
3306         * reorg.c (dbr_schedule): Remove unnecessary test.
3307
3308 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3309
3310         * i386.md (testsi to testqi spliters): New.
3311
3312         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3313
3314         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3315
3316         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3317
3318         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3319         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3320         that can be made fallthru.
3321
3322         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3323
3324         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3325         (cfg_layout_initialize): Use it.
3326
3327 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3328
3329         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3330         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3331         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3332
3333 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3334
3335         * dbxout.c: Fix formatting.
3336         * dependence.c: Likewise.
3337         * df.c: Likewise.
3338         * diagnostic.c: Likewise.
3339         * doloop.c: Likewise.
3340         * dominance.c: Likewise.
3341         * doschk.c: Likewise.
3342         * dwarf2asm.c: Likewise.
3343         * dwarf2out.c: Likewise.
3344         * dwarfout.c: Likewise.
3345
3346 2002-05-10  Richard Henderson  <rth@redhat.com>
3347
3348         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3349         Convert integers constants as needed.  Replace "nwords" field with
3350         "sizeof_bb".
3351         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3352         * function.h: Fix typo in comment.
3353         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3354
3355 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3356
3357         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3358         into the equivalent (signed char)c > 0.
3359
3360 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3361
3362         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3363         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3364         (struct prefetch_info): Fix spelling of member bytes_accessed.
3365         (emit_prefetch_instructions): Make dump messages more regular;
3366         restructure code to add more dump messages; use new macros for
3367         heuristics. (There are no code generation changes in any of this).
3368
3369 2002-05-10  David S. Miller  <davem@redhat.com>
3370
3371         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3372         (struct rtx_def): Update unchanging flag comment.
3373         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3374         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3375         to be handled to INSN too.
3376         (dbr_schedule): Likewise.
3377         * resource.c (next_insn_no_annul): Likewise.
3378
3379         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3380         casing.
3381
3382 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3383
3384         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3385         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3386         (possibly) work around broken /bin/sh.
3387
3388 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3389
3390         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3391         . as N64/N32 libgcc_s.so subdirs.
3392
3393 2002-05-10  David S. Miller  <davem@redhat.com>
3394
3395         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3396
3397         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3398         more accurately.
3399         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3400         comment.
3401         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3402         * doc/rtl.texi: Document these macros more accurately.
3403         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3404         JUMP_INSNs and CALL_INSNs.
3405         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3406         or INSN_FROM_TARGET_P if the code is appropriate.
3407
3408 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3409
3410         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3411         before using SYMBOL_REF_FLAG (addr).
3412
3413         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3414         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3415         Make non-static.  Update all callers.
3416         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3417         New insns to clear/set/test a single bit in I/O address space.
3418
3419 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3420
3421         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3422
3423 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3424
3425         * Makefile.in: Update.
3426         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3427         builtin_define_std): New.
3428         (c_common_init): Register CPP builtins callback.
3429         * c-common.h (flag_iso, flag_undef): New.
3430         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3431         * c-lex.c: Don't include target.h.
3432         (cb_register_builtins): Move to c-common.c.
3433         (init_c_lex): Don't register hook here.
3434         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3435         (cpp_define, cpp_assert): Remove.
3436         * gcc.c (cc1_options): Pass -undef to front end.
3437         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3438         (TARGET_INITIALIZER): Update.
3439         * target.h (struct cpp_reader): Don't predeclare.
3440         (struct gcc_target): Remove cpp builtin hook.
3441         * tree.c (default_register_cpp_builtins): Remove.
3442 doc:
3443         * tm.texi: Update.
3444
3445 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3446
3447         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3448
3449 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3450
3451         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3452         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3453
3454 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3455
3456         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3457         * config/sparc/libgcc-sparc-glibc.ver: New file.
3458         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3459         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3460
3461 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3462
3463         PR target/6429
3464         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3465         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3466         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3467         base multilibs.
3468         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3469         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3470         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3471         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3472
3473 2002-05-09  Richard Henderson  <rth@redhat.com>
3474
3475         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3476         * config/ia64/ia64.c: Likewise.
3477
3478 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3479
3480         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3481         (save_restore_insns): Likewise.
3482         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3483         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3484
3485 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3486
3487         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3488         * i386.md: Move scheduling information into new files.
3489
3490         * i386.md (type attribute): Add "rotate" for rotate insns.
3491         (rotate insns): Set type to "rotate".
3492         (various attributes and function units): Treat rotate like shift.
3493         (pent_pair attribute): Only rotates by one bit position are
3494         pairable.
3495         (sbb insns): Explicitly set pent_pair attribute on a couple
3496         that were missing it.
3497
3498 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3499
3500         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3501         make sure that buffer starts on odd word address.
3502         (sh_va_arg): Skip odd fp registers when reading a double precision
3503         value.
3504
3505 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3506
3507         * tree.h (preserve_data, object_permanent_p, type_precision):
3508         Remove.
3509
3510 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3511
3512         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3513         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3514 doc:
3515         * cpp.texi: Update for removal of obsolete features.
3516
3517 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
3518                           Jeffrey A Law  (law@redhat.com)
3519
3520         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
3521         the DFA interface for Pentium processors.
3522         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3523         (attr_pent_pair, ix86_pent_find_pair): Remove.
3524         (ix86_sched_reorder_pentium): Remove.
3525         (ix86_sched_reorder): Remove reordering for Pentium.
3526         * i386.md (Pentium scheduling): Rewrite using DFA description.
3527
3528 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3529
3530         * cfganal.c (can_fallthru): Fix fast path.
3531         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3532         with edges to the next block.
3533
3534 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3535                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
3536
3537         * final.c (end_final): Use C trees to output data structures for profiling.
3538
3539         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3540         (profile.o): New dependency profile.h
3541         (final.o): New dependency profile.h
3542         * profile.h: New file. New global structure profile_info.
3543         * final.h (count_edges_instrumented_now): Declare.
3544         (current_function_cfg_checksum): Declare.
3545         (function_list): New structure.
3546         (functions_head, functions_tail): New static variables.
3547         (end_final): Emits more data, removed some -ax stuff.
3548         (final): Stores function names and chcksums.
3549         * gcov-io.h (__write_gcov_string): New function.
3550         (__read_gcov_string): New function.
3551         * gcov.c (read_profile): New function.
3552         (create_program_flow_graph): Uses read_profile instead of reading
3553         da_file.
3554         (read_files): Removed da_file checking, it's done by read_profile now.
3555         * libgcc2.c (bb_function_info): New structure.
3556         (bb): New field in structure, removed some -ax stuff.
3557         (__bb_exit_func): Changed structure of da_file.
3558         * profile.c (count_edges_instrumented_now): New global variable.
3559         (current_function_cfg_checksum): New global variable.
3560         (max_counter_in_program): New global variable.
3561         (get_exec_counts): New function.
3562         (compute_checksum): New function.
3563         (instrument_edges): Sets count_edges_instrumented_now.
3564         (compute_branch_probabilities): Uses get_exec_counts instead of
3565         reading da_file.
3566         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3567         (init_branch_prob): Removed da_file checking, done in get_exec_counts
3568         now.
3569         (end_branch_prob): Removed da_file checking, done in get_exec_counts
3570         now.
3571         * gcov.texi: Updated information about gcov file format.
3572
3573 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3574
3575         * sbitmap.c: Fix formatting.
3576         * scan.c: Likewise.
3577         * scan-decls.c: Likewise.
3578         * sched-deps.c: Likewise.
3579         * sched-ebb.c: Likewise.
3580         * sched-rgn.c: Likewise.
3581         * sched-vis.c: Likewise.
3582         * sdbout.c: Likewise.
3583         * sibcall.c: Likewise.
3584         * simplify-rtx.c: Likewise.
3585         * ssa.c: Likewise.
3586         * ssa-ccp.c: Likewise.
3587         * ssa-dce.c: Likewise.
3588         * stmt.c: Likewise.
3589         * stor-layout.c: Likewise.
3590         * stringpool.c: Likewise.
3591
3592 2002-05-09  David S. Miller  <davem@redhat.com>
3593
3594         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3595
3596 2002-05-07  David S. Miller  <davem@redhat.com>
3597
3598         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3599         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3600         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3601         library implementation clobbers the output before the inputs
3602         are fully consumed, use stack temporary for the output.
3603
3604 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
3605
3606         * config/netbsd.h (CPP_SPEC): Remove.
3607         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3608         * config/i386/netbsd.h (CPP_SPEC): Define.
3609         * config/ns32k/netbsd.h (CPP_SPEC): Define.
3610         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3611         * config/sparc/netbsd.h (CPP_SPEC): Define.
3612         * config/vax/netbsd.h (CPP_SPEC): Define.
3613
3614 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3615
3616         * read-rtl.c: Fix formatting.
3617         * real.c: Likewise.
3618         * recog.c: Likewise.
3619         * regclass.c: Likewise.
3620         * regmove.c: Likewise.
3621         * reg-stack.c: Likewise.
3622         * reload1.c: Likewise.
3623         * reload.c: Likewise.
3624         * resource.c: Likewise.
3625         * rtlanal.c: Likewise.
3626         * rtl.c: Likewise.
3627         * rtl-error.c: Likewise.
3628
3629 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3630
3631         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3632         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3633
3634 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
3635
3636         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3637         use __SSE2__ macro instead.
3638         * config/i386/xmmintrin.h: Likewise.
3639
3640 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
3641
3642         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3643         and use it in all invocations of these macros.  Clean up comments.
3644         * rtl.c (rtl_check_failed_flag): Add an argument for the name
3645         of the flag access macro whose check failed.
3646         * doc/rtl.texi (Flags): Document additional flag uses.
3647
3648 2002-05-08  Robert Spier <rspier@pobox.com>
3649             Neil Booth  <neil@daikokuya.demon.co.uk>
3650
3651         PR preprocessor/6521
3652         * cppfiles.c (handle_missing_header): Don't do anything
3653         different for <> includes.
3654 doc:
3655         * cppopts.texi: Update documentation for -MG.
3656
3657 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3658
3659         * cpplex.c (cpp_interpret_charconst): Truncate as well as
3660         sign-extend.
3661 doc:
3662         * cpp.texi: Clarify multichar charconst valuation.
3663
3664 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3665
3666         * doc/invoke.texi: Document -mwindiss option.
3667
3668 2002-05-08  Jason Merrill  <jason@redhat.com>
3669
3670         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3671
3672         * dwarf2out.c (gen_type_die): Abort on broken recursion.
3673
3674         PR c++/6381
3675         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3676         REAL_CST.
3677
3678 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
3679
3680         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3681         little-endian multilibs to override arm/thumb multilibs.
3682         Do not build hardware floating point multilibs, nor apcs-26
3683         multilibs for the Thumb.
3684
3685 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3686
3687         PR c/6569.
3688         * varasm.c (mark_weak): New function.
3689         (merge_weak): Use it.  Do not call declare_weak.
3690         (declare_weak): Use merge_weak.
3691
3692 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3693
3694         * cse.c (dead_libcall_p): Update counts.
3695         (delete_trivially_dead_insns): Update call of dead_libcall_p.
3696
3697 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
3698
3699         * cfglayout.c (function_tail_eff_head): Rename to ...
3700         (function_footer): ... this one.
3701         (unlink_insn_chain): New functions.
3702         (label_for_bb): Only call block_label and emit debug message.
3703         (record_effective_endpoints): Actually unlink the headers and footers.
3704         (fixup_reorder_cahin): Re-insert the unlinked sequences.
3705         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3706         * cfglayout.h (struct reorder_block_def): New fields footer/header;
3707         remove eff_head/eff_end.
3708         * rtl.h (set_first_insn): Declare.
3709         * emit-rtl.c (set_first_insn): New function.
3710
3711         * cfglayout.c (fixup_reorder_chain): Dump duplicated
3712         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3713         cfg_layout_duplicate_bb): New global function.
3714         (duplicate_insn_chain): New static function.
3715         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3716         cfg_layout_duplicate_bb): Declare.
3717         (struct reorder_block_def): Add "original" field.
3718         * emit-rtl.c (emit_copy_of_insn_after): New function.
3719         * rtl.h (emit_copy_of_insn_after): Declare.
3720
3721         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3722         (fixup_reorder_chain): properly handle edges to exit block.
3723
3724 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3725                                Jan Hubicka  <jh@suse.cz>
3726
3727         * basic-block.h (note_prediction_to_br_prob): declare.
3728         * c-semantics.c: Inlucde predit.h
3729         (expand_stmt): predict GOTO_STMT as not taken.
3730         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3731         (cleanup_cfg): Do not free tail_recursion_list.
3732         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3733         (flow_delete_block): Kill predictions past end of basic block.
3734         * output.h (delete_unreachable_blocks): Declare.
3735         * predict.c (predicted_by_p, process_note_predictions,
3736         process_note_prediction, last_block_p): New function.
3737         (estimate_probability): Bypass loop on PRED_CONTINUE;
3738         do not handle noreturn heuristics; kill PRED_RETURN; add
3739         PRED_EARLY_RETURN.
3740         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3741         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3742         * predict.h (IS_TAKEN): New constant.
3743         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3744         * rtl.c (NOTE_INSN_PREDICTION): New.
3745         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3746         New macro.
3747         (insn_note): add NOTE_INSN_PREDICTION.
3748         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3749         CFG; free tail_recursion_label_list.
3750         * stmt.c: Include predict.h;
3751         (return_prediction): New.
3752         (expand_value_return): Use it.
3753         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3754
3755 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
3756
3757         * config/mips/mips.md: Name the unspecs with define_constant.
3758         (*HILO_delay): Rename to 'hilo_delay' (no star).
3759         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3760         (reload_outdi, reload_outsi): Likewise.
3761
3762 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
3763
3764         * toplev.c: Fix formatting.
3765
3766 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
3767
3768         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3769         * configure.in (ac_rtlflag_checking): New.
3770         * doc/install.texi (--enable-checking): Document RTL flag checking.
3771
3772 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3773
3774         * c-common.c (c_common_init): Set options->unsigned_wchar.
3775         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3776         group target dependencies.
3777         (init_builtins, cpp_handle_option): Update.
3778         * cpplex.c (cpp_interpret_charconst): Update.
3779         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3780         signed_char to unsigned_char, group target dependencies.
3781         * defaults.h (WCHAR_UNSIGNED): Remove.
3782         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3783 config:
3784         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3785         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3786         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3787         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3788         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3789 doc:
3790         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3791
3792 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3793
3794         * fixinc/inclhack.def (windiss_math1): New fix.
3795         (windiss_math2): Likewise.
3796         (windiss_valist): Likewise.
3797         * fixinc/fixincl.x: Regenerated.
3798
3799 2002-05-07  Andreas Jaeger  <aj@suse.de>
3800
3801         * genautomata.c (output_internal_min_issue_delay_func): Add
3802         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3803         (output_internal_trans_func): Likewise.
3804
3805 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
3806
3807         * pa.c (hppa_profile_hook): Use force_reg to get the address
3808         of the profile hook into an appropriate pseudo register.
3809
3810 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3811
3812         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3813         (LINK_START_SPEC): Handle it.
3814         (LINK_OS_SPEC): Likewise.
3815         (CPP_SPEC): Likewise.
3816         (STARTFILE_SPEC): Likewise.
3817         (LIB_SPEC): Likewise.
3818         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
3819         all platforms.
3820         (CRTSAVRES_DEFAULT_SPEC): New macro.
3821         (LIB_WINDISS_SPEC): New macro.
3822         (CPP_OS_WINDISS_SPEC): Likewise.
3823         (STARTFILE_WINDISS_SPEC): Likewise.
3824         (ENDFILE_WINDISS_SPEC): Likewise.
3825         (LINK_START_WINDISS_SPEC): Likewise.
3826         (LINK_OS_WINDISS_SPEC): Likewise.
3827         * config/rs6000/windiss.h: New file.
3828
3829 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
3830
3831         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3832
3833 2002-05-06  David S. Miller  <davem@redhat.com>
3834
3835         * config/sparc/sparc.md (shift insns): Do not mask off
3836         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3837         take care of it.
3838
3839 2002-05-06  Richard Henderson  <rth@redhat.com>
3840
3841         PR c++/6212
3842         * expr.c (highest_pow2_factor_for_type): New.
3843         (expand_assignment): Use it.
3844
3845 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
3846
3847         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3848         unspec_volatile.
3849         ("altivec_mfvscr"): Same.
3850
3851 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
3852
3853         * rtl.h (struct rtx_def): Update comments.
3854         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
3855         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
3856         RTL_FLAG_CHECK macros with list of expected RTL codes.
3857         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3858         (rtl_check_failed_flag): New.
3859         * reload1.c (reload): Use REG macro before changing rtx to MEM.
3860         (reload_cse_noop_set_p): Check rtx code before using access macro.
3861         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3862         before using access macro.
3863
3864 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
3865
3866         * doc/rtl.texi (Flags): Update to reflect current usage.
3867
3868 2002-05-06  Roger Sayle  <roger@eyesopen.com>
3869
3870         PR opt/3995
3871         * fold-const.c (sign_bit_p): New function.
3872         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3873         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3874         Reapply fold when converting (A & C) == C into (A & C) != 0.
3875         (fold_binary_op_with_conditional_arg): Fix typo in comment.
3876
3877 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3878
3879         * c-common.c (warn_multichar): New.
3880         (c_common_init): Set CPP's warn_multichar.
3881         * c-common.h (warn_multichar): New.
3882         * c-decl.c (warn_multichar): Remove.
3883         * c-lex.c (lex_charconst): Update.
3884         * c-tree.h (warn_multichar): Remove.
3885         * cppexp.c (eval_token): Sign-extend charconst value.
3886         * cppinit.c (cpp_create_reader): Set warn_multichar.
3887         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3888         each character.  Update prototype.  Sign-extend the result.
3889         * cpplib.h: Fix conditions.
3890         (struct cpp_options): Add new warning flag.
3891         (cpp_interpret_charconst): Update prototype.
3892 doc:
3893         * cpp.texi: Update documentation.
3894
3895 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
3896
3897         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3898         Fix typo in usage of allof instead of unit.
3899
3900 2002-05-06  Richard Henderson  <rth@redhat.com>
3901
3902         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3903         and any jump or call for IN.
3904
3905 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
3906
3907         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3908         -msse2.
3909         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3910
3911 2002-05-06  Roger Sayle  <roger@eyesopen.com>
3912
3913         * fold-const.c (lshift-double): Cast the high word to an unsigned
3914         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3915         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3916         avoid compiler warning.  (fold): Remove redundant code from
3917         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3918
3919 2002-05-06  Jeff Law  <law@redhat.com>
3920
3921         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3922         * pa.c (pa_adjust_cost): Remove all true dependency cost
3923         adjustments.  Also remove support for non-DFA scheduling.
3924         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3925         to adjust true dependency costs.  Update various comments.
3926         (7100lc, 7200, 7300 scheduling): Simplify by combining the
3927         FP ALU & MPY units into a single unit.
3928
3929 2002-05-06  Catherine Moore  <clm@redhat.com>
3930
3931         * config/v850/v850.c (compute_register_save_size): Make sure
3932         to count all of the registers that will be saved.
3933
3934 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3935
3936         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3937
3938 2002-05-06  David S. Miller  <davem@redhat.com>
3939
3940         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3941         allow result to overlap input operands in memory.
3942
3943 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3944
3945 doc:
3946         * cpp.texi: Update multichar charconst docs.
3947
3948 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3949
3950         * cpplex.c (cpp_interpret_charconst): Sign-extend each
3951         character.  Don't ignore excess characters.  Treat
3952         multicharacter character constants as signed.
3953         (cpp_parse_escape): Clarify diagnostic.
3954
3955 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
3956
3957         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3958         use add instead of shift.
3959         (ashldi3_sp64): Likewise.
3960         (ashlsi3_const1, ashldi3_const1): Remove.
3961         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3962         * config/sparc/sparc.c (const1_operand): New.
3963
3964 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
3965
3966         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3967
3968 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
3969
3970         PR target/6561
3971         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
3972
3973 2002-05-05  Richard Henderson  <rth@redhat.com>
3974
3975         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
3976         memory latency adjustments.
3977         (alpha_variable_issue): Remove.
3978         (alpha_use_dfa_pipeline_interface): New.
3979         (alpha_multipass_dfa_lookahead): New.
3980         * config/alpha/alpha.md: Remove define_function_unit scheduling;
3981         include new dfa scheduling.
3982         (attr type): Add none.
3983         (blockage): Use it.
3984         * config/alpha/ev4.md: New.
3985         * config/alpha/ev5.md: New.
3986         * config/alpha/ev6.md: New.
3987
3988 2002-05-05  David S. Miller  <davem@redhat.com>
3989
3990         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
3991
3992 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
3993
3994         * cse.c: Fix formatting.
3995         * emit-rtl.c: Likewise.
3996
3997 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
3998
3999         * genautomata.c (initiate_states): Add additional guard to
4000         initialize `units_array'.
4001
4002 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4003
4004         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4005         process_unit_to_form_the_same_automaton_unit_lists,
4006         form_the_same_automaton_unit_lists
4007         check_unit_distributions_to_automata): New prototypes and
4008         functions.
4009         (check_automata): Rename it into `check_automata_insn_issues'.
4010         (unit_decl): New fields `the_same_automaton_unit' and
4011         `the_same_automaton_message_reported_p'.
4012         (unit_decl_t): New typedef.
4013         (the_same_automaton_lists): New gloval variable.
4014         (unit_regexp, unit_set_el, units_array, units_cmp,
4015         output_get_cpu_unit_code_func): Use the typedef.
4016         (evaluate_max_reserv_cycles): Increment
4017         `description->max_insn_reserv_cycles'.
4018         (initiate_states): Don't increment `max_cycles_num'.
4019         (transform_insn_regexps): Move code around transformation of
4020         regexps from `generate'.
4021         (generate): Remove call of `transform_insn_regexps'.
4022         (expand_automata): Call `transform_insn_regexps' and
4023         `check_unit_distributions_to_automata'.  Check errors before
4024         `generate'.
4025
4026         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4027         automaton `ultrasparc3_1'.
4028
4029 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4030
4031         * c-common.c (c_common_init): Set up CPP arithmetic.
4032         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4033         something reasonable for the host.
4034         (sanity_checks): Add checks.
4035         (cpp_read_main_file): Call sanity_checks() from here...
4036         (cpp_post_options): ... not here.
4037         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4038         * cpplib.h (struct cpp_options): New member int_precision.
4039
4040 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4041
4042         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4043
4044 2002-05-04  David S. Miller  <davem@redhat.com>
4045
4046         * config/sparc/linux.h, config/sparc/linux64.h
4047         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4048
4049         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4050         more RTX codes.
4051         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4052
4053         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4054         of SETs.
4055
4056 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4057
4058         * treelang; New directory for new sample language treelang.
4059
4060 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4061
4062         * Makefile.in (c-lex.o): Update.
4063         * c-lex.c: Include target.h.
4064         (cb_register_builtins): New.
4065         (init_c_lex): Set builtins callback.
4066         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4067         * cppinit.c (init_builtins): Use callback, including for
4068         GXX_WEAK.
4069         * cpplib.h (struct cpp_callbacks): New member.
4070         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4071         (TARGET_INITIALIZER): Update.
4072         * target.h (struct gcc_target): New hook.
4073         * tree.c (default_register_cpp_builtins): New.
4074         * tree.h (default_register_cpp_builtins): New.
4075 doc:
4076         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4077
4078 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4079
4080         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4081         (cpp_post_options): Move sanity checks to...
4082         (sanity_checks): New.
4083         * cpplex.c (maybe_read_ucs): Fix prototype.
4084         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4085         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4086         if necessary.
4087
4088 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4089
4090         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4091         builtins.  Use V2DI patterns instead of TI for logical operations.
4092         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4093         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4094         (ix86_expand_builtins): Change the pattern used for movntdq.
4095         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4096         sse2_nandv2di3): New patterns.
4097         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4098         on operands.
4099         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4100         (cvtdq2pd): Correct mode on operand 1.
4101         (sse2_umulsidi3): Describe without unspec.
4102         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4103         machine modes.
4104         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4105         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4106         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4107         ashlv4si3, ashlv2di3): Use SImode for shift count.
4108         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4109         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4110         New patterns.
4111         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4112         New typedefs.
4113         (__m128i, __m128d): New macros.
4114         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4115         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4116         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4117         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4118         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4119         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4120         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4121         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4122         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4123         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4124         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4125         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4126         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4127         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4128         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4129         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4130         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4131         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4132         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4133         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4134         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4135         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4136         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4137         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4138         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4139         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4140         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4141         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4142         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4143         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4144         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4145         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4146         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4147         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4148         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4149         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4150         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4151         functions.
4152         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4153         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4154
4155 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4156
4157         * dwarf2out.c: Fix formatting.
4158         * varasm.c: Likewise.
4159
4160 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4161
4162         PR c/6543
4163         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4164         clobber and use result as temporary value.
4165
4166 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4167
4168         * expr.c (force_operand): Use expand_simple_* to handle more
4169         cases.
4170
4171 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4172
4173         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4174         and sign-extension.
4175         (lex_charconst): Update for change in prototype of
4176         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4177         appropriately.
4178         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4179         * cppinit.c (cpp_create_reader): Initialize them for no
4180         change in semantics.
4181         (cpp_post_options): Add sanity checks.
4182         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4183         and truncation issues.  Calculate in type cppchar_t.
4184         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4185         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4186         run-time dependent precision correctly.  Return whether the
4187         result is signed or not.
4188         * cpplib.c (dequote_string): Use cppchar_t; update.
4189         * cpplib.h (cppchar_signed_t): New.
4190         struct cpp_options): New precision members.
4191         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4192         * cppexp.c (eval_token): Update.
4193
4194 2002-05-03  David S. Miller  <davem@redhat.com>
4195
4196         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4197         * config/sparc/sparc.c (sparc_rtx_costs): New function
4198         implementing RTX_COSTS and CONST_COSTS.
4199         * config/sparc/sparc.h (CONST_COSTS): Delete.
4200         (RTX_COSTS_CASES): Define.
4201         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4202         the work.
4203
4204         * config/sparc/sparc.md (DFA schedulers): Split out...
4205         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4206         config/sparc/sparclet.md, config/sparc/supersparc.md,
4207         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4208
4209         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4210         checks on it, always defined for Sparc.
4211
4212         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4213         Tweak, and add more detailed comments.
4214
4215 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4216
4217         * Re-apply patch accidentally reverted with
4218         DFA scheduler merge: remove all rules and variables to slurp
4219         source files out of libiberty and rebuild them with HOST_CC.
4220         ($(HOST_PREFIX_1)varray.o): New rule.
4221         (genattrtab rule): Word wrap.
4222
4223 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4224
4225         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4226         (CPP_SUBTARGET_SPEC): Define.
4227         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4228         cpp_subtarget specs.
4229         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4230
4231 2002-05-03  David S. Miller  <davem@redhat.com>
4232
4233         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4234         * target.h (struct gcc_target): Delete cycle_display member.
4235
4236         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4237         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4238         (ia64_sched_reorder2): Mention need for cycle display handling
4239         once such notes exist.
4240
4241 2002-05-03  Richard Henderson  <rth@redhat.com>
4242
4243         * real.c (etoasc): Strip most trailing zeros for clarity.
4244         * sched-vis.c: Include real.h.
4245         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4246         * Makefile.in (sched-vis.o): Add real.h.
4247
4248 2002-05-03  David S. Miller  <davem@redhat.com>
4249
4250         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4251         no longer needed.
4252
4253 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4254
4255         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4256         when we get an out of range literal.
4257         (altivec_expand_ternop_builtin): Same.
4258         (altivec_expand_unop_builtin): Same.
4259         (altivec_expand_builtin): Same, for dss.
4260         (altivec_expand_builtin): Use trees instead of rtl when
4261         determining literal argument validity.
4262
4263 2002-05-03  David S. Miller  <davem@redhat.com>
4264
4265         Delete cycle display scheduling hook.
4266         * config/ia64/ia64.c (ia64_cycle_display,
4267         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4268         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4269         and use emit_insn_before instead of ia64_emit_insn_before.
4270         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4271         (cycle_display): Delete insn pattern.
4272         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4273         (cycle_display): Delete insn pattern.
4274         * config/sparc/sparc.c (sparc_cycle_display,
4275         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4276         * doc/md.texi (cycle_display): Don't mention.
4277         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4278
4279 2002-05-03  Richard Henderson  <rth@redhat.com>
4280
4281         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4282         * recog.h: Declare them.
4283
4284         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4285         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4286         * config/sparc/sparc-protos.h: Update.
4287
4288 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4289
4290         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4291         -D__arch64__.  Add -D_LP64.
4292         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4293         from sparc.h.
4294         (CPP_ARCH64_SPEC): Likewise.
4295         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4296         (NO_BUILTIN_SIZE_TYPE): Undef.
4297
4298 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4299
4300         * genautomata.c (min_issue_delay_pass_states): Change return type
4301         in the prototype.
4302         (min_issue_delay_pass_states): Change the algorithm.
4303         (min_issue_delay): Set up min_insn_issue_delay for the state.
4304         (output_min_issue_delay_table): Interchange the nested loops and
4305         and initiate min_insn_issue_delay for states.
4306
4307 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4308
4309         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4310         jump is simplejump.
4311
4312 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4313
4314         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4315         sequence.
4316
4317 2002-05-03  Richard Henderson  <rth@redhat.com>
4318
4319         PR opt/6534
4320         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4321         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4322         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4323         code before JUMP, not EARLIEST.
4324
4325 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4326
4327         * c-format.c (check_format_info_main): Don't check for presence of
4328         parameter for * width until after operand number has been read,
4329         and only check for it if format parameters are available.
4330         Fixes PR c/6547.
4331
4332 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4333
4334         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4335         (LINK_SPEC): Undef before defining.
4336
4337 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4338
4339         PR preprocessor/6489
4340         * tradcpp.c (fixup_newlines): New.
4341         (main, finclude): Use it.
4342
4343 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4344
4345         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4346         * config/mips/mips.c (mips_unique_section): Strip encoding from
4347         decl name.
4348
4349 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4350
4351         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4352         mode.
4353
4354 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4355
4356         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4357         (Specific): Removed buildstats references.
4358         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4359         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4360         Accomodate Solaris versions beyond 8.
4361         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4362         (Specific, *-*-solaris2.8): Removed, obsolete.
4363
4364 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4365
4366         PR target/6542
4367         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4368         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4369         fill leaf_reg_remap with identity.
4370         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4371
4372 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4373
4374         * config/h8300/crti.asm: Remove trailing spaces.
4375         * config/h8300/h8300.c: Likewise.
4376         * config/h8300/lib1funcs.asm: Likewise.
4377
4378 2002-05-02  Jason Merrill  <jason@redhat.com>
4379
4380         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4381         * c-decl.c (c_init_decl_processing): Use it.
4382         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4383         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4384         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4385
4386 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4387
4388         * regrename.c: Fix formatting.
4389         * tree.c: Likewise.
4390
4391 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4392
4393         * i386.md (attribute memory): Handle compares properly.
4394
4395 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4396
4397         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4398         to none.
4399
4400 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4401
4402         * function.c: Fix formatting.
4403
4404 2002-05-02  Jan Hubicka  <jh@suse.cz>
4405
4406         * haifa-sched.c (schedule_insn): Print table of instructions and
4407         reservations.
4408         (sched_block): Do not print ready list at verbosity level 1.
4409         * sched-vis.c (print_insn): Make global.
4410         * sched-ebb.c (ebb_print_insn): Rename from...
4411         (print_insn): ... this one.
4412         * sched-int.h (print_insn): Declare
4413
4414 2002-05-02  Richard Henderson  <rth@redhat.com>
4415
4416         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4417         emitted by cycle_display.
4418
4419 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4420
4421         * doc/install.texi (*-*-freebsd*): Update to latest status.
4422
4423 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4424
4425         PR target/6540
4426         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4427         * config/float-sparc.h: Assume 128-bit long double if
4428         __LONG_DOUBLE_128__ is defined.
4429
4430 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4431
4432         * genattrtab.c (write_function_unit_info): Add a dummy element
4433         when num_units == 0.
4434
4435 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4436
4437         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4438         TYPE_MODE (double_type_node) instead of DFmode.
4439
4440 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4441
4442         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4443         jumps post reload.
4444         * toplev.c (rest_of_compilation): Revert Richard's patch.
4445
4446 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4447
4448         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4449
4450 2002-05-02  Catherine Moore  <clm@redhat.com>
4451
4452         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4453
4454 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4455
4456         * combine.c: Fix comment typos.
4457         * expr.c: Likewise.
4458         * genautomata.c: Likewise.
4459         * stmt.c: Likewise.
4460         * tree.h: Likewise.
4461
4462 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4463
4464         * doc/install.texi: State GNAT version requirements.
4465
4466 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4467
4468         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4469         of the frame pointer or arg pointer register which strict register
4470         checking is not enabled.
4471
4472 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4473
4474         * gcc.dg/altivec-8.c: New.
4475
4476         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4477         PRE_INC and PRE_DEC for altivec modes.
4478
4479 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4480
4481         * fixinc/check.tpl(set-writable): make sure the function exists first
4482         * fixinc/inclhack.def(alpha_assert): fix test_text
4483         * fixinc/tests/base/assert.h: add in missing result
4484
4485 2002-05-01  Jeff Law  <law@redhat.com>
4486
4487         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4488         'T' constraint.
4489
4490 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4491
4492         * dbxout.c (dbxout_type): Emit size information for range types,
4493         as well, but only when using GDB extensions.
4494
4495 2002-05-01  Richard Henderson  <rth@redhat.com>
4496
4497         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4498         target-independent gnu binutils date test.
4499
4500 2002-05-01  Richard Henderson  <rth@redhat.com>
4501
4502         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4503         info before expunging the block.
4504
4505 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4506
4507         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4508         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4509         -M -or -MM is in effect.
4510
4511 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4512
4513         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4514         A29k configurations.
4515         * doc/install.texi: Update to match.
4516
4517 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4518
4519         PR bootstrap/6514
4520         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4521         for duplicates. Always loop over whole list.
4522
4523 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4524
4525         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4526
4527 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4528
4529         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4530         support routines.
4531
4532 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4533
4534         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4535
4536 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
4537
4538         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4539         (nabs_nopower): Same.
4540         (floatdisf2): New pattern.
4541         (absdi2): Convert to define_insn_and_split.
4542         (nabsdi2): Same.
4543         (trunctfsf2): Same.
4544         (floatditf2): Same.
4545         (floatsitf2): Same.
4546         (fix_trunctfdi2): Same.
4547         (fix_trunctfsi2): Same.
4548
4549 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4550
4551         * doc/install.texi: Update Texinfo version requirement
4552         documentation.
4553
4554 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4555
4556         PR target/6512, PR target/5628
4557         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4558         when memory is not aligned.
4559         (movdf_insn_v9only_vis): Likewise.
4560         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4561         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4562         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4563
4564 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
4565
4566         * gcc.dg/altivec-7.c: New.
4567
4568         * config/rs6000/altivec.h: Cleanup.
4569
4570 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
4571
4572         * doc/invoke.texi (Option Summary): Add -mvrsave=.
4573         (RS/6000 and PowerPC Options): Document -mvrsave=.
4574
4575         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4576         (rs6000_altivec_vrsave_string): Same.
4577         (rs6000_override_options): Call rs6000_parse_vrsave_option.
4578         (rs6000_parse_vrsave_option): New.
4579         (rs6000_stack_info): Only generate vrsave instructions when
4580         TARGET_ALTIVEC_VRSAVE.
4581
4582         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4583         (rs6000_altivec_vrsave_string): Define extern.
4584         (rs6000_altivec_vrsave): Same.
4585         (TARGET_ALTIVEC_VRSAVE): New.
4586
4587 2002-04-30  Richard Henderson  <rth@redhat.com>
4588
4589         PR opt/6516
4590         * toplev.c (rest_of_compilation): Don't run cross-jump before
4591         bb-reorder.
4592
4593 2002-04-30  Tom Rix  <trix@redhat.com>
4594
4595         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4596         check which_alternative.
4597
4598 2002-04-30  Kazu Hirata  <kazu@hxi.com>
4599
4600         * cpplex.c: Fix comment formatting.
4601         * function.c: Likewise.
4602         * integrate.c: Likewise.
4603         * regrename.c: Likewise.
4604         * sibcall.c: Likewise.
4605         * simplify-rtx.c: Likewise.
4606         * tree-inline.c: Likewise.
4607
4608 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4609
4610         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4611         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4612         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4613         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4614         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4615         * pa/x-ada: New file.  Define ADA_CFLAGS.
4616
4617 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
4618
4619         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4620         from MMIX_LAST_REGISTER_FILE_REGNUM.
4621         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4622         (struct machine_function): New member highest_saved_stack_register
4623         previously static variable in mmix.c.
4624         (MACHINE_DEPENDENT_REORG): Define.
4625         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4626         (MMIX_OUTPUT_REGNO): New.
4627         (mmix_target_asm_function_prologue): Move calculation of last used
4628         saved-stack-register into...
4629         (mmix_machine_dependent_reorg): New function.  Update to also handle
4630         !TARGET_ABI_GNU.
4631         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4632         register names, simplify somewhat by new variable regno.
4633         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
4634         register.
4635         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4636         emitting register names.
4637         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4638         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4639         Remove fixed FIXME.
4640         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4641         Declare.
4642
4643         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4644
4645 2002-04-30  Richard Henderson  <rth@redhat.com>
4646
4647         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4648         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4649         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4650         emit_tfmode_cvt): New.
4651         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4652         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4653         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4654         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4655         * config/sparc/sparc-protos.h: Update.
4656
4657 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
4658
4659         * install.texi (Final install): Add to the list of info to include
4660         in a report of a successful bootstrap, and add link to 3.1 list.
4661
4662 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
4663
4664         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4665         (mode): Add vector modes
4666         (i387): Kill attribute.
4667         (unit): New attribute.
4668         (length_immediate): Grok new types.
4669         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4670         (modrm): Use "unit".
4671         (memory): Handle MMX/SSE properly.
4672         (scheduling descriptions): Kill uses of fop1.
4673         (sse, mmx, fp patterns): Set type and mode properly.
4674
4675 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
4676
4677         * pa.c (override_options): Default to PA8000 scheduling.
4678         * doc/invoke.texi (HP-PA options): Mention newly added 7300
4679         scheduling parameter.
4680
4681         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4682         handling of double precision multiplies.
4683
4684         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4685         fpdiv and fpsqrt instructions.
4686         (7200 & 7300 scheduling): Fix typo in handling of
4687         store-load and store-store penalties.
4688
4689 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4690
4691         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4692         mips.  Add two missing commas.
4693
4694 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
4695
4696         * doc/contrib.texi (Contributors): Update Paolo Carlini's
4697         and Benjamin Kosnik's entries.
4698
4699 2002-04-29  David S. Miller  <davem@redhat.com>
4700
4701         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4702         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4703         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4704         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4705
4706 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4707
4708         * combine.c (find_split_point): Use gen_int_mode.
4709
4710 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4711
4712         Merging code from dfa-branch:
4713
4714         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
4715
4716         * genautomata.c (output_reserv_sets): Fix typo.
4717
4718         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
4719
4720         * genautomata.c (output_reserv_sets): Remove
4721         next_cycle_output_flag.
4722
4723         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
4724
4725         * sched-rgn.c (init_ready_list): Make the DFA code handle
4726         USE/CLOBBER insns in the same way as the traditional
4727         scheduler.
4728         (new_ready): Similarly..
4729
4730         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
4731
4732         * haifa-sched.c (schedule_block): Change the DFA state only after
4733         issuing insn.
4734
4735         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
4736
4737         * pa.c (hppa_use_dfa_pipeline_interface): New function.
4738         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4739         (override_options): Add PA7300 scheduling support.
4740         (pa_adjust_cost): Update various comments.  Properly
4741         handle anti and output dependencies when using the
4742         DFA scheduler.
4743         (pa_issue_rate): Add PA7300 scheduling support.
4744         (pa_can_combine_p): Call extract_insn before calling
4745         constrain_operands (taken from mainline tree).
4746         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4747         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
4748         descriptions using DFA descriptions.  Add PA7300
4749         scheduling support.
4750
4751         2002-03-30  David S. Miller  <davem@redhat.com>
4752
4753         Add UltraSPARC-III DFA scheduling support.
4754         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4755         Update FP conditional move on register insn patterns to use it, as
4756         appropriate.
4757         (define_attr cpu): Add ultrasparc3.
4758         (define_attr us3load_type): New, update integer load patterns to
4759         set it, as appropriate.
4760         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4761         (rest): Add UltraSPARC3 scheduling description.
4762         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4763         (PROCESSOR_ULTRASPARC3): New.
4764         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4765         ({ASM,CPP}_CPU_SPEC): Likewise.
4766         (REGISTER_MOVE_COST): Likewise.
4767         (RTX_COSTS): Likewise.
4768         * config/sparc/sparc.c (sparc_override_options,
4769         sparc_initialize_trampoline, sparc64_initialize_trampoline,
4770         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4771         sparc_issue_rate): Likewise.
4772         * config/sparc/sol2.h: Likewise.
4773         * config/sparc/sol2-sld-64.h: Likewise.
4774         * config/sparc/linux64.h: Likewise.
4775
4776         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
4777
4778         * doc/md.texi: Add comments about usage the latency time for the
4779         different dependencies and about case when two or more conditions
4780         in different define_insn_reservations returns TRUE for an insn.
4781
4782         * doc/md.texi: Add reference for automaton based pipeline
4783         description.
4784
4785         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
4786
4787         * doc/passes.texi: Add missed information about genattrtab.
4788
4789         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
4790
4791         * genautomata.c (output_automata_list_transition_code): Check
4792         automata_list on NULL.
4793
4794         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
4795
4796         * genautomata.c (output_insn_code_cases,
4797         output_automata_list_min_issue_delay_code,
4798         output_automata_list_transition_code,
4799         output_automata_list_state_alts_code): Comment the functions.
4800
4801         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
4802
4803         * genautomata.c (automata_list_el_t): New typedef.
4804         (get_free_automata_list_el,free_automata_list_el,
4805         free_automata_list, automata_list_hash, automata_list_eq_p,
4806         initiate_automata_lists, automata_list_start, automata_list_add,
4807         automata_list_finish, finish_automata_lists,
4808         output_insn_code_cases, output_automata_list_min_issue_delay_code,
4809         output_automata_list_transition_code,
4810         output_automata_list_state_alts_code, add_automaton_state,
4811         form_important_insn_automata_lists): New functions and prototypes.
4812         (insn_reserv_decl): Add members important_automata_list and
4813         processed_p.
4814         (ainsn): Add members important_p.
4815         (automata_list_el): New structure.
4816         (first_free_automata_list_el, current_automata_list,
4817         automata_list_table): New global variables.
4818         (create_ainsns): Initiate member important_p.
4819         (output_internal_min_issue_delay_func): Generate the switch and
4820         call output_insn_code_cases.
4821         (output_internal_trans_func, output_internal_state_alts_func):
4822         Ditto.
4823         (generate): Call initiate_automata_lists.
4824         (automaton_states): New global variable.
4825         (expand_automata): Call form_important_insn_automata_lists.
4826         (write_automata): Call finish_automata_lists.
4827
4828         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
4829
4830         * genautomata.c (add_excls, add_presence_absence): Check that
4831         cpu units in the sets belong the same automaton.
4832
4833         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4834         about that cpu units in the sets belong the same automaton.
4835
4836         * doc/md.texi: Ditto.
4837
4838         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
4839                     Nitin Gupta  <niting@noida.hcltech.com>
4840
4841         * config/sh/sh.c (sh_use_dfa_interface): New function.
4842
4843         (sh_issue_rate): New Function.
4844         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4845         TARGET_SCHED_ISSUE_RATE: define.
4846
4847         * config/sh/sh.md: Add DFA based pipeline description for SH4.
4848
4849         (define_attr insn_class): New attribute used for DFA
4850          scheduling.
4851         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4852         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4853          cmpeqdi_t): Likewise.
4854
4855         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4856          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4857          ex_group.
4858         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4859
4860         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
4861
4862         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4863         break.
4864
4865         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
4866
4867         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4868         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4869         necessary.
4870         (output_dfa_start_func): Initiate new variable insn_codes_length,
4871         (write_automata): Output definition of the new variable.
4872
4873         2001-10-02  David S. Miller  <davem@redhat.com>
4874
4875         * haifa-sched.c (advance_one_cycle): New function.
4876         (schedule_block): Use it.
4877         (queue_to_ready): Use it, and also make sure to advance the DFA
4878         state on all stall cycles, not just those where insn_queue links
4879         are found.
4880
4881         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
4882
4883         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
4884         non-zero if the highest-priority instruction could be scheduled.
4885         (choose_ready): Remove last argument from max_issue call.
4886
4887         2001-09-28  David S. Miller  <davem@redhat.com>
4888
4889         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4890         ultrasparc and 3 for other multi-issue sparcs.
4891
4892         2001-09-27  David S. Miller  <davem@redhat.com>
4893
4894         * config/sparc/sparc.md (cycle_display): New pattern.
4895         * config/sparc/sparc.c (sparc_cycle_display): New.
4896         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4897
4898         2001-09-25  David S. Miller  <davem@redhat.com>
4899
4900         Convert all of Sparc scheduling to DFA
4901         * config/sparc/sparc.md: Kill all define_function_unit
4902         directives and replace with DFA equivalent.
4903         * config/sparc/sparc.c (ultrasparc_adjust_cost,
4904         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4905         ultra_fpmode_conflict_exists, ultra_find_type,
4906         ultra_build_types_avail, ultra_flush_pipeline,
4907         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4908         ultrasparc_variable_issue, ultrasparc_sched_init,
4909         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4910         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4911         ultra_cur_hist, ultra_cycles_elapsed): Kill.
4912         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4913         ultrasparc_store_bypass_p): New.
4914         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4915         Declare.
4916
4917         2001-09-24  David S. Miller  <davem@redhat.com>
4918
4919         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4920         ready->vec[foo] not ready[foo].
4921
4922         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
4923
4924         * doc/md.texi: Correct examples for define_insn_reservations
4925         `mult' and `div'.
4926
4927         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
4928
4929         * genautomata.c (create_automata): Print message about creation of
4930         each automaton.
4931         (generate): Remove printing meease about creation of
4932         automata.
4933
4934         2001-09-05  David S. Miller  <davem@redhat.com>
4935
4936         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4937         * config/sparc/linux64.h: Likewise.
4938
4939         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
4940
4941         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4942         schedule_block, sched_init, sched_finish): Add missed calls of
4943         use_dfa_pipeline_interface.
4944
4945         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4946         Ditto.
4947
4948         * sched-vis.c (get_visual_tbl_length): Ditto.
4949
4950         2001-08-27  Richard Henderson  <rth@redhat.com>
4951
4952         * genattr.c (main): Emit state_t even when not doing scheduling.
4953
4954         2001-08-27  Richard Henderson  <rth@redhat.com>
4955
4956         * genautomata.c (expand_automata): Always create a description.
4957
4958         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
4959
4960         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4961         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4962         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4963         RTL constructions.
4964
4965         * genattr.c (main): New variable num_insn_reservations.  Increase
4966         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
4967         pipeline hazard recognizer interface.
4968
4969         * genattrtab.h: New file.
4970
4971         * genattrtab.c: Include genattrtab.h.
4972         (attr_printf, check_attr_test, make_internal_attr,
4973         make_numeric_value): Move protypes into genattrtab.h.  Define them
4974         as external.
4975         (num_dfa_decls): New global variable.
4976         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
4977         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
4978         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
4979         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
4980
4981         * genautomata.c: New file.
4982
4983         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
4984
4985         * sched-int.h: (curr_state): Add the external definition for
4986         automaton pipeline interface.
4987         (haifa_insn_data): Add comments for members blockage and units.
4988
4989         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4990         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4991         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4992         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4993         TARGET_SCHED_DFA_POST_CYCLE_INSN,
4994         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4995         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
4996         macros.
4997         (TARGET_SCHED): Use the new macros.
4998
4999         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5000         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5001         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5002         dfa_bubble): New members in gcc_target.sched.
5003
5004         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5005         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5006         (insn_queue): Redefine it as pointer to array.
5007         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5008         INSN_QUEUE_SIZE.
5009         (max_insn_queue_index_macro_value): New variable.
5010         (curr_state, dfa_state_size, ready_try): New varaibles for
5011         automaton interface.
5012         (ready_element, ready_remove, max_issue): New function prototypes
5013         for automaton interface.
5014         (choose_ready): New function prototype.
5015         (insn_unit, blockage_range): Add comments.
5016         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5017         FUNCTION_UNITS_SIZE == 0.
5018         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5019         actual_hazard, potential_hazard): Add comments.
5020         (insn_cost): Use cost -1 as undefined value.  Remove
5021         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5022         pipeline interface.
5023         (ready_element, ready_remove): New functions for automaton
5024         interface.
5025         (schedule_insn): Add new code for automaton pipeline interface.
5026         (queue_to_ready): Add new code for automaton pipeline interface.
5027         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5028         (debug_ready_list): Print newline when the queue is empty.
5029         (max_issue): New function for automaton pipeline interface.
5030         (choose_ready): New function.
5031         (schedule_block): Add new code for automaton pipeline interface.
5032         Print ready list before scheduling each insn.
5033         (sched_init): Add new code for automaton pipeline interface.
5034         Initiate insn cost by -1.
5035         (sched_finish): Free the current automaton state and finalize
5036         automaton pipeline interface.
5037
5038         * sched-rgn.c: Include target.h.
5039         (init_ready_list, new_ready, debug_dependencies): Add new code for
5040         automaton pipeline interface.
5041
5042         * sched-vis.c: Include target.h.
5043         (get_visual_tbl_length): Add code for automaton interface.
5044         (target_units, print_block_visualization):  Add comments.
5045
5046         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5047         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5048         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5049         (getruntime.o, genautomata.o): New entries.
5050         (genattrtab.o): Add new dependency file genattrtab.h.
5051         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5052         (getruntime.o, hashtab.o): New entries for canadian cross.
5053
5054         * doc/md.texi: Description of automaton based model.
5055
5056         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5057         Add comments.
5058         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5059         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5060         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5061         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5062         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5063         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5064         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5065         hook descriptions.
5066         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5067         MAX_DFA_ISSUE_RATE): New macro descriptions.
5068
5069         * doc/contrib.texi: Add dfa based scheduler contribution.
5070
5071         * doc/gcc.texi: Add more information about genattrtab.
5072
5073 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5074
5075         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5076         adjust_address_nv call.
5077
5078 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5079
5080         * doc/install.texi (Testing): Provide additional information, and
5081         a stronger encouragement, for running the testsuites.
5082
5083 2002-04-29  DJ Delorie  <dj@redhat.com>
5084
5085         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5086         given in upper case.
5087
5088 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5089
5090         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5091         Solaris 2 <widec.h> if missing.
5092         * fixinc/fixincl.x: Regenerate.
5093         * fixinc/tests/base/widec.h: New file.
5094
5095 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5096
5097         * toplev.c (f_options): Add "profile" switch so that
5098         -fno-profile can be used to disable -p.
5099
5100 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5101
5102         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5103         UV2DImode.
5104         * tree.c (build_common_tree_nodes_2): Likewise.
5105         * tree.h (enum tree_index): Likewise.
5106         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5107
5108         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5109         entries.
5110         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5111         (ix86_expand_builtin): Add support for SSE2 builtins.
5112         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5113         (VALID_SSE_REG_MODE): Use it.
5114         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5115         (enum ix86_builtins): Add SSE2 builtins.
5116         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5117         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5118         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5119         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5120         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5121         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5122         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5123         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5124         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5125         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5126         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5127         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5128         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5129         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5130         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5131         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5132         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5133         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5134         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5135         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5136         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5137         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5138         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5139         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5140         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5141         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5142         lfence_insn): New patterns.
5143         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5144         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5145
5146 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5147
5148         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5149
5150 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5151
5152         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5153         Janis Johnson.
5154         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5155         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5156         and CPU instead of cpu.
5157
5158 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5159
5160         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5161         variables.
5162         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5163         (rest_of_compilation): Do if conversion only when asked for.
5164         (parse_options_and_default_flags): Set new variables to 1 for -O1
5165         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5166
5167 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5168
5169         * i386.c (dbx64_register_map): Fix typo.
5170
5171 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5172
5173         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5174         real_one_half, real_bb_freq_max): New static variables.
5175         (debug_profile_bbauxs): Kill.
5176         (process_note_predictions): Kill unused variable.
5177         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5178         volatile double.
5179         (propagate_freq): Use REAL_ARITHMETICS.
5180         (estimate_bb_frequencies): Likevise; init new static variables.
5181         * Makefile.in (predict.o): Add dependency on real.h
5182
5183 2002-04-28  David S. Miller  <davem@redhat.com>
5184
5185         PR target/6500
5186         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5187         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5188         several {reads,writes} instead.
5189         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5190         Define.
5191
5192 2002-04-27  David S. Miller  <davem@redhat.com>
5193
5194         PR target/6494
5195         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5196         of the stack bias.
5197
5198         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5199         including signal.h and sys/ucontext.h, not needed.
5200
5201 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5202
5203         * varasm.c (output_constant_def): Correct test for not calling
5204         ENCODE_SECTION_INFO for INTEGER_CST.
5205
5206 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5207
5208         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5209         keep most cases as function eval_token.
5210         (eval_token): New function.
5211         (_cpp_parse_expr): Read token here for improved diagnostics.
5212         Don't use op_as_text.  Detect bad ':' here.
5213         (reduce): Don't detect bad ':' here.
5214         (op_as_text): Remove.
5215         * cpphash.h (_cpp_test_assertion): Change prototype.
5216         * cpplib.c (_cpp_test_assertion): Change prototype.
5217
5218 2002-04-28  Richard Henderson  <rth@redhat.com>
5219
5220         PR c/5154
5221         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5222         (ggc_mark_rtx_children): New.
5223
5224 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5225
5226         PR target/6496
5227         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5228         after call peepholes for UltraSPARC.
5229         (call + jump 64-bit peepholes): Remove.
5230
5231 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5232
5233         PR c/6497
5234         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5235         result as temporary value.
5236
5237 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5238
5239         PR c++/6396
5240         * toplev.c (rest_of_compilation): Only run regrename and copy
5241         propagation if optimizing.
5242
5243 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5244
5245         PR optimization/6475
5246         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5247         register of REGNO_DECL (i).
5248         * Makefile.in (reload1.o): Add $(TREE_H).
5249
5250 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5251
5252         * cppexp.c (lex): Update to use state.skip_eval.
5253         (struct op): Remove prio and flags members.
5254         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5255         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5256         (LEFT_ASSOC): New macro.
5257         (optab): New table of operator priorities and flags.
5258         (SHIFT): Update.
5259         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5260         malloc-ed parser stack.
5261         (reduce): New; reduce the operator stack.
5262         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5263         * cpphash.h (struct op): Predeclare.
5264         (struct cpp_reader): New members op_stack, op_limit.
5265         (struct lexer_state): New member skip_eval.
5266         (_cpp_parse_expr): Update.
5267         (_cpp_expand_op_stack): New.
5268         * cpplib.c (do_if): Update.
5269         * cppinit.c (cpp_create_reader): Create op stack.
5270         (cpp_destroy): And destroy it.
5271         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5272         (TTYPE_TABLE): Correct.
5273
5274 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5275
5276         PR c/6343
5277         * c-decl.c (duplicate_decls): Call merge_weak.
5278         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5279         * output.h (merge_weak): Prototype merge_weak.
5280         * varasm.c (merge_weak): New function.
5281         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5282         Mark RTL with SYMBOL_REF_WEAK.
5283
5284 2002-04-27  Kurt Garloff <garloff@suse.de>
5285
5286         * tree-inline.c (inlinable_function_p): Improve heuristics
5287         by using a smoother function to cut down allowable inlinable size.
5288         * param.def: Add parameters max-inline-insns-single,
5289         max-inline-slope, min-inline-insns that determine the exact
5290         shape of the above function.
5291         * param.h: Likewise.
5292
5293 2002-04-26  Richard Henderson  <rth@redhat.com>
5294
5295         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5296         (yyoverflow): Re-add.  Set them.
5297         (free_parser_stacks): New.
5298         * c-common.h: Declare it.
5299         * c-lex.c (c_common_parse_file): Call it.
5300
5301 2002-04-26  Richard Henderson  <rth@redhat.com>
5302
5303         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5304         for fallthru search.
5305
5306 2002-04-26  Eric Christopher  <echristo@redhat.com>
5307
5308         PR optimization/3700
5309         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5310         (TARGET_SCHED_ISSUE_RATE): Use.
5311
5312 2002-04-25  David S. Miller  <davem@redhat.com>
5313
5314         PR target/6422
5315         * reorg.c (optimize_skip): Do not allow exception causing
5316         instructions to be considered for delay slots.
5317         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5318         (relax_delay_slots): Do not try to consider exception causing
5319         instructions as redundant.
5320
5321 2002-04-26  Richard Henderson  <rth@redhat.com>
5322
5323         PR c/5225
5324         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5325
5326 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5327
5328         PR bootstrap/6445
5329         * config/i386/i386.md (untyped_call): Return the value in a float
5330         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5331         TARGET_80387.
5332
5333 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5334
5335         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5336         in unsigned-ness correctly.
5337
5338 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5339
5340         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5341         portable runtime model.
5342
5343 2002-04-26  Richard Henderson  <rth@redhat.com>
5344
5345         * c-parse.in (yyoverflow): Revert.
5346
5347 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5348             Richard Henderson  <rth@redhat.com>
5349
5350         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5351         result as temporary value.
5352
5353 2002-04-26  Richard Henderson  <rth@redhat.com>
5354
5355         PR c/3581
5356         * c-common.c (fix_string_type): Split out of ...
5357         (combine_strings): ... here.  Take a varray, not a tree list.
5358         (c_expand_builtin_printf): Use fix_string_type.
5359         * c-common.h: Update decls.
5360         * c-parse.in (string): Remove.  Update all uses to use STRING
5361         instead, and not call combine_strings.
5362         (yylexstring): New.
5363         (_yylex): Use it.
5364         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5365         (build_asm_stmt): Likewise.
5366         * objc/objc-act.c (my_build_string): Use fix_string_type.
5367         (build_objc_string_object): Build varray for combine_strings.
5368
5369 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5370
5371         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5372         x86-64.
5373
5374 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5375
5376         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5377         (HAVE_NO_R_OPERAND): Remove.
5378         (HAVE_VALUE): Remove.
5379         (op_to_prio): Update.
5380         (UNARY): Don't alter flags.
5381         (_cpp_parse_expr): want_value used to indicate whether
5382         a number or unary operator is expected next.  Distinguish
5383         unary and binary +/-.
5384         (op_as_text): Update for unary operators.
5385
5386 2002-04-25  Richard Henderson  <rth@redhat.com>
5387
5388         PR c/2161
5389         * c-parse.in (yyoverflow): New.
5390
5391 2002-04-25  Richard Henderson  <rth@redhat.com>
5392
5393         PR c/2098
5394         * c-common.c (shorten_compare): Simplfy conditions leading to
5395         the generation of a warning.
5396
5397 2002-04-25  Richard Henderson  <rth@redhat.com>
5398
5399         PR c/2035
5400         * expmed.c (extract_bit_field): Fall through to generic code rather
5401         than aborting on subreg special case.
5402
5403 2002-04-25  David S. Miller  <davem@redhat.com>
5404
5405         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5406         for DECL being NULL.
5407
5408 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5409
5410         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5411
5412 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5413
5414         * c-decl.c (grokdeclarator): Remove outdated ??? note
5415         on invalid declaration of flexible array members.
5416
5417 2002-04-25  Richard Henderson  <rth@redhat.com>
5418
5419         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5420
5421 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5422
5423         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5424         needed by the compiler, even if they are used as global regs.
5425
5426 2002-04-25  Matt Hiller  <hiller@redhat.com>
5427
5428         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5429         functions.
5430         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5431         of the corresponding functions.
5432         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5433         New prototypes.
5434
5435 2002-04-25  Matt Hiller  <hiller@redhat.com>
5436
5437         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5438
5439         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5440         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5441         registers, adjust comment accordingly.
5442         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5443         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5444         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5445         for coprocessor registers.
5446         (ADDITIONAL_REGISTER_NAMES): Include
5447         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5448
5449         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5450         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5451         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5452         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5453         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5454
5455         (mips_char_to_class): Adjust comment to include coprocessor
5456         constraint letters.
5457
5458         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5459         New functions.
5460         (mips_reg_names, mips_regno_to_class): Include coprocessor
5461         information.
5462         (mips_sw_reg_names): Ditto, make non-static.
5463         (mips_move_1word): Handle moves to and from coprocessor registers.
5464         (mips_move_2words): Handle moves to and from coprocessor
5465         registers.
5466         (mips_class_max_nregs, mips_register_move_cost): Handle
5467         coprocessor register classes.
5468         (override_options): Initialize mips_char_to_class and
5469         mips_hard_regno_mode_ok properly for coprocessor registers.
5470
5471         * config/mips/mips.md (movdi_internal, movdi_internal2,
5472         movsi_internal1, movsi_internal2): Add constraint-sets for
5473         coprocessor registers.
5474         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5475         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5476         isn't mips.
5477         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5478         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5479         isn't mips.
5480         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5481         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5482         isn't mips.
5483         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5484         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5485         isn't mips.
5486
5487         * doc/tm.texi: Document feature.
5488
5489 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5490
5491         * integrate.c (function_attribute_inlinable_p): Simplify.
5492         Check the table pointer is not NULL.
5493
5494 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5495
5496         * doc/c-tree.texi: Fix typo in introduction.
5497
5498 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5499
5500         * c-common.h (c_common_parse_file): Update.
5501         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5502         * c-lex.c (YYDEBUG): Get from c-lex.h.
5503         (c_common_parse_file): Update.
5504         * c-lex.h (YYDEBUG, yydebug): New.
5505         * c-parse.in (YYDEBUG): Get from c-lex.h.
5506         (c_set_yydebug): Remove.
5507         * c-tree.h (c_set_yydebug): Remove.
5508         * langhooks-def.h (lhd_do_nothing_i): New.
5509         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5510         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5511         * langhooks.c  (lhd_do_nothing_i): New.
5512         (lhd_set_yydebug): Remove.
5513         * langhooks.h (struct lang_hooks): Update.
5514         * toplev.c (set_yydebug): New.
5515         (compile_file): Update call to parse_file hook.
5516         (decode_d_option): Update.
5517 objc:
5518         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5519
5520 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
5521
5522         * loop.c (load_mems): Don't change the interface of called functions.
5523
5524         * calls.c (expand_call): Take current_function_pretend_args_size
5525         into account when setting argblock for sibcalls.
5526
5527 2002-04-24  Matt Hiller  <hiller@redhat.com>
5528
5529         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5530         * c-lex.c: Ditto.
5531
5532         * cpplex.c (skip_line_comment): Process comment one multibyte
5533         character at a time rather than one char at a time, if
5534         appropriate.
5535         (parse_string): Process string one multibyte character at a time
5536         rather than one char at a time, if appropriate.
5537         * c-lex.c (lex_string): Lex and copy multibyte strings
5538         appropriately.
5539         * cpplib.h (cppchar_t): Change to unsigned.
5540
5541 2002-04-24  Richard Henderson  <rth@redhat.com>
5542
5543         PR c/3467
5544         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5545         for c99.
5546
5547 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
5548
5549         * sh.c (sh_va_arg): If argument was passed by reference,
5550         dereference the pointer.
5551
5552         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5553
5554         * sh.md (divsi3_i4_media): Use match_operand for input values
5555         rather than hard registers.
5556         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5557         unnecessarily through hard registers.  Keep copies of pseudo
5558         registers outside of the libcall sequence.
5559
5560         * sh.md (casesi_shift_media): Add modes.
5561
5562         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5563         values in memory.
5564
5565 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5566
5567         * attribs.c (c_common_attribute_table): Move table and handlers
5568         to c-common.c.
5569         (format_attribute_table, lang_attribute_table,
5570         lang_attribute_common): Remove.
5571         (init_attributes): Replace NULL pointers with pointers to the
5572         empty table.
5573         (handle_packed_attribute, handle_nocommon_attribute,
5574         handle_common_attribute, handle_noreturn_attribute,
5575         handle_noinline_attribute, handle_always_inline_attribute,
5576         handle_used_attribute, handle_unused_attribute,
5577         handle_const_attribute, handle_transparent_union_attribute,
5578         handle_constructor_attribute, handle_destructor_attribute,
5579         handle_mode_attribute, handle_section_attribute,
5580         handle_aligned_attribute, handle_weak_attribute,
5581         handle_alias_attribute, handle_visibility_attribute,
5582         handle_no_instrument_function_attribute, handle_malloc_attribute,
5583         handle_no_limit_stack_attribute, handle_pure_attribute,
5584         handle_deprecated_attribute, handle_vector_size_attribute,
5585         vector_size_helper): Move to c-common.c.
5586         * c-common.c (c_common_attribute_table,
5587         handle_packed_attribute, handle_nocommon_attribute,
5588         handle_common_attribute, handle_noreturn_attribute,
5589         handle_noinline_attribute, handle_always_inline_attribute,
5590         handle_used_attribute, handle_unused_attribute,
5591         handle_const_attribute, handle_transparent_union_attribute,
5592         handle_constructor_attribute, handle_destructor_attribute,
5593         handle_mode_attribute, handle_section_attribute,
5594         handle_aligned_attribute, handle_weak_attribute,
5595         handle_alias_attribute, handle_visibility_attribute,
5596         handle_no_instrument_function_attribute, handle_malloc_attribute,
5597         handle_no_limit_stack_attribute, handle_pure_attribute,
5598         handle_deprecated_attribute, handle_vector_size_attribute,
5599         vector_size_helper): Move from attribs.c.
5600         * c-common.h (c_common_attribute_table,
5601         c_common_format_attribute_table): New.
5602         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5603         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5604         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5605         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5606         (LANG_HOOKS_INITIALIZER): Update.
5607         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5608         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5609         * target.h: Update comment.
5610         * tree.c (default_target_attribute_table): Remove.
5611         * tree.h (default_target_attribute_table, format_attribute_table,
5612         lang_attribute_table, lang_attribute_common): Remove.
5613 objc:
5614         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5615         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5616
5617 2002-04-24  Jason Merrill  <jason@redhat.com>
5618
5619         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5620         * dwarf2out.c (dwarf_attr_name): Support it.
5621         (gen_array_type_die): Emit it.
5622         (lookup_type_die): No special handling for VECTOR_TYPE.
5623         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5624
5625 2002-04-24  Richard Henderson  <rth@redhat.com>
5626
5627         * config/mips/mips.md (movdi_usd): Renumber.
5628
5629 2002-04-24  David S. Miller  <davem@redhat.com>
5630
5631         PR target/6420
5632         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5633         32-bit Sparc and current_function_returns_struct is true.
5634
5635 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5636
5637         * loop.c (canonicalize_condition): Use gen_int_mode.
5638
5639 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
5640
5641         * config/rs6000/altivec.h: Cleanup file.  Add non individual
5642         variants.
5643         (vec_vaddubm): New.
5644         (vec_vadduhm): New.
5645         (vec_vadduwm): New.
5646         (vec_vaddfp): New.
5647         (vec_vaddcuw): New.
5648         (vec_vaddubs): New.
5649         (vec_vaddsbs): New.
5650         (vec_vadduhs): New.
5651         (vec_vadduws): New.
5652         (vec_vaddsws): New.
5653         (vec_vand): New.
5654         (vec_vandc): New.
5655         (vec_vavgub): New.
5656         (vec_vavgsb): New.
5657         (vec_vavguh): New.
5658         (vec_vavgsh): New.
5659         (vec_vavguw): New.
5660         (vec_vavgsw): New.
5661         (vec_vrfip): New.
5662         (vec_vcmpbfp): New.
5663         (vec_vcmpequb): New.
5664         (vec_vcmpequh): New.
5665         (vec_vcmpequw): New.
5666         (vec_vcmpeqfp): New.
5667         (vec_vcmpgefp): New.
5668         (vec_vcmpgtub): New.
5669         (vec_vcmpgtsb): New.
5670         (vec_vcmpgtuh): New.
5671         (vec_vcmpgtsh): New.
5672         (vec_vcmpgtuw): New.
5673         (vec_vcmpgtsw): New.
5674         (vec_vcmpgtfp): New.
5675         (vec_vcmpgefp): New.
5676         (vec_vcfux): New.
5677         (vec_vcfsx): New.
5678         (vec_vctsxs): New.
5679         (vec_vctuxs): New.
5680         (vec_vexptefp): New.
5681         (vec_vrfim): New.
5682         (vec_lvx): New.
5683         (vec_lvebx): New.
5684         (vec_lvehx): New.
5685         (vec_lde): Add vector float variant.
5686         (vec_lvewx): New.
5687         (vec_lvxl): New.
5688         (vec_vlogefp): New.
5689         (vec_vmaddfp): New.
5690         (vec_vmhaddshs): New.
5691         (vec_vmaxub): New.
5692         (vec_vmaxsb): New.
5693         (vec_vmaxuh): New.
5694         (vec_vmaxsh): New.
5695         (vec_vmaxuw): New.
5696         (vec_vmaxsw): New.
5697         (vec_vmaxsw): New.
5698         (vec_vmaxfp): New.
5699         (vec_vmrghb): New.
5700         (vec_vmrghh): New.
5701         (vec_vmrghw): New.
5702         (vec_vmrglb): New.
5703         (vec_vmrglh): New.
5704         (vec_vmrglw): New.
5705         (vec_vminub): New.
5706         (vec_vminsb): New.
5707         (vec_vminuh): New.
5708         (vec_vminsh): New.
5709         (vec_vminuw): New.
5710         (vec_vminsw): New.
5711         (vec_vminfp): New.
5712         (vec_vmladduhm): New.
5713         (vec_vmhraddshs): New.
5714         (vec_msumubm): New.
5715         (vec_vmsummbm): New.
5716         (vec_vmsumuhm): New.
5717         (vec_vmsumshm): New.
5718         (vec_vmsumuhs): New.
5719         (vec_vmsumshs): New.
5720         (vec_vmuleub): New.
5721         (vec_vmulesb): New.
5722         (vec_vmuleuh): New.
5723         (vec_vmulesh): New.
5724         (vec_vmuloub): New.
5725         (vec_mulosb): New.
5726         (vec_vmulouh): New.
5727         (vec_vmulosh): New.
5728         (vec_vnmsubfp): New.
5729         (vec_vnor): New.
5730         (vec_vor): New.
5731         (vec_vpkuhum): New.
5732         (vec_vpkuwum): New.
5733         (vec_vpkpx): New.
5734         (vec_vpkuhus): New.
5735         (vec_vpkshss): New.
5736         (vec_vpkuwus): New.
5737         (vec_vpkswss): New.
5738         (vec_vpkshus): New.
5739         (vec_vpkswus): New.
5740         (vec_vperm): New.
5741         (vec_vrefp): New.
5742         (vec_vrlb): New.
5743         (vec_vrlh): New.
5744         (vec_vrlw): New.
5745         (vec_vrfin): New.
5746         (vec_vrsqrtefp): New.
5747         (vec_vsel): New.
5748         (vec_vslb): New.
5749         (vec_vslh): New.
5750         (vec_vslw): New.
5751         (vec_vsldoi): New.
5752         (vec_vsl): New.
5753         (vec_vslo): New.
5754         (vec_vspltb): New.
5755         (vec_vsplth): New.
5756         (vec_vspltw): New.
5757         (vec_vspltisb): New.
5758         (vec_vspltish): New.
5759         (vec_vspltisw): New.
5760         (vec_vsrb): New.
5761         (vec_vsrh): New.
5762         (vec_vsrw): New.
5763         (vec_vsrab): New.
5764         (vec_vsrah): New.
5765         (vec_vsraw): New.
5766         (vec_vsr): New.
5767         (vec_vsro): New.
5768         (vec_stvx): New.
5769         (vec_stvebx): New.
5770         (vec_stvehx): New.
5771         (vec_stvewx): New.
5772         (vec_stvxl): New.
5773         (vec_vsububm): New.
5774         (vec_vsubuhm): New.
5775         (vec_vsubuwm): New.
5776         (vec_vsubfp): New.
5777         (vec_vsubcuw): New.
5778         (vec_vsububs): New.
5779         (vec_vsubsbs): New.
5780         (vec_vsubuhs): New.
5781         (vec_vsubshs): New.
5782         (vec_vsubuws): New.
5783         (vec_vsubsws): New.
5784         (vec_vsum4ubs): New.
5785         (vec_vsum4sbs): New.
5786         (vec_vsum4shs): New.
5787         (vec_vsum2sws): New.
5788         (vec_vsumsws): New.
5789         (vec_vrfiz): New.
5790         (vec_vupkhsb): New.
5791         (vec_vupkhpx): New.
5792         (vec_vupkhsh): New.
5793         (vec_vupklsb): New.
5794         (vec_vupklpx): New.
5795         (vec_vupklsh): New.
5796         (vec_vxor): New.
5797
5798 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
5799
5800         PR c/5430
5801         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5802         added literals from substracted literals.
5803         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5804         (fold) [associate]: Preserve MINUS_EXPR if needed.
5805
5806 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
5807
5808         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5809         are obsoleted.
5810
5811 2002-04-23  Tom Tromey  <tromey@redhat.com>
5812
5813         * gcc.c: Added --resource.  For PR java/6314.
5814
5815 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
5816
5817         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5818         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5819         these libraries.
5820
5821 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
5822
5823         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5824
5825 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5826
5827         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5828         workaround.
5829         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5830         (ix86_expand_clrstr): Fix typo.
5831         * loop.c (gen_load_of_final_value): New.
5832         (loop_givs_rescan, strength_reduce, check_dbra_loop):
5833         Use it.
5834
5835 2002-04-23  Roger Sayle  <roger@eyesopen.com>
5836
5837         * builtins.c (builtin_memset_gen_str): New function.
5838         (expand_builtin_memset): Optimize the case of constant length, but
5839         unknown value.
5840
5841 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
5842
5843         * config/rs6000/altivec.h (vec_step): Remove extraneous
5844         parentheses.
5845         (vec_ctu): Cast return.
5846
5847 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
5848
5849         PR target/6413
5850         * function.h: (struct function): Add profile_label_no field.
5851         (current_function_profile_label_no): Define.
5852         * function.c: (profile_label_no): New static var.
5853         (expand_function_start): Increment it, and copy to
5854         current_function_profile_label_no.
5855         * output.h (profile_label_no): Delete.
5856         * final.c (profile_label_no): Delete.
5857         (profile_function): Use current_function_profile_label_no.
5858         (final_end_function): Don't increment profile_label_no here.
5859         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5860         profile_label_no with current_function_profile_label_no.
5861         * config/pa/pa.c (current_function_number): Delete.
5862         (pa_output_function_prologue): Don't output profile label here.
5863         (hppa_profile_hook): Use label_no param rather than
5864         current_function_number.
5865         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5866         * config/pa/pa.h: .. here.
5867         (FUNCTION_PROFILER): Output profile label here.
5868
5869 2002-04-22  Eric Christopher  <echristo@redhat.com>
5870
5871         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5872         patch of 2002-04-09 due to binutils issues.
5873         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5874
5875 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
5876
5877         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5878         constraint to 'o' for m=r and r=m alternatives.
5879         ("*movv8hi_internal1"): Same.
5880         ("*movv16qi_internal1"): Same.
5881         ("*movv4sf_internal1"): Same.
5882
5883 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
5884
5885         * rtl.h (RTX_FLAG): New macro.
5886         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5887         * final.c (alter_subreg): Use macro to access rtx flag.
5888         * integrate.c (copy_rtx_and_substitute): Use new access macro.
5889         * print-rtl.c (print_rtx): Use new access macro.
5890
5891         * cse.c (insert): Check rtx code before accessing flag.
5892
5893         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5894         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5895         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5896         convert_const_symbol_ref, make_canonical, make_alternative_compare,
5897         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5898         simplify_test_exp, optimize_attrs, simplify_by_exploding,
5899         find_and_mark_used_attributes, unmark_used_attributes,
5900         add_values_to_cover, simplify_with_current_value,
5901         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5902         copy_rtx_unchanging, main): Use new access macros.
5903
5904 2002-04-22  Tom Rix  <trix@redhat.com>
5905
5906         * expmed.c (init_expmed): Generate shifted constant once.
5907
5908 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
5909
5910         * c-lex.c (lex_charconst): Call convert to get constant in
5911         proper type; don't just smash the type field.
5912         Fixes PR c/6300.
5913
5914         * config.gcc: Add list of obsolete configurations.  Disallow
5915         building these without --enable-obsolete.
5916         * doc/install.texi: Document --enable-obsolete and obsoletion
5917         policy.  Mention obsoletion of individual targets in
5918         appropriate places.
5919
5920 2002-04-22  Richard Henderson  <rth@redhat.com>
5921
5922         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5923
5924 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
5925
5926         PR f/6138.
5927         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5928         (walk_fixup_memory_subreg): Likewise.
5929         (fixup_var_refs_insn): Adjust accordingly.
5930         (fixup_var_refs_1): Likewise.
5931
5932 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
5933
5934         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5935         LIBPATH_ARCH64_SPEC): Define.
5936         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5937         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5938         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5939         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5940
5941 2002-04-22      Joel Sherrill <joel@OARcorp.com>
5942
5943         * gthr-rtems.h: Correct prototypes to remove warnings.
5944
5945 2002-04-22  Richard Henderson  <rth@redhat.com>
5946
5947         PR c/6344
5948         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5949
5950         * gcse.c (free_insn_expr_list_list): New.
5951         (clear_modify_mem_tables): Use it.  Fix bit set usage.
5952         (canon_list_insert): Use EXPR_LISTs for expressions.
5953         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5954
5955 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5956
5957         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
5958         file change and include code to _cpp_pop_buffer.
5959         * cpphash.h (struct pending_option): Predeclare.
5960         (struct cpp_reader): New member next_include_file.
5961         (_cpp_pop_file_buffer): Update.
5962         (_cpp_push_next_buffer): Update, rename.
5963         * cppinit.c (cpp_destroy): Free include chain and pending here.
5964         (cpp_finish_options): Simplify.
5965         (_cpp_push_next_buffer): Rename and clean up.
5966         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5967         Clarify.
5968         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5969
5970 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
5971
5972         * config/rs6000/altivec.h (vec_xor): Add variant for both args
5973         being vector signed int.
5974         (vec_andc): Same.
5975         (vec_xor): Add variant for both args being vector signed char.
5976         Remove redundant variant.
5977         (vec_andc): Same.
5978
5979 2002-04-21  David S. Miller  <davem@redhat.com>
5980
5981         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
5982         compare mode in output RTL.
5983
5984 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
5985
5986         * config/rs6000/rs6000.c (rs6000_override_options): Correct
5987         style and formatting of previous patch.
5988
5989 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
5990
5991         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
5992         flag_pic for ABI_AIX.
5993
5994 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5995
5996         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
5997         * cppfiles.c (read_include_file): Similarly.
5998         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
5999         uxstrdup ustrchr, ufputs): Similarly.
6000         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6001         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6002         cpp_ideq, parse_identifier, parse_number): Similarly.
6003         * cpplib.c (struct directive, dequote_string, D, run_directive,
6004         cpp_push_buffer): Similarly.
6005         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6006         _cpp_create_definition, check_trad_stringification,
6007         cpp_macro_definition): Similarly.
6008
6009 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6010
6011         * cppmacro.c (funlike_invocation_p): Don't step back
6012         over CPP_EOF.
6013
6014 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
6015
6016         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6017         labelno.
6018
6019 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6020
6021         * doc/invoke.texi: Remove Chill references.
6022         * doc/gcc.texi: Update last modified date.
6023
6024 2002-04-20  Kazu Hirata  <kazu@hxi.com>
6025
6026         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6027         push and pop.  Replace add.l with add.w.
6028
6029 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6030
6031         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6032         multiply instructions for H8/300H case.
6033
6034 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6035
6036         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6037         Bum three instructions from each routine.
6038
6039 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6040
6041         * Makefile.in: Update.
6042         * decl.c (push_c_function_context, pop_c_function_context,
6043         mark_c_function_context): Rename for consistency.
6044         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6045         * c-tree.h (push_c_function_context, pop_c_function_context,
6046         mark_c_function_context): Rename for consistency.
6047         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6048         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6049         * function.c (init_lang_status, save_lang_status,
6050         restore_lang_status, mark_lang_status, free_lang_status):
6051         Move to langhooks.h.
6052         (push_function_context_to, pop_function_context_from,
6053         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6054         Update.
6055         * function.h (init_lang_status, save_lang_status,
6056         restore_lang_status, mark_lang_status, free_lang_status):
6057         Move to langhooks.h.
6058         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6059         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6060         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6061         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6062         (LANG_HOOKS_INITIALIZER): Update.
6063         (lhd_do_nothing_f): New.
6064         * langhooks.h (struct lang_hooks_for_functions): New.
6065         (struct lang_hooks): New hooks.
6066         * langhooks.c (lhd_do_nothing_f): New.
6067 objc:
6068         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6069         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6070
6071 2002-04-19  David S. Miller  <davem@redhat.com>
6072
6073         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6074         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6075
6076 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6077
6078         PR optimization/3756
6079         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6080         x = ((int) y < 0) ? cst1 : cst2.
6081
6082 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6083
6084         PR c/6358
6085         * function.c: Reapply patch for c/6358.
6086         (expand_function_end): Copy decl_rtl's mode, not
6087         current_function_return_rtx mode.
6088
6089 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6090
6091         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6092         targets.
6093
6094 2002-04-19  Tom Tromey  <tromey@redhat.com>
6095
6096         * doc/install.texi (Specific): Update status of Solaris 2.8.
6097         For PR libgcj/6158.
6098
6099 2002-04-19  Andreas Schwab  <schwab@suse.de>
6100
6101         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6102         (PUT_REAL): Restore old definition.
6103
6104 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6105             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6106
6107         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6108         binutils 2.11.2 and higher generate smaller binaries than Sun's
6109         native tools.
6110
6111 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6112
6113         PR c++/6352
6114         * toplev.c (rest_of_compilation): Do not defer functions for which
6115         TREE_SYMBOL_REFERENCED has already been set.
6116
6117 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6118
6119         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6120         alternative.
6121
6122 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6123
6124         * builtins.c: Include langhooks.h.
6125         (lang_type_promotes_to): Remove.
6126         (expand_builtin_va_arg): Use new hook.
6127         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6128         (simple_type_promotes_to): Move to c-typeck.c.
6129         * c-common.h (simple_type_promotes_to): Remove.
6130         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6131         * c-format.c: Include langhooks.h.
6132         (check_format_types): Update.
6133         * c-tree.h (c_type_promotes_to): New.
6134         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6135         (type_lists_compatible_p): Update.
6136         * langhooks-def.h (lhd_type_promotes_to): New.
6137         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6138         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6139         * langhooks.c (lhd_type_promotes_to): New.
6140         * langhooks.h (struct lang_hooks_for_types): New hook.
6141         * tree.h (lang_type_promotes_to): Remove.
6142 objc:
6143         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6144
6145 2002-04-18  Richard Henderson  <rth@redhat.com>
6146
6147         * function.c: Revert patch for c/6358.
6148
6149 2002-04-18  Richard Henderson  <rth@redhat.com>
6150
6151         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6152         blocks.  Handle multiple references to the TRAP block.  Handle
6153         non-adjacent THEN and OTHER blocks.
6154
6155 2002-04-18  Richard Henderson  <rth@redhat.com>
6156
6157         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6158         crash with no type for by-mode libcalls.
6159
6160         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6161
6162 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6163
6164         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6165         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6166         the register windows.
6167
6168 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6169
6170         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6171         appropriate.  Document need for extended precision even when
6172         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6173         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6174         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6175         instead of relying on later syntax error when REAL_WIDTH > 5.
6176         * real.c: Define NE based only on whether or not we have a
6177         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6178         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6179         define GET_REAL and PUT_REAL as simple memcpy operations; no
6180         need to byteswap or round.
6181         Use #error instead of #ifdef-ing out the entire file, for
6182         prompt error detection.
6183
6184         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6185
6186 2002-04-18  David S. Miller  <davem@redhat.com>
6187
6188         * config/sparc/sparc.h (BRANCH_COST): Define.
6189
6190         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6191         does it.
6192
6193 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6194
6195         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6196         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6197         propagate_block calls after relaxation loop using new variable
6198         stabilized_prop_flags.
6199
6200 2002-04-18  Richard Henderson  <rth@redhat.com>
6201
6202         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6203         (ia64_va_arg): Expect variable sized types by reference.
6204         * config/ia64/ia64-protos.h: Update.
6205         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6206         ia64_function_arg_pass_by_reference.
6207
6208 2002-04-18  Richard Henderson  <rth@redhat.com>
6209
6210         * ifcvt.c: Include except.h.
6211         (block_has_only_trap): Break out from find_cond_trap.
6212         (find_cond_trap): Use it.  Always delete the trap block.
6213         (merge_if_block): Allow then block null.  Be less simplistic about
6214         what insns can end a block.
6215         * Makefile.in (ifcvt.o): Depend on except.h.
6216
6217         * config/ia64/ia64.md (trap, conditional_trap): New.
6218
6219 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6220
6221         PR c/6358
6222         * function.c (assign_parms): Assign hard current_function_return_rtx
6223         register here...
6224         (expand_function_end): ...not here.
6225
6226 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6227
6228         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6229         * c-tree.h (c_incomplete_type_error): New.
6230         * c-typeck.c (require_complete_type, build_component_ref): Update.
6231         (incomplete_type_error): Rename.
6232         * langhooks-def.h (lhd_incomplete_type_error): New.
6233         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6234         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6235         * langhooks.c (lhd_incomplete_type_error): New.
6236         * langhooks.h (struct lang_hooks_for_types): New hook.
6237         * tree.c (size_in_bytes): Use new hook.
6238         * tree.h (incomplete_type_error): Remove.
6239 objc:
6240         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6241
6242 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6243
6244         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6245         TARGET_FLOAT_FORMAT blocks.
6246
6247 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6248
6249         * doc/install.texi (Downloading the source): Do not mention Chill
6250         any longer, but mention Ada.
6251         (Configuration): Do not mention Chill any longer.
6252
6253 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6254
6255         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6256
6257 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6258
6259         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6260         in last patch.
6261
6262 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6263
6264         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6265         instead of unsigned_type.
6266
6267 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6268
6269         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6270         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6271         later.
6272
6273 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6274
6275         * attribs.c (vector_type_node_list): New static variable.
6276         (handle_vector_size_attribute): Use it to avoid generating a
6277         new type node each time we are called.
6278
6279         * combine.c (subst): Avoid trying to make a vector mode subreg of
6280         an integer constant.
6281         (gen_lowpart_for_combine): Likewise.
6282
6283 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6284             Jakub Jelinek  <jakub@redhat.com>
6285
6286         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6287         for integer constant c (if x has unsigned type or sign bit is not
6288         set in c).  This folds the zero/sign extension into the bit-wise and
6289         operation.
6290
6291 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6292
6293         PR middle-end/6205
6294         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6295         otherwise xorps.
6296
6297 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6298
6299         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6300
6301 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6302
6303         * gcc.c (read_specs): Detect and fail if an attempt is made to
6304         rename a spec string to an already existing string.
6305
6306 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6307
6308         * config/s390/s390.c (legitimize_pic_address): Do not generate
6309         illegal address constant without CONST.
6310
6311 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6312
6313         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6314         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6315
6316 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6317
6318         PR optimization/6305
6319         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6320         to make sure previous reloads are taken into account.  Generate
6321         better code if one operand is an in-range immediate constant.
6322
6323 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6324
6325         * doc/install.texi (Building): libgcj requires GNU make.
6326
6327 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6328
6329         PR bootstrap/6315
6330         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6331         even if hard quad and register is not floating.
6332         (movtf reg<-mem split): Disallow splitting if hard quad and
6333         register is floating.
6334         (movtf mem<-reg split): Likewise.
6335         * config/sparc/sparc.c (fp_register_operand): New predicate.
6336         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6337
6338 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6339
6340         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6341         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6342         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6343         UNPROTOIZE on command line.
6344         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6345         (in_system_include_dir): Use cpp_include_defaults (defined in
6346         cppdefault.o).
6347         * unprotoize.c: Delete file.
6348
6349 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6350
6351         * config/rs6000/altivec.h (vec_ld): Add array variants.
6352         (vec_lde): Same.
6353         (vec_ldl): Same.
6354
6355 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6356             Aldy Hernandez <aldyh@redhat.com>
6357
6358         * config/rs6000/altivec.h: Define __ALTIVEC__.
6359         (bool): New.
6360         (__pixel): New.
6361         (pixel): New.
6362         (vec_cfux): New.
6363         (vec_vmaddfp): New.
6364         (vec_vsldoi): New.
6365         Add parentheses to all macro arguments.
6366
6367 2002-04-16  Richard Henderson  <rth@redhat.com>
6368
6369         PR c++/6320
6370         * except.c (remove_eh_handler): Insert inner regions at beginning
6371         of sibling chain.  Refactor expressions.
6372
6373 2002-04-16  Richard Henderson  <rth@redhat.com>
6374
6375         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6376         * config/sparc/sol2-gas-bi.h: New file.
6377         * config.gcc (sparc*-solaris): Add it as needed.
6378         * configure.in (AS_SPARC64_FLAG): Remove check.
6379         * config.in, configure: Regenerate.
6380
6381         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6382
6383 2002-04-16  Richard Henderson  <rth@redhat.com>
6384
6385         * config/mips/mips.c (override_options): Don't override N32 for
6386         a 64-bit ISA.
6387
6388         PR 6202
6389         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6390         (HILO_delay): Set can_delay false.
6391
6392 2002-04-16  Dale Johannesen <dalej@apple.com>
6393
6394         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6395         instruction addresses.
6396         (rs6000_output_function_epilogue): Likewise.
6397
6398 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6399
6400         * c-parse.in (poplevel, compstmt_start,
6401         compstmt_primary_start): Add ending ';', in accordance
6402         with POSIX.
6403
6404 2002-04-16  Richard Henderson  <rth@redhat.com>
6405
6406         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6407         Adjust tm_file order to get TARGET_DEFAULT set properly.
6408         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6409         * doc/install.texi (sparc-solaris): Update.
6410
6411 2002-04-16  Dale Johannesen <dalej@apple.com>
6412
6413         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6414         comparison operands do not match each other or if modes of
6415         conditions do not match result.
6416
6417 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6418
6419         PR target/6305
6420         * config/s390/s390.md (mulsidi3): Set both subregs of the
6421         multiword register.
6422
6423 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6424
6425         * config/rs6000/altivec.h (vec_addc): Type check.
6426
6427 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6428
6429         PR middle-end/6279
6430         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6431
6432         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6433
6434 2002-04-15  Richard Henderson  <rth@redhat.com>
6435
6436         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6437         call_really_used_regs too.
6438
6439 2002-04-15  Richard Henderson  <rth@redhat.com>
6440
6441         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6442
6443 2002-04-15  David S. Miller  <davem@redhat.com>
6444
6445         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6446         as being CLOBBERed.
6447
6448 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6449
6450         PR c/6290
6451         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6452         CONST_VECTOR is { 0, ... 0 }.
6453
6454 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6455
6456         * doc/install.texi (Installing GCC: Configuration): Clarify
6457         the only supported ways to configure gcc.
6458
6459 2002-04-15  Roland McGrath  <roland@frob.com>
6460
6461         * config.gcc (alpha*-*-gnu*): New target configuration.
6462         * config/alpha/gnu.h: New file for it.
6463         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6464
6465 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6466
6467         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6468         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6469         * tree.h (expand_start_stmt_expr): Update prototype.
6470         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6471         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6472         on the STMT_EXPR created for the inline function.
6473
6474 2002-04-15  Richard Henderson  <rth@redhat.com>
6475
6476         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6477         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6478         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6479         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6480         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6481         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6482         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6483         Define __gnu_linux__, not gnu_linux.
6484         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6485
6486 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6487
6488         Remove Chill front end.
6489         * gcc.c (default_compilers): Remove Chill entries.
6490         * ch: Remove directory.
6491         * doc/frontends.texi: Remove information about Chill.
6492         * doc/sourcebuild.texi: Likewise.
6493         * doc/standards.texi: Likewise.
6494
6495 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6496
6497         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6498         (LONGLONG_STANDALONE): Define.
6499
6500 2002-04-15  David S. Miller  <davem@redhat.com>
6501
6502         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6503         Call emit_library_call with LCT_NORMAL.
6504         (sparc_initialize_trampoline): Use LCT_foo instead of
6505         magic constant in emit_library_call invocations.
6506         (sparc64_initialize_trampoline): Likewise.
6507         (sparc_profile_hook): Likewise.
6508         * config/sparc/sparc.md: Likewise.
6509
6510         * config/sparc/sparc.c (sparc_extra_constraint_check):
6511         Fix type of argument 'c'.
6512         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6513         Likewise.
6514
6515 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6516
6517         * diagnostic.h (output_buffer_state): Redefine.
6518         (output_format_decoder): New macro.
6519         (output_prefixing_rule): Likewise.
6520         (output_line_cutoff): Likewise.
6521         (diagnostic_format_decoder): Adjust.
6522         (diagnostic_prefixing_rule): Likewise.
6523         (diagnostic_line_cutoff): Likewise.
6524         (diagnostic_state): Likewise.
6525         (diagnostic_kind_count): Likewise.
6526         (diagnostic_buffer): Now a macro.
6527
6528         * diagnostic.c (diagnostic_buffer): Remove definition.
6529         (output_is_line_wrapping): Adjust.
6530         (set_real_maximum_length): Likewise.
6531         (output_set_maximum_length): Likewise.
6532         (init_output_buffer): Likewise.
6533         (lhd_print_error_function): Likewise.
6534         (output_do_verbatim): Likewise.
6535
6536 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6537
6538         * cpperror.c (print_location): Don't print include chain
6539         if line == 0.
6540         (cpp_begin_message): Update to use DL_ macros.
6541         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6542         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6543         cpp_notice, cpp_notice_from_errno): Remove.
6544         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6545         level.
6546         (cpp_errno): New.
6547         * cppexp.c (CPP_ICE): Remove.
6548         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6549         lex, integer_overflow, _cpp_parse_expr): Update.
6550         * cppfiles.c (read_include_file, find_include_file,
6551         handle_missing_header, _cpp_read_file, remap_filename): Update.
6552         * cpphash.h (enum error_type): Remove.
6553         (_cpp_begin_message): Update.
6554         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6555         cpp_handle_option, cpp_post_options): Update.
6556         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6557         skip_whitespace, parse_identifier, parse_slow, parse_string,
6558         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6559         cpp_interpret_charconst): Update.
6560         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6561         lex_macro_node, do_undef, glue_header_name, parse_include,
6562         do_include_common, read_flag, do_line, do_linemarker, do_ident,
6563         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6564         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6565         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6566         _cpp_pop_buffer, do_diagnostic): Update.
6567         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6568         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6569         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6570         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6571         cpp_notice, cpp_notice_from_errno): Remove.
6572         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6573         level.
6574         (cpp_errno): New.
6575         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6576         collect_args, enter_macro_context, save_parameter, parse_params,
6577         _cpp_create_definition, check_trad_stringification,
6578         cpp_macro_definition): Update.
6579         * cppmain.c (cpp_preprocess_file): Update.
6580         * fix-header.c (read_scan_file): Update.
6581
6582 2002-04-14  Andreas Schwab  <schwab@suse.de>
6583
6584         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6585
6586 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6587
6588         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6589
6590 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6591
6592         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6593         not gnu_hurd.
6594
6595 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
6596
6597         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6598
6599 2002-04-13      Joel Sherrill <joel@OARcorp.com>
6600
6601         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
6602         sparc-elf and sparc-rtems targets.
6603
6604 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6605
6606         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6607         defined, and __gnu_hurd__ wherever __GNU__ is defined.
6608         * arm/linux-elf.h: Likewise.
6609         * cris/aout.h: Likewise.
6610         * cris/linux.h: Likewise.
6611         * i370/linux.h: Likewise.
6612         * i386/gnu.h: Likewise.
6613         * i386/linux-aout.h: Likewise.
6614         * i386/linux-oldld.h: Likewise.
6615         * i386/linux.h: Likewise.
6616         * i386/linux64.h: Likewise.
6617         * ia64/linux.h: Likewise.
6618         * m68k/linux-aout.h: Likewise.
6619         * m68k/linux.h: Likewise.
6620         * mips/linux.h: Likewise.
6621         * pa/pa-linux.h: Likewise.
6622         * pj/linux.h: Likewise.
6623         * rs6000/sysv4.h: Likewise.
6624         * s390/linux.h: Likewise.
6625         * sh/linux.h: Likewise.
6626         * sparc/linux-aout.h: Likewise.
6627         * sparc/linux.h: Likewise.
6628         * sparc/linux64.h: Likewise.
6629         * xtensa/linux.h: Likewise.
6630
6631 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
6632
6633         * stmt.c (check_unique_operand_names): Expect operand names to
6634         be strings rather than identifiers.  Use simple_cst_equal to
6635         compare them.
6636         (resolve_operand_name_1): Make same identifier to string change here.
6637         * c-parse.in (asm_operand): Convert a named operand into a string.
6638         * cp/parse.y (asm_operand): Likewise.
6639
6640 2002-04-13  Andreas Schwab  <schwab@suse.de>
6641
6642         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6643
6644 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
6645
6646         Revert these changes:
6647
6648         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
6649
6650         PR c++/5571
6651         * stor-layout.c (layout_decl): Reset the RTL for the decl.
6652
6653 2002-04-12  Richard Henderson  <rth@redhat.com>
6654
6655         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6656         (sparc*-*-solaris): Clean up header files.
6657         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6658         and plan on generating 64-bit code.
6659         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6660         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6661         * config/sparc/sol2-sld-64.h: Rename ...
6662         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
6663         for AS_SPARC64_FLAG not defined.
6664         * config/sparc/sol2-gld-bi.h: New.
6665         * config/sparc/sol2-sld.h: Remove.
6666         * config/sparc/sol26-sld.h: New.
6667         * config/sparc/sol2.h: Tidy comments.
6668         * doc/install.texi: Document sparc-solaris configury changes.
6669
6670 2002-04-12  Richard Henderson  <rth@redhat.com>
6671
6672         * recog.c (offsettable_address_p): Match the logic in adjust_address.
6673
6674         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6675         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
6676
6677 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6678
6679         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6680
6681 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
6682
6683         * pa.c (pa_can_combine_p): Call extract_insn before calling
6684         constrain_operands.
6685
6686 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
6687
6688         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6689         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6690         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6691         (CPP_PREDEFINES): Handle __declspec.
6692         * config/i386/t-interix (USER_H): Remove.
6693
6694 2002-04-12  DJ Delorie  <dj@redhat.com>
6695
6696         * integrate.c (compare_blocks): Make comparisons safe for when
6697         sizeof(int) < sizeof(char *).
6698         (find_block): Likewise.
6699
6700 2002-04-12  Jan Hubicka  <jh@suse.cz>
6701             David Edelsohn  <edelsohn@gnu.org>
6702
6703         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6704         registers.
6705         (symbol_ref_operand): New.
6706         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6707         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6708
6709 2002-04-12  Andreas Schwab  <schwab@suse.de>
6710
6711         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6712         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6713         overrides the definition in config/svr4.h.
6714
6715 2002-04-12      Eric Norum <eric.norum@usask.ca>
6716
6717         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6718         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6719         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6720         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6721         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6722         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6723         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6724         definitions to config/rtems.h and make the targets more similar.
6725
6726 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6727
6728         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6729         POINTERS_EXTEND_UNSIGNED.
6730         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6731         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6732
6733         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6734         not specified.
6735
6736 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
6737
6738         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6739         depends on TARGET_SHMEDIA, not TARGET_SH5.
6740
6741 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
6742
6743         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6744         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6745
6746 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
6747
6748         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6749         no r0 clobber.
6750
6751 2002-04-12  Andreas Schwab  <schwab@suse.de>
6752
6753         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6754
6755 2002-04-12  Richard Henderson  <rth@redhat.com>
6756
6757         PR bootstrap/4191
6758         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6759
6760         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6761         modes spanning multiple hard regs.
6762
6763         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6764
6765 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6766
6767         * pa.c (pa_output_function_prologue): Don't accumulate the total
6768         number of code bytes when using TARGET_64BIT, or gas, SOM and not
6769         the portable runtime.
6770         (output_deferred_plabels): Handle 64bit plabels.
6771         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6772         generating pic code using the GAS assembler for object formats that
6773         are not SOM (ie., ELF32 and ELF64).
6774         (output_millicode_call): Check attribute type if attribute length is 28.
6775         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
6776         dbr_sequence_length once.
6777         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6778         dbr_sequence_length once.
6779         * pa.h (TARGET_SOM): Define if not defined.
6780         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6781         with GAS and not SOM.
6782         (jump, call_internal_reg, call_value_internal_reg): Likewise.
6783         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
6784
6785 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6786
6787         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6788         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6789         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6790         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6791         elfos.h and dbxelf.h values are fine now.
6792         * config/i386/freebsd.h, config/alpha/freebsd.h
6793         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6794
6795 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6796
6797         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6798         or set Acpu or Amachine.  Reformat.
6799         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6800         define.
6801         (LINK_SPEC): Do not need to undef.
6802         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6803         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6804         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6805         define.
6806         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6807         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6808         (LINK_SPEC): Do not need to undef.
6809         (DONT_USE_BUILTIN_SETJMP): Do not define.
6810         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6811         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
6812         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6813         Remove trailing spaces.
6814         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6815         __ELF__, or set Acpu or Amachine.  Reformat.
6816         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6817         define.
6818
6819 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6820
6821         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6822         all other *-*-freebsd* targets.
6823
6824 2002-04-11  Richard Henderson  <rth@redhat.com>
6825
6826         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6827
6828 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6829
6830         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6831         Include {cpu}/{cpu}.h thru tm_file.
6832         (alpha*-*-linux*ecoff): Remove target.
6833         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6834         (LINK_SPEC): Remove, is not OS independent.
6835         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6836         (LINK_SPEC): Do not need to #undef any longer.
6837         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6838         any longer.
6839         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6840         __ELF__.
6841         (LINK_SPEC): Moved here from alpha/elf.h.
6842         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6843         SUB_CPP_PREDEFINES.
6844         * config/alpha/linux-ecoff.h: Remove.
6845         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6846         (CPP_SPEC): Define _POSIX_SOURCE as needed.
6847         (CPP_SUBTARGET_SPEC): Do not define.
6848         (LINK_SPEC): Do not need to #undef any longer.
6849         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6850         * config/alpha/vms.h: Likewise.
6851
6852 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
6853
6854         * doc/extend.texi: Remove old claim that typedefs cannot have
6855         an alignment attribute.
6856
6857 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6858
6859         PR optimization/6177
6860         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6861         bitpos is 0 and bitsize CONCAT size.
6862
6863 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6864
6865         PR c/6223
6866         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6867
6868 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
6869
6870         * config/alpha/freebsd.h: Minor reformatting.
6871         (CPP_SPEC): Define ELF and add cpp_subtarget.
6872         (ASM_SPEC): No longer needed.
6873
6874 2002-04-11  Richard Henderson  <rth@redhat.com>
6875
6876         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6877         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
6878         (dimode mem/zero splitter): New.
6879
6880 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
6881
6882         * config/cris/cris.c (cris_override_options): Tweak error message
6883         for PIC not implemented.
6884
6885         * config/cris/cris.h: Tweak comments related to parameter-passing.
6886
6887         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6888
6889 2002-04-10  Richard Henderson  <rth@redhat.com>
6890
6891         * except.c (add_ehl_entry): Allow duplicates after landing pad
6892         creation.
6893
6894 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
6895
6896         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6897
6898 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
6899
6900         * c-decl.c (c_init_decl_processing): Move generation of
6901         decls for g77_integer_type_node and friends from here ...
6902         * c-common.c (c_common_nodes_and_builtins): ... to here.
6903
6904 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
6905
6906         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6907         is only used as frame pointer when frame_pointer_needed is true.
6908
6909 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
6910
6911         PR target/817
6912         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6913         for the fact that the pool entry uses two words.
6914         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
6915         1k bytes.
6916         (movdf_soft_insn): Similarly.
6917         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6918         for the fact that the pool entry uses three words.
6919
6920 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
6921
6922         * config/mips/mips.c (mips_va_arg): When using the struct version
6923         of the EABI va_list, allow arguments in the register save area to
6924         take up less room than a stack argument.
6925
6926 2002-04-10  Richard Henderson  <rth@redhat.com>
6927
6928         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6929         if EXPAND_INITIALIZER.
6930
6931 2002-04-09  Richard Henderson  <rth@redhat.com>
6932
6933         * config/alpha/alpha.md (movdi_er_maybe_g): New.
6934         * config/alpha/alpha.c (alpha_expand_mov): Use it.
6935
6936 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
6937
6938         PR optimization/6233
6939         * rtlanal.c (pure_call_p): New function.
6940         * rtl.h (pure_call_p): Declare.
6941         * loop.c (prescan_loop): Use it to set has_nonconst_call.
6942         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6943
6944 2002-04-09  Eric Christopher  <echristo@redhat.com>
6945
6946         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6947         information to .comm directive.
6948
6949 2002-04-09  Richard Henderson  <rth@redhat.com>
6950
6951         PR c/5078
6952         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6953
6954 2002-04-09  Richard Henderson  <rth@redhat.com>
6955
6956         * basic-block.h (flow_delete_block_noexpunge): Declare.
6957         (expunge_block_nocompact): Declare.
6958         * cfg.c (expunge_block_nocompact): Split out from ...
6959         (expunge_block): ... here.
6960         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6961         (flow_delete_block_noexpunge): Split out from ...
6962         (flow_delete_block): ... here.
6963         * cfgcleanup.c (delete_unreachable_blocks): Compact while
6964         removing dead blocks.
6965         * except.c (exception_handler_labels): Remove.
6966         (exception_handler_label_map): New.
6967         (struct eh_region): Add aka member.
6968         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6969         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6970         (for_each_eh_label, for_each_eh_label_1): New.
6971         (init_eh): Register exception_handler_label_map.
6972         (free_eh_status): Use free_region.
6973         (find_exception_handler_labels): Use the map, not the list.
6974         (remove_exception_handler_label): Likewise.
6975         (maybe_remove_eh_handler): Likewise.
6976         (remove_eh_handler): Use the region aka bitmap.
6977         * except.h (exception_handler_labels): Remove.
6978         (for_each_eh_label): Declare.
6979         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
6980         * loop.c (invalidate_loops_containing_label): New.
6981         (find_and_verify_loops): Use it.  Use for_each_eh_label.
6982         * sched-rgn.c (is_cfg_nonregular): Use
6983         current_function_has_exception_handlers.
6984
6985 2002-04-09  Richard Henderson  <rth@redhat.com>
6986
6987         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
6988         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
6989         Do not return changed status.
6990         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
6991         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
6992         New functions that do return changed status.
6993         * sbitmap.h: Update decls.
6994         * gcse.c, lcm.c: Use _cg functions as needed.
6995
6996 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6997
6998         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
6999         (sh64-*-elf*, sh-*-rtemself*): Likewise.
7000         * config/sh/embed_bb.c: New file.
7001         * config/sh/embed-elf.h: New file.
7002         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7003         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
7004         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7005         __PTRDIFF_TYPE__ .
7006         (SUBTARGET_CPP_PTR_SPEC): Don't define.
7007         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7008         Add subtarget_asm_endian_spec.
7009         (ASM_SPEC): Use subtarget_asm_endian_spec.
7010         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7011         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7012         (WCHAR_UNSIGNED): Define.
7013         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7014         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7015         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7016         Fix value.
7017         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7018         (sh_adjust_cost): Likewise.
7019         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7020         __PTRDIFF_TYPE__ .
7021         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7022         (WCHAR_TYPE_SIZE): Likewise.
7023         (ASM_SPEC): Use subtarget_asm_endian_spec.
7024         (SH_ELF_WCHAR_TYPE): #undef/ #define.
7025         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7026         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7027         (MAX_WCHAR_TYPE_SIZE): Don't #define .
7028         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7029         (USER_LABEL_PREFIX): Don't #undef /#define .
7030         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7031         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7032         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7033         (ASM_SPEC): Likewise.
7034         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7035         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7036         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7037         (LIB2FUNCS_EXTRA): Define.
7038         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7039         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7040         (LIB1ASMFUNCS_CACHE): Define.
7041         (LIB2FUNCS_EXTRA): Redefine empty.
7042
7043 2002-04-08  Richard Henderson  <rth@redhat.com>
7044
7045         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7046
7047 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7048
7049         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7050         and optimize for size.
7051         (__do_global_ctors): Fix pointer comparison.
7052         (__do_global_dtors): Likewise.
7053
7054 2002-04-09  David S. Miller  <davem@redhat.com>
7055
7056         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7057         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7058         allow reloading pseudos.
7059         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7060         * config/sparc/sparc-protos.h: Declare it.
7061
7062         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7063         unsigned comparison warning.
7064         (output_restore_regs): Mark leaf_function as unused.
7065
7066 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7067
7068         * expr.c (is_aligning_offset): New function.
7069         (expand_expr, case COMPONENT_EXPR): Call it.
7070
7071 2002-04-08  David S. Miller  <davem@redhat.com>
7072
7073         PR target/6082
7074         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7075
7076         Make init_priority work on Sparc when using GNU ld.
7077         * config/sparc/linux.h, config/sparc/linux64.h,
7078         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7079         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7080         * config/sparc/sol2-gld.h: New file to do the same.
7081         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7082         sparc/sol2-gld.h to tm_file.
7083
7084         PR optimization/4328
7085         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7086         * doc/md.texi: Document it.
7087         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7088         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7089         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7090         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7091         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7092
7093 2002-04-08  Andreas Jaeger  <aj@suse.de>
7094
7095         * stmt.c (expand_asm_operands): Revert last patch from Richard
7096         Henderson.
7097
7098 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7099
7100         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7101         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7102
7103 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7104
7105         * doc/contrib.texi (Contributors): Add David O'Brien.
7106
7107 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7108
7109         * configure.in (auto-build.h): Use target_alias and build_alias
7110         when running configure.
7111         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7112         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7113         * configure: Regenerate.
7114
7115 2002-04-07  David S. Miller  <davem@redhat.com>
7116
7117         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7118
7119 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7120
7121         PR 5933
7122         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7123         generating 32-bit pic code.
7124
7125 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7126
7127         * cppinit.c (cpp_create_reader): Initialize
7128         discard_comments_in_macro_exp.
7129         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7130         (cpp_handle_option): Handle "-CC" option.
7131         * cpplex.c (save_comment): If saving a C++ comment in
7132         a directive, convert it to a C comment.
7133         (_cpp_lex_direct): Pass second comment start character to
7134         save_comment to indicate comment type.
7135         * cpplib.c (_cpp_handle_directive): If processing
7136         a "#define" directive and discard_comments_in_macro_exp
7137         is false,  re-enable saving of comments.
7138         (lex_macro_node): If discard_comments_in_macro_exp is false,
7139         discard any comments before the macro identifier.
7140         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7141         member.
7142         * cppmacro.c (cpp_get_token): If expanding a macro while
7143         processing a directive, discard any comments we might encounter.
7144         (parse_params): If discard_comments_in_macro_exp is false,
7145         ignore comments in the macro parameter list.
7146         * gcc.c (cpp_unique_options): Add "-CC" option.
7147         (option_map): Map "--comments-in-macros" to "-CC".
7148         * doc/cppopts.texi: Document "-CC" option.
7149         * f/lang-specs.h: Add "-CC" option.
7150         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7151         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7152         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7153         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7154         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7155         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7156
7157 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7158
7159         PR middle-end/6180
7160         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7161
7162 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7163
7164         PR c++/5571
7165         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7166
7167         PR opt/5120
7168         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7169         RTX_UNCHANGING_P for the functions arguments when a tail call
7170         is made.
7171
7172 2002-04-06  Jason Merrill  <jason@redhat.com>
7173
7174         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7175         (parse_options_and_default_flags): Set them appropriately.
7176         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7177
7178 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7179
7180         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7181         here.
7182
7183         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7184         semicolon.
7185
7186         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7187         types come in by-reference.  Fix typo in comment.
7188
7189 2002-04-05  David S. Miller  <davem@redhat.com>
7190
7191         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7192         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7193         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7194         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7195
7196 2002-04-05  David S. Miller  <davem@redhat.com>
7197
7198         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7199         are not going to emit return instructions, emit at least a nop
7200         for the sake of sane backtraces.
7201
7202 2002-04-05  Richard Henderson  <rth@redhat.com>
7203
7204         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7205
7206 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7207
7208         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7209
7210 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7211
7212         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7213         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7214         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7215
7216 2002-04-05  Andreas Schwab  <schwab@suse.de>
7217
7218         * c-convert.c: Include c-common.h.
7219         * Makefile.in (c-convert.o): Updated.
7220
7221 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7222
7223         * mklibgcc.in: Use separate libgcc.map for each multilib.
7224         * Makefile.in (distclean): Don't remove libgcc.map here.
7225
7226 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7227
7228         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7229         genmultilib invocation.
7230
7231 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7232
7233         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7234         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7235         to num_gprs for symmetry.
7236         * config/mips/mips.c: Adjust accordingly.
7237
7238 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7239
7240         * c-common.c (truthvalue_conversion): Rename, update.
7241         * c-common.h (c_common_truthvalue_conversion): New.
7242         * c-convert.c (convert): Update.
7243         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7244         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7245         * c-typeck.c (build_binary_op, build_unary_op,
7246         build_conditional_expr): Update.
7247         * fold-const.c (constant_boolean_node, fold): Use langhook.
7248         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7249         * langhooks.h (struct lang_hooks): New hook.
7250         * stmt.c (expand_decl_cleanup): Use langhook.
7251         * tree.h (truthvalue_conversion): Remove.
7252 objc:
7253         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7254
7255 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7256
7257         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7258         Add rules to make null object file.
7259
7260 2002-04-04  Jim Blandy  <jimb@redhat.com>
7261
7262         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7263         macro formal parameter names.
7264
7265 2002-04-04  David S. Miller  <davem@redhat.com>
7266
7267         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7268
7269 2002-04-04  Richard Henderson  <rth@redhat.com>
7270
7271         PR middle-end/5099
7272         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7273         Support copies into and out of memory.  Don't accept allows_reg
7274         and allows_mem as gospel.
7275
7276 2002-04-04  Richard Henderson  <rth@redhat.com>
7277
7278         PR opt/6165
7279         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7280         (write_dependence_p): Likewise.
7281
7282 2002-04-04  Richard Henderson  <rth@redhat.com>
7283
7284         * predict.c (estimate_bb_frequencies): Do frequency calculation
7285         with a volatile temporary.
7286
7287 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7288
7289         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7290
7291 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7292
7293         PR c++/6119
7294         * final.c (final_start_function): Don't bump profile_label_no here...
7295         (final_end_function): ...but here.
7296
7297 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7298
7299         * config/sparc/sparc.md (pic): New attribute.
7300         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7301         into stack slots.
7302         (split after do_builtin_setjmp_setup): New.
7303
7304 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7305
7306         PR fortran/6106
7307         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7308         change.
7309
7310 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7311
7312         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7313         UNITS_PER_WORD for zero sized aggregates.
7314
7315 2002-04-03  David S. Miller  <davem@redhat.com>
7316
7317         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7318         one-character spec for this, just use %(link_gcc_c_sequence).
7319
7320 2002-04-03  David S. Miller  <davem@redhat.com>
7321
7322         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7323         handling.
7324
7325 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7326
7327         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7328         (DWARF_FRAME_RETURN_COLUMN): Move.
7329         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7330         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7331         * pa.c (except.h, predict.h): Include.
7332         (FRP): Delete.
7333         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7334         (output_ascii): Add cast.
7335         (store_reg_modify): Revise to add frame notes.
7336         (set_reg_plus_d): Likewise.
7337         (compute_frame_size): Include space for eh data registers in frame if
7338         the current function calls eh_return.
7339         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7340         function calls eh_return.  Save eh data registers if the current
7341         function calls eh_return.  Fix code to add frame notes.  Emit
7342         blockage to prevent insns with frame notes being scheduled in the
7343         delay slot of calls.
7344         (hppa_expand_epilogue): Restore eh data registers and do final stack
7345         adjustment if the current function calls eh_return.  Don't add frame
7346         notes.
7347         (output_call): Revise for change in length of call insn.  Don't do
7348         return pointer adjustment for an unconditional jump in the delay slot
7349         of a call when using frame notes.
7350         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7351         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7352         (ARG_POINTER_CFA_OFFSET): Define.
7353         * pa.md (return_external_pic): New pattern.
7354         (prologue): Correct formatting.  Use return_external_pic if current
7355         function calls eh_return.
7356         (call_internal_symref, call_value_internal_symref,
7357         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7358         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7359         respectively.
7360         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7361
7362         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7363         list of targets to check using "nop" insn.
7364         * configure: Rebuilt.
7365
7366 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7367
7368         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7369
7370 2002-04-03  David S. Miller  <davem@redhat.com>
7371
7372         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7373         library sequence passed to the linker.
7374         (LINK_COMMAND_SPEC): Use it.
7375         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7376         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7377         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7378
7379 2002-04-03  Jason Merrill  <jason@redhat.com>
7380
7381         * except.c (struct eh_status): Remove protect_list.
7382         (begin_protect_partials, end_protect_partials): Remove.
7383         (add_partial_entry): Remove.
7384         * except.h: Remove prototypes.
7385
7386         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7387         expand_decl_cleanup_eh.
7388
7389         PR c++/5636
7390         * tree.h (CLEANUP_EH_ONLY): New macro.
7391         * stmt.c (expand_decl_cleanup_eh): New fn.
7392         (expand_cleanups): Check CLEANUP_EH_ONLY.
7393         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7394         Use expand_decl_cleanup_eh.
7395         (expand_stmt): Adjust.
7396         * c-common.h: Adjust prototype.
7397
7398 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7399
7400         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7401         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7402         (cris_target_asm_function_epilogue): Ditto.
7403         (cris_initial_frame_pointer_offset): Ditto.
7404         (cris_simple_epilogue): Ditto.
7405         (cris_expand_builtin_va_arg): Variable-size types come in
7406         by-reference.
7407
7408 2002-04-03  David S. Miller  <davem@redhat.com>
7409
7410         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7411         little-endian.
7412         (set_fast_math): Correct 'fsr' type.
7413
7414 2002-04-03  Richard Henderson  <rth@redhat.com>
7415
7416         PR opt/3569
7417         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7418         * toplev.c (check_global_declarations): Use it.
7419         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7420         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7421         (LANG_HOOKS_DECLS): Add it.
7422         * langhooks.c (lhd_warn_unused_global_decl): New.
7423         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7424         * c-objc-common.c (c_warn_unused_global_decl): New.
7425         * c-tree.h (c_warn_unused_global_decl): Declare.
7426         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7427
7428 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7429
7430         * langhooks-def.h (lhd_set_decl_assembler_name,
7431         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7432         (LANG_HOOKS_INITIALIZER): Update.
7433         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7434         * langhooks.h (struct lang_hooks): New hook.
7435         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7436         (lang_set_decl_assembler_name): Remove.
7437         (init_obstacks): Don't set hook.
7438         (decl_assembler_name): New function.
7439         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7440         (decl_assembler_name): New.
7441         (lang_set_decl_assembler_name): Remove.
7442
7443 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7444
7445         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7446         works properly with .hidden symbols.
7447         * configure: Rebuilt.
7448         * config.in: Rebuilt.
7449         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7450         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7451         properly with .hidden symbols.
7452
7453 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7454
7455         PR middle-end/6102
7456         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7457         USE argument.
7458
7459 2002-04-03  Richard Henderson  <rth@redhat.com>
7460
7461         PR opt/4120
7462         * sched-rgn.c (sets_likely_spilled): New.
7463         (sets_likely_spilled_1): New.
7464         (add_branch_dependences): Use it.
7465
7466 2002-04-02  Richard Henderson  <rth@redhat.com>
7467
7468         PR opt/4311
7469         * loop.h (LOOP_FIRST_PASS): New.
7470         * loop.c (strength_reduce): Mind it when deciding to unroll.
7471         * toplev.c (rest_of_compilation): Set it.
7472
7473 2002-04-02  David S. Miller  <davem@redhat.com>
7474
7475         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7476         mems_ok_for_ldd_peep when the order of the loads being examined
7477         is reversed.
7478         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7479         existing comment to increase comprehension of this situation.
7480
7481 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7482
7483         * config/sh/sh.md: Don't use union real_extract.
7484
7485 2002-04-02  Richard Henderson  <rth@redhat.com>
7486
7487         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7488
7489 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7490
7491         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7492         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7493         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7494         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7495         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7496         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7497         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7498         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7499         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7500         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7501         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7502         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7503         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7504         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7505         Include as many configury headers via tm_file as possible.  This
7506         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7507         * config/openbsd-oldgas.h: New file.
7508         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7509         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7510         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7511         config/i386/i386-coff.h, config/i386/i386-interix.h,
7512         config/i386/iscdbx.h, config/i386/linux-aout.h,
7513         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7514         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7515         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7516         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7517         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7518         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7519         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7520         config/i386/vxi386.h: Do not directly include configury headers.
7521         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7522         Directly include configury headers that are no longer automatically
7523         included by the above headers.
7524         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7525         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7526         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7527         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7528         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7529         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7530         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7531         (TARGET_VERSION): Define.
7532         * config/i386/beos-elf.h, config/i386/freebsd.h,
7533         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7534         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7535         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7536         config/i386/sco5.h, config/i386/sysv4.h
7537         (TARGET_VERSION): Do not need to protect.
7538         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7539         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7540         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7541         config/i386/i386-interix.h, config/i386/linux-aout.h,
7542         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7543         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7544         (YES_UNDERSCORES): Do not define - not needed.
7545         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7546         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7547         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7548         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7549         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7550         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7551         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7552         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7553
7554 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
7555             Richard Henderson  <rth@redhat.com>
7556
7557         PR c/5484
7558         * function.c (assign_temp): Accept either type or decl argument.
7559         Detect variables whose size is too large to fit into an integer.
7560         * stmt.c (expand_decl): Pass the decl, not the type.
7561
7562 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7563
7564         * protoize.c: Match include directory usage with cppdefault.c.
7565
7566 2002-04-03  Jeffrey A Law  (law@redhat.com)
7567             Hans-Peter Nilsson  <hp@bitrange.com>
7568
7569         * combine.c (simplify_comparison): Avoid narrowing a comparison
7570         with a paradoxical subreg when doing so would drop signficant bits.
7571
7572 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
7573
7574         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7575         if POINTERS_EXTEND_UNSIGNED is defined.
7576
7577 2002-04-02  Richard Henderson  <rth@redhat.com>
7578
7579         PR opt/3967
7580         * local-alloc.c (contains_replace_regs): LO_SUM may contain
7581         replace regs.
7582
7583 2002-04-02  Richard Henderson  <rth@redhat.com>
7584
7585         * doc/standards.texi: Document required freestanding libc entry points.
7586
7587 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
7588
7589         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7590         associated splitter.  Remove MQ constraint.
7591         (ctrdi_internal4): Correct CCmode clobber.
7592
7593 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7594
7595         * milli64.S ($$dyncall): New function.
7596         * t-linux (LIB1ASMFUNCS): Revise module list.
7597         (LIB1ASMSRC): Use pa/milli64.S.
7598
7599 2002-04-02  Richard Henderson  <rth@redhat.com>
7600
7601         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7602         rename solaris_sys_varargs_h.
7603
7604 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7605
7606         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7607         the same mode as its component.
7608
7609 2002-04-02  Richard Henderson  <rth@redhat.com>
7610
7611         PR opt/190
7612         * final.c (this_is_asm_operands): Export.
7613         * output.h (this_is_asm_operands): Declare.
7614         * config/i386/i386.c (print_operand): Error odd asm operands.
7615
7616 2002-04-02  Richard Henderson  <rth@redhat.com>
7617
7618         PR opt/420
7619         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7620
7621 2002-04-01  Richard Henderson  <rth@redhat.com>
7622
7623         PR target/1538
7624         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7625         * fixinc/fixincl.x: Rebuild.
7626
7627 2002-04-01  Richard Henderson  <rth@redhat.com>
7628
7629         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7630         (atomic_alloc, atomic_free): New.
7631         (SIZE, MASK_FOR, PTR_IN): New.
7632         (emergency_reg_state, emergency_reg_state_free): New.
7633         (emergency_labeled_state, emergency_labeled_state_free): New.
7634         (reg_state_alloced, labeled_state_alloced): New.
7635         (alloc_reg_state, free_reg_state): New.
7636         (alloc_label_state, free_label_state, free_label_states): New.
7637         (push, pop, dup_state_stack, free_state_stack): Use them.
7638         (desc_label_state): Likewise.
7639         (uw_frame_state_for): Free label states and state stack.
7640         (uw_update_reg_address): Eliminate warnings.
7641
7642 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
7643
7644         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7645         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7646
7647 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7648
7649         * c-decl.c (grokdeclarator): Update.
7650         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7651         * c-tree.h (c_mark_addressable): New.
7652         * c-typeck.c (default_function_array_conversion, build_unary_op,
7653         build_array_ref, convert_for_assignment): Update.
7654         (mark_addressable): Rename.
7655         * calls.c (try_to_integrate, expand_call): Use langhook.
7656         * expr.c (expand_expr): Use langhook.
7657         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7658         * langhooks.h (struct lang_hooks): New hook.
7659         * stmt.c (expand_asm_operands): Use langhook.
7660         * tree.h (mark_addressable): Remove.
7661 objc:
7662         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7663
7664 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7665
7666         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7667         in previous change.
7668
7669 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7670
7671         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7672         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7673
7674 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7675
7676         * c-common.c (unsigned_conversion_warning, convert_and_check,
7677         unsigned_type, signed_type, shorten_compare,
7678         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7679         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7680         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7681         New.
7682         * c-decl.c (grokdeclarator): Update.
7683         * c-format.c (check_format_types): Update.
7684         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7685         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7686         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7687         * convert.c (convert_to_integer): Use new hooks.
7688         * expmed.c (make_tree): Use new hooks.
7689         * expr.c (store_expr): Use new hooks.
7690         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7691         all_ones_mask_p, unextend, fold): Use new hooks.
7692         * langhooks.h (struct lang_hooks_for_types): New hooks.
7693         * tree.h (signed_or_unsigned_type, signed_type,
7694         unsigned_type): Remove.
7695 objc:
7696         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7697         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7698
7699 2002-03-31  Richard Henderson  <rth@redhat.com>
7700
7701         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7702         (desc_frgr_mem): Fix reference to f16-f31.
7703
7704 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7705
7706         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7707         RTVEC_ELT): Const-ify.
7708         * varray.h (VARRAY_CHECK): Const-ify.
7709         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7710         ggc_mark_rtvec, ggc_mark): Const-ify.
7711
7712 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7713
7714         * diagnostic.c: Include langhooks-def.h.
7715         * Makefile.in (diagnostic.o): Update.
7716
7717 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7718
7719         * c-common.c (c_unsafe_for_reeval): Rename.
7720         * c-common.h (c_unsafe_for_reeval): Rename.
7721         * c-decl.c (finish_incomplete_decl): Rename.
7722         (c_init_decl_processing): Don't set langhook.
7723         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7724         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7725         * c-objc-common.c (c_objc_common_init): Don't set langhook.
7726         * c-tree.h (finish_incomplete_decl): Rename.
7727         * langhooks-def.h (lhd_unsafe_for_reeval): New.
7728         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7729         (LANG_HOOKS_INITIALIZER): Update.
7730         * langhooks.c (lhd_unsafe_For_reeval): New.
7731         * langhooks.h (struct langhooks): New hooks.
7732         * toplev.c (incomplete_decl_finalize_hook): Remove.
7733         (wrapup_global_declarations): Update.
7734         * tree.c (lang_unsafe_for_reeval): Remove.
7735         (unsafe_for_reeval): Update.
7736         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7737         Remove.
7738 objc:
7739         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7740         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7741
7742 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7743
7744         * diagnostic.c (print_error_function): Remove.
7745         (default_print_error_function): Rename.
7746         (report_error_function): Update.
7747         * diagnostic.h (print_error_function): Remove.
7748         (default_print_error_function): Remove.
7749         * langhooks-def.h (struct diagnostic_context): Predeclare.
7750         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7751         (LANG_HOOKS_INITIALIZER): Update.
7752         * langhooks.h (struct diagnostic context): Predeclare.
7753         (struct lang_hooks): New hook.
7754
7755 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7756
7757         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7758         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7759         !flag_pic.
7760         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7761         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7762         of PIC_OFFSET_TABLE_REGNUM thruout.
7763         * config/rs6000/rs6000.md: Likewise.
7764         * config/rs6000/darwin.h: Likewise.
7765
7766 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7767
7768         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7769         unsigned HOST_WIDE_INT, not unsigned int.
7770
7771 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7772
7773         PR middle-end/6096, middle-end/6098, middle-end/6099
7774         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7775         CODE_LABELs.
7776         (fill_slots_from_thread): Likewise.
7777
7778 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7779
7780         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7781         floating fields in float regs.
7782         (function_arg_record_value_2): Likewise.
7783
7784 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7785
7786         * config/mmix/mmix.md (define_constants): Remove misleading
7787         FIXME.  Add MMIX_fp_rO_OFFSET.
7788         ("nonlocal_goto_receiver"): Don't have stack-frame address of
7789         saved rO as part of the pattern.  Remove FIXME.
7790         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
7791         here, at output-time.
7792
7793 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7794
7795         PR middle-end/6100
7796         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7797         REG_BR_PRED.
7798         (output_v9branch): Likewise.
7799
7800 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
7801
7802         * gcc.c: Revert previous patch for now.
7803         * config/i386/djgpp.h: Likewise.
7804
7805 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7806
7807         * config/mmix/crti.asm (_init): Register _fini with atexit.
7808         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7809
7810 2002-03-31  Richard Henderson  <rth@redhat.com>
7811
7812         PR target/3997
7813         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7814         (ASM_OUTPUT_DEF_FROM_DECLS): New.
7815
7816 2002-03-31  Richard Henderson  <rth@redhat.com>
7817
7818         * libgcc2.c (__bb_exit_func): Make static.
7819
7820         * config/alpha/alpha.md (trap): New.
7821
7822 2002-03-31  Richard Henderson  <rth@redhat.com>
7823
7824         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7825         promoted argument types; build trap.
7826         (expand_builtin_trap): New.
7827         (expand_builtin): Use it.
7828         * stmt.c (expand_nl_goto_receivers): Likewise.
7829         * expr.h (expand_builtin_trap): Declare.
7830         * libfuncs.h (LTI_abort, abort_libfunc): New.
7831         * optabs.c (init_optabs): Init abort_libfunc.
7832
7833 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
7834
7835         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7836         (LINK_COMMAND_SPEC): ... from here.
7837         (init_gcc_specs): Duplicate it here too, omitting
7838         shared_name in the second copy.
7839         (init_spec): Test for duplicate
7840         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7841
7842 2002-03-30  David S. Miller  <davem@redhat.com>
7843
7844         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7845         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7846
7847 2002-03-30  Roger Sayle <roger@eyesopen.com>
7848             Richard Henderson  <rth@redhat.com>
7849
7850         * regmove.c (combine_stack_adjustments_for_block): Avoid
7851         emitting a stack adjustment of zero bytes.  Let delete_insn
7852         update bb->head.
7853
7854 2002-03-30  Richard Henderson  <rth@redhat.com>
7855
7856         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7857         (sparc_emitting_epilogue): New.
7858         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7859         * config/sparc/sparc-protos.h: Update.
7860         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7861         (TARGET_SWITCHES): Update.
7862         * config/sparc/sparc.md (return): Remove.
7863         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7864         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7865         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7866         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7867         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7868         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7869         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7870         Remove MASK_EPILOGUE.
7871         * doc/invoke.texi: Update.
7872
7873 2002-03-30  Daniel Berlin  <dan@dberlin.org>
7874
7875         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7876         CPP will start the file for us.
7877
7878 2002-03-30  Richard Henderson  <rth@redhat.com>
7879
7880         PR target/5446
7881         * config/ia64/ia64.c (group_barrier_needed_p): Special case
7882         prologue_allocate_stack.
7883         (ia64_single_set): Use insn codes for recognition of special
7884         cases, not rtl matching.
7885         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7886
7887 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
7888
7889         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7890
7891 2002-03-30  Richard Henderson  <rth@redhat.com>
7892
7893         PR target/6032
7894         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7895         or -fomit-frame-pointer with profiling.
7896         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7897         (FUNCTION_PROFILER): Do nothing.
7898         (PROFILE_HOOK): New.
7899         * config/sparc/sparc.c (sparc_override_options): Don't check
7900         code models for profiling.
7901         (sparc_function_profiler): Remove.
7902         (sparc_profile_hook): New.
7903         * config/sparc/sparc-protos.h: Update.
7904
7905 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7906
7907         PR optimization/6086
7908         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7909         of SUBREG of volatile MEM or because the MEM was mode dependent,
7910         return CLOBBER instead of unmodified SUBREG.
7911
7912 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7913
7914         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7915         when not optimizing.
7916
7917         * toplev.c (rest_of_compilation): Cann mark_constant_function
7918         only when optimizing.
7919
7920         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7921         are NULL.
7922
7923         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7924         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7925         (try_optimize_cfg): clear all AUX fields.
7926
7927         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7928         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7929         (ix86_address_cost): Be prepared for SUBREGed registers.
7930         (legitimate_address_p): Accept SUBREGed registers.
7931
7932 2002-03-29  Richard Henderson  <rth@redhat.com>
7933
7934         PR target/5672
7935         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7936
7937 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7938
7939         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7940         for aggregate and TFmode types.
7941
7942 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
7943
7944         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7945
7946 2002-03-29  Richard Henderson  <rth@redhat.com>
7947
7948         PR target/5886
7949         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7950         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7951
7952 2002-03-29  Richard Henderson  <rth@redhat.com>
7953
7954         PR target/6041
7955         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7956         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7957         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7958         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7959         conditional.
7960         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7961
7962 2002-03-29  Dale Johannesen <dalej@apple.com>
7963
7964         * loop.c (combine_movables): Do allow combination of pseudos.
7965
7966 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
7967
7968         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7969         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7970         No functional change except ...
7971         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
7972         * doc/install.texi (*-*-freebsd*): Document port configuration.
7973
7974 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7975
7976         * Makefile.in (convert.o, calls.o, expmed.o): Update.
7977         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
7978         Use new hooks.
7979         * builtin-types.def (BT_PTRMODE): Update.
7980         * c-common.c (type_for_size): Rename c_common_type_for_size.
7981         (type_for_mode): Similarly.
7982         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
7983         Use new hook.
7984         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
7985         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
7986         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
7987         Redefine.
7988         * c-typeck.c (common_type, comptypes, default_conversion):
7989         Use new hooks.
7990         * calls.c: Include langhooks.h.
7991         (emit_library_call_value_1): Use new hooks.  Avoid redundant
7992         calls.
7993         * convert.c: Include langhooks.h
7994         (convert_to_pointer, convert_to_integer): Use new hooks.
7995         * except.c (init_eh): Similarly.
7996         * expmed.c: Include langhooks.h.
7997         (expand_mult_add): Use new hooks.
7998         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
7999         try_casesi): Similarly.
8000         * fold-const.c (optimize_bit_field_compare, make_range,
8001         decode_field_reference, fold_truthop, fold): Similarly.
8002         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8003         put_var_into_stack): Similarly.
8004         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8005         LANG_HOOKS_TYPE_FOR_SIZE): New.
8006         (LANG_HOOKS_TYPES_INITIALIZER): Update.
8007         * langhooks.h (lang_hooks_for_types): New hooks.
8008         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8009         * tree.c (get_unwidened, get_narrower): Similarly.
8010         * tree.h (type_for_mode, type_for_size): Remove.
8011         * varasm.c (force_const_mem): Use new hooks.
8012         * utils2.c (nonbinary_modular_operation): Update.
8013 objc:
8014         * objc-act.c (handle_impent): Update.
8015         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8016         Redefine.
8017
8018 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
8019
8020         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8021         * config/ia64/ia64.c (basereg_operand): New.
8022         * config/ia64/ia64-protos.h (basereg_operand): Declare.
8023         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8024
8025 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8026
8027         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8028         unwind information when frame_pointer_needed.
8029         (mmix_assemble_integer): Tweak wording in comment.
8030
8031 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8032
8033         * Makefile.in (except.o): Update.
8034         * except.c: Include langhooks.h.
8035         (init_eh): Use langhook.
8036         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8037         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8038         (LANG_HOOKS_INITIALIZER): Update.
8039         * langhooks.h (lang_hooks_for_types): New.
8040         (struct lang_hooks): Add it.
8041         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8042         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8043 config:
8044         * alpha/alpha.c: Include langhooks.h.
8045         (alpha_build_va_list): Use langhook.
8046         * d30v/d30v.c: Include langhooks.h.
8047         (d30v_build_va_list): Use langhook.
8048         * i386/i386.c: Include langhooks.h.
8049         (ix86_build_va_list): Use langhook.
8050         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8051         * s390/s390.c: Include langhooks.h.
8052         (s390_build_va_list): Use langhook.
8053         * stormy16/stormy16.c: Include langhooks.h.
8054         (stormy16_build_va_list): Use langhook.
8055
8056 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8057
8058         PR c++/5964
8059         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8060         attributes.
8061         (length): Compute variable length for branches/calls/jumps here.
8062         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8063         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8064         define branch_type attribute.
8065         (divsi3_sp32): Maximum length is 6 not 7.
8066         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8067         call_address_untyped_struct_value_sp32,
8068         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8069         * config/sparc/sparc.c (empty_delay_slot): New function.
8070         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8071         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8072
8073 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8074
8075         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8076         nonzero_bits if not needed.
8077         (nonzero_bits) [XOR]: Likewise.
8078         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8079         reg_last_set_mode and mode are both MODE_INT, but not equal.
8080         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8081         in nonzero_bits_mode for MODE_INT modes.
8082
8083 2002-03-28  Richard Henderson  <rth@redhat.com>
8084
8085         PR target/5715
8086         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8087         to GAS.  Correct drift between alternatives.
8088
8089 2002-03-28  Richard Henderson  <rth@redhat.com>
8090
8091         PR target/6087
8092         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8093
8094 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8095
8096         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8097         emulation to the linker.
8098
8099 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8100
8101         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8102         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8103
8104 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8105
8106         * combine.c (simplify_and_const_int): Make sure to apply mask
8107         when force_to_mode returns a constant integer.  PR3311.
8108
8109 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8110
8111         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8112
8113 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8114
8115         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8116         and Objective-C Dialect Options.
8117
8118 2002-03-28  Richard Henderson  <rth@redhat.com>
8119
8120         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8121         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8122
8123 2002-03-28  Richard Henderson  <rth@redhat.com>
8124
8125         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8126         on to c_expand_body.
8127         * c-tree.h (finish_function): Update decl.
8128         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8129
8130 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8131
8132         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8133
8134 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8135
8136         * rtlanal.c: Include flags.h
8137         (may_trap_p): Do not mark FP operations if trapping
8138         if !flag_trapping_math
8139         * Makefile.in (rtlanal.o): Add dependency on flag.h
8140         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8141
8142 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8143
8144         * mips.md: Use dconst1, not 1.0, as first argument of
8145         REAL_VALUE_LDEXP.  Don't use union real_extract.
8146
8147 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8148
8149         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8150         rather than $target.  Heed program_prefix and
8151         program_transform_name.  Search for gas in cross-compiler case too.
8152         "test -x" rather than "test -f".
8153         (gcc_cv_ld): Likewise.
8154         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8155         (gcc_cv_objdump): Likewise.
8156         * configure: Regenerate.
8157
8158 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8159
8160         * Makefile.in (attribs.o): Update.
8161         * attribs.c: Include langhooks.h.
8162         (decl_attributes): Use langhook.
8163         * c-decl.c (insert_default_attributes): Rename.
8164         * c-tree.h (c_insert_default_attributes): New.
8165         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8166         (LANG_HOOKS_INITIALIZER): Update.
8167         * langhooks.h (struct lang_hooks): New hook.
8168         * tree.h (insert_default_attributes): Remove.
8169 objc:
8170         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8171
8172 2002-03-27  Andreas Schwab  <schwab@suse.de>
8173
8174         * config/i386/i386.c (classify_argument): Also check for
8175         QUAL_UNION_TYPE.
8176
8177 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8178
8179         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8180         any more.
8181
8182 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8183
8184         * i960.md (ret): Set PC.
8185         (nonlocal_goto): Fix expander.
8186         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8187         some jump or call.
8188
8189 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8190
8191         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8192         of libcall regions.
8193
8194 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8195
8196         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8197         assigning to BLOCK_FOR_INSN directly.
8198
8199 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8200
8201         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8202
8203 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8204
8205         * c-common.c (c_expand_expr): Fix prototype.
8206         * c-common.h (c_expand_expr): Always declare, update.
8207         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8208         * c-objc-common.c (c_objc_common_init): No global hook.
8209         * expr.c (expand_expr): Use langhook.
8210         * expr.h (enum expand_modifier): Conditionally declare.
8211         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8212         (LANG_HOOKS_INITIALIZER): Update.
8213         * langhooks.c (lhd_expand_expr): New.
8214         * langhooks.h (struct lang_hooks): New hook.
8215         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8216         (lang_independent_init): Don't default hook.
8217 objc:
8218         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8219
8220 2002-03-27  Richard Henderson  <rth@redhat.com>
8221
8222         PR target/6054
8223         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8224         TARGET_CONST_GP.  Simplify conditions.
8225
8226 2002-03-27  Richard Henderson  <rth@redhat.com>
8227
8228         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8229         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8230         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8231
8232 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8233
8234         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8235         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8236         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8237         Remove unnecessary masks.
8238         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8239         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8240         -mwindows, -mdll switches and their negations.
8241
8242 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8243
8244         * gcc-common.c (lang_mark_false_label_stack): Remove.
8245         * ggc.h (lang_mark_false_label_stack): Similarly.
8246
8247 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8248
8249         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8250
8251         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8252         or __rtems_ is defined.
8253
8254 2002-03-26  Richard Henderson  <rth@redhat.com>
8255
8256         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8257         if a non-trivial load was emitted.
8258         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8259         in high+extra+low case.
8260
8261 2002-03-26  Richard Henderson  <rth@redhat.com>
8262
8263         * config.gcc (sparc*-solaris): Use float_format=sparc.
8264
8265 2002-03-26  Richard Henderson  <rth@redhat.com>
8266
8267         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8268         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8269         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8270         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8271         (WINT_TYPE_SIZE): Fix at 32.
8272
8273 2002-03-26  Richard Henderson  <rth@redhat.com>
8274
8275         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8276         until after eh landing pad generation.
8277         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8278         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8279
8280 2002-03-26  Richard Henderson  <rth@redhat.com>
8281
8282         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8283
8284 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8285
8286         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8287         and warning switches.
8288         (cc1_options):  Likewise.
8289
8290 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8291
8292         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8293         Restore more of the signal context.  Set no_reg_stack_frame.
8294         * config/ia64/unwind-ia64.c (unw_state_record):
8295         Add no_reg_stack_frame, comments.
8296         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8297         (uw_update_context): Adjust bsp when unwinding from leaf,
8298         but not signal frame.
8299
8300 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8301
8302         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8303
8304 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8305
8306         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8307
8308 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8309
8310         PR target/5621
8311         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8312         "Add a pool_range attribute", which was lost during the ARM/Thumb
8313         merge.
8314
8315 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8316
8317         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8318         a register into the MAC16 accumulator.
8319
8320 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8321
8322         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8323         (Warning Options): Document -Wswitch-enum.
8324         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8325         -Wswitch.
8326         (warn_switch_enum): Define variables.
8327         * flags.h (warn_switch_enum): Declare variables.
8328         * stmt.c (expand_end_case_type): When warn_switch_enum /
8329         -Wswitch-enum, perform switch checks.
8330         Fix PR c/5044.
8331
8332 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8333
8334         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8335         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8336         (reload_muladdsi_compare0_scratch): Delete.
8337
8338 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8339
8340         * doc/install.texi (*-*-freebsd*): Update.
8341
8342 2002-03-26  Richard Henderson  <rth@redhat.com>
8343
8344         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8345         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8346
8347         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8348         types from the normal argument frame.
8349
8350         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8351         variable sized objects by reference.
8352         (sparc_va_arg): Receive them by reference too.
8353
8354 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8355
8356         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8357         code to not restoring global registers.
8358
8359 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8360
8361         * Makefile.in (ggc-common.o): Update.
8362         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8363         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8364         * c-tree.h (c_mark_tree): New.
8365         * ggc-common.c: Include langhooks.h.
8366         (gcc_mark_trees): Use new langhook.
8367         * ggc-callbacks.c: Delete file.
8368         * ggc.h (lang_mark_tree): Remove.
8369         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8370         (LANG_HOOKS_INITIALIZER): Update.
8371         * langhooks.h (struct lang_hooks): New hook.
8372 objc:
8373         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8374
8375 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8376
8377         * doc/cpp.texi: Exclude entire Top node from printed manual.
8378         Move option index after directive index.  Insert page breaks
8379         before GFDL and concept index.  Index environment variables
8380         with command line options.
8381         * doc/cppenv.texi: Use @vtable for environment variable list.
8382         Add paragraph explaining semantics of empty elements in path
8383         variables.  Exclude a cross-reference to Fishkill from the
8384         manpage.  Remove an unnecessary cross-reference of the entry
8385         right above the referer.  Don't use @anchor in text that goes
8386         into manpage.
8387         * doc/cppopts.texi: Cross-reference the environment variables
8388         section, not the specific environment variable, for consistency.
8389
8390 2002-03-25  Richard Henderson  <rth@redhat.com>
8391
8392         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8393         anywhere in the block.  Don't refer to insns that have been
8394         removed from the chain.  Iterate backward through the new insns.
8395         Don't refer to edges that have been removed.
8396
8397 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8398
8399         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8400         test for overflow of constant.
8401
8402 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8403
8404         PR target/2623
8405         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8406         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8407         these patterns on arm_archv4.
8408
8409 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8410
8411         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8412         int".
8413
8414 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8415
8416         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8417         float_handled, float_handler, float_signal, set_float_handler,
8418         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8419         * toplev.h: Don't prototype do_float_handler.
8420
8421         * c-lex.c: Fold parse_float into lex_number.  Make warning
8422         about portability of hex float constants more informative, and
8423         don't issue it on top of a syntax error.
8424         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8425         their callers.
8426         * real.h: Define REAL_VALUE_ABS here...
8427         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8428         simplify_unary_real, simplify_binary_real, and
8429         simplify_binary_is2orm1 into their callers.
8430         * tree.c: Fold build_real_from_int_cst_1 into caller.
8431
8432         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8433
8434         * tsystem.h: Include float.h here...
8435         * libgcc2.c: ... not here.
8436
8437 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8438
8439         Fixes for: PR bootstrap/3591, target/5676
8440         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8441         defined.  Do not disable exceptions or rtti.
8442         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8443         mcore.h.  Disable exceptions and rtti, since they are not
8444         supported by EPOC.
8445
8446 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8447
8448         * c-decl.c (maybe_build_cleanup): Remove.
8449         * expr.c (expand_expr): Use langhook.
8450         * langhooks-def.h (lhd_return_null_tree,
8451         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8452         (LANGHOOKS_INITIALIZER): Update.
8453         * langhooks.c (lhd_return_null_tree): New.
8454         * langhooks.h (struct lang_hooks): New hook.
8455         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8456         * tree.h (maybe_build_cleanup): Remove.
8457
8458 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8459
8460         * regrename.c (build_def_use): Move recog_memoized
8461         before extract_insn.
8462
8463 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8464
8465         PR target/6043
8466         * expr.c (emit_group_store): Handle storing into CONCAT.
8467
8468 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8469
8470         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8471         corresponding MATCH_DUP.
8472
8473 2002-03-24  Richard Henderson  <rth@redhat.com>
8474
8475         * unroll.c (unroll_loop): Zero label_map.
8476
8477         * gcse.c: Include except.h.
8478         * Makefile.in (gcse.o): Update.
8479
8480 2002-03-24  Richard Henderson  <rth@redhat.com>
8481
8482         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8483         Do resolve_unique_section before shared data clause.
8484
8485 2002-03-24  Richard Henderson  <rth@redhat.com>
8486
8487         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8488
8489 2002-03-24  Richard Henderson  <rth@redhat.com>
8490
8491         * recog.c (peephole2_optimize): Split blocks when EH insns are
8492         generated in the middle of a block.  Do global life update if
8493         zapped EH edges.
8494
8495 2002-03-24  Richard Henderson  <rth@redhat.com>
8496
8497         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8498
8499 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8500
8501         preprocessor/3951
8502         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8503         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8504         (init_dependency_output): Don't make no_output decision here.
8505
8506 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8507
8508         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8509         warn_switch.  Update description.
8510         (expand_end_case_type): Call check_for_full_enumeration_handling
8511         when warn_switch.
8512
8513 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8514
8515         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8516         (m68hc11_split_move): Call it to see if the source and destination
8517         operands use the same direction auto inc/dec mode, otherwise make the
8518         source an offsetable memory operand and generate an add.
8519
8520 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8521
8522         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8523         register for operand 2.
8524         ("*subsi3_zero_extendqi"): Likewise.
8525         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8526         bits so that it is compatible with a pop.
8527         ("*andhi3_gen"): Likewise.
8528         ("xorhi3"): Likewise.
8529
8530 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8531
8532         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8533         -pedantic here...
8534         (cpp_post_options): ... not here.
8535
8536 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8537             Aldy Hernandez  <aldyh@redhat.com>
8538
8539         Removal of separate preprocessor cpp0.
8540
8541         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8542         cpp0, install-common): Update.
8543         * c-common.c (flag_preprocess_only): New.
8544         (c_common_init): Preprocess for -E.
8545         * c-common.h (flag_preprocess_only): New.
8546         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8547         * c-objc-common.c (c_init_decl_processing): Exit quickly
8548         for NULL return from c_common_init.
8549         * cpplib.h (cpp_preprocess_file): New.
8550         * cppmain.c (main, general_init, pfile, progname): Remove.
8551         (do_preprocessing): Rename cpp_preprocess_file, don't call
8552         cpp_finish.  Don't close stdout here.
8553         (setup_callbacks): Update prototype.
8554         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8555         Update.
8556         * tradcpp.c (main): Ignore -quiet.
8557 objc:
8558         * lang-specs.h (default_compilers): Preprocess with cc1obj.
8559
8560 2002-03-24  Richard Henderson  <rth@redhat.com>
8561
8562         PR optimization/5742
8563         * machmode.def: Add inner mode field to complex modes.
8564         * config/mips/mips.c (mips_function_value): Always define.  Add
8565         new argument to handle libcalls.
8566         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8567         (FUNCTION_VALUE): Likewise.
8568         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8569         * config/mips/mips-protos.h: Update.
8570
8571 2002-03-23  Richard Henderson  <rth@redhat.com>
8572
8573         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8574         * config/sparc/sparc-protos.h: Update.
8575         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8576
8577 2002-03-23  Richard Henderson  <rth@redhat.com>
8578
8579         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8580         _start or _init begins the text segment.
8581
8582 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
8583
8584         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
8585         not HOST_WIDEST_INT.
8586         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8587
8588 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
8589
8590         PR java/5489
8591         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8592         operand argument to output_return_instruction.
8593         * arm.c (arm_print_operand, case 'd'): If the operand is
8594         const_true_rtx then just return.
8595         (arm_print_operand, case 'D'): If the operand is const_true_rtx
8596         then abort.
8597
8598 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8599
8600         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8601         (Warning Options): Document -Wswitch-default.
8602         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
8603         -Wswitch.
8604         (warn_switch_default): Define variable.
8605         (warn_switch): Update comment.
8606         * flags.h (warn_switch_default): Declare variable.
8607         (warn_switch): Update comment.
8608         * stmt.c (expand_end_case): Check for and, when
8609         warn_switch_no_default, warn of a missing default case.
8610
8611 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
8612
8613         * real.h (N): Special case 128 bit doubles.
8614
8615         * combine.c (simplify_comparison): When widening modes, ignore
8616         sign extension on CONST_INTs.
8617
8618 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8619
8620         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8621         passed to adjust_address.  Fix comment formatting.
8622
8623
8624 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
8625
8626         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8627         Always make REAL_VALUE_TYPE a struct containing an array of
8628         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
8629         big it is.  Don't declare or use union real_extract.
8630
8631         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8632         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8633         (print_operand), config/arm/arm.c (output_move_double),
8634         config/arm/arm.md (consttable_4, consttable_8),
8635         config/romp/romp.c (output_fpops), config/s390/s390.h
8636         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8637         (xtensa_output_literal): Don't use union real_extract.
8638
8639         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8640         (sfmode_constant_to_ulong), config/ns32k/merlin.h
8641         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8642         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8643         (PRINT_OPERAND): Don't use local version of union
8644         real_extract.
8645
8646         * config/convex/convex.c (check_float_value), config/vax/vax.c
8647         (vax_float_literal), config/m88k/m88k.md (divdf3),
8648         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8649         config/pdp11/pdp11.c (output_move_quad): Don't do host
8650         arithmetic on target floating point quantities.
8651
8652         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8653         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8654
8655         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8656         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8657
8658         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8659         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8660         INFINITY.
8661         * print-rtl.c (print_rtx): Disable code which needs
8662         floating-point emulator.
8663         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8664         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8665         depending on HOST_FLOAT_FORMAT to be defined properly.
8666
8667         * config/1750a/1750a.c (get_double, float_label): Delete.
8668         (print_operand): Delete huge commented-out chunk.  Use
8669         REAL_VALUE_TO_DECIMAL.
8670         * config/1750a/1750a-protos.h: Delete prototypes of deleted
8671         functions.
8672         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8673         IEEE_FLOAT_FORMAT.
8674         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8675         Use REAL_VALUE_TO_DECIMAL as ELF version does.
8676         * config/m88k/m88k.c (real_power_of_2_operand,
8677         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8678         real_extract out of the union; run the input through
8679         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8680         from that into the union.
8681         * config/pdp11/pdp11.c (output_move_double): Rearrange
8682         parentheses to make automatic indenter happy.
8683
8684         * doc/tm.texi (Cross-compilation): Rename node to "Floating
8685         Point" and rewrite to describe current situation.  Also adjust
8686         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8687         match code.
8688         * doc/rtl.texi: Adjust cross reference.
8689
8690 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8691
8692         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8693         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8694         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8695         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8696         prevent use of sp as a reload register.
8697         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8698         non_acc_reg_operand.
8699         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8700         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8701         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8702         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8703
8704 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8705
8706         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8707         * cpplex.c (unterminated): Delete.
8708         (parse_string): No string literal may extend over multiple
8709         lines.  Suppress the error when preprocessing assembly.
8710         * cppmain.c (scan_translation_unit): Strings are single-line.
8711
8712         * doc/cpp.texi: Update to match.
8713
8714 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8715
8716         PR optimization/5854
8717         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8718         Shut up warnings.
8719         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8720         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8721         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8722         const0 if scratch register was not allocated.
8723         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8724         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8725         with GEN_INT (...).
8726         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8727         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8728         with GEN_INT (...) everywhere.  Remove constraints in define_split
8729         patterns.
8730         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8731         require scratch register for setting 0 into regs/non-pushable memory.
8732
8733 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8734
8735         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8736         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8737
8738 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
8739
8740         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
8741         * cppinit.c (cpp_create_reader):  On by default.
8742         (cpp_handle_option):  Handle -W[no-]endif-labels.
8743         (cpp_post_options):  Also enable if -pedantic.
8744         * cpplib.c (do_else):  Use it.
8745         (do_endif):  Likewise.
8746         * doc/cppopts.texi:  Document new option.
8747         * doc/invoke.texi:  Document new option.
8748
8749 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
8750
8751         * config/i386/i386.c, config/i386/i386.md: Change all occurences
8752         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8753
8754 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8755
8756         * flow.c (calculate_global_regs_live): Clear aux fields of
8757         ENTRY and EXIT.
8758
8759 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8760
8761         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8762         REG or MEM subregs, pass rtx * instead of rtx to it.
8763         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8764         rtx * instead of rtx to alter_subreg.
8765         * config/m32r/m32r.c (gen_split_move_double): Likewise.
8766         * config/pj/pj.c (pj_output_rval): Likewise.
8767
8768 2002-03-22  Richard Henderson  <rth@redhat.com>
8769
8770         PR target/3177
8771         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8772         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8773         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8774         (ia64_expand_prologue): Look at int_regs, not words, for number
8775         of incomming int regs.
8776
8777 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
8778
8779         * expr.c (expand_expr): A RESULT_DECL is part of a call.
8780
8781 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
8782
8783         * toplev.c (flag_loop_optimize, flag_crossjumping):
8784         New static variables.
8785         (rest_of_compilation): Conditionalize crossjumping and
8786         loop optimizer.
8787         (parse_options_and_default_flags): Default loop_optimize and
8788         crossjumping.
8789         (lang_independent_options): Add -fcrossjumping and -floop-optimize
8790         * invoke.texi (crossjumping, loop-optimize): Document.
8791
8792 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8793
8794         * real.c (eiisneg): Move outside #ifdef NANS.
8795
8796 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8797
8798         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8799         frequencies match; avoid match on different loop depths.
8800         (try_crossjump_to_bb): Kill tests that no longer brings time
8801         savings.
8802         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8803         updating code.
8804         (split_edge): Likewise.
8805
8806         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8807         variable.
8808
8809         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8810         * cfgrtl.c: Include insn-config.h
8811         (split_block) Dirtify block in presence of conditional execution
8812
8813 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8814
8815         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8816         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8817         (function_arg): Constify CUMULATIVE_ARGS.
8818         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8819         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8820         (UNITS_PER_DOUBLE): New macro.
8821         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
8822         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
8823         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
8824         fp_regs and stack_words.
8825         (EABI_FLOAT_VARARGS_P): New macro.
8826         * config/mips/mips.c (struct mips_arg_info): New.
8827         (mips_arg_info): New function.
8828         (function_arg_advance): Use it.  Add adjustment instructions here
8829         rather than in function_arg.
8830         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
8831         for VOIDmode at the beginning of the function.
8832         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
8833         (function_arg_pass_by_reference): Likewise.
8834         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8835         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8836         (mips_va_start): Likewise.  Use the new stack_words field of
8837         CUMULATIVE_ARGS to set up overflow area.  Reformat.
8838         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
8839         doubles and other types, aligning the overflow pointer for non-doubles
8840         too.  Remove some code duplication.  Replace hard-coded constants.
8841
8842 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8843
8844         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8845         (CLASS_UNITS): Undefine.
8846         (CLASS_MAX_NREGS): Use FP_INC.
8847         * config/mips/mips.c (compute_frame_size): Likewise.
8848         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8849
8850 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8851
8852         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8853         prototype, and handle lexing numbers and identifiers.
8854         (parse_identifier): Update to new form of parse_slow.
8855         (parse_number): Fast path only, use parse_slow otherwise.
8856         (_cpp_lex_direct): Update calls to parse_number.
8857
8858 2002-03-21  DJ Delorie  <dj@redhat.com>
8859
8860         * bb-reorder.c (make_reorder_chain_1): Protect against
8861         when redundant edges are omitted.
8862         * predict.c (dump_prediction): Likewise.
8863
8864 2002-03-21  Richard Henderson  <rth@redhat.com>
8865
8866         PR target/5996
8867         * fixinc/inclhack.def (solaris_stdio_tag): New.
8868         * fixinc/fixincl.x: Regenerate.
8869
8870 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
8871
8872         PR c/5597
8873         * c-typeck.c (process_init_element): Flag non-static
8874         initialization of a flexible array member as illegal.
8875
8876 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
8877
8878         * config/rs6000/t-linux64: New.
8879         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8880         t-ppccomm.  Use t-rs6000 and t-linux64.
8881         (powerpc64-*-gnu* <tmake_file>): Likewise.
8882         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8883         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8884         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8885
8886 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
8887
8888         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8889         flag_really_no_inline instead of optimize == 0.
8890
8891         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8892
8893         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8894
8895         * flags.h (flag_really_no_inline): New.
8896
8897         * c-common.c (c_common_post_options): Initialize
8898         flag_really_no_inline.
8899
8900         * toplev.c (flag_really_no_inline): New.
8901
8902 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
8903
8904         * config/avr/avr.md (length): Fix length computation for
8905         conditional branches.
8906
8907 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8908
8909         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8910         sdbout.o, profile.o): Update.
8911         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8912         langhook.
8913         * c-common.h (gettags): Move here from tree.h.
8914         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8915         insert_block, getdecls, kept_level_p, global_bindings_p): New.
8916         * dbxout.c (dbxout_init): Use getdecls langhook.
8917         * expr.c (expand_expr): Use insert_block langhook.
8918         * fold-const.c: Include langhooks.h.
8919         (fold_range_test, fold_binary_op_with_conditional_arg,
8920         fold): Use global_bindings_p langhook.
8921         * integrate.c (expand_inline_function): Use insert_block langhook.
8922         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8923         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8924         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8925         LANG_HOOKS_GETDECLS): New.
8926         (LANG_HOOKS_INITIALIZER): Update.
8927         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8928         langhook.
8929         * langhooks.h (struct lang_hooks_for_decls): New.
8930         (struct lang_hooks): Update.
8931         * profile.c: Include langhooks.h.
8932         (output_func_start_profiler): Use new langhooks.
8933         * sdbout.c: Include langhooks.h.
8934         (sdbout_init, sdbout_finish): Use getdecls langhook.
8935         * stmt.c: Include langhooks.h.
8936         (expand_fixup, fixup_gotos): Use new langhooks.
8937         * stor-layout.c: Include langhooks.h.
8938         (variable_size): Use global_bindings_p langhook.
8939         * toplev.c (compile_file): Use getdecls langhook.
8940         * tree-inline.c (remap_block): Use insert_block langhook.
8941         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8942         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8943
8944 2002-03-21  Richard Henderson  <rth@redhat.com>
8945
8946         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8947         constants in .data when -fpic.
8948
8949 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8950
8951         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8952         where appropriate.
8953
8954 2002-03-21  Tom Tromey  <tromey@redhat.com>
8955
8956         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
8957
8958 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8959
8960         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8961
8962         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8963
8964 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
8965             Richard Henderson  <rth@redhat.com>
8966
8967         PR c/5354
8968         * c-common.c (c_expand_expr): Preserve result of a statement
8969         expression if needed.
8970
8971 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
8972
8973         PR bootstrap/4195
8974         * genrecog.c (maybe_both_true_mode): Remove.
8975         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
8976         * machmode.def (Pmode): Likewise.
8977
8978 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
8979
8980         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
8981         (nonlocal_mentioned_p_1): New function.
8982         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
8983         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
8984         (mark_constant_function): Recognize pure functions.
8985         * rtl.h (global_reg_mentioned_p): New prototype.
8986         * rtlanal.c (global_reg_mentioned_p,
8987         global_reg_mentioned_p_1): New function.
8988
8989 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8990
8991         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
8992         UNIX assert.h.
8993         * fixinc/fixincl.x: Regenerate.
8994
8995 2002-03-20  Jason Merrill  <jason@redhat.com>
8996
8997         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
8998
8999 2002-03-20  Michael Meissner  <meissner@redhat.com>
9000
9001         * doc/invoke.texi (Optimize Options): Document that -O2 sets
9002         -fstrict-aliasing.
9003
9004 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9005
9006         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9007         ".literal_position" directive before the constant pool.
9008
9009 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9010
9011         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9012         Add Craig Rodrigues.
9013         Add Brad Lucier to testers.
9014
9015 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9016
9017         PR target/4792
9018         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9019         to if_then_else.
9020         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9021         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9022         instead of insn_extract.
9023
9024 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9025
9026         PR bootstrap/4192
9027         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9028
9029         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9030         stmt if some case has been output.
9031
9032 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9033
9034         PR c/5972
9035         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9036         movsfcc_1, movdfcc_1): Add %O2.
9037         * config/i386/i386.c (print_operand): Handle %ON.
9038         Print . before float condition codes in Sun as cmov syntax.
9039         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9040         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9041         no longer true.
9042
9043 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9044
9045         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9046         return instruction if PC was popped.
9047
9048 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9049
9050         * config/xtensa/xtensa.md: Remove unused type attributes.
9051         (adddi_carry, subddi_carry): Change type attribute to "multi".
9052
9053 2002-03-19  Dale Johannesen  <dalej@apple.com>
9054
9055         PR optimization/5999, middle-end/5731
9056         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9057         multiplications by reciprocals.
9058
9059 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9060
9061         * Makefile.in: Update.
9062         * c-common.c: Include langhooks.h.
9063         (inline_forbidden_p): Use new hook.
9064         * diagnostic.c: Include langhooks.h.
9065         (format_with_decl, announce_function,
9066         default_print_error_function): Use new hook.
9067         * dwarf2out.c (dwarf2_name): Use new hook.
9068         * function.c: Include langhooks.h.
9069         (init_function_start): Use new hook.
9070         * langhooks-def.h (lhd_decl_printable_name): New.
9071         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9072         (LANGHOOKS_INITIALIZER): Update.
9073         * langhooks.c (lhd_decl_printable_name): New.
9074         * langhooks.h (struct lang_hooks): New hook.
9075         * toplev.c (decl_name, decl_printable_name): Remove.
9076         (open_dump_file): Use new hook.
9077         (process_options): Remove old hook.
9078         * tree.h (decl_printable_name): Remove.
9079 objc:
9080         * objc-act.c (objc_init): Remove old hook.
9081         (objc_printable_name): Export.
9082         * objc-act.h (objc_printable_name): New.
9083         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9084
9085 2002-03-19  Jim Blandy  <jimb@redhat.com>
9086
9087         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9088         the start_source_file debug hook, not the current line number.
9089
9090 2002-03-19  Richard Henderson  <rth@redhat.com>
9091
9092         * flow.c (EH_USES): Provide default.
9093         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9094         * doc/tm.texi (EH_USES): New.
9095
9096         * config/ia64/ia64.c (ia64_eh_uses): New.
9097         * config/ia64/ia64-protos.h: Update.
9098         * config/ia64/ia64.h (EH_USES): New.
9099
9100 2002-03-19  Richard Henderson  <rth@redhat.com>
9101
9102         * varasm.c (output_constant_def): Fix stupid typo.
9103
9104 2002-03-19  Richard Henderson  <rth@redhat.com>
9105
9106         PR 5879
9107         * except.c (current_function_has_exception_handlers): New.
9108         * except.h: Declare it.
9109         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9110         Combine tests that disable all sibcalls for the function.
9111
9112 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9113
9114         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9115         for INTEGER_CST.
9116
9117 2002-03-19  Richard Henderson  <rth@redhat.com>
9118
9119         PR 5977, 5991
9120         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9121         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9122
9123 2002-03-19  Jim Blandy  <jimb@redhat.com>
9124
9125         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9126         name, even if the replacement list contains no tokens, as required
9127         by Dwarf.
9128
9129 2002-03-19  Jason Merrill  <jason@redhat.com>
9130
9131         * varasm.c (globalize_decl): Get the name from the RTL, not
9132         DECL_ASSEMBLER_NAME.
9133
9134         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9135
9136 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9137
9138         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9139         subdi_carry): Define.
9140
9141 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9142
9143         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9144         about -fpic/-fPIC if extra_warnings set.
9145
9146 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9147
9148         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9149         TREE_STRING_POINTER.
9150         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9151
9152 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9153
9154         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9155         in favor of SP if FRAME_POINTER_REQUIRED is false.
9156
9157 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9158
9159         * emit-rtl.c (gen_int_mode): New function.
9160         * rtl.h: Prototype for it.
9161         * combine.c (make_extraction, simplify_comparison), expmed.c
9162         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9163         (convert_modes, store_field), optabs.c (expand_fix),
9164         simplify-rtx.c (neg_const_int, simplify_unary_real),
9165
9166         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9167         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9168
9169 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9170
9171         PR c/5656
9172         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9173         convert_parm_for_inlining.
9174         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9175         Define.
9176         * langhooks-def.h: Likewise.
9177         * objc/objc-lang.c: Likewise.
9178         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9179         function.
9180         * tree-inline.c (initialize_inlined_parameters):
9181         Call convert_parm_for_inlining lang hook if needed.
9182         * c-typeck.c (c_convert_parm_for_inlining): New function.
9183         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9184
9185 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9186
9187         * calls.c (precompute_arguments): Do not assume that temporaries
9188         can be destroyed after expanding the argument.
9189         (expand_call): Likewise.
9190
9191 2002-03-15  Eric Christopher  <echristo@redhat.com>
9192
9193         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9194         Fix register preference on last change.
9195         * config/mips/mips.c (mips_return_in_memory): New function.
9196         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9197         * config/mips/mips-protos.h: Declare.
9198         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9199         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9200
9201 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9202
9203         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9204         a register too.
9205         (anddi3, iorsi3): Likewise.
9206
9207         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9208         use %gprel for symbols that are going to be placed in linkonce
9209         sections.
9210
9211         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9212         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9213         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9214         not needed.  Disregard leaf_function_p().
9215         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9216         mips16 frame pointer.
9217         * config/mips/mips.md (store ra): Only to small SP offsets.
9218         2001-08-22  Graham Stott  <grahams@redhat.com>
9219         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9220         return a REG rtx for the return address register.
9221
9222 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9223
9224         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9225         constant-pool addresses as "mode-dependent".
9226         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9227
9228 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9229
9230         PR target/5740
9231         * expr.c (emit_group_load): Use extract_bit_field if
9232         needed for CONCAT arguments.
9233
9234 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9235
9236         PR target/4863
9237         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9238         offset to the base of the table.
9239         (thumb_tablejump): Matcher for Thumb tablejump insn.
9240         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9241         as the difference of two labels.
9242         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9243         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9244         tables in the code.
9245         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9246         * arm.c (get_jump_table_size): If the table is not in the text
9247         section, return zero.
9248
9249 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9250
9251         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9252         of gen_rtx_SUBREG.
9253         (arm_reload_out_hi): Use gen_lowpart instead of
9254         gen_rtx_SUBREG to access QImode components.
9255         * config/arm/arm.md: Disable zero_extend split for QImode
9256         subregs in BIG_ENDIAN mode.
9257         (storehi_bigend): Match use of least significant byte.
9258         (storeinthi): Remove extraneous SUBREG.
9259         Add missing construction of operands[2].
9260         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9261         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9262         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9263
9264 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9265
9266         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9267         any_operand.
9268
9269 2002-03-17  Richard Henderson  <rth@redhat.com>
9270
9271         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9272         explicitly.
9273
9274 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9275
9276         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9277         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9278
9279 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9280
9281         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9282
9283         * predict.c (estimate_bb_frequencies): Delete unused variables.
9284
9285 2002-03-17  Richard Henderson  <rth@redhat.com>
9286
9287         * config/ia64/ia64.c (ia64_attribute_table): Move before
9288         targetm definition.  Make static.
9289
9290 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9291
9292         * c-common.h (yyparse, c_common_parse_file): New.
9293         * c-lang.c: Include c-common.h.
9294         (LANG_HOOKS_PARSE_FILE): Redefine.
9295         * c-lex.c: Include c-common.h.
9296         (yyparse): Rename c_common_parse_file.  Call yyparse.
9297         * c-parse.in (yyparse): Remove macro.
9298         * c-tree.h (yyparse_1): Remove.
9299         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9300         (LANG_HOOKS_INITIALIZER): Update.
9301         * langhooks.h (struct lang_hoooks): New hook parse_file.
9302         * toplev.c (compile_file): Use parse_file hook.
9303         * tree.h (yyparse): Remove.
9304         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9305
9306 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9307
9308         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9309         float_truncate, not fix.
9310         ("*truncdfsf2_real"): Ditto.
9311         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9312
9313         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9314
9315 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9316
9317         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9318         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9319         where appropriate.  Make the second reference to
9320         leaf_function_p a function call, as intended.  Reindented.
9321
9322         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9323         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9324
9325         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9326         add register to non-constant into sp.
9327
9328         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9329         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9330         (mips16_gp_pseudo_rtx): Lose.
9331         (INIT_EXPANDERS): Deleted.
9332         * config/mips/mips.c (mips_init_machine_status): New.
9333         (mips_free_machine_status): New.
9334         (mips_mark_machine_status): New.
9335         (override_options): Set them.
9336         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9337         (struct machine_function): ... new.  Replaced all references.
9338         (mips_add_gc_roots): Don't mark them.
9339         (embedded_pic_fnaddr_reg): New, extracted from...
9340         (embedded_pic_offset): ... here.
9341         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9342         (movsi): Likewise.
9343
9344 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9345
9346         * cppinit.c: Revert -MD removal.
9347
9348 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9349
9350         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9351         soft registers by default for 68HC12.
9352         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9353         when compiling with -fomit-frame-pointer.
9354         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9355         (expand_epilogue): Likewise.
9356         (m68hc11_gen_rotate): Use exg when rotating by 8.
9357
9358 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9359
9360         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9361         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9362         (splits): Remove unused add splits.
9363         ("*addhi3_68hc12"): Tune constraints.
9364         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9365         constant fits in 8-bits and D is dead use abx/aby instructions.
9366         ("*addhi3"): Remove extern declaration of ix_reg.
9367         ("*subsi3"): Optimize and provide new split.
9368         ("subhi3"): Cleanup.
9369         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9370         (arith splits): For 68hc12 save the address register on the stack
9371         and do the arithmetic operation with a pop.
9372
9373 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9374
9375         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9376         allocating QImode in address registers.
9377         ("*movqi_m68hc11"): Likewise.
9378
9379 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9380
9381         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9382
9383 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9384
9385         * cppinit.c (print_help): Display -MD and -MMD.
9386         Don't display usage string.  Update assertion syntax and
9387         typo.
9388         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9389         (cpp_handle_option): Update.
9390
9391 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9392
9393         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9394         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9395         and define it so that regardless of target CPU size,
9396         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9397         of "int" rather than "long."
9398
9399 2002-03-15  Richard Henderson  <rth@redhat.com>
9400
9401         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9402         size as a tree.
9403
9404 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9405
9406         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9407         ("tstqi" split): Avoid using memory for tstqi on address register.
9408         (splits): Remove constraints.
9409         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9410         ("cmpdf", "cmpsf"): Remove since not used.
9411         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9412         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9413
9414 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9415
9416         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9417         ("neghi2"): Tighten constraints.
9418         ("one_cmplsi2"): Optimize and simplify split.
9419         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9420
9421 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9422
9423         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9424         and split of AND operation to clear the upper bits.
9425         ("*logicalsi3_zextqi"): Likewise.
9426         ("*logicallhi3_zexthi_ashift8"): Likewise.
9427         ("*logicalsi3_silshr16"): Likewise.
9428         ("logicalsi3_silshl16"): Likewise.
9429         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9430
9431 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9432
9433         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9434         (m68hc11_indirect_p): New function.
9435         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9436         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9437         TARGET_M6812.
9438         (asm_print_register): Likewise.
9439         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9440         (m68hc11_indirect_p): Declare.
9441         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9442         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9443         (TARGET_SWITCHES): New option -mrelax.
9444         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9445         destination.
9446         ("iorsi3", "xorsi3"): Likewise.
9447         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9448         ("*andhi3_mem"): New to handle destination in memory with bclr
9449         and a scratch register.
9450         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9451         ("*andhi3_const"): New when operand2 is constant.
9452         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9453         ("*andhi3_gen"): Cleanup of the old "andhi3".
9454         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9455         ("xorqi3"): Update constraints.
9456
9457 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9458
9459         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9460         for reg_equiv_memory_loc when the operand is a register that does
9461         not get a hard register (stack location).
9462         (tst_operand): After reload, accept all memory operand.
9463         (symbolic_memory_operand): Fix detection of symbolic references.
9464         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9465         accept symbols and any constant.
9466
9467 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9468
9469         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9470         note on the insn that sets the soft frame register.
9471         (must_parenthesize): ix and iy are also reserved names.
9472         (print_operand_address): One more place where parenthesis are required
9473         to avoid confusion with register names.
9474         (m68hc11_gen_movhi): Allow push of stack pointer.
9475         (m68hc11_check_z_replacement): Fix handling of parallel with a
9476         clobber.
9477         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9478         the replacement register is.
9479         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9480         and D8_REGS classes.
9481         (MODES_TIEABLE_P): All modes are tieable except QImode.
9482
9483 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9484
9485         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9486         (___subdi3): Likewise.
9487         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9488         (__map_data_section): Optimize 68hc11 case.
9489
9490 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9491
9492         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9493         than a shift to avoid adding a register with itself.
9494         (m68hc11_memory_move_cost): Take into account NO_REGS.
9495         (m68hc11_register_move_cost): Update and use memory move cost
9496         for soft registers.
9497         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9498         it gives more opportunities to cse to optimize.
9499         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9500         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9501
9502 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9503
9504         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9505         * c-common.def (CLEANUP_STMT): New tree node.
9506         * c-common.h (CLEANUP_DECL): New macro.
9507         (CLEANUP_EXPR): Likewise.
9508         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9509         * expr.c (expand_expr): Tidy.
9510         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9511         * tree-inline.c (initialize_inlined_parameters): Clean up
9512         new local variables.
9513
9514 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9515
9516         PR bootstrap/4128
9517         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9518         before movrXX only, use reg_overlap_mentioned_p.
9519         Only special case NE if just one insn can be generated.
9520
9521 2002-03-15  Jason Merrill  <jason@redhat.com>
9522
9523         * varasm.c (assemble_variable): Call resolve_unique_section before
9524         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
9525         of error_mark_node.
9526
9527 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9528
9529         PR target/5170
9530         * arm.md (split pattern for thumb shiftable immediates): Add comment
9531         explaining non-obvious test.
9532
9533 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9534
9535         PR target/5712
9536         * arm.md (movaddr, movaddr_insn): Delete.
9537
9538 2002-03-15  Jason Merrill  <jason@redhat.com>
9539
9540         * toplev.c (wrapup_global_declarations): Clarify variable handling.
9541         -fkeep-static-consts doesn't apply to comdats.
9542
9543 2002-03-14  Richard Henderson  <rth@redhat.com>
9544
9545         * c-decl.c: Include c-pragma.h.
9546         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9547         (finish_function): Tidy.
9548         * c-pragma.c: Include c-common.h.
9549         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9550         (handle_pragma_weak): Use them.
9551         (init_pragma): Register pending_weaks.
9552         * c-pragma.h (maybe_apply_pragma_weak): Declare.
9553         * print-tree.c (print_node): Print DECL_WEAK.
9554         * varasm.c (mark_weak_decls): Remove.
9555         (remove_from_pending_weak_list): Remove.
9556         (add_weak): Remove.
9557         (asm_emit_uninitialised): Call globalize_decl for weak commons.
9558         (weak_decls): Make a tree_list.
9559         (declare_weak): Cons weak_decls directly.
9560         (globalize_decl): Remove weak_decls elements directly.
9561         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
9562         symbols.  Don't pretend to handle aliases.
9563         (init_varasm_once): Update weak_decls registry.
9564         * Makefile.in: Update dependencies.
9565
9566 2002-03-14  Richard Henderson  <rth@redhat.com>
9567
9568         PR target/5312
9569         * config/ia64/ia64.c: Include tm_p.h last.
9570         (gen_nop_type): Remove duplicate definition.
9571         (cycle_end_fill_slots): Set sched_data for second L slot.
9572         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9573         (nop_cycles_until): Fix typos.
9574
9575 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9576
9577         PR optimization/5891
9578         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9579
9580 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9581
9582         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9583           descriptors correctly.
9584
9585 2002-03-14  Michael Meissner  <meissner@redhat.com>
9586
9587         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9588         100, allowing MAX_UNROLLED_INSNS to be overridden.
9589
9590         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9591         --param.
9592
9593         * unroll.c (params.h): Include.
9594         (MAX_UNROLLED_INSNS): Delete, now in params.h.
9595
9596         * doc/invoke.texi (--param max-unroll-insns): Document.
9597
9598         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9599
9600 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9601
9602         * arm.md: Fix warnings about constraints in peepholes and splits.
9603
9604 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
9605
9606         * cpphash.h (struct lexer_state): Remove line_extension member.
9607         * cpplib.c (dequote_string, do_linemarker): New functions.
9608         (linemarker_dir): New data object.
9609         (DIRECTIVE_TABLE): No longer need to interpret #line in
9610         preprocessed source.  Delete obsolete comment about return
9611         values of handlers.
9612         (end_directive, directive_diagnostics, _cpp_handle_directive):
9613         Don't muck with line_extension.
9614         (directive_diagnostics): No need to issue warnings for
9615         linemarkers here.
9616         (_cpp_handle_directive): Issue warnings for linemarkers here,
9617         when appropriate.  Dispatch linemarkers to do_linemarker, not
9618         do_line.
9619         (do_line): Code to handle linemarkers split out to do_linemarker.
9620         Convert escape sequences in filename argument, both places.
9621
9622         * cppmacro.c (quote_string): Rename cpp_quote_string and
9623         export.  All callers changed.
9624         * cpplib.h (cpp_quote_string): Prototype.
9625         * cppmain.c (print_line): Call cpp_quote_string on to_file
9626         before printing it.
9627
9628         * doc/cpp.texi: Document that escapes are now interpreted in
9629         #line and in linemarkers, and that non-printing characters are
9630         converted to octal escapes when linemarkers are generated.
9631
9632 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
9633
9634         * emit-rtl.c (try_split): Use delete_insns.
9635         * recog.c (split_all_insns): Fix terminating condition.
9636
9637 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9638             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9639
9640         PR target/5828
9641         * arm.c (arm_output_epilogue): Fix floating-point register save
9642         adjustment when using a frame pointer.
9643
9644 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
9645
9646         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9647         * config/mips/mips.c (compute_frame_size): Retrofit them here.
9648         (save_restore_insns, mips_expand_epilogue): And here.
9649         (build_mips16_call_stub): And here.
9650         (mips_function_value): Use the new macros to decide whether a single
9651         or complex float can be returned in floating-point registers.  Return
9652         a parallel rtx in the complex case.
9653
9654 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9655
9656         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9657         call after liveness analysis.
9658
9659         * recog.c (split_insn): Use delete_insn_and_edges.
9660
9661         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9662         instructions to have branch prediction notes.
9663         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9664
9665 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
9666
9667         * configure.in: Don't pass -Wno-long-long to a ADA compiler
9668         that doesn't support it.
9669         * configure: Regenerate.
9670
9671 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9672
9673         PR target/5626
9674         * config/sparc/sparc.md (normal_branch, inverted_branch,
9675         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9676         inverted_fp_branch): Adjust calls to output_cbranch.
9677         Set length attribute.
9678         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9679         output_v9branch.  Set length attribute.
9680         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9681         predicates.
9682         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9683         (output_cbranch): Likewise.  Handle far branches.
9684         (output_v9branch): Handle far branches.
9685         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9686         Adjust prototypes.
9687         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9688         noov_compare64_op predicates.
9689
9690 2002-03-13  Jason Merrill  <jason@redhat.com>
9691
9692         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9693         into the function and constify it.
9694         * gthr-dce.h, gthr-solaris.h: Likewise.
9695
9696 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
9697
9698         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9699         * config/rs6000/rs6000.c (rs6000_va_arg): Use
9700         std_expand_builtin_va_arg if not ABI_V4.
9701
9702 2002-03-13  Jason Merrill  <jason@redhat.com>
9703
9704         * varasm.c (globalize_decl): New fn.
9705         (assemble_start_function): Use it.
9706         (asm_emit_uninitialized): Use it.
9707         (assemble_alias): Use it.
9708         (assemble_variable): Use it.
9709
9710 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
9711
9712         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9713         2002-03-12 internal visibility change.
9714         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9715         visibility into SYMBOL_REF_FLAG.
9716
9717 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
9718
9719         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9720         VOIDmode operand.  Add compile-time optimization for constant results.
9721
9722 2002-03-12  Jason Merrill  <jason@redhat.com>
9723
9724         * c-typeck.c (convert_for_assignment): Don't allow conversions
9725         between pointers and references.  Only allow lvalues to convert to
9726         reference.
9727
9728 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
9729
9730         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9731         before prologue, to avoid scheduling problems.
9732
9733 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9734
9735         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9736         (ELIMINABLE_REGS): Add sfp->sp.
9737         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9738
9739 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9740
9741         PR optimization/5892
9742         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9743
9744 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9745
9746         * loop.c (basic_induction_var): Don't call convert_modes if mode
9747         classes are different.
9748
9749 2002-03-12  Richard Henderson  <rth@redhat.com>
9750
9751         PR optimization/5901
9752         * function.c (reposition_prologue_and_epilogue_notes): Position
9753         the markers after/before the last/first insn not deleted.
9754
9755 2002-03-12  Richard Henderson  <rth@redhat.com>
9756
9757         PR optimization/5878
9758         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9759         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9760         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9761
9762         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9763         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9764         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9765
9766         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9767         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9768         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9769         also.  Don't set it if not flag_pic.
9770         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9771         to be INVALID_REGNUM when not used.
9772
9773 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
9774
9775         * expmed.c (store_bit_field): Reset alias set for memory.
9776         (extract_bit_field): Same.
9777
9778 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9779
9780         * c-common.c (c_tree_code_type, c_tree_code_length,
9781         c_tree_code_name, add_c_tree_codes): Delete.
9782         * c-common.h (add_c_tree_codes): Delete.
9783         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9784         Define.
9785         * c-objc-common.c (c_objc_common_init): Don't call
9786         add_c_tree_codes, instead set lang_unsafe_for_reeval.
9787         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9788         objc_tree_code_name, add_objc_tree_codes): Delete.
9789         (objc_init): Don't call add_objc_tree_codes.
9790         * objc/objc-lang.c (tree_code_type, tree_code_length,
9791         tree_code_name): Define.
9792         * toplev.c (lang_independent_init): Don't set
9793         tree_code_length[IDENTIFIER_NODE].
9794         * tree.c (tree_code_type, tree_code_length, tree_code_name):
9795         Delete definitions, moved to language front-ends.
9796         * tree.def (IDENTIFIER_NODE): Hardwire the length.
9797         * tree.h (tree_code_type, tree_code_length, tree_code_name):
9798         Const-ify.
9799         (tree_code_length): Change type to unsigned char.
9800
9801 2002-03-12  Richard Henderson  <rth@redhat.com>
9802
9803         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9804         internal visibility change.
9805
9806 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9807
9808         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9809         validize_mem() instead of change_address to avoid clobbering
9810         memory attributes.
9811
9812 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
9813
9814         * c-lex.h (position_after_whitespace): Remove.
9815
9816 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
9817
9818         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9819         (lex_string): Use unsigned char pointers.
9820
9821 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
9822
9823         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9824         is not a valid memory_operand.
9825
9826 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9827
9828         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9829         * config/xtensa/lib1funcs.asm: Fix copyright to include
9830         special case for libgcc files.
9831         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9832         (__divsi3): Likewise.
9833         (__umodsi3): Likewise.
9834         (__modsi3): Likewise.
9835         * config/xtensa/lib2funcs.S: Fix copyright to include
9836         special case for libgcc files.
9837
9838 2002-03-12  Tom Rix  <trix@redhat.com>
9839
9840         * collect2.c (resolve_lib_name): Move outside of
9841         OBJECT_FORMAT_COFF ifdef.
9842         (ignore_library): Same.
9843
9844 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9845
9846         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9847
9848 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9849
9850         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9851         to function_section before writing out the constant pool.
9852
9853 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
9854
9855         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9856         zero_constant.
9857         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9858
9859 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
9860
9861         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9862         (adddi3): Likewise.
9863         (movdf): Likewise.
9864         (movdi): Likewise.
9865         (cmpsi splitter): Likewise.
9866         (modsi3): Fail if <= 0.
9867         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9868         redundant test when HOST_BITS_PER_WIDE_INT != 32.
9869         (reg_or_sub_cint64_operand): Likewise.
9870         (num_insns_constant_wide): Optimize sign extension.
9871         (rs6000_legitimize_address): Likewise.
9872
9873 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
9874
9875         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9876         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9877
9878 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
9879
9880         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9881         address calculation.
9882
9883 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
9884
9885         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9886         scratch register to DImode / TImode.
9887         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9888         register used does not overlap the target.
9889
9890 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9891
9892         * Makefile.in (debug.o): Depend on debug.h.
9893         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9894         * debug.c (do_nothing_debug_hooks): Likewise.
9895         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9896         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9897         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9898         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9899         * dwarfout.c (dwarf_debug_hooks): Likewise.
9900         * integrate.c (output_inline_function): Likewise.
9901         * objc/objc-act.c (synth_module_prologue): Likewise.
9902         * sdbout.c (sdb_debug_hooks): Likewise.
9903         * toplev.c (debug_hooks): Likewise.
9904         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9905
9906 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9907
9908         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9909         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9910         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9911         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9912         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9913         * defaults.h (POINTER_SIZE): Define.
9914         * doc/tm.texi (POINTER_SIZE): Document default.
9915
9916 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9917
9918         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9919
9920 2002-03-11  Richard Henderson  <rth@redhat.com>
9921
9922         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9923         if rebuild_label_notes_after_reload.
9924
9925 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
9926
9927         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
9928         emit pic register load if "internal" visibility.
9929         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9930         (cris_expand_builtin_va_arg): Do all computations on trees.
9931
9932 2002-03-11  Richard Henderson  <rth@redhat.com>
9933
9934         * rtlanal.c: Include recog.h.
9935         (keep_with_call_p): Fix thinko.
9936         * Makefile.in (rtlanal.o): Update dependencies.
9937
9938 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
9939
9940         * genflags.c (gen_insn): Use IS_VSPACE.
9941         * genoutput.c (output_insn_data): Likewise.
9942         (process_template): Likewise.
9943
9944 2002-03-11  Richard Henderson  <rth@redhat.com>
9945
9946         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9947
9948 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9949
9950         * Makefile.in: Update.
9951         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9952         Update documentation.
9953         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9954         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9955
9956 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
9957
9958         * Makefile.in: Give texi2pod its input file as a command line
9959         argument, not on stdin.
9960
9961 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
9962             Daniel Berlin  <dan@dberlin.org>
9963
9964         C++ alias analysis improvement.
9965         * alias.c (record_component_aliases): Record aliases for base
9966         classes too.
9967
9968 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
9969
9970         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
9971
9972 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
9973
9974         * toplev.c (vms_fopen): Remove, not needed.
9975
9976         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
9977
9978         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
9979
9980         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
9981         for FP, already done later.
9982
9983         * toplev.c (debug_args): Add entry for VMS_DEBUG.
9984         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
9985
9986 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
9987
9988         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
9989         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
9990         LARGEST_EXPONENT_IS_NORMAL for the given mode.
9991         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
9992         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
9993         (ediv, emul, eldexp, esqrt): Likewise.
9994         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
9995         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
9996         (saturate): New function.
9997         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
9998         (make_nan): Use a saturation value instead of a NaN if
9999         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
10000         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10001         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
10002         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
10003         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10004         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10005         !ROUND_TOWARDS_ZERO.
10006         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10007         (ROUND_TOWARDS_ZERO): Document.
10008
10009 2002-03-11  Andreas Jaeger  <aj@suse.de>
10010
10011         * cfg.c (dump_flow_info): Remove unused variable.
10012
10013 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
10014
10015         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10016         computations on trees.
10017
10018 2002-03-10  Richard Henderson  <rth@redhat.com>
10019
10020         PR 5693:
10021         * reload.c (copy_replacements_1): New.
10022         (copy_replacements): Use it to recurse through the rtx.
10023
10024 2002-03-10  Richard Henderson  <rth@redhat.com>
10025
10026         * loop.c (strength_reduce): Compute number of iterations as
10027         unsigned HOST_WIDE_INT.
10028
10029 2002-03-10  Richard Henderson  <rth@redhat.com>
10030
10031         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10032         to move away from the end of the block.
10033
10034 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10035
10036         PR preprocessor/5899
10037         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10038
10039 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10040
10041         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10042
10043         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10044
10045 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10046
10047         * config/mmix/mmix.c: Improve comments.
10048         (mmix_target_asm_function_prologue): Drop variable
10049         empty_stack_frame.  Don't allocate unused slot above fp.
10050         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10051         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10052         brace in first column.
10053         (enum reg_class): Ditto.
10054         (FIRST_PARM_OFFSET): Now 0.
10055         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10056
10057 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10058
10059         * combine.c (make_extraction): Fix error in last change.
10060
10061 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10062
10063         * c4x.c (c4x_fp_reglist): Const-ify.
10064         * cris.c (cris_print_operand): Likewise.
10065         * i386.c (ix86_va_arg): Likewise.
10066         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10067         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10068         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10069         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10070         * mcore.h (regno_reg_class): Likewise.
10071         * mips.c (gen_int_relational): Likewise.
10072         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10073         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10074         * pdp11.c (move_costs): Likewise.
10075         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10076         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10077         Likewise.
10078         * s390.h (regclass_map): Likewise.
10079         * sh.c (shift_amounts): Likewise.
10080         * sh.md (rotlsi3): Likewise.
10081
10082 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10083
10084         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10085         (ne0+5): Use new clobber to generate proper shift pattern.
10086         Patch by Michael Matz <matz@kde.org>.
10087
10088 2002-03-09  Andreas Schwab  <schwab@suse.de>
10089
10090         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10091
10092 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10093
10094         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10095
10096 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10097
10098         PR middle-end/5877
10099         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10100         even for non-representable constants.
10101
10102 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10103
10104         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10105         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10106         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10107         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10108         (pop_function_context): Compute MAY_SHARE parameter for
10109         fixup_var_refs.
10110         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10111         (gen_mem_addressof): Call fixup_var_refs with new parm.
10112
10113         * combine.c (make_extraction): Don't make extension of CONST_INT.
10114
10115 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10116
10117         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10118         in o32 and o64 ABIs.
10119         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10120         but getting fixed-size structs passed in registers regardless of
10121         padding in o32 and o64 ABIs.
10122
10123         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10124         offset before loading address of argument passed by transparent
10125         reference.
10126
10127 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10128
10129         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10130
10131 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10132
10133         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10134         marker such that registers after it are saved.
10135
10136 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10137
10138         * sparc.c (arith_4096_operand): Fix error in last change.
10139
10140 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10141
10142         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10143         defaults for MEABI.
10144
10145 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10146
10147         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10148         vectors.
10149
10150 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10151
10152         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10153
10154 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10155
10156         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10157         removed; fix return value.
10158         * combine.c (combine_instructions): Dirtify blocks where we failed to
10159         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10160         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10161
10162 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10163
10164         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10165
10166 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10167
10168         * recog.c (peephole2_optimize): Re-distribute EH edges.
10169
10170 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10171
10172         * expr.c (expand_expr): Use unsave lang hook.
10173         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10174         (LANG_HOOKS_INITIALIZER): Update.
10175         * langhooks.h (struct lang_hooks): New hook unsave.
10176         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10177         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10178         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10179         (unsave_expr_now): Remove.
10180         * tree.h (unsave_expr_now, lang_unsave,
10181         lang_unsave_expr_now): Remove.
10182         (lhd_unsave): New.
10183
10184 2002-03-08  Andreas Jaeger  <aj@suse.de>
10185
10186         * flow.c (propagate_block_delete_insn): Remove unused variable.
10187
10188 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10189
10190         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10191         insn length for memory load/store.
10192
10193 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10194
10195         * doc/install.texi (--with-libiconv-prefix): Document.
10196
10197 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10198
10199         * doc/sourcebuild.texi: Fix typo.
10200
10201 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10202
10203         PR c/3711
10204         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10205         trees.
10206
10207 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10208
10209         * rtl.c (copy_most_rtx): Move from here ...
10210         * emit-rtl.c (copy_most_rtx): ... to here.
10211
10212 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10213
10214         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10215         SUBTARGET_CPP_SIZE_SPEC.
10216         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10217
10218         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10219
10220 2002-03-07  Matt Hiller  <hiller@redhat.com>
10221
10222         * gensupport.c (first_dir_md_include): Renamed from include;
10223         change all references.
10224         (last_dir_md_include): Renamed from last_include; change all
10225         references.
10226         (init_md_reader): Unconditionally initialize base_dir whether or
10227         not filename is a relative path.
10228
10229 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10230
10231         * config/fp-bit.c (_unord_f2): Compile it in even if
10232         US_SOFTWARE_GOFAST is enabled.
10233
10234         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10235         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10236         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10237         NULL_RTX, try reversing the comparison and the operands.
10238
10239 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10240
10241         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10242         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10243         and MATCH_OP_DUP.
10244
10245 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10246
10247         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10248
10249 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10250
10251         * basic-block.h (fixup_abnormal_edges): Declare.
10252         * reload1.c (fixup_abnormal_edges): New function.
10253         * reg-stack.c (convert_regs): Use it.
10254
10255         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10256
10257         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10258
10259 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10260
10261         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10262         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10263         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10264         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10265         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10266         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10267         unless x and y could be infinite.
10268         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10269         Check that the common type of both arguments is a real, even for
10270         targets without unordered comparisons.  Allow an integer argument
10271         to be compared against a real.
10272         (expand_tree_builtin): Use expand_unordered_cmp.
10273         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10274         * cse.c (fold_rtx): Likewise.  Fix indentation.
10275         * fold-const.c (fold_real_zero_addition_p): New.
10276         (fold): Use it, and the new HONOR_... macros.
10277         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10278         * jump.c (reversed_comparison_code_parts): After searching for
10279         the true comparison mode, use HONOR_NANS to decide whether it
10280         can be safely reversed.
10281         (reverse_condition_maybe_unordered): Remove IEEE check.
10282         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10283         to decide which simplifications are valid.  Allow the following
10284         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10285         and (a - -b) to (a + b).
10286         (simplify_relational_operation): Use HONOR_NANS.
10287         * doc/tm.texi: Document the MODE_HAS_... macros.
10288
10289 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10290
10291         * combine.c (simplify_comparison): If simplifying a logical shift
10292         right and compare with constant, force the comparison to unsigned.
10293
10294 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10295
10296         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10297
10298         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10299         -mabi=no-altivec
10300         (alt_reg_names): Remove % for vrsave.
10301
10302 2002-03-06  Richard Henderson  <rth@redhat.com>
10303
10304         PR optimization/5844
10305         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10306         if used indicates we've already emitted one copy of an operand.
10307         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10308         (gen_split): Supply a non-null used.
10309
10310 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10311
10312         * reload1.c (reload): Unshare all rtl after reload is done.
10313
10314         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10315         but simply fail if the expression is too complex to simplify.
10316         (simplify_gen_binary): Handle simplify_plus_minus failures.
10317
10318 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10319
10320         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10321         consistently call delete_trivially_dead_insns after CSE and GCSE;
10322         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10323         after liveness2; update comment in last crossjumping.
10324         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10325
10326 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10327
10328         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10329         after completing fast dead code elimination.
10330
10331         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10332         COMPARE operator.
10333
10334 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10335
10336         * version.c:  Fix misplaced leading blanks on first line.
10337
10338 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10339
10340         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10341
10342 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10343
10344         * cfgcleanup.c (mentions_nonequal_regs): New function.
10345         (thread_jump): Use it.
10346         * toplev.c (rest_of_compilation): Run jump threading after
10347         liveness.
10348
10349 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10350
10351         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10352         patch.
10353
10354 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10355
10356         * predict.c (estimate_bb_frequencies): Do not reload the
10357         frequencies from notes.
10358
10359 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10360
10361         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10362         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10363
10364         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10365         delete_noop_moves): Return indeger.
10366         * flow.c (ndead): New variable.
10367         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10368         BB argument; update callers.
10369         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10370         (life_analysis): Do not call purge_all_dead_edges.
10371         (update_life_info): Return number of deleted insns; print statistics.
10372         (update_life_info_in_dirty_blocks): likewise.
10373         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10374         return number of insns deleted.
10375
10376         * cse.c: Include timevar.h
10377         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10378         iterate until stabilizes; print statistics; return number of killed
10379         insns.
10380         * Makefile.in: (cse.o): Add timevar.h dependency
10381         * rtl.h (delete_trivially_dead_insns): New.
10382         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10383         * toplev.c (rest_of_compilation): Update callers.
10384
10385         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10386         (try_optimize_cfg): Do not update liveness.
10387         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10388         removal stabilizes; use delete_trivially_dead_insns.
10389
10390         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10391
10392 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10393
10394         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10395         callbacks when processing assembly language.
10396
10397 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10398
10399         * pa.h (ASM_FILE_END): Define.
10400         * som.h (ASM_FILE_END): Delete.
10401
10402         * pa.c (function_arg): Don't pass floats in general registers in
10403         indirect calls if TARGET_ELF32.
10404
10405 2002-03-05  Richard Henderson  <rth@redhat.com>
10406
10407         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10408
10409 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10410
10411         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10412
10413 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10414
10415         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10416         -r command line.  Don't hide any symbols if not building
10417         shared libgcc.
10418
10419 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10420
10421         * cfg.c (dump_flow_info): Warn about profile mismatches.
10422         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10423         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10424
10425 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10426
10427         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10428         wide volatile memory by parts.
10429
10430 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10431
10432         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10433         is NULL.
10434
10435 2002-03-05  Richard Henderson  <rth@redhat.com>
10436
10437         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10438
10439 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10440
10441         * toplev.c (documented_lang_options): Document more
10442         language-specific options.
10443         * doc/invoke.texi (Warning Options): Correct documentation for
10444         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10445         * c-decl.c (c_decode_option): Use a table to handle warning options.
10446
10447 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10448
10449         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10450         parameter to mmix_encode_section_info.
10451         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10452         relocatably.  Always produce ELF, not mmo if linking relocatably.
10453         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10454         first is non-zero, don't add symbol prefix.
10455         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10456         prototype accordingly.
10457
10458 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10459
10460         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10461
10462 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10463
10464         * configure.in: Increase required makeinfo version to 4.1.
10465         * configure: Regenerate.
10466
10467 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10468
10469         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10470         elsewhere now.
10471
10472 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10473
10474         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10475         * doc/invoke.texi: Fix @math uses.
10476
10477 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10478
10479         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10480         removal
10481
10482 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10483
10484         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10485         (powerpc-*-eabisimaltivec*): Same.
10486
10487         * config/rs6000/t-ppcendian: New.
10488
10489 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10490
10491         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10492         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10493         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10494
10495 2002-03-03  Richard Henderson  <rth@redhat.com>
10496
10497         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10498
10499 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10500
10501         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10502         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10503         tree.c, config/m68k/m68k.c:
10504         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10505         REAL_ARITHMETIC blocks unconditional.  Delete some further
10506         #ifdef blocks predicated on REAL_ARITHMETIC.
10507         * flags.h, toplev.c: Delete remaining references to
10508         flag_pretend_float.
10509
10510         * doc/invoke.texi: Remove documentation of -fpretend-float.
10511         * doc/tm.texi: Describe the various REAL_* macros as provided by
10512         real.h, not by the target configuration files.
10513
10514         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10515         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10516         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10517         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10518         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10519         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10520         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10521         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10522         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10523         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10524         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10525         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10526         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10527         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10528         config/xtensa/xtensa.h:
10529         Do not define, undefine, or mention in comments any of
10530         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10531         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10532         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10533         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10534         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10535         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10536         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10537         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10538         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10539
10540 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10541
10542         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10543         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10544         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10545         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10546         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10547         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10548         Delete.
10549         * defaults.h (BITS_PER_WORD): Define.
10550         * doc/tm.texi (BITS_PER_WORD): Document default value.
10551
10552         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10553         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10554         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10555
10556 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10557
10558         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10559         lieu of explicit sizeof/sizeof.
10560         * i386.c (override_options, ix86_init_mmx_sse_builtins,
10561         ix86_expand_builtin): Likewise.
10562         * mips.c (mips_add_gc_roots): Likewise.
10563         * mmix.c (mmix_output_condition): Likewise.
10564         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10565         altivec_init_builtins): Likewise.
10566         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10567         * cppexp.c (Nsuff, parse_number): Likewise.
10568         * cppinit.c (builtin_array_end): Likewise.
10569         * gcc.c (n_default_compilers, process_command): Likewise.
10570         * genpreds.c (output_predicate_decls): Likewise.
10571         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10572         * lcm.c (N_ENTITIES): Likewise.
10573         * stor-layout.c (set_sizetype): Likewise.
10574
10575 2002-03-03  Richard Henderson  <rth@redhat.com>
10576
10577         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10578         for types or labels.
10579
10580 2002-03-03  Richard Henderson  <rth@redhat.com>
10581
10582         * c-decl.c (start_decl): Initialized variables are not common.
10583
10584 2002-03-02  Per Bothner  <per@bothner.com>
10585
10586         * gcc.c (option_map):  Suport new --bootclasspath option.
10587         --CLASSPATH is now just an alias for --classpath.
10588
10589 2002-03-02  Richard Henderson  <rth@redhat.com>
10590
10591         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10592         load if "internal" visibility.
10593         * doc/extend.texi: Document visibility meanings.
10594
10595 2002-03-02  Richard Henderson  <rth@redhat.com>
10596
10597         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10598         to functions as well.
10599
10600 2002-03-02  Richard Henderson  <rth@redhat.com>
10601
10602         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10603         (handle_visibility_attribute): Don't call assemble_visibility.
10604         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10605         without asmspec.  Invoke assemble_alias when needed.
10606         * varasm.c (maybe_assemble_visibility): New.
10607         (assemble_start_function, assemble_variable, assemble_alias): Use it.
10608
10609 2002-03-02  Richard Henderson  <rth@redhat.com>
10610
10611         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10612         invoke ENCODE_SECTION_INFO with first call flag.
10613
10614         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10615         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10616         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10617         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10618         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10619         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10620         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10621         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10622         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10623         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10624         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10625         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10626         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10627         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10628         config/mcore/mcore-protos.h, config/mcore/mcore.c,
10629         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10630         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10631         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10632         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10633         config/sh/sh.h, config/sparc/sparc.h,
10634         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10635         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10636         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10637         FIRST argument.  As needed, examine it and do nothing.
10638
10639         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10640         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10641         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10642
10643         * config/arm/t-pe (pe.o): Add dependencies.
10644
10645 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10646
10647         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10648         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10649         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10650         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10651         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10652         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10653         * defaults.h (BITS_PER_UNIT): Define.
10654         * doc/tm.texi (BITS_PER_UNIT): Document default value.
10655
10656 2002-03-02  Kazu Hirata  <kazu@hxi.com>
10657
10658         * config/h8300/h8300-protos.h: Add a prototype for
10659         compute_a_shift_length.
10660         * config/h8300/h8300.c (h8300_asm_insn_count): New.
10661         (compute_a_shift_length): Likewise.
10662         (h8300_adjust_insn_length): Do not adjust insn length of shift
10663         insns.
10664         * config/h8300/h8300.md (anonymous shift patterns): Use
10665         compute_a_shift_length.
10666
10667 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10668
10669         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10670         trunc_int_for_mode.
10671
10672         * emit-rtl.c (offset_address): Call update_temp_slot_address.
10673
10674 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10675
10676         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10677         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10678         * flags.h (flag_zero_initialized_in_bss): Declare.
10679         * toplev.c (flag_zero_initialized_in_bss): New flag.
10680         (lang_independent_options): Add flag_zero_initialized_in_bss.
10681         * tree.c (initializer_zerop): New function.
10682         * tree.h (initializer_zerop): Declare.
10683         * varasm.c (assemble_variable): If we can emit bss, put zero
10684         initializers in the bss section.
10685
10686 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
10687
10688         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10689         like more than one symbol per .weak directive.
10690
10691 2002-03-01  Richard Henderson  <rth@redhat.com>
10692
10693         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10694         adjust argument_pointer by pretend_args_size.
10695         (ia64_va_start): Adjust va_start address by -pretend_args_size.
10696
10697 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10698
10699         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10700
10701 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
10702
10703         * toplev.c (rest_of_compilation): Delete dead jumptables before
10704         loop.
10705         * flow.c (delete_dead_jumptables): Make global.
10706         * rtl.h (delete_dead_jumptables): Declare.
10707
10708 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
10709
10710         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10711         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10712         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10713
10714 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10715
10716         * config/h8300/h8300-protos.h: Fix formatting.
10717         * config/h8300/h8300.c: Likewise.
10718         * config/h8300/h8300.h: Likewise.
10719
10720 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10721
10722         * config/h8300/h8300.c (print_operand): Support 16-bit
10723         constant addresses.
10724         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10725
10726 2002-02-28  Richard Henderson  <rth@redhat.com>
10727
10728         * expmed.c (store_bit_field): Prevent generation of CONCATs;
10729         pun complex values as integers; use gen_lowpart instead of
10730         gen_rtx_SUBREG.
10731         (extract_bit_field): Likewise.
10732
10733 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
10734             David Edelsohn  <edelsohn@gnu.org>
10735
10736         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10737         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10738         (SUPPORTS_WEAK): Likewise.
10739         * output.h (add_weak): Add tree param.
10740         * varasm.c (add_weak): Likewise.  Save decl.
10741         (struct weak_syms): Add decl field.
10742         (mark_weak_decls): New function.
10743         (init_varasm_once): ggc_add_root mark_weak_decls.
10744         (assemble_start_function): Use ASM_WEAKEN_DECL.
10745         (assemble_variable): Likewise.
10746         (assemble_alias): Likewise.
10747         (declare_weak): Pass decl to add_weak.
10748         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10749         (remove_from_pending_weak_list): Declare and define for
10750         ASM_WEAKEN_DECL.
10751         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10752         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10753         * defaults.h (SUPPORTS_WEAK): Likewise.
10754         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10755         .weak for code sym.  Do emit .size for descriptor sym.
10756         (ASM_DECLARE_FUNCTION_SIZE): Define.
10757         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10758         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
10759         .lglobl unless TARGET_XCOFF.  Formatting fixes.
10760         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10761         .weak for code sym.
10762         (HANDLE_PRAGMA_WEAK): Remove.
10763         (ASM_WEAKEN_LABEL): Remove.
10764         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10765
10766 2002-03-01  Jason Merrill  <jason@redhat.com>
10767
10768         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10769         (TARGET_EXPR_CLEANUP): New macro.
10770
10771 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
10772
10773         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10774         to take ptr_extend into account as third type of extension.
10775         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10776         fields used by SUBREG_PROMOTED_UNSIGNED_P.
10777         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10778         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10779         * calls.c (precompute_arguments): Use new macro.
10780         (expand_call): Ditto.
10781         * combine.c (nonzero_bits): Ditto.
10782         (record_promoted_value): Ditto.
10783         * expr.c (store_expr): Ditto.
10784         (expand_expr): Ditto.
10785         * function.c (assign_parms): Ditto.
10786
10787 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
10788
10789         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10790         override -shared and -shared-libgcc.
10791
10792 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
10793
10794         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10795         of "ultrasparc".
10796         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
10797         to be broken.
10798
10799 2002-02-28  Richard Henderson  <rth@redhat.com>
10800
10801         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10802         4 cycle latency from MM producers.
10803         (ia64_internal_sched_reorder): Likewise with pipeline flush.
10804
10805 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
10806
10807         * mklibgcc.in: Don't use GNU make extension.
10808
10809 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10810
10811         * c-parse.in (STATIC): New terminal.
10812         (scspec): New non-terminal.  Update productions accordingly.
10813         (program): Remove bogus ifc / end ifc.
10814         (array_declarator): Simplify production using STATIC.
10815
10816 2002-02-28  Jim Meyering  <meyering@lucent.com>
10817
10818         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10819         \a still means TARGET_BELL.
10820
10821 2002-02-28  Richard Henderson  <rth@redhat.com>
10822
10823         * haifa-sched.c (sched_emit_insn): New.
10824         (schedule_block): Use last_scheduled_insn to track last insn.
10825         * sched-int.h (sched_emit_insn): Prototype.
10826         * config/ia64/ia64.c (last_issued): Remove.
10827         (ia64_variable_issue): Don't set it.
10828         (nop_cycles_until): Use sched_emit_insn.
10829
10830 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
10831
10832         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10833         extended constants.
10834
10835 2002-02-28  Kazu Hirata  <kazu@hxi.com>
10836
10837         * config/h8300/h8300.c: Fix formatting.
10838         * config/h8300/h8300.h: Likewise.
10839
10840 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10841
10842         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10843         which may overwrite the high byte of the frame pointer.
10844
10845 2002-02-28  Bo Thorsen  <bo@suse.de>
10846
10847         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10848         (STARTFILE_SPEC): Add 64 bit files.
10849         (ENDFILE_SPEC): Likewise.
10850
10851 2002-02-28  Jason Merrill  <jason@redhat.com>
10852
10853         * c-decl.c (finish_function): Only warn about missing return
10854         statement with -Wreturn-type.
10855
10856 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
10857
10858         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10859
10860         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10861         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10862
10863 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
10864
10865         * basic-block.h (BB_REACHABLE): Renumber.
10866         (BB_DIRTY, BB_NEW): New flags.
10867         (clear_bb_flags): Declare.
10868         (update_life_info_in_dirty_blocks): Declare.
10869         * cfg.c (clear_bb_flags): New function.
10870         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10871         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10872         reorder_insns, emit_insn_after): Mark block as dirty.
10873         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10874         (update_life_info_in_dirty_blocks): New function.
10875         * recog.c (apply_change_group): Dirtify block.
10876
10877         * cse.c (cse_insn): Reorder emitting of jump insn to keep
10878         cfg consistent.
10879         * gcse.c (delete_null_pointer_checks): Likewise.
10880
10881         * toplev.c (dump_file_index): Move cse2 after bp,
10882         add DFI_null
10883         (dump_file_info): Similary.
10884         (rest_of_compilation): Avoid most of CFG rebuilds;
10885         do first if converision after null pointer checks, do cse2
10886         after branch prediction; avoid full liveness rebuild after
10887         initializing subregs.
10888         * invoke.texi (-d options): Document -du, renumber.
10889
10890         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10891         (notice_new_block): Do not set BB_UPDATE_LIFE.
10892         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10893          merge_blocks_move_successor_nojumps, merge_blocks,
10894          try_crossjump_to_edge): Likewise.
10895         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10896         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10897         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10898         (merge_of_block): Do not use life_data_ok.
10899         (find_if_case_1): Do not use SET_UPDATE_LIFE.
10900         (if_convert): Use BB_DIRTY mechanizm to update life.
10901         * lcm.c (optimize_mode_switching): Update
10902         update_life_info_in_dirty_blocks
10903
10904 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10905
10906         * Makefile.in (integrate.o): Update.
10907         * c-decl.c (copy_lang_decl): Rename.
10908         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10909         * integrate.c: Include langhooks.h.
10910         (copy_decl_for_inlining): Update to use langhook.
10911         * langhooks-def.h (lhd_do_nothing_t,
10912         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10913         (LANG_HOOKS_INITIALIZER): Update.
10914         * langhooks.c (lhd_do_nothing_t): New.
10915         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10916         * tree.h (copy_lang_decl): Remove.
10917 objc:
10918         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10919
10920 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
10921
10922         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10923         POST_DEC, and POST_MODIFY.
10924
10925 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10926
10927         * c-typeck.c (digest_init): Remove unused parameter; all
10928         callers changed.
10929
10930 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
10931
10932         * expmed.c (expand_shift): Correctly test for low part of a
10933         subreg.
10934
10935 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
10936
10937         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10938         insn UIDs with insn addresses.
10939
10940 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10941
10942         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10943         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10944         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10945         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10946         gcc.c, toplev.c: Delete code implementing -traditional mode.
10947
10948         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10949         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10950         Document removal of -traditional mode for compilation, and
10951         remove documentation only relevant to that mode.
10952
10953         * config/nextstep.h, config/ptx4.h, config/svr4.h,
10954         config/convex/convex.h, config/d30v/d30v.h,
10955         config/i386/dgux.h, config/i386/osf1elf.h,
10956         config/i386/osfelf.h, config/i386/osfrose.h,
10957         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10958         config/m68k/hp310.h, config/m88k/dgux.h,
10959         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10960         config/m88k/m88k.h, config/m88k/openbsd.h,
10961         config/mips/abi64.h, config/mips/osfrose.h,
10962         config/mips/svr4-5.h, config/mips/svr4-t.h,
10963         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10964         config/stormy16/stormy16.h: Remove all references to
10965         -traditional from target specs.  Delete all mention of the
10966         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
10967         delete a couple of commented-out definitions of
10968         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10969         to -traditional.
10970
10971         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
10972         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
10973
10974 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10975
10976         * mklibgcc.in: Don't use \n in a line subject to
10977         interpretation by echo.
10978
10979 2002-02-27  Graham Stott  <grahams@redhat.com>
10980
10981         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
10982         Constify NAME.
10983
10984         * loop.c (prescan_loop): Handle PARALLEL.
10985
10986         * unroll.c (loop_iterations): Return 0 if the add_val for
10987         a BIV is REG.
10988
10989         * final.c (output_operand_lossage): Constify PFX_STR.
10990
10991         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
10992
10993 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10994
10995         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
10996         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
10997
10998 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
10999
11000         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11001
11002 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11003
11004         * cpplex.c (_cpp_lex_token): Handle directives in macro
11005         arguments.
11006         * cpplib.c (_cpp_handle_directive): Save and restore state
11007         if parsing macro args when entering a directive.
11008         * cppmacro.c (collect_args): No need to handle directives
11009         in macro arguments.
11010         (enter_macro_context, replace_args): Use the original macro
11011         definition in case it was redefined whilst collecting arguments.
11012 doc:
11013         * cpp.texi: Update.
11014
11015 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
11016
11017         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11018         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11019         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11020         method on AIX.
11021         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11022         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11023         (load_toc_v4_PIC_2): Same.
11024
11025 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
11026
11027         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11028
11029 2002-02-26  Richard Henderson  <rth@redhat.com>
11030
11031         * config/alpha/alpha.md (ashldi_se): Re-enable.
11032
11033 2002-02-26  Richard Henderson  <rth@redhat.com>
11034
11035         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11036         MODULE_LOCAL_P; improve commentary.
11037
11038 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11039
11040         * doc/cpp.texi: Clarify documentation of relationship between
11041         #line and #include.
11042
11043 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11044
11045         * config/h8300/h8300-protos.h: Update the prototype for
11046         compute_logical_op_length.  Add the prototype for
11047         compute_logical_op_cc.
11048         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11049         code from operands.
11050         (compute_logical_op_cc): New.
11051         * config/h8300/h8300.md: Combine all the logical op patterns
11052         in HImode and SImode.  Use compute_logical_op_cc.
11053
11054 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11055
11056         * config/i386/i386.c (print_operand): Don't append ATT-style
11057         length suffixs to x87 opcodes when in Intel mode.
11058
11059 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11060
11061         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11062         (init_emit_once): Update calls.
11063         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11064         (init_syntax_once): Prototype.
11065
11066 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11067
11068         * pa-linux.h (LIB_SPEC): Update definition.
11069         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11070
11071 2002-02-26  Richard Henderson  <rth@redhat.com>
11072
11073         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11074         if we emitted a stop bit.
11075
11076 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11077
11078         * configure.in (libgcc_visibility): Substitute.
11079         * configure: Rebuilt.
11080         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11081         defined symbols .hidden.
11082
11083 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11084
11085         * attribs.c (c_common_attribute_table): Add visibility.
11086         (handle_visibility_attribute): New function.
11087         * varasm.c (assemble_visibility): New function.
11088         * output.h (assemble_visibility): Add prototype.
11089         * tree.h (MODULE_LOCAL_P): Define.
11090         * crtstuff.c (__dso_handle): Use visibility attribute.
11091         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11092         for MODULE_LOCAL_P symbols too.
11093         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11094         MODULE_LOCAL_P symbols the same way as local symbols.
11095         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11096         into .sdata/.sbss by the user.
11097         * doc/extend.texi (Function Attributes): Document visibility
11098         attribute.
11099
11100 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11101
11102         PR debug/5770
11103         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11104         STRING_CST initializer spanning the whole variable without
11105         embedded zeros.
11106         If expand_expr returned MEM, don't use it.
11107
11108 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11109
11110         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11111         generate a die for the lexical block.
11112
11113 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11114
11115         * config/h8300/h8300-protos.h: Add a prototype for
11116         compute_logical_op_length.
11117         * config/h8300/h8300.c (compute_logical_op_length): New.
11118         * config/h8300/h8300.md (anonymous logical patterns): Use
11119         compute_logical_op_length for length.
11120
11121 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11122
11123         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11124         for vectors.
11125         (gen_type_die): Same.
11126
11127         * attribs.c (handle_vector_size_attribute): Set debug information.
11128
11129 2002-02-26  Daniel Egger  <degger@fhm.edu>
11130
11131         * config/rs6000/rs6000.md: Swap define_insn attributes to
11132         fix incorrect generation of merge high instructions instead
11133         of merge low.
11134
11135 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11136
11137         * c-typeck.c (really_start_incremental_init): Use
11138         bitsize_zero_node for vectors.
11139
11140 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11141
11142         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11143         ("*set_vrsave_internal"): Same.
11144
11145 2002-02-25  Richard Henderson  <rth@redhat.com>
11146
11147         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11148         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11149
11150 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11151
11152         PR target/5755
11153         * config/i386/i386.c (ix86_return_pops_args): Only pop
11154         fake structure return argument if it was passed on the stack.
11155
11156 2002-02-25  Jason Merrill  <jason@redhat.com>
11157
11158         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11159         RESULT_DECL.
11160
11161 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11162
11163         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11164         link with shared_name only.
11165         * doc/invoke.texi (Link Options): Document new behavior.
11166
11167 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11168
11169         * c-typeck.c (push_init_level): Handle vectors.
11170
11171 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11172
11173         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11174         operands of SPARC_SETHI_P.
11175         (input_operand): Likewise.
11176         (sparc_emit_set_const32): Likewise.
11177         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11178         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11179         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11180         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11181         (movdi_insn_sp64_vis): Likewise.
11182         (movdi split, movdf split): Use SETHI32.
11183         * doc/md.texi: Document SPARC constraints L, M and N.
11184
11185 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11186
11187         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11188         ("*set_vrsave_internal"): use mfspr for Darwin.
11189
11190         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11191         gen_get_vrsave_internal.
11192
11193 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11194
11195         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11196
11197 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11198
11199         * cpplex.c (cpp_interpret_charconst): Get signedness or
11200         otherwise of wide character constants correct.
11201         * cppexp.c (lex): Get signedness of wide charconsts correct.
11202
11203 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11204
11205         * optabs.c (widen_operand): Only call convert_modes for
11206         promoted SUBREG if signedness matches.
11207         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11208
11209 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11210
11211         * cpplib.c (glue_header_name): Use local buffer to build up
11212         header name.
11213
11214 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11215
11216         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11217
11218 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11219
11220         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11221         H8/300[HS] separately.
11222         * config/h8300/h8300.md: Remove the early clobber constraint
11223         from bit field patterns.
11224
11225 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11226
11227         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11228         register_operand.
11229         (mulhisi3): Likewise.
11230         (umulqisi3): Likewise.
11231         (umulhisi3): Likewise.
11232
11233 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11234
11235         * cppinit.c (output_deps): Correct test for stdout output.
11236         (init_dependency_output): Cure warning.
11237
11238 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11239
11240         * expr.c (store_expr): When converting expression to promoted
11241         equivalent type, allow using SUBREG_REG of TARGET as the target
11242         of the expansion of EXP.
11243         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11244         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11245         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11246         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11247         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11248
11249 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11250
11251         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11252         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11253         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11254
11255 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11256
11257         PR optimization/5747
11258         * loop.c (scan_loop): Update reg info if move_movables created new
11259         pseudos.
11260
11261 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11262
11263         * gcc.c (init_gcc_spec): Revert last change.
11264
11265 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11266
11267         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11268         gpc_reg_operand constraint.
11269
11270 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11271
11272         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11273         Simplify comparison of `low'.
11274         (add_operand): Fix formatting.
11275         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11276         (mask_operand): Disallow mask to wrap in 64-bit mode.
11277         (rs6000_stack_info): Remove redundant test setting push_p.
11278         (output_toc): Fix formatting.
11279         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11280         cc_reg_not_cr0_operand constraint.
11281         (booldi3, boolcdi3 splitters): Same.
11282
11283 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11284
11285         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11286
11287 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11288
11289         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11290         gcc invoked with -shared-libgcc.
11291
11292 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11293
11294         PR c++/5748
11295         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11296         decl if any of elements was TREE_USED.
11297
11298 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11299
11300         * config/sparc/sol2.h: Don't include sys/mman.h.
11301         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11302         (arith_4096_operand): Don't throw high bits away.
11303         (const64_operand): Take sign extension of CONST_INTs into account.
11304         (const64_high_operand, sparc_emit_set_const32): Likewise.
11305         (GEN_HIGHINT64): Likewise.
11306         (sparc_emit_set_const64_quick1): Likewise.
11307         (const64_is_2insns): Likewise.
11308         (print_operand): Use trunc_int_for_mode for sign extension.
11309         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11310         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11311         chars.  Assume CONST_INT is already properly sign-extended.
11312         (movdi split): Sign-extend each SImode part.
11313         (andsi3 split): Don't mask high bits off, so that result
11314         remains properly sign-extend.
11315         (iorsi3 split): Likewise.
11316         (xorsi3 split): Likewise.
11317
11318 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11319
11320         * fold-const.c (fold): Fix typo in comments.
11321
11322 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11323
11324         * Makefile.in (langhooks.o): Update dependencies.
11325
11326 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11327
11328         * langhooks.c: Include flags.h.
11329
11330 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11331
11332         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11333
11334         * c-common.c (c_common_post_options): Set inline trees by
11335         default.
11336
11337         * doc/extend.texi (Function Attributes): Document always_inline
11338         attribute.
11339         Update documentation about inlining when not optimizing.
11340
11341         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11342
11343         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11344         unless DECL_ALWAYS_INLINE.
11345
11346         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11347         unless DECL_ALWAYS_INLINE.
11348         (c_disregard_inline_limits): Disregard if always_inline set.
11349
11350         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11351         Disregard if always_inline set.
11352         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11353         unless DECL_ALWAYS_INLINE.
11354
11355         * attribs.c (handle_always_inline_attribute): New.
11356         (c_common_attribute_table): Add always_inline.
11357
11358         * config/rs6000/altivec.h: Add prototypes for builtins
11359         requiring the always_inline attribute.
11360
11361 2002-02-21  Eric Christopher  <echristo@redhat.com>
11362
11363         * expmed.c (store_bit_field): Try to simplify the subreg
11364         before generating a new one when when the mode size of
11365         value is less than maxmode.
11366
11367 2002-02-21  Richard Henderson  <rth@redhat.com>
11368
11369         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11370         than gen_rtx_PLUS to form the sum.
11371         * explow.c (force_reg): Rearrange to not allocate new pseudo
11372         when force_operand returns a register.
11373         * expr.c (expand_assignment): Allow offset_rtx expansion to
11374         return a sum.  Do not force addresses into registers.
11375         (expand_expr): Likewise.
11376         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11377         to canonicalize arithmetic that didn't simpify.
11378         (simplify_plus_minus): New argument force; update
11379         all callers.  Don't split CONST unless we can do something with it,
11380         and wouldn't lose the constness of the operands.
11381
11382         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11383         that we generated earlier.
11384
11385 2002-02-21  Tom Tromey  <tromey@redhat.com>
11386
11387         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11388         (output_line_info): Use constant `1', with a long explanatory
11389         comment.
11390         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11391
11392 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11393
11394         * jump.c (redirect_jump): If old label has no UID, don't try to
11395         delete it.
11396
11397 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11398
11399         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11400         If input is constant, do shifts at compile time.
11401
11402 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11403
11404         * doc/extend.texi: Fix some more overfull hboxes.
11405
11406 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11407
11408         PR optimization/4994
11409         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11410         register moves.
11411
11412 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11413
11414         PR c++/4574
11415         * expr.h (expand_and): Add mode argument.
11416         * expmed.c (expand_and): Add mode argument.
11417         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11418         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11419         * except.c (expand_builtin_extract_return_addr): Likewise.
11420         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11421         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11422         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11423         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11424         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11425         gen_rtx (CONST_INT, VOIDmode, x).
11426
11427 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11428
11429         PR c/4697:
11430         * stmt.c (warn_if_unused_value): Move side effects test once more.
11431
11432 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11433
11434         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11435         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11436
11437 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11438
11439         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11440         SUBREG or ZERO_EXTEND.
11441
11442 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11443
11444         * sh.h (current_function_anonymous_args): Remove.
11445         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11446         of current_function_varargs and current_function_stdarg is set.
11447         * sh.c (sh_expand_prologue): Check current_function_varargs /
11448         current_function_stdarg / TARGET_SH5 instead of
11449         current_function_anonymous_args.
11450
11451         * sh64.h (TARGET_VERSION): Define.
11452
11453 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11454
11455         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11456         VRSAVE_REGNO on TARGET_ALTIVEC.
11457
11458 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11459
11460         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11461         bits of SImode const_int.
11462         (includes_rshift_p): Likewise.
11463         (print_operand): Call mask_operand and mask64_operand with correct
11464         mode.
11465         (rs6000_output_function_epilogue): Pad traceback table to word.
11466         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11467         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11468         mask64_operand with correct mode.
11469         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11470
11471 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11472
11473         PR debug/4461
11474         * varasm.c (get_pool_constant_mark): New.
11475         * rtl.h (get_pool_constant_mark): Add prototype.
11476         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11477         be represented if it has not been output.
11478
11479 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11480
11481         * combine.c (do_SUBST): Sanity check substitutions of
11482         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11483         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11484         CONST_INT into its operand.
11485         (known_cond): Likewise, for ZERO_EXTEND.
11486         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11487         allow for simplification of wide modes.  Reject CONST_INTs in
11488         ZERO_EXTEND when their actual mode is not given.
11489
11490 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11491
11492         * c-decl.c (pushdecl): If no global declaration is found for an
11493         extern declaration in block scope, try a limbo one.
11494
11495 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11496
11497         PR c++/4401
11498         * c-common.c (pointer_int_sum): Moved from...
11499         * c-typeck.c (pointer_int_sum): ...here.
11500         * c-common.h (pointer_int_sum): Add prototype.
11501
11502 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11503
11504         PR c++/5713
11505         * c-decl.c (duplicate_decls): Return 0 if issued error about
11506         redeclaration.
11507
11508 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11509             Jakub Jelinek  <jakub@redhat.com>
11510
11511         PR c/4389
11512         * tree.c (host_integerp): Ensure that the constant integer is
11513         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11514         when pos is zero or non-zero respectively.  Clarify comment.
11515         * c-format.c (check_format_info_recurse): Fix host_integerp
11516         usage; the pos argument should be zero when assigning to a
11517         signed HOST_WIDE_INT.
11518
11519 2002-02-20  Richard Henderson  <rth@redhat.com>
11520
11521         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11522         of the operand, rather than assuming TImode.
11523         (ix86_expand_binop_builtin): Cope with commutative patterns
11524         using nonimmediate_operand for both operands.
11525         (ix86_expand_timode_binop_builtin): Likewise.
11526         (ix86_expand_store_builtin): Validate operand 1.
11527         (ix86_expand_unop1_builtin): Likewise.
11528
11529 2002-02-20  Philip Blundell  <philb@gnu.org>
11530
11531         PR 5705
11532         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11533
11534 2002-02-20  Richard Henderson  <rth@redhat.com>
11535
11536         PR c/5615
11537         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11538
11539 2002-02-20  Tom Tromey  <tromey@redhat.com>
11540
11541         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11542         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11543         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11544         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11545         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11546         unconditionally.
11547
11548 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11549
11550         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11551           for (const_int 0) in X not just INTVAL.
11552
11553 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11554
11555         * doc/extend.texi: Avoid or reduce overfull hboxes.
11556
11557 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
11558
11559         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11560         operations if the field does not start at a mode boundary.
11561
11562 2001-02-20      Joel Sherrill <joel@OARcorp.com>
11563
11564         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11565         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11566         Also done for -Acpu and -Amachine.
11567
11568 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11569
11570         * cppinit.c (init_dependency_output): Take deps output file
11571         from -o if none given with -MF.  Suppress normal output.
11572         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11573         * doc/cpp.texi, doc/invoke.texi: Update.
11574
11575 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11576
11577         * toplev.c (output_quoted_string): Write unprintable
11578         characters with octal escapes.
11579
11580 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11581
11582         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11583         really_call_used[VRSAVE_REGNO] if not Altivec.
11584
11585 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
11586
11587         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11588         MODE_MASK.
11589         (constant_pool_expr_1): Fix formatting.
11590         (rs6000_legitimize_reload_address): Likewise.
11591
11592 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11593
11594         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11595         now that we have one.
11596
11597 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11598
11599         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
11600         end of first block of bitfields (which was only seven bits);
11601         rename dummy to unused_1; remove comment which is no longer true.
11602
11603 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11604
11605         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11606
11607 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11608
11609         PR 5399
11610         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11611         if generating PIC.
11612
11613         PR 5054
11614         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11615         arm_is_longcall_p rather than inspecting call-type cookie
11616         directly.
11617         (call_value_insn) [TARGET_THUMB]: Likewise.
11618
11619 2002-02-19  Graham Stott  <grahams@redhat.com>
11620
11621         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11622
11623 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11624
11625         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11626         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11627         (FP_SAVE_INLINE): Delete.
11628
11629         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11630         * config/rs6000/eabi.asm: Remove ABI save restore routines.
11631         * config/rs6000/t-ppccomm: Build crtsavres.o.
11632         * config/rs6000/crtsavres.asm: New file.
11633
11634 2002-02-19  Philip Blundell  <philb@gnu.org>
11635
11636         * config/arm/arm.c (use_return_insn): Don't reject interrupt
11637         functions.
11638         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11639         (output_return_instruction): Allow interrupt functions to return with
11640         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
11641         (arm_expand_prologue): Subtract 4 before stacking LR in an
11642         interrupt function.
11643
11644 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11645
11646         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11647         decl, not just FUNCTION_DECL.
11648         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11649         (arm_assemble_integer): Likewise.
11650         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11651         marked local.
11652
11653 2002-02-19  matthew green  <mrg@eterna.com.au>
11654
11655         * config.gcc (sparc-*-netbsdelf*): Enable target.
11656         (sparc64-*-netbsd*): New target.
11657         * config/sparc/netbsd-elf.h: New file.
11658         * config/sparc/t-netbsd64: New file.
11659
11660 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11661
11662         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11663
11664 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
11665
11666         * doc/invoke.texi: explicitly list the style guidelines that
11667         -Weffc++ checks for.
11668
11669 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
11670
11671         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11672
11673 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11674
11675         PR other/5718
11676         * gcc.c (cpp_unique_options): Treat -o as indicating object file
11677         only if not -E.  If -E, pass -o through to the preprocessor.
11678
11679 2002-02-19  Kazu Hirata  <kazu@hxi.com>
11680
11681         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11682         register number with an appropriate macro.
11683
11684 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11685
11686         * doc/rtl.texi (Constants): Close @code tag.
11687
11688 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
11689
11690         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11691         ("mmx_uavgv4hi3"): Same.
11692         ("pmulhrwv4hi3"): Same.
11693
11694         * tree-inline.c (walk_tree): Handle vectors.
11695
11696         * c-common.c (constant_expression_warning): Handle vectors.
11697         (overflow_warning): Same.
11698
11699         * sched-deps.c (sched_analyze_2): Handle vectors.
11700
11701         * rtlanal.c (rtx_unstable_p): Handle vectors.
11702         (rtx_varies_p): Same.
11703         (count_occurrences): Same.
11704         (regs_set_between_p): Same.
11705         (modified_between_p): Same.
11706         (modified_in_p): Same.
11707         (volatile_insn_p): Same.
11708         (volatile_refs_p): Same.
11709         (side_effects_p): Same.
11710         (may_trap_p): Same.
11711         (inequality_comparisons_p): Same.
11712         (replace_regs): Same.
11713         (computed_jump_p_1): Same.
11714
11715         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11716         argument.
11717         (inner_mode_array): New.
11718         (copy_rtx): Handle vectors.
11719         (copy_most_rtx): Same.
11720         (rtx_equal_p): Same.
11721         (get_mode_alignment): Adjust for vectors.
11722
11723         * resource.c (mark_referenced_resources): Handle vectors.
11724         (mark_set_resources): Same.
11725
11726         * reload1.c (eliminate_regs): Handle vectors.
11727         (elimination_effects): Same.
11728         (scan_paradoxical_subregs): Same.
11729
11730         * reload.c (subst_reg_equivs): Handle vectors.
11731
11732         * regrename.c (scan_rtx): Handle vectors.
11733
11734         * regclass.c (reg_scan_mark_refs): Handle vectors.
11735
11736         * recog.c (find_single_use_1): Handle vectors.
11737
11738         * local-alloc.c (equiv_init_varies_p): Handle vectors.
11739         (contains_replace_regs): Same.
11740         (memref_referenced_p): Same.
11741
11742         * integrate.c (copy_rtx_and_substitute): Handle vectors.
11743         (subst_constants): Same.
11744
11745         * genattrtab.c (attr_copy_rtx): Handle vectors.
11746         (encode_units_mask): Same.
11747         (clear_struct_flag): Same.
11748         (count_sub_rtxs): Same.
11749
11750         * gcse.c (want_to_gcse_p): Handle vectors.
11751         (oprs_unchanged_p): Same.
11752         (hash_expr_1): Same.
11753         (oprs_not_set_p): Same.
11754         (expr_killed_p): Same.
11755         (compute_transp): Same.
11756         (store_ops_ok): Same.
11757
11758         * function.c (purge_addressof_1): Do not allow paradoxical subregs
11759         of vectors.
11760         (fixup_var_refs_1): Same.
11761         (instantiate_virtual_regs_1): Same.
11762
11763         * fold-const.c (operand_equal_p): Handle vectors.
11764         (fold): Same.
11765         (rtl_expr_nonnegative_p): Same.
11766
11767         * flow.c (mark_used_regs): Handle vectors.
11768
11769         * df.c (df_uses_record): Handle vectors.
11770
11771         * cselib.c (cselib_subst_to_values): Handle vectors.
11772         (cselib_mem_conflict_p): Same.
11773         (hash_rtx): Same.
11774
11775         * cse.c (canon_reg): Handle vectors.
11776         (fold_rt): Same.
11777         (cse_process_notes): Same.
11778         (count_reg_usage): Same.
11779         (canon_hash): Same.
11780
11781         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11782
11783         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11784
11785         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11786         (gen_rtx): Handle CONST_VECTOR.
11787         (gen_const_vector_0): New.
11788         (copy_rtx_if_shared): CONST_VECTORs can be shared.
11789         (reset_used_flags): Same.
11790         (copy_insn_1): Same.
11791         (initializer_constant_valid_p): Handle VECTOR_CST.
11792
11793         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11794
11795         * doc/rtl.texi (Constants): Document const_vector.
11796         (CONST0_RTX): Update for vectors.
11797         (RTL sharing): Same.
11798
11799         * print-tree.c (print_node): Add case for VECTOR_CST.
11800
11801         * tree.h (TREE_VECTOR_CST_ELTS): New.
11802         (struct tree_vector): New.
11803         (union tree_node): Add vector node.
11804         (build_vector): Add prototype.
11805
11806         * tree.def (VECTOR_CST): New.
11807
11808         * tree.c (build_vector): New.
11809
11810         * expmed.c (make_tree): Handle CONST_VECTOR.
11811
11812         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11813         (CONST_VECTOR_ELT): New.
11814         (CONST_VECTOR_NUNITS): New.
11815
11816         * machmode.h (GET_MODE_INNER): New.
11817         (DEF_MACHMODE): Accept 8th arg.
11818
11819         * machmode.def: Add 8th argument for vector inner mode.
11820         Add inner vector modes for vectors.
11821
11822         * rtl.def (VEC_CONST): Remove.
11823         (CONST_VECTOR): New.
11824
11825         * expr.c (clear_storage): Allow vectors.
11826         (is_zeros_p): Handle VECTOR_CST.
11827
11828         * varasm.c (output_constant_pool): Handle vectors.
11829         (rtx_const): Add veclo and vechi fields.
11830         (kind): Add RTX_VECTOR.
11831         (decode_rtx_const): Add case for vector.
11832
11833         * config/rs6000/rs6000-protos.h: Add zero_constant.
11834
11835         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11836         constants.  Force easy vector constants into memory.
11837         (easy_vector_constant): New.
11838         (emit_easy_vector_constant): New.
11839         (rs6000_legitimize_reload_address): Do not generate bad reloads on
11840         darwin.
11841
11842         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11843         instruction does.
11844         ("altivec_lvxl"): Same.
11845         (altivec_lvebx): Same.
11846         (altivec_lvehx): Same.
11847         (altivec_lvewx): Same.
11848         ("*movv4si_const0"): New.
11849         ("*movv4sf_const0"): New.
11850         ("*movv8hi_const0"): New.
11851         ("*movv16qi_const0"): New.
11852
11853 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11854
11855         * config/h8300/h8300.c (notice_update_cc): Use
11856         cc_status.value2.
11857
11858 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11859
11860         * config/h8300/h8300.md (divmod patterns): Change the
11861         constraints for operands[1] to register_operand.
11862
11863 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11864
11865         * config/h8300/h8300-protos.h: Remove the prototype for
11866         p_operand.
11867         * config/h8300/h8300.c (p_operand): Remove.
11868         * config/h8300/h8300.md: Replace p_operand with
11869         const_int_operand.
11870
11871 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11872
11873         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11874         comment.
11875         (output_return_instruction): Allow use of LDR to unstack
11876         return addresss even for interrupt handlers or when
11877         interworking.  If compiling for ARMv5, use interworking-safe
11878         return instructions by default.  Remove duplicated code and
11879         lengthy "strcat" sequences.
11880
11881 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11882
11883         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11884         (LINK_EH_SPEC): Define.
11885         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11886
11887 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
11888
11889         * config/s390/s390.c (s390_emit_prologue): Do not set the
11890         frame_related flag for call-clobbered registers.
11891
11892 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
11893
11894         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11895         (construct_container): Fix handling of SSE operands.
11896         (ix86_expand_builtin): Fix handling of 64bit pointers.
11897         (mmx_maskmovq_rex): New pattern.
11898
11899 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
11900
11901         * regrename.c (kill_set_value): Handle subregs properly.
11902
11903 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
11904
11905         * objc/objc-act.c (handle_impent): Remove leading '*'
11906         from objc_class_name.
11907
11908 2002-02-17  Richard Henderson  <rth@redhat.com>
11909
11910         * config/alpha/alpha.c (some_small_symbolic_operand,
11911         some_small_symbolic_operand_1, split_small_symbolic_operand,
11912         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11913         Handle small SYMBOL_REFs anywhere, not just inside memories.
11914         * config/alpha/alpha-protos.h: Update.
11915         * config/alpha/alpha.h (PREDICATE_CODES): Update.
11916         * config/alpha/alpha.md (small symbolic operand splitter): Update.
11917
11918 2002-02-17  Roland McGrath  <roland@frob.com>
11919
11920         * config.gcc (powerpc-*-gnu-gnualtivec*,
11921         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11922         * config/rs6000/gnu.h: New file.
11923         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11924         Grok "gnu" in rs6000_abi_name.
11925         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11926         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11927         Grok -mcall-gnu analogous to -mcall-linux et al.
11928         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11929         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11930         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11931
11932 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
11933
11934         PR c/3444:
11935         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11936         shortening.
11937
11938 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11939
11940         * config/cris/cris.h: Undefine STARTFILE_SPEC and
11941         ENDFILE_SPEC before (re)defining them.
11942
11943 2002-02-17  Kazu Hirata  <kazu@hxi.com>
11944
11945         * config/h8300/h8300.c: Fix formatting.
11946         * config/h8300/h8300.h: Likewise.
11947
11948 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11949
11950         * doc/tm.texi: Explain why empty strings should not be
11951         marked for translation.
11952
11953 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11954
11955         * final.c (output_operand_lossage): Changed to accept
11956         printf style arguments. Change calls where necessary.
11957         * output.h (output_operand_lossage): Change declaration
11958         accordingly. Update copyright.
11959         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11960         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11961         Update copyright date where necessary.
11962
11963         * config/i386/i386.c (print_operand): Likewise. Remove use of
11964         sprintf.
11965
11966         * config/cris/cris.c (cris_operand_lossage): Likewise.
11967         Rename parameter so that exgettext recognizes it as
11968         translatable message.
11969         (LOSE_AND_RETURN): Rename parameter to msgid.
11970
11971 2002-02-17  Kazu Hirata  <kazu@hxi.com>
11972
11973         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
11974         hard coded register number with an appropriate macro.
11975         (HARD_REGNO_MODE_OK): Likewise.
11976         (ARG_POINTER_REGNUM): Likewise.
11977         (STATIC_CHAIN_REGNUM): Likewise.
11978         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11979         * config/h8300/h8300.md (define_constants): Define more
11980         register numbers.
11981
11982 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11983
11984         * config/i386/i386.h: Don't mark empty strings for translation.
11985
11986 2002-02-16  H.J. Lu <hjl@gnu.org>
11987
11988         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
11989
11990 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
11991
11992         * cppinit.c (merge_include_chains): Check for brack being
11993         NULL before attempting to merge it with qtail.
11994
11995 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
11996
11997         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
11998         DBX_DEBUG.
11999
12000 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12001
12002         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12003
12004 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12005
12006         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12007         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12008         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12009
12010 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12011
12012         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12013         now only if !TARGET_FIX.
12014         (*movsi_nt_vms_fix): New pattern.
12015
12016 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
12017
12018         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12019         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12020         (alpha_sa_mask, alpha_sa_size): Reflect above change.
12021         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12022         (alpha_start_function, alpha_expand_epilogue): Likewise.
12023         (unicosmk_gen_dsib): Likewise.
12024
12025 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12026
12027         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12028
12029 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
12030
12031         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12032         check_and_change_labels, s390_final_chunkify): Delete.
12033         (s390_split_branches, s390_chunkify_pool): New functions.
12034         (s390_function_prologue): Call them.
12035
12036         * config/s390/s390.h (S390_REL_MAX): Delete.
12037         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12038
12039         * config/s390/s390.md (cjump, icjump, jump): Fix length
12040         attribute calculation.
12041
12042
12043 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12044
12045         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12046         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12047
12048 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12049
12050         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12051         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12052         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12053
12054 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12055
12056         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12057
12058 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12059
12060         * reload.c (find_dummy_reload): Check that an output register
12061         is valid for its mode.
12062
12063 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12064
12065         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12066         to simplify it.
12067
12068         * function.c (assign_parms): Demote promoted argument passed by
12069         transparent reference.
12070
12071 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12072
12073         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12074         -Acpu() and -Amachine() to eliminate warnings.
12075
12076 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12077
12078         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12079
12080 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12081
12082         * config/h8300/h8300-protos.h: Update the prototype for
12083         const_costs.
12084         * config/h8300/h8300.c (const_costs): Treat SET as a little
12085         more expensive operation.
12086         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12087         reference to const_costs.
12088
12089 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12090
12091         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12092
12093 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12094
12095         PR c/5503:
12096         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12097         use arguments from newtype.
12098
12099 2002-02-13  Eric Christopher  <echristo@redhat.com>
12100
12101         * config/mips/mips.c (override_options): Add check for march/mipsX
12102         on the same command line. Fix error message in cpu processing.
12103         Remove architecture and ISA checks.
12104
12105 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12106
12107         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12108
12109         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12110
12111 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12112
12113         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12114         alternatives.
12115         ("*movv8hi_internal1"): Same.
12116         ("*movv16qi_internal1"): Same.
12117         ("*movv4sf_internal1"): Same.
12118
12119         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12120         not push_reload for altivec modes.
12121
12122 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12123
12124         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12125         all RTEMS targets including removal of #includes from config/*/rtems*.h
12126         file and adding them to tm_file setting. Added xm_defines=POSIX to
12127         many targets.
12128         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12129         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12130         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12131         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12132         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12133         config/m68k/rtemself.h: Ditto.
12134         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12135         config/mips/rtems64.h: Ditto.
12136         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12137         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12138         Ditto.
12139         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12140         config/sparc/rtemself.h: Ditto.
12141         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12142         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12143         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12144         more like arm-elf.
12145         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12146         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12147         target made more similar to i386-elf.
12148         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12149         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12150         be similar to config/m68k/t-m68kelf.
12151         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12152
12153 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12154
12155         * regmove.c (kill_value): Handle subregs.
12156
12157 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12158
12159         * i386.md (mul patterns): Allow memory operand to be first;
12160         add expanders where needed; fix constraints.
12161         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12162         Allow memory operand to be the first.
12163
12164         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12165         operands.
12166
12167 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12168
12169         PR c/5681:
12170         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12171         GET_MODE (x).
12172
12173 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12174
12175         PR optimization/5547:
12176         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12177         all valid IA-32 address modes involving non-scaled %ebx and
12178         GOT/GOTOFF as displacement.
12179
12180 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12181
12182         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12183         after emitting ltorg insns.
12184
12185         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12186         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12187         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12188         *abssf2): Fix "op_type" attribute.
12189
12190 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12191
12192         * mkconfig.sh: Avoid using a subshell redirect.
12193         ($output.T): Change to $(output)T.
12194         (ENABLE_NLS): Remove unneeded undef.
12195
12196         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12197         * config/alpha/x-vms (libsubdir): Define.
12198
12199         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12200         register frame procedures. Optimize retrieving context.
12201
12202         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12203         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12204         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12205
12206 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12207
12208         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12209         Make same change as for find_base_value.
12210
12211 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12212
12213         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12214         of QImode and SImode.
12215
12216 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12217
12218         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12219         length computation of movsi.
12220         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12221
12222 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12223
12224         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12225         operands[2] to register_operand.
12226
12227 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12228
12229         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12230
12231 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12232
12233         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12234         for altivec_lvx* and altivec_stvx*.
12235         ("*movv4si_internal"): Add constraint for loading from GPRs.
12236         ("*movv8hi_internal1"): Same.
12237         ("*movv16qi_internal1"): Same.
12238         ("*movv4sf_internal1"): Same.
12239
12240         * config/rs6000/rs6000.c (altivec_register_operand): New.
12241
12242         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12243         altivec_register_operand.
12244
12245 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12246
12247         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12248         handle SYMBOL_REF.
12249
12250 2002-02-13  Stan Shebs  <shebs@apple.com>
12251
12252         * c-typeck.c (digest_init): Handle vectors.
12253         (really_start_incremental_init): Same.
12254         (pop_init_level): Same.
12255         (process_init_element): Same.
12256
12257         * varasm.c (output_constant): Same.
12258
12259         * expr.c (clear_storage): Same.
12260         (store_constructor): Same.
12261
12262 2002-02-12  Eric Christopher  <echristo@redhat.com>
12263
12264         * explow.c (hard_function_value): Add comment explaining
12265         signed/unsigned comparison.
12266
12267 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12268
12269         * jump.c (never_reached_warning): Add finish argument.
12270         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12271         real insn after end.
12272         * rtl.h (never_reached_warning): Adjust prototype.
12273         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12274         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12275         never_reached_warning.
12276
12277 2002-02-12  Graham Stott  <grahams@redhat.com>
12278
12279         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12280
12281 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12282
12283         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12284         logical shifts on H8/300.
12285         (shift_alg_si): Improve several shifts on H8/300.
12286         (get_shift_alg): Likewise.
12287
12288 2002-02-12  Graham Stott  <grahams@redhat.com>
12289
12290         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12291
12292 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12293
12294         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12295         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12296
12297 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12298
12299         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12300         non-CONST_INT through default_assemble_integer.
12301         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12302         <case 8>: Abort for CONST_DOUBLE.
12303
12304 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12305
12306         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12307         is specified.
12308         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12309         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12310
12311 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12312
12313         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12314
12315 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12316
12317         * regrename.c (regrename_optimize): Don't accept a
12318         part-clobbered register if the replaced register is not part
12319         clobbered.
12320
12321         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12322         take padding into account when computing the argument value.
12323
12324         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12325
12326         * combine.c (try_combine): Apply substitutions in
12327         CALL_INSN_FUNCTION_USAGE too.
12328
12329 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12330
12331         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12332         __builtin_altivec_abs*.
12333         (bdesc_abs): New.
12334
12335         * config/rs6000/rs6000.h (rs6000_builtins): Add
12336         ALTIVEC_BUILTIN_ABS*.
12337
12338         * config/rs6000/altivec.h: Use const char for builtins expecting
12339         literals.
12340         (vec_abs): New versions for C and C++.
12341         (vec_abss): Same.
12342
12343 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12344
12345         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12346         using Pmode.
12347
12348 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12349
12350         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12351         constant definition from h8300.md.
12352         (FRAME_POINTER_REGNUM): Likewise.
12353         * config/h8300/h8300.md (define_constants): Add FP_REG.
12354
12355 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12356
12357         * config/h8300/h8300.c (print_operand): Remove redundant code.
12358
12359 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12360
12361         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12362         * config/h8300/h8300.c (byte_reg): Make it static.
12363
12364 2002-02-10  Richard Henderson  <rth@redhat.com>
12365
12366         PR c/5623
12367         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12368
12369 2002-02-10  Richard Henderson  <rth@redhat.com>
12370
12371         PR c++/5624
12372         * tree.c (append_random_chars): Don't abort if main_input_filename
12373         does not exist.
12374
12375 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12376
12377         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12378
12379 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12380
12381         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12382         (pushhi1): Likewise.
12383
12384 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12385
12386         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12387         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12388
12389 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12390
12391         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12392         remove MASK_VIS.
12393         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12394
12395 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12396
12397         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12398         a half of an SImode register on H8/300.
12399
12400 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12401
12402         * i386.md (movdi_2): Add missing '!'.
12403
12404 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12405
12406         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12407         definitions.
12408
12409 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12410
12411         * config/h8300/h8300.md (length): Correct the distance valid
12412         for the short branch.
12413
12414 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12415
12416         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12417
12418 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12419
12420         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12421         registers in SImode.
12422         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12423         part-clobbered.
12424
12425         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12426         patch.
12427
12428         Contribute sh64-elf.
12429         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12430         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12431         (sh_cannot_modify_jumps_p): New function.
12432         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12433         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12434         (sh_ms_bitfield_layout_p): New function.
12435         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12436                     Zack Weinberg  <zack@codesourcery.com>
12437         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12438         expand_simple_binop instead of expand_binop.
12439         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12440         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12441         use of .quad and .uaquad.
12442         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12443         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12444         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12445         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12446         movdi_const_16bit): Make sure all CONSTs have modes.
12447         (sym2PIC): Ditto, but by adjusting all callers.
12448         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12449         if the prologue calls the SHmedia argument decoder or register
12450         saver.
12451         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12452         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12453         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12454         (sh_expand_epilogue): Don't emit USE of return target register.
12455         (prepare_move_operands): Legitimize DImode PIC addresses.
12456         (sh_media_register_for_return): Skip tr0, used to initialize the
12457         PIC register.
12458         (sh_expand_prologue): Remove explicit USE of return register.
12459         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12460         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12461         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12462         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12463         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12464         EXTRA_CONSTRAINT_T.
12465         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12466         (MOVI_SHORI_BASE_OPERAND_P): New.
12467         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12468         (EXTRA_CONSTRAINT_T): Define in terms of them.
12469         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12470         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12471         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12472         alternatives supporting TARGET_REGS.
12473         (UNSPEC_GOTPLT): New constant.
12474         (movdi split): Move incrementing of LABEL_NUSES...
12475         (movdi_const, movdi_const_32bit): Here.  Use
12476         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12477         (movdi_const_16bit): New.
12478         (call, call_value) [flag_pic]: Use GOTPLT.
12479         (call_pop, call_value_pop): New expands.
12480         (call_pop_compact, call_pop_rettramp): New insns.
12481         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12482         (sibcall) [flag_pic]: Use GOT.
12483         (builtint_setjmp_receiver): Remove bogus, unused expand.
12484         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12485         (*pt, *ptb, ptrel): New insns.
12486         (sym2GOT): Handle DImode GOT.
12487         (sym2GOTPLT, symGOTPLT2reg): New expands.
12488         (sym2PIC): New expand.
12489         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12490         (shcompact_return_tramp_i): Use return register explicitly.
12491         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12492         disable flag_reorder_blocks.
12493         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12494         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12495         clobbers, for clarity.
12496         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12497         restoring of r0 in macl as MAYBE_DEAD.
12498         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12499         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12500         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12501         alter_subreg all over.
12502         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12503         reload, instead of emitting instructions that would require
12504         reloading.
12505         (casesi_load_media): Add missing modes.
12506         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12507         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12508         as used if the argument decoder is called.
12509         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12510         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12511         Pmode, then extend it to DImode if necessary.
12512         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12513         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12514         constants in FPU-enabled SHmedia, let them be loaded from memory.
12515         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12516         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12517         Adjust whitespace in assembly output templates.
12518         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12519         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12520         mode of if_then_else.
12521         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
12522         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12523         sh.h.
12524         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
12525                     Joern Rennecke <amylaar@redhat.com>
12526         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12527         (SUBTARGET_CPP_PTR_SPEC): New.
12528         (SUBTARGET_CPP_SPEC): Remove.
12529         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12530         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12531         Fix typo in previous checkin.
12532         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
12533         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12534         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
12535                     Alexandre Oliva  <aoliva@redhat.com>
12536         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12537         what single FP register can hold for SHmedia target.
12538         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12539                     Alexandre Oliva  <aoliva@redhat.com>
12540         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12541         Do not split into SUBREG.
12542         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
12543         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12544         and added new functions as specified in SH5 ABI r9.
12545         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
12546         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12547         8-byte boundary.
12548         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
12549         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12550         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
12551         and consttable_window_ends.
12552         2001-06-03  Graham Stott  <grahams@redhat,com>
12553         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12554         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
12555         * config/sh/sh.c (print_operand): Handle floating-point pair,
12556         vector and matrix registers.
12557         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12558         vector modes into account.
12559         * config/sh/sh.md (movv2sf): Split move between registers into
12560         movdf.
12561         (movv4sf, movv16sf): Introduce insns that get split only after
12562         reload.
12563         * config/sh/shmedia.h: Fix Copyright dates.
12564         * config/sh/ushmedia.h: Likewise.  Move loop counter
12565         declarations into conditionals that uses them.
12566         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12567         loop boundary.
12568         * config/sh/sshmedia.h: Fix Copyright dates.
12569         (sh_media_PUTCFG): Fix constraints.
12570         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
12571         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12572         ptrmemfunc_vbit_in_delta for SH5.
12573         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
12574         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12575         * invoke.texi: Likewise.
12576         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12577         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12578         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12579         GCC_pop_shmedia_regs_nofpu): New global symbols.
12580         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12581         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12582         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12583         compact function with nonlocal labels.
12584         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12585         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12586         (initial_elimination_offset): Account for their stack space.
12587         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12588         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12589         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12590         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12591         least one of the operands to be a register.
12592         (movv2sf): Likewise.  Renamed to movv2sf_i.
12593         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12594         prepare_move_operands() before emitting SHmedia insns.
12595         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
12596         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12597         Don't save nor initialize r12.  Don't mis-align the stack.
12598         Pad the code with a nop.
12599         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
12600         stack.
12601         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
12602         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12603         [__SHMEDIA__]: Implement.
12604         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
12605         * config/sh/sh.md: Set latency of `pt' closer to reality.
12606         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12607         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12608         Set move, load and store type attributes.
12609         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12610         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12611         profiling.
12612         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12613         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12614         * config/sh/sh.c (sh_media_register_for_return): New function.
12615         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12616         branch-target register.
12617         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12618         * config/sh/sh.md (return_media_i): Use any call-clobbered
12619         branch-target register.
12620         (return_media): If r18 wasn't copied in the prologue, copy it
12621         here.
12622         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12623         Clear class FP0_REGS.
12624         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12625         from elf.h.
12626         2001-03-08  DJ Delorie  <dj@redhat.com>
12627         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12628         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
12629         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12630         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
12631         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12632         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
12633         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12634         return value correctly for call_cookie.
12635         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
12636         * config/sh/crt1.asm (start): Modified so as to call
12637         ___setup_argv_and_call_main.
12638         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
12639         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12640         SHmedia mode.
12641         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
12642         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12643         (STRIP_NAME_ENCODING): Use it.
12644         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
12645         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
12646         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12647         prepare_scc_operands().
12648         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12649         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12650         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
12651         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12652         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
12653         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12654         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12655         used in shcompact_incoming_args.
12656         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12657         change.
12658         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12659         mode.
12660         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12661         Adjust accordingly.
12662         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12663         Simplify.  Adjust.  Add sanity check.
12664         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12665         FPU_SINGLE_BIT.
12666         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12667         TARGET_SHCOMPACT.
12668         (udivsi3, divsi3): Use them.
12669         (force_mode_for_call): New insn.
12670         (call, call_value, sibcall_value): Emit it before SHcompact
12671         calls.
12672         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
12673         * config/sh/sh.md (call, call_value, sibcall): Make sure the
12674         call cookie is non-NULL before taking its value.
12675         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
12676         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12677         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
12678         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12679         block.
12680         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12681         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12682         temporary for stack adjusts.  Use MACL and MACH to pass
12683         arguments to shcompact_incoming_args.
12684         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
12685         clobber r1.
12686         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12687         (nested_trampoline): Load static chain address into r1.
12688         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12689         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
12690         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12691         fp_arith_reg_operand().
12692         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
12693         * config/sh/sh.md (casesi): Sign-extend the first two operands,
12694         and use signed compares for them.
12695         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12696         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
12697         ones properly aligned.
12698         (find_barrier): Account for extra alignment needed for 8-byte wide
12699         constants.
12700         (machine_dependent_reorg): Require a label for the second 4-byte
12701         constant after an 8-byte one.
12702         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12703         change.
12704         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12705         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12706         last_float when switching float modes.
12707         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12708         auto-increment for general-purpose registers.
12709         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12710         result.
12711         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12712         for stack adjust.
12713         * config/sh/sh.c (sh_builtin_saveregs): Support using all
12714         registers for varargs.
12715         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
12716         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12717         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12718         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12719         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12720         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
12721         call_cookie accordingly.
12722         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12723         (SHCOMPACT_BYREF): Likewise.
12724         (SHCOMPACT_FORCE_ON_STACK): New macro.
12725         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12726         (sh_builtin_saveregs): Likewise.
12727         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12728         shcompact_incoming_args): Use new shift values.  Support
12729         sequences of consecutive and non-consecutive pushes/pops.
12730         * config/sh/sh.md (return): Don't explicitly use PR_REG.
12731         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
12732         * config/sh/sh.h (TEXT_SECTION): Define.
12733         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12734         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12735         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12736         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12737         return values on FPU-enabled SHmedia.
12738         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12739         FPU-enabled SHmedia.
12740         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12741         value is returned in a non-FP reg and is not returned by
12742         reference.
12743         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12744         jump_ind.
12745         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
12746         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12747         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12748         quad-aligned to be passed by callee-copy reference.
12749         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
12750         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12751         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12752         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
12753         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12754         copying low-numbered FP regs to r7 and r8.
12755         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12756         FP regs to general-purpose regs only if the copy was passed on the
12757         stack.
12758         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12759         copying FP reg to r9.
12760         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12761         copy FP regs to general-purpose regs only in outgoing calls.
12762         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12763         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
12764         HOST_WIDE_INT.
12765         * config/sh/sh.h (struct sh_args): Document all fields.
12766         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12767         passed partially on the stack should not consider making
12768         sibcalls.
12769         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12770         stack_regs only for incoming calls.  When passing FP args,
12771         make sure there are FP regs available before modifying
12772         call_cookie.
12773         (SHCOMPACT_BYREF): Pass double args in general-purpose
12774         registers by reference.
12775         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
12776         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12777         attempt to generate sibcalls if the caller got any arguments
12778         by reference.
12779         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12780         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12781         to 8-byte boundaries.
12782         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12783         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12784         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12785         stored in the stack.
12786         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12787         for the offsets to have the ISA bit set.
12788         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
12789         invocation.  Use beq instead of bgt to mark end of sequence of
12790         loads.
12791         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
12792         bgt to mark end of sequence of stores.
12793         * config/sh/sh.c (arith_operand): Don't check whether
12794         CONST_OK_FOR_J for now.
12795         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12796         instead of long for conversion.
12797         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
12798         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12799         before passing it to fprintf.
12800         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
12801         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12802         Call set_fpscr before reading/writing SR.
12803         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12804         Call set_fpscr.
12805         * config/sh/lib1funcs.asm: Add `.align 2' directives before
12806         SHmedia code.
12807         (FMOVD_WORKS): Define on SH5 with FPU.
12808         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
12809         setting.
12810         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12811         _fpscr_values.
12812         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
12813         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12814         address.
12815         (ia_main_table): Ditto.
12816         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
12817         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12818         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12819         the definitions from sh.h.
12820         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12821         TARGET_SH5.
12822         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12823         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12824         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12825         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
12826         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12827         Increment LABEL_NUSES.
12828
12829         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12830         TARGET_SH5.
12831         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12832         defined.
12833         * config/sh/elf.h (SIZE_TYPE): Likewise.
12834         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12835         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12836         shcompact_incoming_args): Load switch table addresses using
12837         datalabel.
12838         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12839         (NO_BUILTIN_SIZE_TYPE): Define.
12840         (SIZE_TYPE): Don't define.
12841         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12842         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12843         definition of __SH5__=32 for -m5-compact-nofpu.
12844         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12845         ADDR_DIFF_VEC.
12846         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
12847         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12848         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
12849         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12850         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12851         (INSN_LENGTH_ALIGNMENT): Likewise.
12852         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12853         * config/sh/sh.md (call, call_value, sibcall): Simplify
12854         copying of non-branch-target register.
12855         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12856         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
12857         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12858         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12859         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12860         floating-point values as structs.
12861         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12862         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12863         general-purpose register.
12864         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12865         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
12866         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12867         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12868         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12869         (ENCODE_SECTION_INFO): Enclose variables and constants in
12870         DATALABEL unspecs.
12871         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12872         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12873         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12874         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12875         only for LABEL_REFs.  For SYMBOL_REFs, prepend
12876         SH_DATALABEL_ENCODING to the symbol name.
12877         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12878         convert_mode().
12879         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
12880         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12881         UNSPEC_DATALABEL.
12882         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12883         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12884         (DATALABEL_REF_P): Don't require CONST.
12885         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12886         REL label.
12887         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
12888         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12889         right.
12890         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
12891         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12892         Use shallow_copy_rtx and PUT_MODE to change the mode of
12893         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12894         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12895         on SHmedia using GENERAL_REGs.
12896         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12897         bltu_media_i): Fix reversion of conditions.
12898         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
12899         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12900         * config/sh/sh.c (output_far_jump): Save r13 in macl.
12901         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
12902         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12903         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
12904         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12905         (GCC_nested_trampoline): Likewise.
12906         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12907         * config/sh/sh.c (gen_datalabel_ref): Define.
12908         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12909         (INITIALIZE_TRAMPOLINE): Likewise.
12910         (TRAMPOLINE_ADJUST_ADDRESS): Define.
12911         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12912         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12913         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12914         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12915         (ic_invalidate): Adjust for SH5.
12916         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12917         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12918         _nested_trampoline.
12919         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
12920         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12921         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12922         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
12923         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12924         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12925         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
12926         * config/sh/sh.c (target_reg_operand): Match only target-branch
12927         registers and pseudos that aren't virtual registers.
12928         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12929         Copy operands that don't match target_reg_operand to pseudos.
12930         (call_media, call_value_media, sibcall_media): Use
12931         target_reg_operand instead of target_operand.
12932         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
12933         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12934         * config/sh/sh.c (target_reg_operand): Match hardware registers
12935         other than branch-target registers.
12936         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12937         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12938         (fpscr_values) [SH5 == 32]: Define.
12939         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12940         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12941         Handle function addresses coming in SUBREGs.
12942         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
12943         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12944         shcompact_return_trampoline): Use datalabel where appropriate.
12945         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
12946         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12947         general-purpose register to copy one branch-target register to
12948         another.
12949         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
12950         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12951         SYMBOL_REFs with VOIDmode.
12952         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12953         bltu_media_i): New insns.
12954         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
12955         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12956         (INIT_CUMULATIVE_ARGS): Likewise.
12957         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
12958         * machmode.def (V16SFmode): New mode.
12959         * c-common.c (type_for_mode): Support V2SF and V16SF.
12960         * tree.c (build_common_tree_nodes_2): Likewise.
12961         * tree.h (tree_index): Likewise.
12962         * calls.c (emit_call_1): Take args_so_far.  Adjust all
12963         callers.  Introduce CALL_POPS_ARGS.
12964         * tm.texi (CALL_POPS_ARGS): Document.
12965         * config/sh/crt1.asm: Implement in SHmedia mode.
12966         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12967         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12968         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12969         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12970         Implement divsi and udivsi in SHmedia mode.  Introduce
12971         SHcompact trampolines.
12972         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
12973         only in SHmedia64.
12974         (regno_reg_class): Rewrite.
12975         (fp_reg_names): Remove.
12976         (sh_register_names, sh_additional_register_names): New.
12977         (print_operand): Added `u'.  Support SUBREGs in addresses.
12978         Add parentheses around shifted CONSTs.
12979         (output_file_start): Output .mode and .abi directives.
12980         (shiftcosts, addsubcosts, multcosts): Adjust.
12981         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
12982         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
12983         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
12984         bytes, not registers.  Take into account the need for the
12985         SHcompact incoming args trampoline.  Adjust all callers.
12986         (sh_expand_prologue): Take stack_regs into account.  Call
12987         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
12988         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
12989         stack aligned as per SH5 ABI.
12990         (sh_builtin_saveregs): Support SH5 ABI.
12991         (sh_build_va_list, sh_va_start): Likewise.
12992         (initial_elimination_offset): Take alignment into account.
12993         Compute location of PR according to the SH5 stack frame.
12994         (arith_reg_operand): Reject branch-target registers.
12995         (shmedia_6bit_operand): New.
12996         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
12997         (target_reg_operand): Match DImode only.  Accept SUBREGs.
12998         (target_operand): New.
12999         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13000         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
13001         SIBCALL_REGS for SHmedia.
13002         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13003         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13004         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13005         (TARGET_SWITCHES): New SH5 flags.
13006         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
13007         VALID_REGISTER_P to disable unsupported registers.
13008         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13009         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13010         (FUNCTION_ARG_PADDING): Define.
13011         (FASTEST_ALIGNMENT): Adjust.
13012         (SH_REGISTER_NAMES_INITIALIZER): New.
13013         (sh_register_names): Declare.
13014         (DEBUG_REGISTER_NAMES): Define.
13015         (REGISTER_NAMES): Define based on sh_register_names.
13016         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13017         (sh_additional_register_names): Declare.
13018         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13019         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13020         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13021         (REGISTER_NATURAL_MODE): Define.
13022         (FIRST_PSEUDO_REGISTER): Adjust.
13023         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13024         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13025         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13026         (VECTOR_MODE_SUPPORTED_P): Define.
13027         (REG_CLASS_CONTENTS): Adjust.
13028         (SMALL_REGISTER_CLASSES): Adjust.
13029         (REG_ALLOC_ORDER): Adjust.
13030         (INDEX_REG_CLASS): Adjust.
13031         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13032         (CONST_OK_FOR_LETTER_P): Adjust.
13033         (PREFERRED_RELOAD_CLASS): Adjust.
13034         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13035         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13036         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13037         (FIRST_FP_PARM_REG): Adjust.
13038         (CALL_POPS_ARGS): Define.
13039         (FUNCTION_ARG_REGNO_P): Adjust.
13040         (struct sh_args): New fields.
13041         (GET_SH_ARG_CLASS): Adjust.
13042         (INIT_CUMULATIVE_ARGS): Adjust.
13043         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13044         (FUNCTION_ARG_ADVANCE): Adjust.
13045         (FUNCTION_ARG): Adjust.
13046         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13047         (FUNCTION_ARG_CALLEE_COPIES): Define.
13048         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13049         (STRICT_ARGUMENT_NAMING): Define.
13050         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13051         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13052         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13053         (SETUP_INCOMING_VARARGS): Adjust.
13054         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13055         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13056         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13057         (SUBREG_OK_FOR_INDEX_P): Adjust.
13058         (EXTRA_CONSTRAINT_S): Update.
13059         (EXTRA_CONSTRAINT_T): New.
13060         (EXTRA_CONSTRAINT): Adjust.
13061         (GO_IF_LEGITIMATE_INDEX): Adjust.
13062         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13063         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13064         (MOVE_MAX): Adjust.
13065         (MAX_MOVE_MAX): Define.
13066         (Pmode): Adjust.
13067         (CONST_COSTS): Adjust.
13068         (REGISTER_MOVE_COST): Adjust.
13069         (BRANCH_COST): Adjust.
13070         (TEXT_SECTION_ASM_OP): Adjust.
13071         (DBX_REGISTER_NUMBER): Adjust.
13072         (ASM_OUTPUT_DOUBLE_INT): New.
13073         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13074         (PREDICATE_CODES): Adjust.
13075         (PROMOTE_MODE): Adjust.
13076         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13077         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13078         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13079         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13080         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13081         (TR0_REG, TR1_REG, TR2_REG): New.
13082         (XD0_REG): Renumber.
13083         (UNSPEC_COMPACT_ARGS): New.
13084         (type): Added pt and ptabs.
13085         (length): Default to 4 on SHmedia.  Default pt length to 12
13086         and     20 on SHmedia32 and SHmedia64, respectively.
13087         (pt): New function unit.
13088         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13089         Add whitespace between operands of SHmedia instructions.
13090         (movdicc): Fix.
13091         (adddi3_media, addsi3_media): Adjust constraints.
13092         (subsi3) [SHmedia]: Force operand 1 into a register.
13093         (udivsi3_i1_media, udivsi3_i4_media): New.
13094         (udivsi3): Support SHmedia.
13095         (divsi3_i1_media, divsi3_i4_media): New.
13096         (divsi3): Support SHmedia.
13097         (anddi3, iordi3, xordi3): Adjust constraints.
13098         (zero_extendhidi2, zero_extendqidi2): New.
13099         (extendsidi2, extendhidi2, extendqidi2): New.
13100         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13101         (pop_e, pop_fpul, pop_4): Likewise.
13102         (movsi_media): Support FP and BT registers.
13103         (movsi_media_nofpu): New.  Adjust splits to DImode.
13104         (lduw, ldub): Renamed to zero_extend* above.
13105         (movqi_media): Fix typo.
13106         (movdi_media): Support FP and BT registers.
13107         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13108         (movdi_const_32bit): New.
13109         (shori_media): Require immediate operand.  Use `u' for output.
13110         (movdf_media, movsf_media): Simplified.
13111         (movdf_media_nofpu, movsf_media_nofpu): New.
13112         (movdf, movsf): Adjust
13113         (movv2sf, movv2sf, movv16sf): New.
13114         (beq_media, beq_media_i): Adjust constraints.  Don't use
13115         scratch BT register.
13116         (bne_media, bne_media_i): Likewise.
13117         (bgt_media, bgt_media_i): Likewise.
13118         (bge_media, bge_media_i): Likewise.
13119         (bgtu_media, bgtu_media_i): Likewise.
13120         (bgeu_media, bgeu_media_i): Likewise.
13121         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13122         bunordered): Emit jump insn.  Force operands to registers when
13123         needed.
13124         (jump_media, jump): Simplify.
13125         (call_compact, call_compact_rettramp): New.
13126         (call_value_compact, call_value_compact_rettramp): New.
13127         (call_media, call_value_media): Simplify.
13128         (sibcall_compact, sibcall_media): New.
13129         (call, call_value): Adjust for SHmedia and SHcompact.
13130         (sibcall, sibcall_value, untyped_call): Likewise.
13131         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13132         (indirect_jump): Adjust for SHmedia.
13133         (casesi_jump_media): New.
13134         (nop): Re-enable for SHmedia.
13135         (call_site): Restrict to SH1.
13136         (casesi): Adjust for SHmedia.
13137         (casesi_shift_media, casesi_load_media): New.
13138         (return): Explicitly use PR register.  Call return trampoline
13139         on SHcompact.
13140         (return_i): Explicitly use PR register.
13141         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13142         (return_media): Adjust.
13143         (shcompact_incoming_args): New.
13144         (epilogue): Adjust.
13145         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13146         (movstrsi): Disable on SH5.
13147         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13148         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13149         (subsf3, subsf3_media): Likewise.
13150         (mulsf3, mulsf3_media, mac_media): Likewise.
13151         (divsf3, divsf3_media): Likewise.
13152         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13153         (floatsisf2, fux_truncsfsi2): Likewise.
13154         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13155         constraints.
13156         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13157         (cmpunsf_media, cmpsf): Likewise.
13158         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13159         (abssf2, abssf2_media): Likewise.
13160         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13161         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13162         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13163         (floatsidf2, fix_truncdfsi2): Likewise.
13164         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13165         constraints.
13166         (cmpeqdf_media, cmpgtdf_media): Likewise.
13167         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13168         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13169         (absdf2, absdf2_media): Likewise.
13170         (extendsfdf2, extendsfdf2_media): Likewise.
13171         (truncsfdf2, truncsfdf2_media): Likewise.
13172         * config/sh/sh64.h: New file.
13173         * config/sh/t-sh64: New file.
13174         * config/sh/shmedia.h: New file.
13175         * config/sh/ushmedia.h: New file.
13176         * config/sh/sshmedia.h: New file.
13177         * configure.in: Added sh64-*-elf.
13178         * configure: Rebuilt.
13179         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13180         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13181         (reg_class_from_letter): Use `b' for TARGET_REGS.
13182         (print_operand): Support `%M', `%m', `AND' and
13183         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13184         (andcosts): Adjust for SHmedia.
13185         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13186         Likewise.
13187         (target_reg_operand): New function.
13188         * config/sh/sh-protos.h (target_reg_operand): Declare.
13189         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13190         FP registers on SH5.
13191         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13192         on SH4.
13193         (TARGET_REGISTER_P): New macro.
13194         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13195         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13196         (EXTRA_CONSTRAINT_S): New macro.
13197         (EXTRA_CONSTRAINT): Adjust.
13198         (FLOAT_TYPE_SIZE): Define to 32.
13199         (Pmode): DImode on SHmedia.
13200         (CONST_COSTS): Adjust for SHmedia literals.
13201         (PREDICATE_CODES): Added target_reg_operand.
13202         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13203         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13204         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13205         (cmpdi): Accept SHmedia.
13206         (movdicc_false, movdicc_true): New insns.
13207         (movdicc): New expand.
13208         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13209         no_new_pseudos.
13210         (addsi3_media): Match `S' constraint.
13211         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13212         (negdi2): Expand for SHmedia.
13213         (one_cmpldi2): New expand.
13214         (zero_extendsidi2): Change from expand to insn.
13215         (extendsidi2): Add constraints.
13216         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13217         LD/ST address.  Fix SI immediate loading split.
13218         (movhi_media, movqi_media, lduw, ldub): New insns.
13219         (movhi, movqi): Accept SHmedia.
13220         (shori_media, movdi_media): Relax input constraints.  Split
13221         symbolic constants.
13222         (movdf_media, movsf_media): New insn.  New split to movdi.
13223         (movdf, movsf): Match on SHmedia.
13224         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13225         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13226         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13227         (bunordered): New expand.
13228         (jump_compact): Renamed from `jump'.
13229         (jump_media): New insn.
13230         (jump): New expand.
13231         (call_media, call_value_media): New insns.
13232         (call, call_value): Adjust.
13233         (indirect_jump_compact): Renamed from `indirect_jump'.
13234         (indirect_jump_media): New insn.
13235         (indirect_jump): New expand.
13236         (untyped_call, return): Accept SHmedia.
13237         (return_media): New insn.
13238         (prologue, epilogue, blockage): Accept SHmedia.
13239         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13240         (sunordered): New expand.
13241         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13242         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13243         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13244         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13245         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13246         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13247         abssf2_media): New insns.
13248         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13249         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13250         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13251         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13252         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13253         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13254         absdf2_media): New insns.
13255         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13256         (extendsfdf2_media, truncdfsf2_media): New insns.
13257         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13258         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13259         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13260         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13261         * config/sh/sh.md (adddi3): New expand.
13262         (adddi3_media, adddi3z_media): New insns.
13263         (adddi3_compact): Renamed from adddi3.
13264         (addsi3_media): Use add.l r63 to add constant zero.
13265         (subdi3): New expand.
13266         (subdi3_media): New insn.
13267         (subdi3_compact): Renamed from subdi3.
13268         (mulsidi3): New expand.
13269         (mulsidi3_media): New insn.
13270         (mulsidi3_compact): Renamed from mulsidi3.
13271         (umulsidi3): New expand.
13272         (umulsidi3_media): New insn.
13273         (umulsidi3_compact): Renamed from umulsidi3.
13274         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13275         (ashlsi3, ashrsi3, lshrsi3): Use them.
13276         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13277         (ashldi3, ashrdi3, lshrdi3): Use them.
13278         (zero_extendsidi2): New expand.
13279         (extendsidi2): New insn.
13280         (movsi_media): New insn.  Split to movdi to load constants.
13281         (movsi): Enable for shmedia.
13282         (movdi_media): New insn.  Use shori_media to load wide constants.
13283         (short_media): New insn.
13284         (movdi): Enable for shmedia.
13285         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13286         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13287         (SUBTARGET_CPP_SPEC): Added `!m5'.
13288         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13289         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13290         to all other SH variants.
13291         (TARGET_DEFAULT): Set to SH1_BIT.
13292         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13293         (BITS_PER_WORD): Raise to 64 on shmedia.
13294         (MAX_BITS_PER_WORD): Change to 64.
13295         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13296         (INT_TYPE_SIZE): Keep as 32.
13297         (UNITS_PER_WORD): Raise to 8 on shmedia.
13298         (MIN_UNITS_PER_WORD): Keep as 4.
13299         (POINTER_SIZE): Raise to 64 on shmedia.
13300         (CONST_OK_FOR_J): New macro.
13301         (CONST_OK_FOR_LETTER_P): Use it.
13302         (processor_type): Add PROCESSOR_SH5.
13303         * config/sh/sh.md: Conditionalize all expands, insns and
13304         splits to TARGET_SH1.
13305         (cpu): Added sh5.
13306         (addsi3_compact): Renamed from...
13307         (addsi3): Now an expand.
13308         (addsi3_media, subsi3_media): New insns.
13309         (subsi3): Don't negate constants with SHmedia.
13310
13311         * hooks.c: New file.
13312         * hooks.h: New file.
13313         * Makefile.in (HOOKS_H): New.
13314         (TARGET_DEF_H): Added $(HOOKS_H).
13315         (OBJS): Added hooks.o.
13316         (cfgcleanup.o, bb-reorder.o): Added target.h.
13317         (hooks.o): Added dependencies.
13318         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13319         (TARGET_INITIALIZER): this.
13320         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13321         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13322         * bb-reorder.c: Include target.h.
13323         (reorder_basic_blocks): Skip if cannot modify jumps.
13324         * cfgcleanup.c: Include target.h.
13325         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13326
13327 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13328
13329         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13330         Protect jump delay slot instructions with .set noreorder and
13331         .set nomacro.
13332
13333 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13334
13335         * config/mips/mips.md (casesi_internal_di): Calculate
13336         the index into the target offset table correctly.
13337
13338 2002-02-08  Richard Henderson  <rth@redhat.com>
13339
13340         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13341         * final.c (output_addr_const): Accept and discard SUBREG.
13342         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13343         mark them unknown instead.
13344         (simplify_subtraction): Handle RTX_UNKNOWN.
13345         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13346
13347 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13348
13349         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13350
13351 2002-02-08  Richard Henderson  <rth@redhat.com>
13352
13353         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13354
13355 2002-02-08  Andreas Jaeger  <aj@suse.de>
13356
13357         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13358         * config/i386/t-linux64: New file.
13359
13360 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13361
13362         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13363         * c-parse.in (compstmt): Clear last_expr_type.
13364
13365 2002-02-07  Richard Henderson  <rth@redhat.com>
13366
13367         * loop.c (strength_reduce): Sink final_value when not
13368         eliminating a biv.
13369
13370 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13371
13372         * config/sparc/freebsd.h: Fix mismatched spec {.
13373
13374 2002-02-07  Richard Henderson  <rth@redhat.com>
13375
13376         * cfgrtl.c: Include recog.h and insn-config.h.
13377         (keep_with_call_p): Fix general_operand invocation.
13378         * Makefile.in (cfgrtl.o): Update dependencies.
13379
13380 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13381
13382         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13383         comment.  Accept HImode only if TARGET_H8300.
13384
13385 2002-02-07  Eric Christopher  <echristo@redhat.com>
13386
13387         * config/mips/crtn.asm: Cleanup #ifdefs.
13388
13389 2002-02-07  Eric Christopher  <echristo@redhat.com>
13390
13391         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13392         register 7 as RA instead of $31.
13393         * config/mips/crtn.asm: Ditto.
13394         * config/mips/mips.c (mips_move_2words): Add case for
13395         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13396         (compute_frame_size): Fix typo.
13397         (save_restore_insns): Ditto.  Make documentation about using
13398         register $7 as return register more precise.
13399         (mips_expand_epilogue): Fix comment. Add code to work around not
13400         being able to add to the stack pointer directly.
13401         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13402         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13403         epilogue.
13404
13405 2002-02-07  Tom Rix  <trix@redhat.com>
13406
13407         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13408         immediates in ldu and stdu DS opcode field.
13409         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13410         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13411         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13412
13413 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13414
13415         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13416         offset for stack bias.
13417
13418 2002-02-07  H.J. Lu <hjl@gnu.org>
13419
13420         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13421
13422 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13423
13424         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13425
13426 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13427
13428         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13429         * i386.c (x86_order_regs_for_local_alloc): New global function.
13430         * i386.h (REG_ALLOC_ORDER): CLeanup.
13431         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13432
13433 2002-02-07  Richard Henderson  <rth@redhat.com>
13434
13435         PR optimization/2463
13436         * alias.c (find_base_value): Recall base values for fixed hard regs.
13437         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13438
13439 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13440
13441         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13442         length.
13443
13444 2002-02-06  Richard Henderson  <rth@redhat.com>
13445
13446         PR c/5609
13447         * stmt.c (resolve_operand_name_1): Take more care with mixed
13448         named and unnamed operands.
13449
13450 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13451             Jan Hubicka  <jh@suse.cz>
13452
13453         * loop.c (remove_constant_addition): Avoid clobbering a shared
13454         CONST expression.
13455
13456 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13457
13458         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13459         * config/s390/t-linux64: New file.
13460         * config/s390/libgcc-glibc.ver: New file.
13461
13462 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13463
13464         * config/s390/linux64.h: Delete file.
13465         * config/s390/s390x.h: New file.
13466         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13467         as target header file.
13468         * config/s390/linux.h (TARGET_VERSION): Define depending on
13469         DEFAULT_TARGET_64BIT.
13470         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13471         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13472         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13473         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13474         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13475         (EXTRA_SPEC): New define.
13476         * config/s390/s390.h (TARGET_VERSION): Define depending on
13477         DEFAULT_TARGET_64BIT.
13478         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13479
13480 2002-02-06  Jason Merrill  <jason@redhat.com>
13481
13482         * c-decl.c (finish_function): Warn about a non-void function with
13483         no return statement and no abnormal exit.
13484         (current_function_returns_abnormally): New variable.
13485         (start_function): Clear it.
13486         (struct c_language_function): Add returns_abnormally.
13487         (push_c_function_context): Save it.
13488         (pop_c_function_context): Restore it.
13489         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13490         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13491         an explicit return type.
13492         * c-tree.h: Declare current_function_returns_abnormally.
13493         (C_FUNCTION_IMPLICIT_INT): New macro.
13494         * c-typeck.c (build_function_call): Set it.
13495         (c_expand_return): Set current_function_returns_value even if the
13496         value is erroneous.
13497
13498 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13499
13500         PR c/5420:
13501         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13502         unsafe for reevaluation.
13503
13504 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13505
13506         PR c/5482:
13507         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13508         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13509
13510 2002-02-06  Richard Henderson  <rth@redhat.com>
13511
13512         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13513         be a general_operand.  Dest for function value must be a pseudo.
13514
13515 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13516
13517         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13518         as SYMBOL_REFs from the constant pool.
13519
13520 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
13521
13522         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13523         passed by invisible reference.
13524
13525 2002-02-05  Richard Henderson  <rth@redhat.com>
13526
13527         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13528
13529 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
13530
13531         Implement using "base addresses" in insn operands as default.
13532         * config/mmix/mmix.c (mmix_conditional_register_usage): if
13533         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13534         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13535         used to read the rtx value.
13536         (mmix_target_asm_function_epilogue): Fix spacing.
13537         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13538         (mmix_legitimate_address): Ditto.
13539         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13540         should be loaded with a GETA insn.  Don't allocate needless extra
13541         char for nul termination and fix misleading comment.
13542         (mmix_print_operand_address): Handle constants if
13543         TARGET_BASE_ADDRESSES.
13544         (mmix_output_register_setting): Use base addressing if
13545         TARGET_BASE_ADDRESSES and the number of insns is 3.
13546         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13547         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13548         to use R as constraint, add LDA to match s.
13549         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13550         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13551         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13552         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13553         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13554         order with other fixed registers.
13555         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13556         other parameter/call-clobbered registers.
13557         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13558         -mbase-addresses, -mno-base-addresses.
13559         (MMIX Options): Ditto.
13560
13561 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13562
13563         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13564
13565 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
13566
13567         * config/rs6000/altivec.h: Change elem to _S_elem.
13568
13569 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13570
13571         * config/netbsd.h (WCHAR_TYPE): Define.
13572         (WCHAR_TYPE_SIZE): Ditto.
13573         (WINT_TYPE): Ditto.
13574         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13575         (WCHAR_UNSIGNED): Ditto.
13576         (WCHAR_TYPE_SIZE): Ditto.
13577         (WINT_TYPE): Ditto.
13578         * config/arm/netbsd.h: Likewise.
13579         * config/i386/netbsd-elf.h: Likewise.
13580         * config/i386/netbsd.h: Likewise.
13581         * config/m68k/netbsd-elf.h: Likewise.
13582         * config/m68k/netbsd.h: Likewise.
13583         * config/ns32k/netbsd.h: Likewise.
13584         * config/sparc/netbsd.h: Likewise.
13585         * config/vax/netbsd.: Likewise.
13586
13587 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
13588
13589         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13590         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
13591         (TARGET_INITIALIZER): this.
13592         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13593         (BITFIELD_NBYTES_LIMITED): Markup fix.
13594         * tree.h (default_ms_bitfield_layout_p): Declare.
13595         (record_layout_info): Added prev_field.
13596         * tree.c (default_ms_bitfield_layout_p): New fn.
13597         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13598         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13599         * stor-layout.c: Include target.h.
13600         (start_record_layout): Initialize prev_field.
13601         (place_field): Handle MS bit-field layout, and disregard
13602         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13603         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
13604         * Makefile.in (stor-layout.o): Adjust dependencies.
13605
13606 2002-02-05  Jason Merrill  <jason@redhat.com>
13607
13608         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13609
13610 2002-02-05  Andreas Jaeger  <aj@suse.de>
13611
13612         * crtstuff.c: Fix comments.
13613
13614 2002-02-05  Richard Henderson  <rth@redhat.com>
13615
13616         PR fortran/3393
13617         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13618         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13619
13620         PR fortran/3392
13621         * config/mips/mips.c (function_arg): Handle TImode.
13622         (function_arg_advance): Likewise.
13623
13624 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13625
13626         * config/rs6000/altivec.h (vec_step_help): Rename to
13627         __vec_step_help.
13628
13629 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13630
13631         * config/rs6000/altivec.h: Fix typos.
13632
13633 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13634
13635         * config/arm/netbsd.h: Correct a comment.
13636
13637 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13638
13639         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13640         building void typed builtins.
13641
13642         * config/rs6000/altivec.h (vec_ld*): Fix typos.
13643         (vec_step): Implement for C++.
13644
13645 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13646
13647         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13648
13649 2002-02-04  Richard Henderson  <rth@redhat.com>
13650
13651         * combine.c (nonzero_bits): Re-introduce special case for
13652         sp/fp/ap wrt REGNO_POINTER_ALIGN.
13653
13654 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13655
13656         * doc/extend.texi: Warn about unsupported usage of altivec
13657         builtins.
13658
13659         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13660         (altivec_predicate_*): New.
13661
13662         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13663         Add C++ version of vec_*() functions.
13664
13665         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13666         (bdesc_2arg): Remove altivec predicates.
13667         (altivec_expand_builtin): Handle predicates.
13668         (altivec_init_builtins): Handle predicates.
13669         (altivec_expand_predicate_builtin): New.
13670
13671 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13672
13673         * pa.c (DO_FRAME_NOTES): Move forward.
13674         (store_reg): Revise handling of frame notes.
13675         (load_reg): Likewise.
13676         (set_reg_plus_d): Likewise.
13677         (hppa_expand_prologue): Likewise.
13678         (hppa_expand_epilogue): Likewise.
13679
13680 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13681
13682         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13683
13684 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13685
13686         PR c/4475, c++/3780:
13687         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13688         * c-common.h (SWITCH_TYPE): Define.
13689         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13690         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13691         Rename spareness variable to sparseness.
13692         (expand_end_case_type): Renamed from expand_end_case, use orig_type
13693         if non-NULL instead of TREE_TYPE (orig_index).
13694         * tree.h (expand_end_case_type): Renamed from expand_end_case.
13695         (expand_end_case): Define using expand_end_case_type.
13696         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13697         to expand_end_case_type.
13698         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13699
13700 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13701
13702         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13703         (BIGGEST_ALIGNMENT): Change to 128.
13704
13705 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13706
13707         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13708
13709 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13710
13711         * pa.md (call_internal_reg_64bit): Remove unused variable.
13712
13713 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
13714
13715         * config/arm/arm.h (machine_function): Add uses_anonymous_args
13716         field.
13717         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13718         * config/arm/arm.c (current_function_anonymous_args): Delete,
13719         replace uses with cfun->machine->uses_anonymous_args.
13720         (arm_reorg): Do not reset uses_anonymous_args.
13721
13722         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13723         any geenral register.
13724
13725 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
13726
13727         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13728         the entry block.
13729
13730 2002-02-04  Richard Henderson  <rth@redhat.com>
13731
13732         * combine.c (force_to_mode): Remove STACK_BIAS code.
13733         (nonzero_bits): Likewise.  Replace sp/fp special case with
13734         REGNO_POINTER_ALIGN.
13735
13736         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13737         (HARD_FRAME_POINTER_REGNUM): New.
13738         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13739         (FIXED_REGS, CALL_USED_REGS): Update.
13740         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13741         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13742         (HARD_REGNO_NREGS): Update for SFP.
13743         (STACK_POINTER_OFFSET): Include bias here ...
13744         (FIRST_PARM_OFFSET): ... not here.
13745         (STACK_BIAS): Remove.
13746         (INIT_EXPANDERS): New.
13747         (STARTING_FRAME_OFFSET): Do not include bias.
13748         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13749         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13750         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13751         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13752         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13753         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13754         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13755         (MUST_SAVE_REGISTER): Likewise.
13756         (sparc_flat_function_prologue): Likewise.
13757         (sparc_flat_function_epilogue): Likewise.
13758         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13759         (sparc_init_modes): SFP is GENERAL_REGS.
13760         (sparc_builtin_saveregs): SFP does not have bias applied.
13761
13762 2002-02-04  Richard Henderson  <rth@redhat.com>
13763
13764         * config/alpha/alpha.c (current_function_is_thunk): Don't check
13765         current_function_is_thunk.
13766         (alpha_sa_mask): Distinguish between current_function_is_thunk
13767         called from ASM_OUTPUT_MI_THUNK and not.
13768         (alpha_does_function_need_gp): Thunks always need gp.
13769         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13770         (alpha_output_mi_thunk_osf): New.
13771         * config/alpha/alpha-protos.h: Update.
13772         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13773
13774 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
13775
13776         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13777         function types, not when they're taken away.
13778
13779 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
13780
13781         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13782         CODE_LABEL and jump table when replacing a table jump with a
13783         simple jump.
13784
13785 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13786
13787         * config/s390/s390-protos.h (legitimize_la_operand,
13788         s390_secondary_input_reload_class, s390_plus_operand,
13789         s390_expand_plus_operand): Add prototypes.
13790
13791         config/s390/s390.c (s390_secondary_input_reload_class,
13792         s390_plus_operand, s390_expand_plus_operand): New functions.
13793
13794         (struct s390_address): New member 'pointer'.
13795         (s390_decompose_address): Compute it.
13796         (legitimate_la_operand_p): Use it.
13797         (legitimize_la_operand): New function.
13798         (movti, movdi, movdf splitters): Call it.
13799
13800         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13801         (PREDICATE_CODES): Add s390_plus_operand.
13802
13803         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13804         (la_ccclobber): Allow GENERAL_REGS as output operand.
13805
13806         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13807         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13808         (*la_64, *la_31, reload_indi, reload_insi): ... these.
13809
13810 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13811
13812         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13813         register names for regular asm () construct.
13814
13815 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13816
13817         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13818         registers.
13819
13820 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13821
13822         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13823         pat for recog.
13824
13825 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
13826
13827         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13828         constant pool to be identical by string address and index.
13829
13830 2002-02-04  Anthony Green  <green@redhat.com>
13831
13832         * output.h (SECTION_OVERRIDE): Define.
13833         * varasm.c (named_section): Obey SECTION_OVERRIDE.
13834
13835 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
13836
13837         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13838         by existing arm*-*-netbsd* (a.out) target.
13839         (ns32k-*-netbsdelf*): Likewise.
13840         (sparc-*-netbsdelf*): Likewise.
13841         (vax-*-netbsdelf*): Likewise.
13842
13843 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
13844
13845         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13846         headers and libobjc headers.
13847
13848 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
13849
13850         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13851         (_mingw.h): Remove duplicate include.
13852
13853 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
13854
13855         * config.gcc: Set cpu_type to m68k for 68010, as well.
13856         (m68010-*-netbsdelf*): New...
13857         (m68k*-*-netbsdelf*): ...targets.
13858         * config/m68k/netbsd-elf.h: New file.
13859
13860 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13861
13862         * config/h8300/h8300.c (hand_list): Move inside function_arg.
13863
13864 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13865
13866         * config/h8300/h8300.c (h8_push_ops): Move inside
13867         h8300_init_once.
13868         (h8_pop_ops): Likewise.
13869         (h8_move_ops): Likewise.
13870
13871 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13872
13873         * config/h8300/h8300.c (os_task): Make it static.
13874         (monitor): Likewise.
13875         (pragma_saveall): Likewise.
13876
13877 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
13878
13879         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13880         constant is a valid sign-extension for Pmode.
13881
13882 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13883
13884         * config/h8300/h8300.c: Fix formatting.
13885
13886 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13887
13888         * config/h8300/h8300.md: Fix formatting.
13889
13890 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13891
13892         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13893         predicates of operands[1].  Split the patterns for each
13894         processor variant.
13895
13896 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13897
13898         * config/h8300/h8300.md (xor patterns): Tighten the predicates
13899         of operands[1] to register_operand.
13900
13901 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
13902
13903         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13904         * cpphash.c (_cpp_init_hashtable): Similarly.
13905         * cppinit.c (cpp_create_reader): Default the signed_char flag.
13906         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13907         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13908         (cpp_handle_option): Handle the new options.
13909         * cpplex.c (cpp_interpret_charconst): Use new flag.
13910         * cpplib.h (struct cpp_options): New member signed_char.
13911         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13912         (cpp_options): Handle -fsigned-char and -funsigned-char.
13913         (static_specs): Remove signed_char_spec.
13914         (do_spec1): Don't handle %c.
13915         * system.h: Poison SIGNED_CHAR_SPEC.
13916         * tradcif.y (yylex): Use flag_signed_char.
13917         * tradcpp.h (flag_signed_char): New.
13918         * tradcpp.c (flag_signed_char): New.
13919         (main): Handle new command-line options.
13920         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13921 config:
13922         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13923         * avr/avr.h: Remove old comments.
13924         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13925         (CC1_SPEC): Pass -fsigned-char if -mic*.
13926         (SIGNED_CHAR_SPEC): Remove.
13927 doc:
13928         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13929
13930 2002-02-01  Eric Christopher  <echristo@redhat.com>
13931
13932         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13933         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13934         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13935         (ASM_OUTPUT_REG_POP): Ditto.
13936
13937 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
13938
13939         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13940         patch.
13941
13942 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
13943
13944         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13945
13946 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
13947
13948         PR c/5304:
13949         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13950         unconditionally.
13951
13952 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
13953
13954         * cfganal.c: Include tm_p.h.
13955         (keep_with_call_p): Fix the test that determines if a register holds
13956         the return value of a call.
13957
13958 2002-02-01  DJ Delorie  <dj@redhat.com>
13959
13960         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13961         we are given conflicting registers, switch to the other one we
13962         had allocated for us.
13963         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13964         as TImode so we know when the "other" register is available.
13965
13966 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
13967
13968         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13969         sparc/sparc_bi.h.
13970
13971 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
13972
13973         * cfganal.c (keep_with_call_p): New function.
13974         (flow_call_edges_add): Prevent splitting a block between a call and
13975         a single-set instruction that should be kept in the same block.
13976
13977 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13978
13979         * doc/install.texi (avr): Update outdated URL.
13980
13981 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
13982
13983         * config/stormy16/stormy16.md (pushqi): New.
13984         (popqi): New.
13985         (pushhi): New.
13986         (pophi): New.
13987         (movhi): Remove stack operands.
13988         (movqi): Likewise.
13989         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
13990         nonimmediate_nonstack_operand.
13991         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
13992         New.
13993         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
13994         New.
13995
13996 2002-01-31  Jason Merrill  <jason@redhat.com>
13997
13998         * Makefile.in (c-parse.c): Handle .output file.
13999         * objc/Make-lang.in (objc-parse.c): Likewise.
14000
14001 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
14002
14003         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14004         the -me[lb] option is given.  Don't output the default flag
14005         twice.
14006
14007 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
14008
14009         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14010         the primary source file; this has not been done yet.
14011         * c-decl.c (c_expand_body): Reset input_filename from
14012         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14013
14014 2002-01-31  Kazu Hirata  <kazu@hxi.com>
14015
14016         * rtlanal.c (subreg_regno_offset): Do not use
14017         SUBREG_REGNO_OFFSET.
14018         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14019         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14020
14021 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14022
14023         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
14024         version rather than GNATS version in --version output.
14025
14026 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
14027
14028         * ifcvt.c (noce_process_if_block): Make a copy of the destination
14029         when copying back from a temporary.
14030
14031 2002-01-30  Richard Henderson  <rth@redhat.com>
14032
14033         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14034         and new_dest are the same.
14035
14036 2002-01-30  Richard Henderson  <rth@redhat.com>
14037
14038         PR opt/5076
14039         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14040         * rtl.c (note_insn_name): Update.
14041         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14042         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14043         to perform loop rotation.
14044         (expand_exit_loop_top_cond): New.
14045         * tree.h (expand_exit_loop_top_cond): Declare it.
14046         * c-semantics.c (genrtl_while_stmt): Use it.
14047         (genrtl_for_stmt): Likewise.
14048
14049 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14050
14051         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14052         arguments to 64-bit boundaries on 64-bit ABIs.
14053
14054 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14055
14056         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14057
14058 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14059
14060         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14061         invalid type.
14062
14063 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14064
14065         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14066         * config/sparc/sparc_bi.h: Remove file.
14067         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14068
14069 2002-01-30  Richard Henderson  <rth@redhat.com>
14070
14071         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14072
14073 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14074
14075         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14076
14077 2002-01-30  Jason Merrill  <jason@redhat.com>
14078
14079         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14080         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14081         (reg_save): Use DW_CFA_offset_extended_sf instead.
14082
14083         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14084
14085 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14086
14087         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14088         in cselib_lookup.
14089
14090 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14091
14092         * rs6000.md ("*call_value_local32"): Remove constraints.
14093         ("*call_value_local64"): Same.
14094         ("*call_value_indirect_nonlocal_aix32"): Same.
14095         ("*call_value_nonlocal_aix32"): Same.
14096         ("*call_value_indirect_nonlocal_aix64"): Same.
14097         ("*call_value_nonlocal_aix64"): Same.
14098         ("*call_value_nonlocal_sysv"): Same.
14099
14100 2002-01-29  Richard Henderson  <rth@redhat.com>
14101
14102         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14103
14104 2002-01-29  Richard Henderson  <rth@redhat.com>
14105
14106         * expr.c (force_operand): Ignore flag_pic for detecting pic
14107         address loads.
14108         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14109         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14110         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14111         instead of open-coded loop.
14112         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14113         be fixed when in use.
14114
14115 2002-01-29  Richard Henderson  <rth@redhat.com>
14116
14117         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14118         * sched-rgn.c (propagate_deps): Update them.
14119         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14120         clobbers list when either gets too long.
14121
14122 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14123
14124         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14125         and INDEX_REGS the same as GENERAL_REGS.
14126         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14127
14128 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14129
14130         * tree.c (build_nonstandard_integer_type): Correct prototype.
14131
14132 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14133
14134         * config/s390/s390.md (movstrsico, movstrdix_64,
14135         movstrsix_31): Remove, replace by ...
14136         (movstrdi_short, movstrsi_short, movstrdi_long,
14137         movstrsi_long): ... these.  New.
14138         (movstrdi, movstrsi): Adapt.
14139
14140         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14141         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14142         Remove unnecessary CC clobber.
14143         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14144         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14145
14146         (divmoddi4): Don't partially initialize TImode register.
14147
14148 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14149
14150         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14151
14152 2002-01-29  Richard Henderson  <rth@redhat.com>
14153
14154         * flow.c (print_rtl_and_abort): Remove.
14155         (print_rtl_and_abort_fcn): Remove.
14156         (verify_local_live_at_start): Use dump_bb instead.
14157         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14158         (verify_wide_reg_1): Return 2 on mode test failure.
14159
14160 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14161
14162         PR c/3325, c/3326, c/2511, c/3347
14163         * c-decl.c (enum_decl_context): Remove BITFIELD.
14164         (grokdeclarator): Take bitfield width as an input.
14165         Ensure bitfields are given the correct type.  Perform
14166         bitfield width validation with build_bitfield_integer_type
14167         rather than waiting for finish_struct.
14168         (grok_typename, grok_typename_in_parm_context, start_decl,
14169         push_parmdecl, grokfield, start_function): Update calls to
14170         grokdeclarator.
14171         (build_bitfield_integer_type): New function.
14172         (finish_struct): Move bitfield validation to grokdeclarator
14173         and build_bitfield_integer_type.
14174         * tree.c (build_nonstandard_integer_type): New function.
14175         * tree.h (build_nonstandard_integer_type): New prototype.
14176 objc:
14177         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14178
14179 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14180
14181         PR other/1502:
14182         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14183         don't ignore unrecognized -W* options.
14184         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14185         * cpplib.h (cpp_handle_option): Adjust prototype.
14186         * c-decl.c (c_decode_options): Pass 0 as last argument to
14187         cpp_handle_option.
14188
14189         PR c/2896:
14190         * gcc.c (cpp_unique_options): Split from cpp_options.
14191         (cpp_options): Source cpp_unique_options.
14192         (default_compilers): Use cpp_unique_options instead of cpp_options
14193         when used together with cc1_options.
14194         (static_specs): Add cpp_unique_options.
14195         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14196         when used together with cc1_options.
14197
14198 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14199
14200         * config/h8300/h8300-protos.h: Update the prototype of
14201         output_a_shift.
14202         * config/h8300/h8300.c (output_a_shift): Remove an unused
14203         argument 'insn'.  Remove redundant code.
14204         * config/h8300/h8300.md: Adust to the new prototype of
14205         output_a_shift.
14206
14207 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14208
14209         * config/h8300/h8300-protos.h: Update the prototypes of
14210         emit_a_rotate and expand_a_rotate.
14211         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14212         first argument to 'enum rtx_code'.
14213         (expand_a_rotate): Likewise.
14214
14215 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14216
14217         * config/h8300/h8300-protos.h: Update the prototype of
14218         output_simode_bld.
14219         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14220         'log2'.
14221         * config/h8300/h8300.md: Adjust to the new prototype.
14222
14223 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14224
14225         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14226         redundant code.
14227
14228 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14229
14230         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14231         is a fixed register before returning pic_offset_table_rtx.
14232         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14233         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14234
14235 2002-01-28  Jason Merrill  <jason@redhat.com>
14236
14237         * dwarf2.h: Sync with src version.
14238
14239 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14240
14241         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14242         BT_FN_VOID_PTR_VAR.
14243         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14244         * doc/extend.texi (__builtin_prefetch): Update documentation:
14245         first argument is now const void ptr.
14246
14247 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14248
14249         * config/h8300/h8300-protos.h: Remove an unused prototype.
14250
14251 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14252
14253         * toplev.c (lang_independent_init): Round up identifier size.
14254
14255 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14256
14257         * config.gcc: Revert previous change.
14258
14259 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14260
14261         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14262
14263 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14264
14265         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14266         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14267         other non-elf netbsd config frags.
14268         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14269         collect2 will does that.
14270         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14271         shared-lib frobbing will work.
14272
14273 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14274
14275         * config/h8300/h8300.h: Fix formatting.
14276         * config/h8300/h8300.md: Likewise.
14277
14278 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14279
14280         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14281         the old, removed AAA_standards fix.
14282         * fixinc/fixincl.x: Rebuilt.
14283
14284 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14285
14286         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14287         atexit call in crtbegin, hooked in after call to frame_dummy;
14288         register EH before registering __fini__start.
14289
14290 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14291
14292         * config/rs6000/altivec.h: Remove spurious semicolons.
14293
14294 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14295
14296         * config/h8300/h8300.md: Replace dead bit extraction patterns
14297         with ones that work.
14298
14299 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14300
14301         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14302         if not STRICT_ALIGNMENT.
14303         * rtl.h (MEM_ALIGN): Likewise.
14304
14305 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14306
14307         * doc/invoke.texi (-fdump-translation-unit): Revert this
14308         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14309
14310 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14311
14312         * config/h8300/h8300.md (define_constants): New.
14313         (anonymous patterns) Use defined constants appropriately.
14314
14315 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14316
14317         * config/h8300/h8300.c (function_arg): Remove redundant code.
14318
14319 2002-01-26  Richard Henderson  <rth@redhat.com>
14320
14321         * sched-deps.c (reg_pending_uses_head): New.
14322         (reg_pending_barrier): Rename from reg_pending_sets_all.
14323         (find_insn_list): Don't mark inline.
14324         (find_insn_mem_list): Remove.
14325         (add_dependence_list, add_dependence_list_and_free): New.
14326         (flush_pending_lists): Replace only_write param with separate
14327         for_read and for_write parameters.  Update all callers.  Use
14328         add_dependence_list_and_free.
14329         (sched_analyze_1): Do not add reg dependencies here; just set
14330         the pending bits.  Use add_dependence_list.
14331         (sched_analyze_2): Likewise.
14332         (sched_analyze_insn): Replace schedule_barrier_found with
14333         reg_pending_barrier.  Add all dependencies for pending reg
14334         uses, sets, and clobbers.
14335         (sched_analyze): Don't add reg dependencies for calls, just
14336         set pending bits.  Use regs_invalidated_by_call.  Treat
14337         sched_before_next_call as a normal list, not a fake insn.
14338         (init_deps): No funny init for sched_before_next_call.
14339         (free_deps): Free pending mems lists.  Don't zero reg_last.
14340         (init_deps_global): Init reg_pending_uses.
14341         (finish_deps_global): Free it.
14342         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14343         (find_insn_mem_list): Remove.
14344         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14345         (propagate_deps): Use them.  Zero temp mem lists.
14346
14347 2002-01-26  Richard Henderson  <rth@redhat.com>
14348
14349         * Makefile.in (CRTSTUFF_CFLAGS): New.
14350         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14351         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14352         crtstuff.c instead of alpha assembly version.
14353         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14354         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14355         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14356         (__do_global_dtors_aux): Mark used.
14357         (frame_dummy, __do_global_ctors_aux): Mark used.
14358         (fini_dummy, init_dummy): Remove.
14359
14360         * config/alpha/crtbegin.asm: Remove file.
14361         * config/alpha/crtend.asm: Remove file.
14362         * config/alpha/t-crtbe: Remove file.
14363         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14364         (LINK_EH_SPEC): New.
14365
14366         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14367         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14368         calling constructors.
14369         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14370
14371         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14372         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14373         CRT_END_INIT_DUMMY hack.
14374         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14375         FORCE_{INIT,FINI}_SECTION_ALIGN.
14376
14377         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14378         FORCE_{INIT,FINI}_SECTION_ALIGN.
14379
14380         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14381         invocation sequence.
14382         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14383
14384         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14385         (FORCE_CODE_SECTION_ALIGN): New.
14386
14387 2002-01-26  Richard Henderson  <rth@redhat.com>
14388
14389         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14390
14391 2002-01-26  Richard Henderson  <rth@redhat.com>
14392
14393         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14394         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14395
14396 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14397
14398         * config/h8300/h8300.md: Remove bit extraction patterns that
14399         cannot be triggered.
14400         Restrict each bit extraction pattern to a variant on which the
14401         pattern is tested.
14402
14403 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14404
14405         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14406
14407 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14408
14409         * config/h8300/h8300.md: Remove bit test patterns that cannot
14410         be triggered.
14411         Restrict each bit test pattern to a variant on which the
14412         pattern is tested.
14413
14414 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14415
14416         * builtins.c (expand_builtin_strncat): Remove redundant check for
14417         INTEGER_CST.
14418
14419 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14420
14421         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14422         default setting.
14423         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14424         existing setting.
14425
14426 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14427
14428         * dbxout.c (dbxout_init): Use assemble_name rather than just
14429         stripping off the first character.
14430         (dbxout_source_file): Likewise.
14431
14432 2002-01-25  DJ Delorie  <dj@redhat.com>
14433
14434         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14435         using rtx_equal_p, not by comparing pointers.
14436
14437 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14438
14439         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14440         for PIC_OFFSET_TABLE_REGNUM.
14441         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14442
14443 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14444
14445         * config.gcc (x86_64-*-freebsd*): New target.
14446         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14447         value.
14448         (i[34567]86-*-freebsd*): Don't include svr4.h.
14449         * config/i386/freebsd64.h: New file.
14450
14451 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14452
14453         * config/alpha/x-vms (version): Make static.
14454
14455         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14456         in previous checkin.
14457
14458         * Makefile.in (install-headers-cp): New target.
14459         * config.gcc (alpha-dec-*vms*): Install headers with
14460         install-headers-cp
14461
14462 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14463
14464         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14465         avoid it's copies.
14466
14467 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14468
14469         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14470         of compare_tree_int.
14471         (expand_builtin_strncat): Likewise.
14472         * c-decl.c (finish_struct): Use tree_low_cst.
14473         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14474         * tree.c (compare_tree_int): Likewise.
14475
14476 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14477
14478         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14479         adjustments even if they are implemented by more than two insns.
14480
14481 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14482
14483         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14484         * df.h (struct ref): Kill B.
14485         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14486
14487         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14488         * flow.c (propagate_one_insn): Use it.
14489         (mark_used_regs): Handle NIL.
14490
14491 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14492
14493         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14494         to help folding.
14495
14496 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14497
14498         * rs6000.md (prefetch): Make address V4SI mode so that the address
14499         is restricted to legitimate form for instruction.
14500
14501 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14502
14503         * doc/install.texi (xtensa-*-elf): New target.
14504         (xtensa-*-linux*): New target.
14505         * doc/contrib.texi: Add myself.
14506
14507 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14508
14509         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14510         purpose register to hold an SImode (or smaller) value.
14511
14512 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14513
14514         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14515         registry only.
14516         * crtstuff.c: Likewise.
14517
14518 2002-01-25  Kazu Hirata  <kazu@hxi.com>
14519
14520         * config/h8300/h8300.md (negation patterns): Tighten
14521         predicates to register_operand.
14522
14523 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
14524
14525         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14526         mode, not Pmode.
14527
14528         * builtins.c (expand_builtin_prefetch): Same.
14529
14530 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14531
14532         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14533         modes.
14534
14535 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14536
14537         * config/h8300/h8300.c (print_operand): Remove support for
14538         operand character 'A'.
14539         * config/h8300/h8300.md (three anonymous patterns): Replace
14540         operand character 'A' with either 'T' or 'S'.
14541
14542 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14543
14544         * config/h8300/h8300.c (print_operand): Remove support for
14545         operand character 'U'.
14546
14547 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
14548
14549         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14550
14551 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
14552
14553         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14554         values to be assigned to the stack pointer.
14555
14556 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
14557
14558         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14559         to const_double needs to be done right for big-endian systems.
14560
14561 2002-01-24  Jason Merrill  <jason@redhat.com>
14562
14563         PR c++/2432
14564         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14565         to can_throw_internal.
14566
14567 2002-01-23  Richard Henderson  <rth@redhat.com>
14568
14569         * fold-const.c (fold): Change UINT_MAX test to check vs precision
14570         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
14571
14572 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14573
14574         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14575         (symGOT2reg): Use them, then set as GOT value as unchanging.
14576         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
14577         as a temporary, if possible.
14578         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
14579         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14580
14581 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14582
14583         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14584         accept to accept 0x80 as operands[2].
14585
14586 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14587
14588         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14589
14590 2002-01-23  Richard Henderson  <rth@redhat.com>
14591
14592         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14593
14594 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
14595
14596         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14597         (parmlist_or_identifiers_1): Verify that only a parmlist follows
14598         an attribute.
14599
14600 2002-01-23  Richard Henderson  <rth@redhat.com>
14601
14602         * expr.c (move_by_pieces_1): Extend size before negation.
14603
14604         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14605         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14606         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14607         * config/m68k/t-m68kelf: Likewise.
14608
14609 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
14610
14611         * config/xtensa/elf.h: New file.
14612         * config/xtensa/lib1funcs.asm: New file.
14613         * config/xtensa/lib2funcs.S: New file.
14614         * config/xtensa/linux.h: New file.
14615         * config/xtensa/t-xtensa: New file.
14616         * config/xtensa/xtensa-config.h: New file.
14617         * config/xtensa/xtensa-protos.h: New file.
14618         * config/xtensa/xtensa.c: New file.
14619         * config/xtensa/xtensa.h: New file.
14620         * config/xtensa/xtensa.md: New file.
14621         * config.gcc (xtensa-*-elf*): New target.
14622         (xtensa-*-linux*): New target.
14623         * cse.c (canon_hash): Compare rtx pointers instead of register
14624         numbers.  This is required for the Xtensa port.
14625         * integrate.c (copy_insn_list): Handle case where the static
14626         chain is in memory and the memory address has to be copied to
14627         a register.
14628         * doc/invoke.texi (Option Summary): Add Xtensa options.
14629         (Xtensa Options): New node.
14630         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14631
14632 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14633
14634         * diagnostic.c (internal_error): Do ICE suppression only
14635         when ENABLE_CHECKING is not defined.
14636
14637         * c-typeck.c (require_complete_type): Return error_mark_node
14638         if type is error_mark_node.
14639
14640 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
14641
14642         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14643         -Os and issue a warning.
14644
14645 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14646
14647         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14648         current (lack of) need for host configuration by hand.
14649
14650         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14651         references.  Documentation of some target macros moved from
14652         hostconfig.texi to tm.texi.
14653
14654 2002-01-23  Will Cohen  <wcohen@redhat.com>
14655
14656         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14657         defined.
14658
14659 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14660
14661         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14662         operand[3].
14663
14664 2002-01-23  Jason Merrill  <jason@redhat.com>
14665
14666         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14667
14668         * function.c (assign_parms): Don't put args of inline functions
14669         into registers when not optimizing.
14670
14671 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
14672
14673         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14674         (prologue_use): New pattern.
14675         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14676         preference to gen_rtx_USE.
14677         (thumb_expand_prologue): Use gen_prologue_use in preference to
14678         gen_rtx_USE.
14679         (thumb_expand_epilogue): Use gen_prologue_use in preference to
14680         gen_rtx_USE.
14681
14682 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
14683
14684         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14685
14686 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14687
14688         PR c/3504
14689         * doc/extend.texi: Correct documentation of __alignof__.
14690
14691 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
14692
14693         * params.h: Rename arguments of DEFPARAM so that it will be
14694         recognized as a translation keyword.
14695
14696 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14697
14698         * extend.texi: Document altivec functions.
14699         Fix N-bit adjectives in X86 builtin documentation.
14700
14701 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14702
14703         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14704         auto_inc_dec values.
14705
14706 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
14707
14708         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14709         after backslash.
14710         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14711
14712 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14713
14714         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14715
14716 2002-01-22  Richard Henderson  <rth@redhat.com>
14717
14718         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14719         copy_insn not copy_rtx.
14720
14721 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
14722
14723         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14724         "nonzero" as that might add "1" bits.  Ensure "constop" is
14725         properly sign extened.
14726         (force_to_mode): Tweak for sign extended constop.
14727
14728 2002-01-22  Richard Henderson  <rth@redhat.com>
14729
14730         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14731         for_each_rtx instead of assuming we're already looking at the MEM.
14732         (split_small_symbolic_mem_operand): Likewise.
14733         * config/alpha/alpha.h (PREDICATE_CODES): Update.
14734         * config/alpha/alpha.md (small symbolic memory splitters): Update.
14735
14736 2002-01-22  Richard Henderson  <rth@redhat.com>
14737
14738         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14739         sequence number for the literal.
14740         (divmoddi_internal_er): Likewise.
14741
14742 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14743
14744         PR java/4972
14745         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14746         in LIBICONV variable.
14747         * configure: Regenerated.
14748
14749 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
14750
14751         * dependence.c (build_def_use): Remove array_idx.
14752
14753         * dwarfout.c (last_filename): Remove.
14754         (output_compile_unit_die): Remove last_filename.
14755
14756 2002-01-22  Roger Sayle  <roger@eyesopen.com>
14757             Richard Henderson  <rth@redhat.com>
14758
14759         PR opt/3640
14760         * fold-const.c (fold): Optimize unsigned comparisons against
14761         UINT_MAX (and similar unsigned constants).
14762
14763 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
14764
14765         * Makefile.in (loop.o): Depend on OPTABS_H.
14766         * loop.c (emit_prefetch_instructions): Check the prefetch operand
14767         against the predicate.
14768
14769         PR target/5379
14770         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14771         for the address operand.
14772
14773 2002-01-22  Richard Henderson  <rth@redhat.com>
14774
14775         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14776
14777 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14778
14779         PR other/5450
14780         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14781         preprocessor flags.
14782
14783 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
14784
14785         * config.gcc (x86_64-*-netbsd*): New target.
14786         * config/i386/netbsd64.h: New file.
14787
14788 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14789
14790         * regrename.c (kill_value): Fix typo.
14791
14792 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14793
14794         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14795
14796         * config/rs6000/rs6000.h: Same.
14797
14798         * function.c (instantiate_virtual_regs): Remove
14799         STARTING_FRAME_PHASE.
14800         (assign_stack_local_1): Same.
14801         Calculate frame phase.
14802
14803 2002-01-22  Nick Clifton  <nickc@redhat.com>
14804
14805         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14806         variable declaration to outer scope in order to simplify
14807         future extensions.
14808         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14809         arm_hard_regno_mode_ok.
14810         * config/arm/arm-protos.h: Add a prototype for
14811         arm_hard_regno_mode_ok.
14812         * config/arm/arm.c (soft_df_operand): Remove now redundant
14813         check for DImode values using IP_REGNUM.
14814         (nonimmediate_soft_df_operand): Remove now redundant check for
14815         DImode values using IP_REGNUM.
14816         (arm_hard_regno_mode_ok): New function. New check: make sure
14817         that DImode values are not stored in IP_REGNUM.
14818
14819         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14820         note with a USE.
14821         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14822
14823 2002-01-22  Jason Merrill  <jason@redhat.com>
14824
14825         * c-semantics.c (genrtl_compound_stmt): Only check nesting
14826         consistency if this COMPOUND_STMT is scoped.
14827
14828 2002-01-22  Kazu Hirata  <kazu@hxi.com>
14829
14830         * predict.c: Fix formatting.
14831         * print-tree.c: Likewise.
14832         * protoize.c: Likewise.
14833         * real.h: Likewise.
14834         * rtl.h: Likewise.
14835         * sbitmap.h: Likewise.
14836         * scan.c: Likewise.
14837         * sched-deps.c: Likewise.
14838         * sched-vis.c: Likewise.
14839         * sdbout.c: Likewise.
14840         * sibcall.c: Likewise.
14841         * ssa.c: Likewise.
14842         * ssa-ccp.c: Likewise.
14843         * ssa-dce.c: Likewise.
14844         * stmt.c: Likewise.
14845         * stor-layout.c: Likewise.
14846         * system.h: Likewise.
14847
14848 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14849
14850         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14851         if fits in bounds of base type.
14852
14853         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14854         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14855         (add_bound_info, default): If can't find a context, make a
14856         SAVE_EXPR.
14857         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14858
14859 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
14860
14861         * c-typeck.c (parser_build_binary_op): If result from
14862         build_binary_op is ERROR_MARK just return error_mark_node without
14863         further processing.
14864
14865 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
14866
14867         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14868         Split a.out-specific bits into...
14869         * config/netbsd-aout.h: ...this.
14870         * config/netbsd-elf.h: New file.
14871         * config/alpha/netbsd-elf.h: Remove.
14872         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14873         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14874         (STARTFILE_SPEC): Remove redundant definition.
14875         (ENDFILE_SPEC): Likewise.
14876         (LINK_SPEC): Likewise.
14877         (CPP_SPEC): Likewise.
14878         (ASM_SPEC): Likewise.
14879         (LIB_SPEC): Likewise.
14880         (SWITCH_TAKES_ARG): Likewise.
14881         (TARGET_MEM_FUNCTIONS): Likewise.
14882         (CPP_PREDEFINES): Redefine.
14883         (ASM_FINAL_SPEC): Remove redefinition.
14884         (ASM_COMMENT_START): Redefine.
14885         (FUNCTION_PROFILER): Define.
14886         (TARGET_VERSION): Redefine.
14887         Comment and formatting cleanup.
14888         * config/i386/netbsd.h: Include <netbsd-aout.h>.
14889         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14890         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14891         big- or little-endian.
14892         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14893         * config.gcc (*-*-netbsd*): Add definitions common to all
14894         NetBSD configs.
14895         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14896         gnu_ld definitions.  Add netbsd-elf.h to and remove
14897         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
14898         tmake_file, and don't lose previous tmake_file contents.
14899         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14900         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14901         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
14902         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14903         (mipsel-*-netbsd*): Rename this to...
14904         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
14905         mips/little.h to tm_file for mips*el-*.
14906         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14907         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14908         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14909
14910 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14911
14912         * pa-protos.h (reg_before_reload_operand): New function prototype.
14913         * pa.c (reg_before_reload_operand): New function implementation.
14914         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
14915         contraints to "*m".
14916
14917 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14918
14919         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14920
14921 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14922
14923         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14924         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14925         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14926         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14927         (ENDFILE_SPEC): Undefine.
14928         (STARTFILE_SPEC): Redefine for PA.
14929
14930 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14931
14932         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14933
14934 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
14935
14936         * config.gcc: Add entries to supported PowerPC --with-cpu
14937         types.
14938
14939 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
14940
14941         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14942         true for 64-bit mode only SSE registers in 32-bit mode.
14943
14944 2002-01-21  Kazu Hirata  <kazu@hxi.com>
14945
14946         * unwind-dw2.c: Fix formatting.
14947         * unwind-dw2-fde.c: Likewise.
14948         * unwind-dw2-fde.h: Likewise.
14949         * unwind-pe.h: Likewise.
14950         * varasm.c: Likewise.
14951         * varray.h: Likewise.
14952
14953 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
14954
14955         Remove workaround for register stack overwrite bug in mmix.
14956         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14957         support for TARGET_REG_STACK_FILL_BUG.
14958         * config/mmix/mmix.h: Remove member has_call_without_parameters.
14959         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14960         Delete.
14961         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14962         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14963         -mno-reg-stack-fill-bug-workaround.
14964         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14965         machine member has_call_without_parameters.
14966         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14967         -mreg-stack-fill-bug-workaround and
14968         -mno-reg-stack-fill-bug-workaround.
14969         (MMIX Options): Ditto.
14970
14971 2002-01-21  Kazu Hirata  <kazu@hxi.com>
14972
14973         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
14974         as appropriate.
14975         Remove redundant code.
14976
14977 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
14978
14979         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
14980         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14981         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14982         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
14983         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
14984         out target macro definitions and non-target-specific comments
14985         mostly taken from old versions of the manual.
14986
14987 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14988
14989         * config/h8300/h8300.h: Fix comment formatting.
14990         * config/ia64/aix.h: Likewise.
14991         * config/ia64/ia64-protos.h: Likewise.
14992         * config/ia64/ia64.c: Likewise.
14993         * config/ia64/ia64.h: Likewise.
14994         * config/ia64/ia64intrin.h: Likewise.
14995         * config/ia64/linux.h: Likewise.
14996         * config/ia64/unwind-aix.c: Likewise.
14997         * config/ia64/unwind-ia64.c: Likewise.
14998
14999 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15000
15001         * config/h8300/h8300.c: Revise comments about shift code.
15002
15003 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15004
15005         * config/h8300/h8300.c (function_arg): Update a comment.
15006
15007 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15008
15009         * config/h8300/h8300.md: Update the comments at the beginning
15010         of the file.
15011
15012 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15013
15014         * config/i370/i370.c: Fix comment formatting.
15015         * config/i370/i370.h: Likewise.
15016         * config/i370/i370.md: Likewise.
15017         * config/i370/linux.h: Likewise.
15018
15019 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15020
15021         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15022
15023         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15024         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15025         in incomplete case.
15026
15027 2002-01-20  Graham Stott  <grahams@redhat.com>
15028
15029         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15030
15031 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15032
15033         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15034
15035 2002-01-19  Tom Rix  <trix@redhat.com>
15036
15037         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15038
15039 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15040
15041         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15042
15043         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15044         STARTING_FRAME_PHASE.
15045         (STARTING_FRAME_PHASE): New.
15046         (instantiate_virtual_regs): Check saneness of
15047         STARTING_FRAME_PHASE.
15048
15049         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15050
15051 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15052
15053         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15054
15055 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15056
15057         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15058         be used for bootstrapping GCC 3.0.
15059
15060 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15061
15062         * config/h8300/h8300.md: Fix an insn length.
15063
15064 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15065
15066         * bitmap.h: Fix comment formatting.
15067         * combine.c: Likewise.
15068         * cppfiles.c: Likewise.
15069         * c-pragma.h: Likewise.
15070         * c-typeck.c: Likewise.
15071         * df.c: Likewise.
15072         * dwarf2out.c: Likewise.
15073         * function.c: Likewise.
15074         * gcc.c: Likewise.
15075         * genattrtab.c: Likewise.
15076         * gthr-win32.h: Likewise.
15077         * haifa-sched.c: Likewise.
15078         * predict.c: Likewise.
15079         * rtlanal.c: Likewise.
15080         * rtl.h: Likewise.
15081         * unwind-dw2-fde.h: Likewise.
15082         * unwind-pe.h: Likewise.
15083         * vmsdbgout.c: Likewise.
15084
15085 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15086
15087         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15088         if type_required and passed decl.
15089
15090 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15091
15092         * config.gcc (cpu_type): Include altivec.h in powerpc
15093         extra_headers.
15094         Same for darwin.
15095
15096         * config/rs6000/altivec.h: New.
15097
15098 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15099
15100         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15101         handling information.
15102         * doc/trouble.texi (Interoperation): Add libstdc++ information
15103         for AIX.
15104         (Misunderstandings): Add template instantiation and static template
15105         member information for AIX.
15106
15107 2002-01-17  Jason Merrill  <jason@redhat.com>
15108
15109         * dbxout.c (dbxout_type): Support const and volatile.
15110
15111         * except.c (add_partial_entry): Remove backwards compatibility code.
15112         (end_protect_partials): Likewise.
15113
15114 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15115
15116         * config/ia64/ia64.md (prologue_use): New.
15117         * config/ia64/ia64.c (ia64_expand_prologue): Use
15118         gen_prologue_use instead of gen_rtx_USE.
15119         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15120         as CODE_FOR_pred_rel_mutex.
15121         (ia64_sched_reorder2): Likewise.
15122
15123 2002-01-16  Eric Christopher  <echristo@redhat.com>
15124
15125         * config/mips/r3900.h: Reformat.
15126         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15127         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15128         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15129         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15130         * config/mips/t-elf: Remove mips3 multilib.
15131
15132 2002-01-16  H.J. Lu <hjl@gnu.org>
15133
15134         * config/mips/linux.h: Include "mips/abi64.h".
15135
15136 2002-01-16  H.J. Lu <hjl@gnu.org>
15137
15138         * config/mips/t-linux: New.
15139
15140         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15141
15142         * config/mips/linux.h: Don't include "gofast.h".
15143         (INIT_SUBTARGET_OPTABS): Removed.
15144
15145 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15146
15147         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15148         output_a_shift.
15149         * config/h8300/h8300.c: Likewise.
15150         * config/h8300/h8300.md: Likewise.
15151
15152 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15153
15154         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15155         spaces after an opcode name.
15156         (pushqi1_h8300hs): Likewise.
15157         (pushhi1_h8300hs): Likewise.
15158
15159 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15160
15161         * doc/extend.texi: Replace "option" with "attribute"
15162         appropriately.
15163
15164 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15165
15166         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15167         (and:DI () (const_int -8)).
15168         (split_small_symbolic_mem_operand): Split
15169         (mem (and:DI () (const_int -8)).
15170
15171 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15172
15173         PR target/5309:
15174         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15175         same way as TYPE_IMUL.
15176         (ultrasparc_sched_reorder): Likewise.
15177         * config/sparc/sparc.md (type): Add comment to update
15178         ultrasparc_sched_reorder when making changes.
15179
15180 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15181
15182         * doc/invoke.texi: Change the dump file name of block
15183         reordering pass from 28.bbro to 29.bbro.
15184         Mention -dk option.
15185
15186 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15187
15188         * i386.md (minsf splitter): Fix pasto.
15189
15190 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15191
15192         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15193         to frame pointer initialisation instruction.
15194         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15195         initialisation instruction.
15196         (soft_df_operand): Do not accept the IP register.
15197         (nonimmediate_soft_df_operand): Do not accept the IP register.
15198
15199 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15200
15201         PR target/5357:
15202         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15203         MASK_V8 being both set.
15204
15205 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15206
15207         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15208         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15209         config/s390/s390.md (call, call_value): Add GOT register to
15210         CALL_INSN_FUNCTION_USAGE where needed.
15211         (call_exp, call_value_exp): New.
15212
15213 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15214
15215         * config/arm/arm.c: General formatting tidy up.
15216
15217 2002-01-16  Graham Stott  <grahams@redhat.com>
15218
15219         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15220         cast and when casting an integer literal to "rtx" pointer.
15221         (expand_call): Likewise.
15222         * flow.c (try_pre_increment): Likewise.
15223         (find_use_as_address): Likewise.
15224         * integrate.c (expand_iline_function): Likewise.
15225         * regmove.c (try_auto_increment): Likewise.
15226
15227 2002-01-16  Graham Stott  <grahams@redhat.com>
15228
15229         * sched-rgn.c (passed): Use sbitmap_free.
15230         (header): Likewise.
15231         (inner): Likewise.
15232         (in_queue): Likewise.
15233         (in_stack): Likewise.
15234
15235 2002-01-15  Eric Christopher  <echristo@redhat.com>
15236
15237         * flow.c (propagate_one_insn): Change to use fatal_insn.
15238
15239 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15240
15241         * expmed.c (extract_fixed_bit_field): Remove unused code.
15242         * system.h: Poison SLOW_ZERO_EXTEND.
15243         * doc/tm.texi: Remove.
15244         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15245         * config/arm/arm.h: Likewise.
15246         * config/avr/avr.h: Likewise.
15247         * config/clipper/clipper.h: Likewise.
15248         * config/convex/convex.h: Likewise.
15249         * config/d30v/d30v.h: Likewise.
15250         * config/dsp16xx/dsp16xx.h: Likewise.
15251         * config/elxsi/elxsi.h: Likewise.
15252         * config/fr30/fr30.h: Likewise.
15253         * config/h8300/h8300.h: Likewise.
15254         * config/i370/i370.h: Likewise.
15255         * config/i386/i386.h: Likewise.
15256         * config/m68k/m68k.h: Likewise.
15257         * config/mips/mips.h: Likewise.
15258         * config/ns32k/ns32k.h: Likewise.
15259         * config/pdp11/pdp11.h: Likewise.
15260         * config/pj/pj.h: Likewise.
15261         * config/s390/s390.h: Likewise.
15262         * config/sh/sh.h: Likewise.
15263         * config/stormy16/stormy16.h: Likewise.
15264         * config/v850/v850.h: Likewise.
15265         * config/vax/vax.h: Likewise.
15266         * config/we32k/we32k.h: Likewise.
15267
15268 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15269
15270         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15271         (altivec_lvsl): Change constraint to b.
15272         (altivec_lvsr): Same.
15273         (altivec_lvebx): Same.
15274         (altivec_lvehx): Same.
15275         (altivec_lvewx): Same.
15276         (altivec_lvxl): Same.
15277         (altivec_lvx): Same.
15278         (altivec_stvx): Add parallel.
15279         (altivec_stvxl): Same.
15280         (altivec_stvehx): Same.
15281         (altivec_stvebx): Same.
15282         (altivec_stvebx): Same.
15283
15284 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15285
15286         * config.gcc: Change altivec.h to altivec-defs.h.
15287
15288         * config/rs6000/altivec.h: Delete.
15289
15290         * config/rs6000/altivec-defs.h: Add.
15291
15292 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15293
15294         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15295         and UMOD modes.
15296
15297         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15298         less than or equal to eight bytes.
15299
15300         * vax.md (andsi3): Remove constraints and change SET destination
15301         operand type to nonimmediate_operand.
15302         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15303         when it is a CONST_INT.
15304
15305 2002-01-15  Jason Merrill  <jason@redhat.com>
15306
15307         * c-common.def (FILE_STMT): New code.
15308         * c-common.c (statement_code_p): It's a statement.
15309         * c-common.h (stmt_tree_s): Add x_last_filename.
15310         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15311         (last_expr_filename): New macro.
15312         * c-semantics.c (begin_stmt_tree): Initialize it.
15313         (add_stmt): If the filename changed, also insert a
15314         FILE_STMT.
15315         (expand_stmt): Handle seeing one.
15316
15317 2002-01-15  Eric Christopher  <echristo@redhat.com>
15318
15319         * flow.c (propagate_one_insn): Add error message and print out
15320         insn for debugging.
15321
15322 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15323
15324         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15325         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15326         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15327         TRAMPOLINE_ALIGNMENT.
15328         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15329         to be in bits.
15330         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15331         PCC_BITFIELD_TYPE_MATTERS.
15332         * config/interix.h (STDC_VALUE): Remove.  Use
15333         STDC_0_IN_SYSTEM_HEADERS.
15334         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15335         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15336         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15337
15338 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15339
15340         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15341         not work on this platform currently.
15342
15343 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15344
15345         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15346         readonly_warning in _().
15347
15348 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15349
15350         * gcc.c (delete_if_ordinary): Backout previous change.
15351
15352 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15353
15354         * config/h8300/h8300.c (print_operand): Remove support for
15355         unused operand characters.
15356
15357         * read-rtl.c: Fix formatting.
15358         * real.c: Likewise.
15359         * recog.c: Likewise.
15360         * regclass.c: Likewise.
15361         * regmove.c: Likewise.
15362         * reg-stack.c: Likewise.
15363         * reload1.c: Likewise.
15364         * rtlanal.c: Likewise.
15365
15366 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15367
15368         * config/i386/i386.c: Fix formatting.
15369
15370 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15371
15372         * c-typeck.c (process_init_element): Don't save_expr
15373         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15374
15375 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15376
15377         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15378         emit optional traceback table if optimize_size or TARGET_ELF.
15379         * config/rs6000/rs6000.md (prefetch): New.
15380
15381 2002-01-15  Andreas Jaeger  <aj@suse.de>
15382
15383         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15384
15385 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15386
15387         * mips-tfile.c: Fix formatting.
15388
15389 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15390
15391         * unroll.c (final_reg_note_copy): Fix previous commit.
15392
15393 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15394
15395         * config/h8300/h8300-protos.h: Remove the prototype for
15396         eq_operator.
15397         * config/h8300/h8300.c (eq_operator): Remove.
15398
15399 2002-01-14  Richard Henderson  <rth@redhat.com>
15400
15401         * config/i386/i386.md (prefetch): Tidy.
15402         (prefetch_3dnow): Fix locality operand.
15403
15404 2002-01-14  Richard Henderson  <rth@redhat.com>
15405
15406         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15407         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15408
15409 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15410
15411         * reload1.c (reload_combine): Pass reg_sum replacement through
15412         copy_rtx in loop performing multiple changes.
15413
15414 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15415
15416         * except.c (remove_unreachable_regions): New.
15417         (free_eh_status): Clear exception_handler_labels.
15418         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15419         (find_exception_handler_labels): Don't add the same label more than
15420         once.
15421         (remove_exception_handler_label): Don't die if
15422         find_exception_handler_labels hasn't been called for the current
15423         function yet.
15424
15425 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15426
15427         * toplev.c (rest_of_compilation): Rebuild jump labels after
15428         gcse.
15429
15430 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15431
15432         * doc/extend.texi: Move documentation of X86 built-in functions
15433         here.
15434         * doc/invoke.texi: From here.
15435         * doc/sourcebuild.texi: Document location of documentation for
15436         machine built-in functions.
15437
15438 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15439
15440         * cppfiles.c (TEST_THRESHOLD): New macro.
15441         (SHOULD_MMAP): Ditto.
15442         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15443         be used.
15444
15445 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15446
15447         * unroll.c (final_reg_note_copy): Properly handle
15448         REG_LABEL
15449         (unroll_loops): Fix LOOP_CONDITION heuristics.
15450
15451 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15452
15453         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15454         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15455
15456 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15457
15458         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15459         threaded loop.
15460
15461 2002-01-14  Tom Rix  <trix@redhat.com>
15462
15463         * config/rs6000/rs6000.md: Fix typo with sradi.
15464
15465 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15466
15467         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15468         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15469         (clrstrdi, clrstrsi): Adapt callers.
15470
15471         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15472
15473         (movti splitter): Never use register 0 as base register.
15474
15475 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15476
15477         * combine.c (simplify_shift_const): Always generate new rtx
15478         for shift expression instead of reusing given expression.
15479
15480 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15481
15482         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15483         alpha_legitimize_address unless mode is Pmode.
15484
15485 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15486
15487         * doc/md.texi (Modifiers): Document the '*' constraint for the
15488         user.
15489
15490         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15491         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15492         for xstormy16 too.
15493
15494 2002-01-13  Richard Henderson  <rth@redhat.com>
15495
15496         * reload.c (find_reloads): Use a hard reg destination as reload reg
15497         for an input reload of the source.
15498
15499 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15500
15501         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15502         more generic.
15503
15504 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15505
15506         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15507         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15508
15509         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15510
15511 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15512
15513         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15514
15515 2002-01-12  Tom Rix  <trix@redhat.com>
15516
15517         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15518         TARGET_POWERPC64.
15519
15520 2002-01-12  Richard Henderson  <rth@redhat.com>
15521
15522         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15523
15524         * doc/invoke.texi: Update Alpha options.
15525
15526         * doc/invoke.texi: Update i386 built-in function lists.
15527
15528 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15529
15530         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15531         referencing outside.
15532
15533 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15534
15535         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15536         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15537         offsets, and change line folding.
15538         * optabs.c (expand_binop): Remove warnings.
15539         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15540
15541 2002-01-12  Graham Stott <grahams@redhat.com>
15542
15543         * attribs.c (handle_deprecated_attribute): constify WHAT.
15544         * diagnostic.c (warn_deprecated_use): Add braces, fixes
15545         dangling else warning and constify WHAT.
15546         * except.h (struct function, struct inline_remap): Move
15547         struct tag forward defs before all prototypes.
15548         (duplicate_eh_regions): Whitespace.
15549
15550 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
15551
15552         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15553         MODE_BASE_REG_CLASS.
15554         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15555
15556 2002-01-12  Richard Henderson  <rth@redhat.com>
15557
15558         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15559         (ix86_expand_vector_move): New.
15560         (bdesc_2arg): Remove andps, andnps, orps, xorps.
15561         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
15562         Remove old prefetch builtins.  Special case the logicals removed above.
15563         (ix86_expand_builtin): Likewise.
15564         (safe_vector_operand): Use V4SFmode, not TImode.
15565         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
15566         (ix86_expand_timode_binop_builtin): New.
15567         * config/i386/i386-protos.h: Update.
15568         * config/i386/i386.h (enum ix86_builtins): Update.
15569         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15570         Use ix86_expand_vector_move in vector move expanders.
15571         (movti_internal, movti_rex64): Add xorps alternative.
15572         (sse_clrv4sf): Rename and adjust from sse_clrti.
15573         (prefetch): Don't work so hard.
15574         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15575         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15576         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15577
15578 2002-01-11  Richard Henderson  <rth@redhat.com>
15579
15580         * config/i386/mmintrin.h: New file.
15581         * config/i386/xmmintrin.h: New file.
15582         * config.gcc (i?86-*-*): Add extra_headers.
15583         * simplify-rtx.c (simplify_unary_operation): Handle saturating
15584         truncation codes.
15585         (simplify_binary_operation): Handle saturating arithmetic codes.
15586         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15587         not the lowpart subreg.
15588         (ix86_expand_builtin): Return a TImode dummy register instead of 0
15589         on error.
15590         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15591
15592 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15593
15594         * conflict.c (conflict_graph_compute): Free regsets when finished.
15595         * ssa.c (compute_coalesced_reg_partition): Likewise.
15596
15597 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15598
15599         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15600         every where we allocate a register.
15601
15602 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15603
15604         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15605         * lcm.c (compute_earliest, compute_farthest): Likewise.
15606
15607 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15608
15609         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15610
15611 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15612
15613         * doc/rtl.texi (Insns): Fix 2 typos.
15614
15615 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
15616
15617         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
15618         options.  Use @table @gcctabopt for MMIX options.  Add index
15619         entries for MMIX options.  Start new paragraph with first
15620         heading of the machine-dependent options.
15621
15622 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15623
15624         PR other/5299
15625         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15626         * combine.c (force_to_mode): Same.
15627         * reload1.c (clear_reload_reg_in_use): Same.
15628
15629 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
15630
15631         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15632         and 'subtargets'.
15633
15634 2002-01-11  Andreas Jaeger  <aj@suse.de>,
15635             Brad Lucier <lucier@math.purdue.edu>
15636
15637         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15638         mcpu.
15639
15640 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
15641
15642         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15643         Protect with IN_LIBGCC.
15644         (LINK_EH_SPEC): Add required trailing space.
15645
15646 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15647
15648         * c-tree.h: Move function declarations so that they are listed
15649         under the filename which contains them.
15650         (check_identifier, finish_decl_top_level,
15651         lookup_name_current_level_global, shadow_record_fields): Remove.
15652
15653 2002-01-11  Andreas Jaeger  <aj@suse.de>
15654
15655         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15656         march.
15657
15658 2002-01-10  Richard Henderson  <rth@redhat.com>
15659
15660         * config/alpha/alpha.c (print_operand): Add 'J'.
15661         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15662         new operand with the sequence number for the lituse.  When splitting
15663         the insns, use gen_movdi_er_high_g and generate a sequence number.
15664         (gen_movdi_er_high_g): Print the sequence number if non-zero.
15665
15666 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
15667
15668         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15669         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15670         stvxl.
15671         (altivec_expand_builtin): Same.
15672         (altivec_expand_stv_builtin): New.
15673
15674         * config/rs6000/rs6000.h (rs6000_builtins): Same.
15675
15676         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15677         ("altivec_lvehx"): New.
15678         ("altivec_lvewx"): New.
15679         ("altivec_lvxl"): New.
15680         ("altivec_lvx"): New.
15681         ("altivec_stvx"): New.
15682         ("altivec_stvebx"): New.
15683         ("altivec_stvehx"): New.
15684         ("altivec_stvewx"): New.
15685         ("altivec_stvxl"): New.
15686
15687 2002-01-10  Richard Henderson  <rth@redhat.com>
15688
15689         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15690         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
15691         care not to delete instructions twice.
15692
15693 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15694
15695         * toplev.c: Don't declare environ (it's not used anywhere).
15696         * configure.in: Don't check for declaration of environ.
15697         * config/i386/xm-mingw32.h: Don't #define environ.
15698         * config.in, configure: Regenerate.
15699
15700 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15701
15702         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15703         * configure: Regenerate.
15704
15705         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15706         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15707         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15708         alpha/xm-vms.h.
15709         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15710         LIMITS_H_TEST here, not in m68k/x-next.
15711         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15712         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15713
15714         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15715         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15716         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
15717
15718         * config/i386/x-djgpp: Renamed i386/t-djgpp.
15719         * config/m88k/x-dolph: Renamed m88k/t-dolph.
15720         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15721         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
15722         replacement of quadlib.asm with quadlib.c.
15723
15724         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15725         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15726         config/rs6000/xm-beos.h: Delete file.
15727
15728         * config.gcc: Update to match above changes.
15729
15730 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15731
15732         * config/h8300/h8300.h: Fix comment typos.
15733         * config/h8300/h8300.md: Likewise.
15734         * config/h8300/lib1funcs.asm: Likewise.
15735
15736 2002-01-10  Dale Johannesen  <dalej@apple.com>
15737
15738         PR optimization/5269
15739         * unroll.c (precondition_loop_p): Make *increment be the correct
15740         sign when n_iterations known, to avoid confusing caller.
15741
15742 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15743
15744         * doc/extend.texi (deprecated): Fix a typo.
15745
15746 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
15747
15748         * basic-block.h (update_br_prob_note): Declare.
15749         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15750         (try_forward_edges): Care negative frequencies and update note.
15751         (outgoing_edges_match): Tweek conditional merging heuristics.
15752         (try_crossjump_to_edge): use update_br_prob_note.
15753         * cfglayout.c (fixup_reorder_chain): Likewise.
15754         * cfrtl.c (update_br_prob_note): New.
15755         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15756
15757         * i386.c (ix86_decompose_address): Return -1 if address contains
15758         shift.
15759         (legitimate_address_p): Require ix86_decompose_address to return 1.
15760
15761         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15762         (cprop_insn): Likewise.
15763
15764 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15765
15766         * toplev.c: Fix formatting.
15767         * tree.c: Likewise.
15768         * tree-dump.c: Likewise.
15769         * unroll.c: Likewise.
15770         * unwind-dw2.c: Likewise.
15771         * unwind-dw2-fde.c: Likewise.
15772         * unwind-dw2-fde-glibc.c: Likewise.
15773         * unwind-sjlj.c: Likewise.
15774
15775 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15776
15777         * doc/invoke.texi: Document PDP-11 options.
15778
15779 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15780
15781         * config/h8300/h8300.h: Fix formatting.
15782
15783 2002-01-10  Ira Ruben   <ira@apple.com>
15784
15785         Add __attribute__ ((deprecated)).
15786         * extend.texi: Document __attribute__ ((deprecated)).
15787         * invoke.texi: Document -Wno-deprecated-declarations.
15788         * testsuite/g++.dg/other/deprecated.C: New C++ test.
15789         * testsuite/gcc.dg/deprecated.c: New C test.
15790         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15791         (c_common_attribute_table): Add "deprecated" entry.
15792         (handle_deprecated_attribute): New function.
15793         * c-decl.c (deprecated_states): New enum.
15794         deprecated_state: State of "deprecated" handling.
15795         (start_decl): Set deprecated_state based on attributes.
15796         (grokdeclarator): Test for deprecated uses, propagate attribute.
15797         * c-typeck.c (build_component_ref): Test for deprecated fields.
15798         (build_external_ref): Test for deprecated primaries.
15799         * diagnostic.c (warn_deprecated_use) New function to issue
15800         warnings about __attribute__ ((depricated)) references.
15801         * flags.h (warn_deprecated_decl): Extern declared for
15802         -W[no-]deprecated-declarations option.
15803         * print-tree.c (print_node): Show deprecated flag status.
15804         * toplev.c (warn_deprecated_decl): Defined.
15805         (W_options): Added "deprecated-declaration".
15806         * toplev.h (warn_deprecated_use): Extern declared.
15807         * tree.h (struct tree_common): Define deprecated_flag.
15808         (TREE_DEPRECATED): New macro to access flag.
15809         * cp/call.c (build_call): Test for deprecated calls.
15810         * cp/class.c (add_implicitly_declared_members): Set global
15811         flag to tell grokdeclarator to not issue deprecated warnings.
15812         * cp/cp-tree.h: Add extern for adding_implicit_members.
15813         * cp/decl.c (deprecated_states): New enum.
15814         (start_decl): Set deprecated_state based on attributes.
15815         (grokdeclarator): Test for deprecated uses, propagate attribute.
15816         * cp/lex.c (do_identifier): Test for deprecated primaries.
15817         * cp/typeck.c (build_component_ref): Test for deprecated fields.
15818
15819 2002-01-10  Ira Ruben   <ira@apple.com>
15820
15821         Fix to assign attributes to inline member functions.
15822         * cp/decl.c (start_method): Handle attrlist.
15823
15824 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15825
15826         * combine.c (expand_field_assignment): Use subreg_lsb().
15827
15828 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
15829
15830         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15831         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15832         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15833         Recurse for any operand of AND as long as constant is non-zero.
15834
15835 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15836
15837         * config/h8300/h8300.md: Remove constraints from expanders.
15838
15839 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15840
15841         * varasm.c: Fix formatting.
15842         * varray.c: Likewise.
15843         * vmsdbgout.c: Likewise.
15844         * xcoffout.c: Likewise.
15845
15846 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
15847
15848         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15849         update edge probabilities to match.
15850
15851 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15852
15853         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15854         dependencies.
15855         * doc/languages.texi, doc/sourcebuild.texi: New files.
15856         * doc/configfiles.texi: Make a subsubsection.  Update.
15857         * doc/configterms.texi: Add @node.  Remove warning that this isn't
15858         instructions for building GCC.
15859         * doc/makefile.texi: Make a subsection.
15860         * doc/gccint.texi: Update.
15861
15862 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
15863
15864         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15865
15866 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15867
15868         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15869
15870 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
15871
15872         * optabs.c (expand_fix): Look for wider integer modes first.
15873
15874         * i386.md (mov?f): Avoid the fake const double trick for medium
15875         memory model.
15876         (min?f*/max?f*): Prohibit memory operands for i387 variant.
15877         (fop_df_4): Disable for SSE compilation.
15878
15879 2002-01-10  Graham Stott  <grahams@redhat.com>
15880
15881         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15882         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15883
15884 2002-01-10  Richard Henderson  <rth@redhat.com>
15885
15886         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15887
15888 2002-01-10  Richard Henderson  <rth@redhat.com>
15889
15890         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15891         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
15892
15893 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15894
15895         * combine.c (can_combine_p): Fix a comment typo.
15896
15897 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
15898
15899         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15900         empty list correctly.  Change loop index $t to $f for
15901         consistency with rest of Makefile.
15902
15903 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
15904
15905         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15906         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15907
15908         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15909         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15910         (altivec_init_builtins): Same.
15911         (altivec_expand_unop_builtin): Return NULL_RTX on error.
15912         (altivec_expand_binop_builtin): Same.
15913         (altivec_expand_ternop_builtin): Same.
15914         (bdesc_dst): New.
15915
15916         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15917         ("altivec_vctuxs"): Fix typo.
15918         ("altivec_vnmsubfp"): Same.
15919         ("altivec_dssall"): New.
15920         ("altivec_mfvscr"): New.
15921         ("altivec_dss"): New.
15922         ("altivec_lvsl"): New.
15923         ("altivec_lvsr"): New.
15924         ("altivec_dstt"): New.
15925         ("altivec_dstst"): New.
15926         ("altivec_dststt"): New.
15927         ("altivec_dst"): New.
15928
15929         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15930         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15931
15932 2002-01-09  Richard Henderson  <rth@redhat.com>
15933
15934         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15935
15936 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
15937
15938         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15939         function.
15940         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15941         prototype.
15942         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15943
15944 2002-01-09  Kazu Hirata  <kazu@hxi.com>
15945
15946         * read-rtl.c: Fix formatting.
15947         * real.c: Likewise.
15948         * regclass.c: Likewise.
15949         * regrename.c: Likewise.
15950         * reg-stack.c: Likewise.
15951         * reload1.c: Likewise.
15952         * reload.c: Likewise.
15953         * rtl.c: Likewise.
15954
15955 2002-01-09  Kazu Hirata  <kazu@hxi.com>
15956
15957         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15958         to extract items in the expr_list chain.
15959
15960 2002-01-09  Richard Henderson  <rth@redhat.com>
15961
15962         * config/vax/vax.c (vax_rtx_cost): Never abort.
15963
15964         * config/vax/vax.h (REAL_ARITHMETIC): Define.
15965
15966 2002-01-09  Jan Hubicka  <jh@suse.cz>
15967
15968         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15969
15970 2002-01-09  Richard Henderson  <rth@redhat.com>
15971
15972         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
15973         Unify code from various alternatives.
15974
15975 2002-01-09  Richard Henderson  <rth@redhat.com>
15976
15977         * regrename.c (copy_value): Ignore the copy if the source register
15978         is present in the value chain with a narrower mode.
15979
15980 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
15981
15982         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
15983         for the c4x target. Also improve layout.
15984
15985 2002-01-09  Richard Henderson  <rth@redhat.com>
15986
15987         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
15988         * config/m32r/m32r.md (and ior xor splitters): Swap operands
15989         to match insn patterns.
15990
15991 2002-01-09  Richard Henderson  <rth@redhat.com>
15992
15993         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
15994         (copyprop_hardreg_forward_1): Likewise.
15995
15996 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15997
15998         * pa.md (decrement_and_branch_until_zero): Change predicate for
15999         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16000
16001 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16002
16003         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16004         gets undefined. For Darwin.
16005
16006 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16007
16008         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16009
16010 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16011
16012         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16013
16014 2002-01-08  Richard Henderson  <rth@redhat.com>
16015
16016         * regrename.c (copy_value): Ignore overlapping copies.
16017
16018 2002-01-08  Richard Henderson  <rth@redhat.com>
16019
16020         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16021         as needed to avoid shared structure.
16022
16023 2002-01-08  Kazu Hirata  <kazu@hxi.com>
16024
16025         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16026         H8/300H and H8/S.
16027
16028 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16029
16030         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16031         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16032         documentation of obsolete macros.
16033         * system.h: Poison these macros.
16034         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16035         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16036         config/c4x/c4x.h, config/clipper/clipper.h,
16037         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16038         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16039         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16040         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16041         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16042         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16043         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16044         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16045         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16046         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16047         config/sparc/sparc.h, config/stormy16/stormy16.h,
16048         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16049         definitions and commented out definitions of obsolete macros.
16050         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16051         of MAX_INT_TYPE_SIZE.
16052
16053 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16054
16055         * config/s390/s390.c (s390_preferred_reload_class): Never
16056         return ADDR_REGS if it isn't a subset of the given class.
16057         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16058         FP_REGS, but all superclasses as well.
16059
16060         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16061
16062         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16063         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16064         must not be a const_int.
16065
16066 2002-01-08  Richard Henderson  <rth@redhat.com>
16067
16068         * Makefile.in (toplev.o): Depend on options.h.
16069         (gcc.o): Depend on specs.h.
16070
16071 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16072
16073         * expr.c (store_expr): Convert VOIDmode constants back to target's
16074         mode.
16075
16076 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16077
16078         * doc/invoke.texi: Markup gcc as @command.  Refer to
16079         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16080         of http://gcc.gnu.org/thanks.html.
16081
16082 2002-01-08  Dale Johannesen  <dalej@apple.com>
16083
16084         * config/rs6000/rs6000.md: Add missing int register
16085         target case to movdf_low.
16086
16087 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16088
16089         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16090         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16091         (cppinit.o): Depend on except.h.
16092         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16093         s-specs): New rules.
16094
16095         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16096         Don't create specs.h/options.h/gencheck.h here.  Remove
16097         unnecessary variable settings from last argument of AC_OUTPUT.
16098         * config.in, configure: Regenerate.
16099         * intl.c: Hardcode package name as "gcc".
16100
16101         * cppinit.c: Include except.h.
16102         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16103         appropriate.
16104         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16105         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16106         (!)USING_SJLJ_EXCEPTIONS.
16107         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16108
16109 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16110
16111         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16112         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16113         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16114         documentation of obsolete macros.
16115         * system.h: Poison these macros.
16116         * config/d30v/d30v.h, config/ns32k/encore.h,
16117         config/stormy16/stormy16.h: Remove definitions and commented out
16118         definitions of obsolete macros.
16119
16120 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16121
16122         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16123         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16124         warnings.
16125
16126 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16127
16128         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16129         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16130         to insn adjusting stack/frame pointer.
16131         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16132         accept operands that cause the insn to be non-splittable.
16133
16134 2002-01-08  Graham Stott  <grahams@redhat.com>
16135
16136         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16137         (C_TYPE_FIELDS_VOLATILE): Likewise.
16138         (C_TYPE_BEING_DEFINED): Likewise.
16139         (C_IS_RESERVED_WORD): Likewise.
16140         (C_TYPE_VARIABLE_SIZE): Likewise.
16141         (C_DECL_VARIABLE_SIZE): Likewise.
16142         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16143         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16144         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16145         parenthesis.
16146         (C_DECL_ANTICIPATED): Likewise.
16147         (c_build_type_variant): Add parenthesis.
16148
16149 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16150
16151         * gcc.c (option_map): Remove --version.
16152         (process_command): Handle -fversion following the GNU Coding
16153         Standards.  Partially addresses PR other/704.
16154
16155 2002-01-08  Graham Stott  <grahams@redhat.com>
16156
16157         * combine.c (combine_instructions): Fix typo.
16158
16159 2002-01-08  Graham Stott  <grahams@redhat.com>
16160
16161         * debug.h: Use "tree" and "rtx" throughout.
16162
16163         * debug.c: Likewise.
16164
16165 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16166
16167         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16168         constant pool, use the pool's version of the symbol instead.
16169
16170 2002-01-07  Richard Henderson  <rth@redhat.com>
16171
16172         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16173         the original register was copied in a mode with a fewer number of
16174         hard registers than the desired mode.
16175         (copyprop_hardreg_forward_1): Likewise.
16176         (debug_value_data): Fix loop test.
16177         * toplev.c (parse_options_and_default_flags): Reenable
16178         -fcprop-registers at -O1.
16179
16180 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16181
16182         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16183         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16184
16185         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16186         predicates.
16187
16188         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16189
16190 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16191
16192         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16193         (pa_output_function_prologue): Output local label at the beginning of
16194         the prologue when profiling.
16195         (hppa_profile_hook): Use the local label rather than the function label.
16196         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16197
16198 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16199
16200         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16201         (altivec_expand_unop_builtin): Fix thinko.
16202         (altivec_expand_binop_builtin): Same.
16203         (altivec_expand_ternop_builtin): Same.
16204         (altivec_expand_builtin): Same.
16205
16206 2002-01-07  Richard Henderson  <rth@redhat.com>
16207
16208         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16209
16210 2002-01-07  Jason Merrill  <jason@redhat.com>
16211
16212         * unwind-dw2.c (execute_cfa_program): Use < again.
16213
16214 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16215
16216         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16217
16218 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16219
16220         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16221         Don't allow -1 - x -> ~x simplifications in the first pass.
16222
16223 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16224
16225         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16226         arguments.
16227         (altivec_expand_binop_builtin): Same.
16228         (altivec_expand_unop_builtin): Same.
16229         (print_operand): Fix typo.
16230         (bdesc_1arg): Add vupk* variants.
16231
16232         * rs6000.h (rs6000_builtins): Add vupk* enums.
16233
16234         * rs6000.md: Add altivec_vupk* variants.
16235
16236 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16237
16238         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16239         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16240         and last update dates.
16241
16242 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16243
16244         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16245
16246 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16247
16248         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16249         * config/avr/avr.h (CPP_SPEC): Likewise.
16250         (LINK_SPEC): Likewise.
16251         (CRT_BINUTILS_SPECS): Likewise.
16252         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16253         * doc/invoke.texi (AVR Options): Document them.
16254
16255 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16256
16257         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16258         LABEL_NUSES.
16259
16260 2002-01-07  Graham Stott  <grahams@redhat.com>
16261
16262         * config/i386/i386.h: Update copyright date.
16263         (HALF_PIC_PTR): Add parenthesis.
16264         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16265         (CONSTANT_ALIGNMENT): Add parenthesis.
16266         (DATA_ALIGNMENT): Likewise.
16267         (LOCAL_ALIGNMENT): Likewise.
16268         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16269         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16270         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16271         (HARD_REGNO_NREGS): Add paranethesis.
16272         (VALID_SSE_REG_MODE): Whitespace.
16273         (VALID_MMX_REG_MODE): Whitespace.
16274         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16275         (ix86_hard_regno_mode_ok): Add parenthesis.
16276         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16277         (RETURN_IN_MEMORY): Whitespace.
16278         (N_REG_CLASSES): Add parenthesis.
16279         (INTEGER_CLASS_P): Add parenthesis and wrap.
16280         (FLOAT_CLASS_P): Likewise.
16281         (SSE_CLASS_P): Likewise.
16282         (MMX_CLASS_P): Likewise.
16283         (MAYBE_INTEGER_CLASS_P): Likewise.
16284         (MAYBE_FLOAT_CLASS_P): Likewise.
16285         (MAYBE_SSE_CLASS_P): Likewise.
16286         (MAYBE_MMX_CLASS_P): Likewise.
16287         (Q_CLASS_P): Likewise.
16288         (GENERAL_REGNO_P): Uppercase macro parameter.
16289         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16290         (FP_REGNO_P): Likewise.
16291         (ANY_FP_REGNO_P): Uppercase macro parameter.
16292         (SSE_REGNO_P): Likewise.
16293         (SSE_REGNO): Likewise.
16294         (SSE_REG_P): Likewise.
16295         (SSE_FLOAT_MODE_P): Likewise.
16296         (MMX_REGNO_P): Likewise.
16297         (MMX_REG_P):Likewise.
16298         (STACK_REG_P): Likewise.
16299         (NON_STACK_REG_P): Likewise.
16300         (STACK_TOP_P): Likewise.
16301         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16302         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16303         (SECONDARY_MEMORY_NEEDED): Likewise.
16304         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16305         (MD_ASM_CLOBBERS): Whitespace and wrap.
16306         (MUST_PASS_IN_STACK): Whitespace and wrap.
16307         (RETURN_POPS_ARGS): Add parenthesis.
16308         (INIT_CUMULATIVE_ARGS): Likewise.
16309         (FUNCTION_ARG): Likewise.
16310         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16311         (SETUP_INCOMING_VARARGS): Likewise.
16312         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16313         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16314         parenthsis.
16315         (EXPAND_BUILTIN_VA_ARG): Likewise.
16316         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16317         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16318         (INITIAL_ELIMINATION_OFFSET): Likewise.
16319         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16320         (REGNO_OK_FOR_BASE_P): Likewise.
16321         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16322         (REGNO_OK_FOR_DIREG_P): Likewise.
16323         (REG_OK_FOR_INDEX_P): Whitespace.
16324         (REG_OK_FOR_BASE_P): Whitespace.
16325         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16326         parenthesis.
16327         (FIND_BASE_TERM): Fix typo.
16328         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16329         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16330         (SYMBOLIC_CONST; Whitespace.
16331         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16332         (ENCODE_SECTION_INFO): Whitespace.
16333         (FINALIZE_PIC): Remove do { ... } while (0).
16334         (PROMOTE_MODE): Wrap in do { ... } while (0).
16335         (CONST_COSTS): Whitespace.
16336         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16337         (REGISTER_MOVE_COST): Add parenthesis.
16338         (MEMORY_MOVE_COST): Likewise.
16339         (EXTRA_CC_MODES): Whitespace.
16340         (SELECT_CC_MODE): Add parenthesis and whitespace.
16341         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16342         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16343         (ASM_OUTPUT_LABEL): Add paramethesis.
16344         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16345         (ASM_OUTPUT_REG_POP): Likewise.
16346         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16347         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16348
16349         * config/i386/i386.c: Update copyright.
16350         (CHECK_STACK_LIMIT): Add parenthesis.
16351         (AT_BP): Uppercase macro parameter.
16352         (x86_64_int_parameter_registers): Constify.
16353         (x86_64_int_return_registers): Likewise.
16354         (ix86_compare_op0): Use rtx.
16355         (construct_container): Constify INTREG parameter.
16356         (function_arg): Use rtx.
16357
16358         * diagnostic.h: Update copyright date.
16359         (output_buffer_state): Add parenthesis.
16360         (output_buffer_format_args): Likewise.
16361
16362         * combine.c (combine_instructions): Replace XEXP (links, 0)
16363         with link.
16364
16365 2002-01-06  H.J. Lu <hjl@gnu.org>
16366
16367         * cfgcleanup.c (thread_jump): Fix 2 typos.
16368
16369 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16370
16371         * config.gcc: Add support for --enable-altivec.
16372
16373 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16374
16375         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16376
16377 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16378
16379         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16380         __objc_class_name_*.
16381
16382 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16383
16384         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16385
16386 2002-01-06  Richard Henderson  <rth@redhat.com>
16387
16388         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16389         nop them out.  Increment label reference count for REG_LABEL.
16390         (fill_slots_from_thread): Frob label reference count around
16391         delete_related_insns.
16392
16393 2002-01-05  Richard Henderson  <rth@redhat.com>
16394
16395         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16396         jump threading.
16397
16398 2002-01-05  Richard Henderson  <rth@redhat.com>
16399
16400         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16401         * integrate.c (output_inline_function): Likewise.
16402         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16403         to remove_unnecessary_notes after emitting abstract instance.
16404         Force an emitted nested function to have its parent emited as well.
16405         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16406         for null.
16407         (rtl_for_decl_location): Do not look at reload data structures
16408         before reload has run.
16409
16410 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16411
16412         * cse.c: Fix formatting.
16413         * dwarf2asm.c: Likewise.
16414         * dwarf2out.c: Likewise.
16415         * explow.c: Likewise.
16416         * expmed.c: Likewise.
16417         * function.c: Likewise.
16418         * gcov.c: Likewise.
16419         * gencheck.c: Likewise.
16420         * genrecog.c: Likewise.
16421         * ggc-common.c: Likewise.
16422         * ggc-page.c: Likewise.
16423         * global.c: Likewise.
16424
16425 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16426
16427         * combine.c: Fix formatting.
16428
16429 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16430
16431         PR middle-end/1557
16432         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16433
16434 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16435
16436         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16437         as 1 for __powerpc64__ as well.
16438
16439         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16440
16441         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16442         return it.
16443
16444 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16445
16446         * lcm.c: Revert change, due to performance regression it causes on
16447         SPEC because it's slightly more conservative (sigh, I hate
16448         edge-based LCM).
16449
16450 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16451
16452         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16453
16454 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16455
16456         * doc/cppinternals.texi: Update.
16457
16458 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16459
16460         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16461         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16462         negatives.
16463         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16464         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16465         kludge for pre-october-14th mmix versions to handle new-found bug
16466         with PUSHJ/PUSHGO and the register stack.
16467         * config/mmix/mmix.h (struct machine_function): Rename member
16468         has_call_value_without_parameters to has_call_without_parameters.
16469         All referers changed.
16470         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16471         TARGET_MASK_BRANCH_PREDICT): New macros.
16472         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16473         -mno-reg-stack-fill-bug-workaround.
16474         * config/mmix/mmix.md ("call"): Set struct machine member
16475         has_call_without_parameters.
16476
16477 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16478
16479         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16480
16481 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16482
16483         * cfgcleanup.c: Include tm_p.h
16484         (mark_effect): Fix handling of hard register; fix handling of SET
16485
16486 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16487
16488         * config/h8300/h8300.md (anonymous patterns): Check that
16489         operands are registers before using REGNO on them.
16490
16491 2002-01-03  Roland McGrath  <roland@frob.com>
16492
16493         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16494
16495 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16496
16497         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16498         * c-common.h (genrtl_expr_stmt_value): Likewise.
16499         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16500         (expand_expr_stmt_value): Add maybe_last argument.
16501         Don't warn about statement with no effect if it is the last statement
16502         in expression statement.
16503         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16504         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16505         expand_expr_stmt_value.
16506         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16507         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16508         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16509         as maybe_last to expand_expr_stmt_value.
16510
16511 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16512
16513         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16514         be passed in, do not build it.
16515         (c_begin_if_stmt): New function.
16516         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16517         * c-common.h (c_expand_start_cond): Update prototype.
16518         (c_begin_if_stmt): Prototype new function.
16519         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16520         * c-parse.in (if_prefix): Use c_begin_if_stmt,
16521         c_begin_while_stmt and c_finish_while_stmt_cond.
16522
16523 2002-01-04  William Cohen  <wcohen@redhat.com>
16524
16525         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16526         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16527         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16528         * config/pa/som.h (ASM_FILE_START): Likewise.
16529
16530 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
16531
16532         * lcm.c: Include df.h.
16533         Add available_transfer_function prototype.
16534         (compute_available): Rework to use iterative dataflow framework.
16535         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16536         with bb_info in df.h
16537         (available_transfer_function): New function.
16538
16539         * Makefile.in (lcm.o): add df.h to dependencies.
16540
16541 2002-01-04  Richard Henderson  <rth@redhat.com>
16542
16543         * config/alpha/alpha.c (some_operand): Accept HIGH.
16544         (input_operand): Likewise; accept simple references to globals.
16545         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16546         (alpha_const_double_ok_for_letter_p): Likewise.
16547         (alpha_extra_constraint): Likewise.
16548         (alpha_preferred_reload_class): Likewise.  Do not force
16549         symbolic constants to memory.
16550         (alpha_legitimate_address_p): Accept simple references
16551         to small_symbolic_operand.
16552         (alpha_legitimize_address): New arg scratch.  Be prepared to be
16553         called when no_new_pseudos.  Emit simple symbolic references.
16554         Split integers into low, high, and rest.
16555         (alpha_expand_mov): Use alpha_legitimize_address.
16556         (some_small_symbolic_mem_operand): New.
16557         (split_small_symbolic_mem_operand): New.
16558         * config/alpha/alpha-protos.h: Update.
16559         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16560         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16561         (EXTRA_CONSTRAINT): Likewise.
16562         (PREFERRED_RELOAD_CLASS): Likewise.
16563         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16564         (PREDICATE_CODES): Update.
16565         * config/alpha/alpha.md: New post-reload splitters to convert
16566         simplfied symbolic operands to the form that references $29.
16567         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16568         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16569
16570 2002-01-03  Richard Henderson  <rth@redhat.com>
16571
16572         * local-alloc.c (function_invariant_p): Update commentary.
16573
16574 2002-01-04  H.J. Lu <hjl@gnu.org>
16575
16576         * toplev.c (rest_of_compilation): Fix a typo when calling
16577         cleanup_cfg.
16578
16579 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16580
16581         * c-common.c: Fix formatting.
16582         * diagnostic.c: Likewise.
16583         * doloop.c: Likewise.
16584         * dwarf2out.c: Likewise.
16585
16586 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16587
16588         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16589         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16590
16591 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16592
16593         * cpperror.c: Update comments and copyright.
16594         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16595         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16596
16597 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16598
16599         * collect2.c (main): Use strcmp when testing for "-shared".
16600
16601 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16602
16603         * cppmacro.c: Don't include intl.h.  Update comments.
16604         (new_number_token): Allocate enough buffer for 64-bit unsigned
16605         integers; update prototype.
16606         * cppmain.c: Update comments.
16607
16608 2002-01-03  William Cohen  <wcohen@redhat.com>
16609
16610         * function.h (struct function): Add profile.
16611         (current_function_profile): New.
16612         doc/extend.texi: Update documentation.
16613         * final.c (final_start_function): Use current_function_profile
16614         instead of profile_flag.
16615         (profile_after_prologue): Likewise.
16616         * function.c (expand_function_start): Likewise.
16617         (expand_function_start): Likewise.
16618         * config/alpha/alpha.c (direct_call_operand):
16619         (alpha_does_function_need_gp): Likewise.
16620         (alpha_expand_prologue): Likewise.
16621         * config/arm/arm.c (arm_expand_prologue): Likewise.
16622         thumb_expand_prologue: Likewise.
16623         * config/d30v/d30v.c (d30v_stack_info): Likewise.
16624         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16625         (fr30_expand_prologue): Likewise.
16626         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16627         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16628         * config/i386/i386.h (FINALIZE_PIC): Likewise.
16629         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16630         * config/i960/i960.c (i960_output_function_prologue): Likewise.
16631         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16632         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16633         (m32r_expand_prologue): Likewise.
16634         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16635         (m88k_expand_prologue): Likewise.
16636         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16637         * config/mips/mips.c (compute_frame_size): Likewise.
16638         (mips_expand_prologue): Likewise.
16639         (mips_can_use_return_insn): Likewise.
16640         * config/pa/elf.h (ASM_FILE_START): Likewise.
16641         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16642         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16643         * config/pa/som.h (ASM_FILE_START): Likewise.
16644         * config/romp/romp.c (romp_using_r14): Likewise.
16645         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16646         (rs6000_stack_info): Likewise.
16647         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16648         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16649         * config/v850/v850.c (compute_register_save_size): Likewise.
16650
16651 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
16652
16653         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16654         gen_lowpart_common fails, use gen_lowpart_SUBREG.
16655
16656 2002-01-03  Turly O'Connor  <turly@apple.com>
16657
16658         * darwin.c (machopic_output_possible_stub_label): Don't generate
16659         stub routines for pseudo-stubs which we've just defined.
16660
16661 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16662
16663         * builtins.c: Fix formatting.
16664         * c-typeck.c: Likewise.
16665         * combine.c: Likewise.
16666         * expr.c: Likewise.
16667         * loop.c: Likewise.
16668
16669 2002-01-03  Andreas Schwab  <schwab@suse.de>
16670
16671         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16672         and return true if _cpp_push_next_buffer pushed a new include
16673         file.
16674         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16675         _cpp_pop_file_buffer did not push a new file.
16676         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16677
16678 2002-01-02  Eric Christopher  <echristo@redhat.com>
16679
16680         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16681         FIND_REG_INC_NOTE call. Update copyright.
16682         * loop.c (canonicalize_condition): Ditto.
16683         * reorg.c (delete_scheduled_jump): Ditto.
16684
16685 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16686
16687         * gcse.c: Fix formatting.
16688
16689 2002-01-03  Graham Stott  <grahams@redhat.com>
16690
16691         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16692         forward defs for struct tags rtx_def, union_tree, rtvec_def
16693         also output corresponding typedefs for rtx, tree, and rtvec.
16694
16695         * system.h: Move forward defs for struct tags rtx_def, union_tree,
16696         rtvec_def along with corresponding typedefs for rtx, tree, and
16697         rtvec to config.h, hconfig.h, tconfig.h.
16698
16699 2002-01-03  Graham Stott  <grahams@redhat.com>
16700
16701         * tree.h: Update copyright date.
16702         (IS_EXPR_CODE_CLASS): Add parenthesis.
16703         (TREE_SET_CODE): Add whitespace.
16704         (TREE_CHECK): Add parenthesis.
16705         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16706         (CST_OR_CONSTRUCTOR_CHECK):
16707         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16708         (TREE_SYMBOL_REFERENCED): Whitespace.
16709         (INT_CST_LT): Likewise.
16710         (INT_CST_LT_UNSIGNED): Likewise.
16711         (tree_real_cst): Unwrap comment.
16712         (tree_string): Likewise.
16713         (tree_complex): Likewise.
16714         (IDENTIFIER_POINTER): correct cast.
16715         (SAVE_EXPR_CONTEXT): Whitespace.
16716         (EXPR_WFL_FILENAME_NODE): Likewise.
16717         (EXPR_WFL_FILENAME): Remove parenthesis.
16718         (DECL_ORIGIN): Add parenthesis.
16719         (DECL_FROM_INLINE): Use NULL_TREE.
16720         (build_int_2): Whitespace.
16721         (build_type_variant): Add parenthesis.
16722
16723         * gcc/jcf-parse.c: Update copyright date.
16724         (yyparse): Constify resource_filename.
16725
16726 2002-01-03  Graham Stott  <grahams@redhat.com>
16727
16728         * rtl.h: Update copyright date.
16729         (RTL_CHECK1): Wrap long line.
16730         (RTL_CHECK2): Likewise.
16731         (RTL_CHECKC1): Wrap long line and whitespace.
16732         (RTL_CHECKC2): Likewise.
16733         (XWINT): Whitespace.
16734         (XINT): Likewise.
16735         (XSTR): Likewise.
16736         (XEXP): Likewise.
16737         (XVEC): Likewise.
16738         (XMODE): Likewise.
16739         (XBITMAP): Likewise.
16740         (XTREE): Likewise.
16741         (XBBDEF): Likewise.
16742         (XTMPL): Likewise.
16743         (X0WINT): Likewise.
16744         (X0INT):Likewise.
16745         (X0UINT): Likewise.
16746         (X0STR): Likewise.
16747         (X0EXP): Likewise.
16748         (X0VEC): Likewise.
16749         (X0MODE): Likewise.
16750         (X0BITMAP): Likewise.
16751         (X0TREE): Likewise.
16752         (X0BBDEF): Likewise.
16753         (X0ADVFLAGS): Likewise.
16754         (X0CSELIB): Likewise.
16755         (X0MEMATTR): Likewise.
16756         (XCWINT): Likewise.
16757         (XCINT): Likewise.
16758         (XCUINT): Likewise.
16759         (XCSTR): Likewise.
16760         (XCEXP): Likewise.
16761         (XCVEC): Likewise.
16762         (XCMODE): Likewise.
16763         (XCBITMAP): Likewise.
16764         (XCTREE): Likewise.
16765         (XCBBDEF): Likewise.
16766         (XCADVFLAGS): Likewise.
16767         (XCCSELIB): Likewise.
16768         (XC2EXP): Likewise.
16769         (INSN_UID): Likewise.
16770         (PREV_INSN): Likewise.
16771         (PATTERN): Likewise.
16772         (INSN_CODE): Likewise.
16773         (PUT_REG_NOTE_KIND): Likewise.
16774         (CODE_LABEL_NUMBER): Likewise.
16775         (NOTE_SOURCE_FILE): Likewise.
16776         (NOTE_BLOCK): Likewise.
16777         (NOTE_EH_HANDLER): Likewise.
16778         (NOTE_RANGE_INFO): Likewise.
16779         (NOTE_LIVE_INFO): Likewise.
16780         (NOTE_BASIC_BLOCK): Likewise.
16781         (NOTE_EXPECTED_VALUE): Likewise.
16782         (NOTE_LINE_NUMBER): Likewise.
16783         (LABEL_NAME): Likewise.
16784         (LABEL_NUSES): Likewise.
16785         (LABEL_ALTERNATE_NAME): Likewise.
16786         (ADDRESSOF_DECL): Likewise.
16787         (JUMP_LABEL): Likewise.
16788         (LABEL_NEXTREF): Likewise.
16789         (REGNO): Likewise.
16790         (ORIGINAL_REGNO: Likewise.
16791         (HARD_REGISTER_NUM_P): Add parenthesis.
16792         (SUBREG_REG): Whitespace.
16793         (SUBREG_BYTE): Likewise.
16794         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16795         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16796         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16797         (ASM_OPERANDS_INPUT_VEC): Likewise.
16798         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16799         (ASM_OPERANDS_INPUT): Likewise.
16800         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16801         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16802         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16803         (ASM_OPERANDS_INPUT_MODE): Likewise.
16804         (ASM_OPERANDS_SOURCE_FILE): Likewise.
16805         (ASM_OPERANDS_SOURCE_LINE): Likewise.
16806         (MEM_SET_IN_STRUCT_P): Minor reformat.
16807         (TRAP_CONDITION): Whitespace.
16808         (TRAP_CODE): Likewise.
16809         (COND_EXEC_TEST): Likewise.
16810         (COND_EXEC_CODE): Likewise.
16811         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16812         (PHI_NODE_P): Add parenthesis.
16813         (plus_constant): Whitespace and add parenthesis.
16814
16815 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16816
16817         * config/avr/avr.c: Fix comment typos.
16818         * config/c4x/c4x.md: Likewise.
16819         * config/dsp16xx/dsp16xx.h: Likewise.
16820         * config/dsp16xx/dsp16xx.md: Likewise.
16821         * config/i386/i386.md: Likewise.
16822         * config/ia64/ia64.c: Likewise.
16823         * config/m32r/m32r.h: Likewise.
16824         * config/m68hc11/m68hc11.md: Likewise.
16825         * config/mmix/mmix.c: Likewise.
16826         * config/mn10200/mn10200.c: Likewise.
16827         * config/romp/romp.c: Likewise.
16828         * config/sh/sh.c: Likewise.
16829         * config/stormy16/stormy16.c: Likewise.
16830         * config/stormy16/stormy16.h: Likewise.
16831         * config/stormy16/stormy16.md: Likewise.
16832
16833 2002-01-03  Graham Stott  <grahams@redhat.com>
16834
16835         * loop.h: Update copyright date.
16836         (LOOP_MOVABLES): Fix typo.
16837         (LOOP_REGS): Likewise.
16838         (LOOP_IVS): Likewise.
16839
16840 2002-01-03  Graham Stott  <grahams@redhat.com>
16841
16842         * cppinit.c: Update copyright date.
16843         Don't include output.h
16844         * Makefile.in: Update copyright date.
16845         Update dependency.
16846
16847 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16848
16849         PR c/5226
16850         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16851         (-pthread) Add to RS/6000 options.
16852
16853 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16854
16855         * except.c: Fix comment typos.
16856         * loop.c: Likewise.
16857         * varasm.c: Likewise.
16858         * doc/tm.texi: Fix a typo.
16859
16860 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
16861
16862         * c-typeck.c (output_init_element): Allow initializing static storage
16863         duration objects with compound literals.
16864
16865 2002-01-02  Richard Henderson  <rth@redhat.com>
16866
16867         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16868         after abusing it.
16869
16870 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16871
16872         * gcc.c (default_compilers): Const-ify.
16873         * mips-tdump.c (stab_names): Likewise.
16874         * mips-tfile.c (map_coff_types, map_coff_storage,
16875         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16876         pseudo_ops_t, pseudo_ops): Likewise.
16877         * protoize.c (default_include): Likewise
16878
16879         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16880         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16881         Add array size in declaration.
16882         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16883         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16884         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16885         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16886         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16887         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16888         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16889         emtens, make_nan): Const-ify.
16890         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16891         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16892
16893 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
16894
16895         * config.gcc (ia64-*-*): Set extra_headers.
16896         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
16897         * config/alpha/t-osf: Remove.
16898         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16899
16900 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
16901
16902         * config/rs6000/t-aix43: Revert previous change.
16903
16904 2002-01-02  Jason Merrill  <jason@redhat.com>
16905
16906         * c-decl.c (c_expand_body): Call outlining_inline_function when
16907         emitting an inline function out of line.
16908
16909 2002-01-02  Richard Henderson  <rth@redhat.com>
16910
16911         * dwarf2out.c (limbo_die_node): Add created_for member.
16912         (new_die): New argument created_for.  Update all callers.
16913         (mark_limbo_die_list): New.
16914         (dwarf2out_init): Register limbo_die_list as a root.
16915         (dwarf2out_finish): Force insert limbo dies into their function
16916         context.
16917
16918 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
16919
16920         PR c++/5089
16921         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16922
16923 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16924
16925         * config/h8300/fixunssfsi.c: Update copyright.
16926         Fix comment typos.
16927         Fix formatting.
16928         * config/h8300/h8300.c: Update copyright.
16929         Eliminate warnings.
16930
16931 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16932
16933         * config/romp/romp.c: Fix comment formatting.
16934         * config/romp/romp.h: Likewise.
16935         * config/romp/romp.md: Likewise.
16936         * config/s390/s390.c: Likewise.
16937         * config/stormy16/stormy16.c: Likewise.
16938         * config/stormy16/stormy16.h: Likewise.
16939
16940 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
16941
16942         * c-common.h (genrtl_expr_stmt_value): Declare.
16943         * c-semantics.c (genrtl_goto_stmt): Redirect to...
16944         (genrtl_goto_stmt_value): ... this new function.  Pass new
16945         argument down to expand_expr_stmt_value, taking
16946         TREE_ADDRESSABLE into account.
16947         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16948         STMT_EXPR as addressable, i.e., one whose result we want.
16949         * expr.c (expand_expr): Don't save expression statement value
16950         of labeled_blocks or loop_exprs.
16951         * stmt.c (expand_expr_stmt): Redirect to...
16952         (expand_expr_stmt_value): ... this new function.  Use new
16953         argument to tell whether to save expression value.
16954         (expand_end_stmt_expr): Reset last_expr_type and
16955         last_expr_value if we don't have either.
16956         * tree-inline.c (declare_return_variable): Mark its use
16957         statement as addressable.
16958         * tree.h: Document new use of TREE_ADDRESSABLE.
16959         (expand_expr_stmt_value): Declare.
16960
16961 2002-01-01  Tom Rix  <trix@redhat.com>
16962
16963         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16964         rs6000_emit_allocate_stack.
16965
16966 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
16967
16968         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16969         ${srcdir}/ginclude/ to every entry in extra_headers.
16970         * configure: Regenerate.
16971         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
16972         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
16973         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
16974         * ginclude/proto.h: Rename to config/convex/proto.h.
16975
16976 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16977
16978         * attribs.c (handle_vector_size_attribute): Use host_integerp
16979         and tree_int_cst; remove warnings.
16980         * caller-save.c (insert_restore): Add cast to get rid of warning.
16981         (insert_save): Likewise.
16982         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
16983         * regmove.c (find_matches): Add temporary var to kill a warning.
16984
16985 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
16986
16987         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
16988         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
16989         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
16990         (vms-dwarf2eh.o): Add Makefile rule.
16991         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
16992         * config/alpha/vms-dwarf2eh.asm: New file.
16993
16994         * gcc.c (delete_if_ordinary): Delete all versions.
16995
16996 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
16997
16998         * config/mmix/mmix.md: Update FIXME to not mention
16999         define_constants.
17000         (MMIX_rJ_REGNUM): New define_constants constant.
17001         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17002         "*movdicc_real"): Adjust contraints formatting.
17003         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17004         for branch prediction.
17005         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17006         output template.
17007         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17008         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17009         number.  Delete related FIXMEs.
17010         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17011         from number to MMIX_rJ_REGNUM.
17012         (TARGET_MASK_BRANCH_PREDICT): New.
17013         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17014         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
17015         value.  Add -mbranch-predict and -mno-branch-predict.
17016         (TARGET_VERSION): Drop date.
17017         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17018         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17019         for finding out global symbols.
17020         (mmix_asm_output_labelref): Revert condition for global symbol.
17021         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17022         (mmix_print_operand_punct_valid_p): A '+' is valid.
17023
17024 See ChangeLog.6 for earlier changes.