OSDN Git Service

* gcc.c (cpp_unique_options): Remove "-d" options.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
2
3         * gcc.c (cpp_unique_options): Remove "-d" options.
4         (cpp_debug_options): New spec string.
5         (default_compilers): Use it.
6         * objc/lang-specs.h: Likewise.
7
8 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
9
10         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with 
11         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
12         * gcc/mklibgcc.in: Likewise.
13         * gcc/config/arc/t-arc: Likewise.
14         * gcc/configure.in: Likewise.
15         * gcc/configure: Regenerate.
16
17 2002-05-31  Stan Shebs  <shebs@apple.com>
18             Turly O'Connor  <turly@apple.com>
19
20         * c-decl.c (struct binding_level): Change int field n_incomplete
21         to tree list incomplete_list.
22         (clear_binding_level): Init field with NULL.
23         (pushdecl): Add incomplete type to list.
24         (mark_binding_level): Mark the incomplete list.
25         (finish_struct): Scan the incomplete list for types instead
26         of all decls in the current binding level.
27
28 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
29
30         * pa.c (output_millicode_call): Add missing '%' characters.
31         (output_call): Likewise.
32
33 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
34
35         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
36         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
37
38 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
39
40         * varasm.c (mark_constant_pool): Walk epilogue delay list
41         checking the insn, not the chain for potential constants.
42         
43 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
44
45         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
46
47 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
48
49         * i386.c (classify_argument): Properly handle base types.
50
51         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
52         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
53         registers.
54
55 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
56
57         * gcse.c (gcse_emit_move_after): New.
58         (pre_delete, hoist_store): Use it.
59
60         * reload1.c (emit_input_reload_insns): Use constrain_operands
61         instead of constraint_accepts_reg_p to verify optimization.
62         (constraint_accepts_reg_p): Kill
63
64         * reload1.c (reload_cse_delete_noop_set): Kill.
65         (reload_cse_simplify): use delte_insn_and_edges.
66
67 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
68
69         * cfgloop.c (flow_loops_find): Initialize first and last fields
70         correctly.
71
72 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
73
74         * c-common.c (builtin_define_std): Correct logic.
75
76 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
77
78         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
79         (output_call): Likewise.
80
81 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
82
83         * pa.c: Move output.h include after tree.h include.
84         (pa_asm_output_mi_thunk): Constify identifier lab.
85
86 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
87
88         * config/ns32k/ns32k.h: Define named constants for the
89         bits in target_flags and use them.
90         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
91
92 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
93
94         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
95         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
96         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
97         default scheduling model.
98         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
99         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
100         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
101         * doc/install.texi (hppa*-*-*): Document default scheduling.
102
103 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
104
105         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
106
107 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
108
109         * config.gcc (ns32k-*-netbsd*): Set tm_file to
110         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
111         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
112         netbsd.h, or netbsd-aout.h.
113
114 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
115
116         * longlong.h (count_trailing_zeros): Add missing \, and clean up
117         whitespace in __ns32000__ case.
118
119 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
120
121         * expr.c (expand_expr): Output partially zeroed out vectors with
122         output_constant_def.
123
124 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
125
126         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
127         (sh-*-netbsdelf*)
128         (shl*-*-netbsdelf*): New targets.
129         * config/sh/netbsd-elf.h: New file.
130
131 2002-05-30  Richard Henderson  <rth@redhat.com>
132             Eric Botcazou  <ebotcazou@multimania.com>
133
134         PR optimization/6822
135         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
136         to unsigned int for op1 comparisons.  Use gen_int_mode.
137
138 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
139
140         * expmed.c (const_mult_add_overflow_p): New.
141         * expr.h: Declare it.
142         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
143         Don't eliminate the biv if the giv has a constant multiplier and
144         the rhs argument of the comparison does satisfy the predicate.
145         Use expand_mult_add to compute the replacement constant.
146
147 2002-05-30  Osku Salerma  <osku@iki.fi>
148
149         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
150         (c_common_get_alias_set): Handle it.
151         * doc/extend.texi: Document it.
152
153 2002-05-30  Richard Henderson  <rth@redhat.com>
154
155         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
156         * toplev.c (process_options): Don't check it.
157         * doc/tm.texi: Don't document it.
158         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
159         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
160         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
161         frame pointer optimization if current_function_profile.
162
163 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
164
165         * langhooks.c: Fix formatting.
166         * langhooks.h: Likewise.
167         * lcm.c: Likewise.
168         * libgcc2.c: Likewise.
169         * lists.c: Likewise.
170         * local-alloc.c: Likewise.
171         * loop.c: Likewise.
172         * loop.h: Likewise.
173
174 2002-05-30  Marc Espie <espie@openbsd.org>
175
176         * config.gcc (sparc64-*-openbsd*): New.
177         * config/sparc/openbsd1-64.h: New.
178         * config/sparc/openbsd64.h: New.
179
180 2002-05-30  Jeff Law <law@redhat.com>
181
182         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
183         a dead insn with a REG_RETVAL note when the entire libcall is not
184         dead and remove the associated REG_LIBCALL note at the same time.
185
186 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
187
188         * lcm.c (output.h): #include.
189         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
190         as an ordinary block.
191         (optimize_mode_switching): Don't pretend that the exit block is
192         an ordinary block, or handle sucessors of entry block specially.
193         Instead, split edges from entry block and to exit block, and
194         put a computing definition on the thus gained post-entry-block,
195         and a need on the pre-exit-block.
196
197 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
198
199         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
200         * rtl.texi: Document 'B'
201
202 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
203
204         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
205         at run-time.
206         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
207
208 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
209
210         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
211         const0_rtx instead of NULL_RTX when in error.
212         (altivec_expand_abs_builtin): Same.
213         (rs6000_expand_binop_builtin): Same.
214         (altivec_expand_predicate_builtin): Same.
215         (altivec_expand_stv_builtin): Same.
216         (rs6000_expand_ternop_builtin): Same.
217         (altivec_expand_builtin): Same.
218
219 2002-05-29  David S. Miller  <davem@redhat.com>
220
221         * rtl.h (clear_emit_caches): Delete.
222         * integrate.c (output_inline_function): Don't call it.
223         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
224         (clear_emit_caches): Delete definition.
225         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
226
227 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
228
229         * config/mmix/mmix.c: Include real.h.
230         (mmix_constant_address_p): Remove redundant test before switch.
231
232 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
233
234         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
235         only if not already defined.
236
237 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
238
239         * config/h8300/h8300-protos.h: Remove prototypes for
240         ok_for_bclr and small_power_of_two.
241         * config/h8300/h8300.c (small_power_of_two): Remove.
242         (ok_for_blcr): Likewise.
243         (fix_bit_operand): Make WHAT deal with an integer instead of a
244         constraint character.
245         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
246         (CONST_OK_FOR_P): Likewise.
247         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
248         CONST_OK_FOR_P any more.
249         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
250         of fix_bit_operand.
251         (iorqi3): Likewise.
252         (xorqi3): Likewise.
253
254 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
255
256         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
257         (CPP_PREDEFINES): Make sure this is undefined.
258         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
259         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
260         or -U__MIPSEB__ before defining one or the other.  Instead,
261         use %(subtarget_endian_default) if neither -EB nor -EL are
262         specified.
263         (SUBTARGET_EXTRA_SPECS): Define.
264         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
265         %(netbsd_cpp_spec).
266
267 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
268
269         * doc/md.texi (Patterns): Note pattern condition pitfall
270         for unnamed insn.
271
272 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
273
274         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
275         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
276         ternary operations from here...
277         (rs6000_expand_builtin): ...to here.
278         New argument expandedp.
279         Change all instances of altivec_expand_binop_builtin to
280         rs6000_expand_binop_builtin.
281         (altivec_expand_unop_builtin): Rename to
282         rs6000_expand_unop_builtin.
283         (altivec_expand_binop_builtin): Rename to
284         rs6000_expand_binop_builtin.
285         (altivec_expand_ternop_builtin): Rename to
286         rs6000_expand_ternop_builtin.
287
288 2002-05-29  Richard Henderson  <rth@redhat.com>
289
290         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
291         (TARGET_BI_ARCH): Likewise.
292         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
293         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
294         (TARGET_64BIT_DEFAULT): Default to 0.
295         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
296
297 2002-05-29  Richard Henderson  <rth@redhat.com>
298
299         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
300         (get_pc_thunk_name): New.
301         (output_set_got): Use it.
302         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
303         into linkonce sections.
304
305 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
306
307         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
308         (CPP_PREDEFINES): Make sure this is undefined.
309         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
310         (CPP_SUBTARGET_SPEC): Don't provide different versions for
311         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
312         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
313         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
314         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
315         (CPP_PREDEFINES): Make sure this is undefined.
316         (SUBTARGET_EXTRA_SPECS): Define.
317         (CPP_SPEC): Use %(netbsd_cpp_spec).
318
319 2002-05-29  Jeff Law <law@redhat.com>
320
321         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
322
323         * flow.c (propagate_one_insn): Do not remove a dead insn if it
324         contains a REG_RETVAL note.
325
326         * haifa-sched (sched_analyze): Remove another useless clearing
327         of SCHED_GROUP_P I missed yesterday.
328
329         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
330         * pa.c (pa_asm_output_mi_thunk): New function.
331         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
332
333 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
334             Marek Michalkiewicz  <marekm@amelek.gda.pl>
335
336         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
337         (avr_asm_only_p): Make non-static.
338         (enum avr_arch): Remove.
339         (avr_arch_types): New.
340         (avr_mcu_types): Update.
341         (avr_override_options): Use avr_arch_types table instead of switch.
342         * avr.h (CPP_PREDEFINES): Die.
343         (avr_base_arch_macro, avr_extra_arch_macro): New.
344         (TARGET_CPU_CPP_BUILTINS): New.
345         (CPP_SPEC, EXTRA_SPECS): Simplify.
346         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
347         CPP_AVR5_SPEC): Die.
348
349 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
350
351         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
352         NETBSD_OS_CPP_BUILTINS_AOUT.
353         (SUBTARGET_EXTRA_SPECS): Define.
354         (CPP_SPEC): Use %(netbsd_cpp_spec).
355
356 2002-05-29  Richard Henderson  <rth@redhat.com>
357
358         * config/i386/i386.c (ix86_output_function_epilogue): New.
359         (TARGET_ASM_FUNCTION_EPILOGUE): New.
360         (pic_label_name): Remove.
361         (pic_labels_used): New.
362         (ix86_asm_file_end): Emit one pc load stub for each register used.
363         (output_set_got): Generate deep pc load to any register.
364         (ix86_select_alt_pic_regnum): New.
365         (ix86_save_reg): Don't save pic register if we can find a valid
366         call-clobbered replacement.
367         (ix86_expand_prologue): If we found a valid replacement, renumber
368         pic_offset_table_rtx.
369         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
370         pic_offset_table_rtx after reload.
371         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
372         * config/i386/i386.md (set_got): Make insn, not expander.
373         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
374
375 2002-05-29  Richard Henderson  <rth@redhat.com>
376
377         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
378         alignment for alloca.
379
380 2002-05-29  Richard Henderson  <rth@redhat.com>
381
382         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
383         (print_operand_address): Only add rip for symbolic addresses
384         for which we do not have another relocation type.
385
386 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
387
388         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
389         (EXTRA_SPECS): Add netbsd_cpp_spec.
390         (CPP_SPEC): Use %(netbsd_cpp_spec).
391         (CPP_PREDEFINES): Remove.
392         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
393         (EXTRA_SPECS): Define.
394         (CPP_SPEC): Use %(netbsd_cpp_spec).
395         (CPP_PREDEFINES): Remove.
396
397 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
398
399         PR preprocessor/6844
400         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
401         NUL.
402
403 2002-05-29  Eric Christopher  <echristo@redhat.com>
404
405         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
406         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
407
408 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
409
410         * config/fr30/fr30.md: Remove previous restriction on splits.
411         Enforce conformance through gen_lowpart and cont_int_operand.
412         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
413         as the assembler does not support ".bss".
414
415 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
416
417         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
418         (CPP_PREDEFINES): Remove.
419         (SUBTARGET_EXTRA_SPECS): Define.
420         (CPP_SPEC): Use %(netbsd_cpp_spec).
421         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
422         (CPP_PREDEFINES): Remove.
423         (SUBTARGET_EXTRA_SPECS): Define.
424         (CPP_SPEC): Use %(netbsd_cpp_spec).
425         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
426         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
427         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
428         Add netbsd_cpp_spec.
429         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
430
431 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
432             Zack Weinberg <zack@codesourcery.com>
433
434         * cppexp.c (cpp_num): Move to cpplib.h.
435         (CPP_ERROR): Remove.
436         (interpret_float_suffix, interpret_int_suffix): New.
437         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
438         (cpp_classify_number, cpp_interpret_integer): New.
439         (interpret_number): Remove.
440         (eval_token): Update to use new routines.
441         * cpphash.h (cpp_num_part): Move to cpplib.h.
442         * cppinit.c (cpp_post_options): Set warn_long_long.
443         * cpplib.h (struct cpp_options): Add warn_long_long.
444         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
445         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
446         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
447         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
448         cpp_interpret_integer): New.
449
450 2002-05-29  Joel Sherrill <joel@OARcorp.com>
451
452         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
453
454 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
455
456         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
457         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
458         (CPP_SUBTARGET_SPEC): Define.
459         (SUBTARGET_EXTRA_SPECS): Define.
460         (CPP_SPEC): Remove.
461
462 2002-05-29  Chris Lattner  <sabre@nondot.org>
463
464         * ssa.c (rename_insn_1): Rename uses of undefined registers to
465         prevent confusion if/when the register is defined.
466
467 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
468
469         PR target/6838
470         * config/cris/cris.md: Fix typos and thinkos in comments.
471         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
472         second alternative.
473         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
474         ("*mov_sideqi_mem"): Similar, but for operand 3.
475         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
476         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
477         Remove spurious mode specifier on operand 2.
478
479 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
480
481         * config/h8300/h8300-protos.h: Remove the prototype for
482         o_operand.
483         Add prototypes for single_one_operand and single_zero_operand.
484         * config/h8300/h8300.c (o_operand): Remove.
485         (single_one_operand): New.
486         (single_zero_operand): Likewise.
487         (print_operand): For 'V' operand, and the operand with 0xff.
488         For 'V' and 'W' operands, do not and the bit position with 7.
489         * config/h8300/h8300.md (various anonymous patterns): Replace
490         use of exact_log2 with single_one_operand/single_zero_operand.
491
492 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
493
494         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
495
496 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
497
498         * config/s390/s390.c (legitimate_pic_operand_p): Do not
499         accept symbolic LARL operands.
500         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
501         epilogue insns.
502
503 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
504
505         * config/s390/s390.md (cmpstr_64/31): Mark whole
506         input registers as used.
507
508 2002-05-28  Richard Henderson  <rth@redhat.com>
509
510         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
511         not current_function_uses_pic_offset_table and
512         current_function_uses_const_pool; examine current_function_profile.
513         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
514         input to blockage if needed.
515         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
516         (legitimize_pic_address): Likewise.  Set regs_ever_live for
517         pic_offset_table_rtx when invoked during reload.
518         * config/i386/i386.h (FINALIZE_PIC): Remove.
519         * config/i386/i386.md (tablejump): Reformat.  Do not set
520         current_function_uses_pic_offset_table.
521         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
522         (blockage): Accept anything as operand 0.
523
524 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
525
526         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
527         common CPP built-ins for all NetBSD a.out targets.
528         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
529         common CPP built-ins for all NetBSD ELF targets.
530         * config/netbsd.h: Add missing notice.
531         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
532         for all NetBSD targets.
533         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
534         for all NetBSD targets using an LP64 code model.
535         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
536         NetBSD targets.
537
538 2002-05-28  Richard Henderson  <rth@redhat.com>
539
540         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
541         update if UPDATE_LIFE_LOCAL.
542
543 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
544
545         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
546
547 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
548                           Jason R. Thorpe <thorpej@wasabisystems.com>
549
550         config/sh reorganization to factor out endianness and coff:
551
552         * config/sh/little.h: New file.
553         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
554         defined, define to 0 to select big-endian.
555         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
556         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
557         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
558         * config/sh/t-be: New file.
559         * config/sh/t-le: New file.
560
561         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
562         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
563         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
564         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
565         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
566         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
567         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
568         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
569         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
570         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
571         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
572         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
573         (LINK_SPEC): Define to SH_LINK_SPEC.
574         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
575         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
576         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
577         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
578         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
579         * config/sh/coff.h: New file.
580         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
581         (TARGET_OBJFMT_CPP_BUILTINS): Define.
582         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
583         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
584         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
585         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
586         (PTRDIFF_TYPE): Likewise.
587         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
588         (CPP_PREDEFINES): Don't define.
589         (TARGET_OBJFMT_CPP_BUILTINS): Define.
590         (LINK_SPEC): Define to SH_LINK_SPEC.
591         (LINK_EMUL_PREFIX): Redefine.
592         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
593         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
594         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
595         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
596         (TARGET_OS_CPP_BUILTINS): Define.
597         (TARGET_DEFAULT): Redefine.
598         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
599         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
600         (LINK_SPEC): Don't redefine.
601         (LINK_DEFAULT_CPU_EMUL): Redefine.
602         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
603         * sh.c (sh_asm_named_section): Don't declare / define.
604         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
605         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
606         (sh64-*-elf* tm_file): Likewise.
607         (sh-*-rtemself* tm_file): Likewise.
608         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
609         (sh-*-linux* tmake_file): Add sh/t-le.
610         (sh-*-rtems* tm_file): Add sh/coff.h
611         (sh-*-* tm_file): Likewise.
612
613 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
614
615         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
616         CONSTANT_POOL_ADDRESS_P.
617
618         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
619
620 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
621             Jeff Law <law@redhat.com>
622
623         * optabs.c (expand_binop): Fix nwords sign warnings.
624         generate pseudo for add_optab.
625
626         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
627         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
628
629 2002-05-28      Marc Espie <espie@openbsd.org>
630
631         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
632         inherited from gas.h.
633         (ASM_QUAD):  Undef.  OpenBSD does not support it.
634
635 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
636
637         * doc/install.texi (binaries): Change mingw binaries
638         link to www.mingw.org.
639
640 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
641
642         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
643
644 2002-05-28  Richard Henderson  <rth@redhat.com>
645
646         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
647         bottom alignment for leaf functions.
648
649 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
650
651         * config/pa/milli32.S, config/pa/lib1funcs.asm,
652         config/sparc/sol2-g1.asm: Delete unused files.
653
654 2002-05-28  Richard Henderson  <rth@redhat.com>
655
656         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
657
658         * flow.c (calculate_global_regs_live): Rename call_used to
659         invalidated_by_call.  Initialize from regs_invalidated_by_call
660         instead of call_used_regs.
661
662         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
663         DECL_EXTERNAL.
664
665 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
666
667         * tree.h: Don't include real.h.
668         Forward-declare struct realvaluetype.
669         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
670         contain it.
671         (TREE_REAL_CST_PTR): New accessor.
672         (TREE_REAL_CST): Update.
673         * real.h: Include machmode.h.
674         (realvaluetype): Make it struct realvaluetype, not a typedef.
675         (build_real): Prototype here.
676
677         * tree.c: Include real.h.
678         (build_real): Allocate the REAL_VALUE_TYPE as a separate
679         object in GC memory, set TREE_REAL_CST_PTR to point to it.
680         (build_real_from_int_cst): Use build_real.
681         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
682         REAL_CST.
683
684         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
685         fold-const.c, print-tree.c, real.c: Include real.h.
686         * Makefile.in: Update dependency lists.
687
688 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
689
690         * basic-block.h (last_basic_block): Declare.
691         (expunge_block_nocompact): Declaration removed.
692         (compact_blocks): Declare.
693         * cfg.c (last_basic_block): New variable.
694         (expunge_block_nocompact): Removed.
695         (expunge_block): Do not compact basic blocks.
696         (compact_blocks): New.
697         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
698         longer change.
699         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
700         last_basic_block.
701         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
702         real positions of blocks.
703         (delete_unreachable_blocks): Simplified -- quadratic behavior now
704         cannot occur.
705         (cleanup_cfg): Compact blocks.
706         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
707         basic_block_info varray.
708         (flow_delete_block): Comment update.
709         (back_edge_of_syntactic_loop_p): Modify position check code.
710         (verify_flow_info): Update checking.
711         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
712         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
713         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
714         indices no longer change.
715         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
716         last_basic_block.
717         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
718         * profile.c (branch_prob): Compact blocks.
719         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
720         last_basic_block.
721
722 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
723
724         * config/h8300/h8300.md (two anonymous patterns): New.
725
726 2002-05-28  David S. Miller  <davem@redhat.com>
727
728         * config/sparc/sparc.md (cpu): Tidy.
729         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
730         'trap'.
731         (in_call_delay): Delete reference to 'return' type.
732         (eligible_for_return_delay, in_return_delay, define_delay
733         referencing those): Delete.
734         (rest of file): Use new type attributes as appropriate.
735         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
736         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
737         * config/sparc/ultra1_2.md (us1_single): New reservation.
738         (us1_ialuX): Likewise.
739         * config/sparc/ultra3.md (us3_single): Likewise.
740         (us3_ialuX): Likewise.
741         (us3_imul, us3_idiv): Tweak.
742
743 2002-05-28  Richard Henderson  <rth@redhat.com>
744
745         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
746         STRING_CST.
747
748 2002-05-28  Richard Henderson  <rth@redhat.com>
749
750         * config.gcc: Obsolete mn10200.
751
752 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
753
754         * cppexp.c (interpret_number): Optimize for single-digit
755         and less-than-half-precision cases.
756         (num_trim, num_positive, num_div_op): Cast constants.
757
758 2002-05-27  Bo Thorsen  <bo@suse.de>
759
760         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
761         3.1 branch. The file was made by Jakub Jelinek.
762         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
763         support so multilib doesn't break. And don't define this at all
764         when -Dinhibit_libc is used.
765         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
766         * config/i386/t-linux64: Implement full multilib support. Patch
767         originally done by Andreas Jaeger and Jakub Jelinek.
768
769 2002-05-27  Roger Sayle  <roger@eyesopen.com>
770
771         * c-common.c: Add support for __attribute__((nothrow)) to specify
772         that a function cannot throw an exception (using TREE_NOTHROW).
773         (handle_nothrow_attribute): New function to process this attribute.
774
775         * doc/extend.texi: Document the new nothrow function attribute.
776
777 2002-05-27  H.J. Lu  (hjl@gnu.org)
778
779         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
780         (num_positive): Likewise.
781         (num_div_op): Likewise.
782
783 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
784
785         * c-common.c (c_common_init): Always use intmax_t.
786
787 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
788
789         * c-common.c (c_common_init): Use intmax_t for now.
790
791 2002-05-24  Andrew Haley  <aph@redhat.com>
792
793         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
794         if T is a boolean type.
795
796 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
797
798         * basic-block.h (last_basic_block): Defined as synonym for
799         n_basic_blocks.
800         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
801         flow_depth_first_order_compute, flow_preorder_transversal_compute,
802         flow_dfs_compute_reverse_init): Replaced relevant occurences of
803         n_basic_blocks with last_basic_block.
804         * cfgbuild.c (make_edges): Likewise.
805         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
806         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
807         * combine.c (combine_instructions): Likewise.
808         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
809         iterative_dataflow_bitmap): Likewise.
810         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
811         calc_idoms, idoms_to_doms): Likewise.
812         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
813         Likewise.
814         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
815         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
816         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
817         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
818         delete_null_pointer_checks, compute_code_hoist_vbeinout,
819         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
820         compute_store_table, build_store_vectors): Likewise.
821         * haifa-sched.c (sched_init): Likewise.
822         * ifcvt.c (if_convert): Likewise.
823         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
824         pre_edge_lcm, compute_available, compute_nearerout,
825         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
826         Likewise.
827         * predict.c (estimate_probability, process_note_prediction,
828         note_prediction_to_br_prob): Likewise.
829         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
830         * recog.c (split_all_insns, peephole2_optimize): Likewise.
831         * regrename.c (copyprop_hardreg_forward): Likewise.
832         * resource.c (init_resource_info): Likewise.
833         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
834         init_regions, schedule_insns): Likewise.
835         * ssa-ccp.c (ssa_const_prop): Likewise.
836         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
837         * ssa.c (compute_dominance_frontiers,
838         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
839
840         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
841         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
842         sizes consistently.
843
844 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
845
846         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
847         new.
848         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
849         hoist_insn_after, hoist_insn_to_edge): New.
850
851 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
852
853         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
854         (PROP_FINAL): Include.
855         * flow.c (life_analysis, update_life_info,
856         init_propagate_block_info, mark_set_1, mark_used_rgs):
857         Support SCAN_DEAD_STORE.
858
859 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
860
861         * c-common.c (c_common_init): Set CPP arithmetic precision.
862         * cppexp.c (cpp_num_part): Move typedef ...
863         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
864         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
865         (sanity_checks): Update.
866
867 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
868
869         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
870         (mkheaders): New rule.
871         (install-mkheaders): New rule.
872         * configure.in (all_outputs): Add mkheaders.
873         * configure: Regenerate.
874         * mkheaders.in: New file.
875
876 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
877
878         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
879
880 2002-05-26  Andreas Jaeger  <aj@suse.de>
881
882         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
883
884 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
885
886         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
887         right_shift): Remove.
888         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
889         HIGH_PART): New.
890         (struct op): Use cpp_num.
891         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
892         num_part_mul, num_unary_op, num_binary_op, num_negate,
893         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
894         num_div_op, num_lshift, num_rshift, append_digit): New.
895         (interpret_number, parse_defined, eval_token, reduce): Update
896         for two-integer arithmetic.
897         (binary_handler): New typedef.
898         (optab): Update.
899         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
900         (_cpp_parse_expr, reduce): Update to handle two-integers.
901         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
902
903 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
904
905         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
906         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
907         branch insn into account, do not assume 1.
908         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
909         over single word insn.  Handle upper half of I/O space too.
910         * config/avr/avr.md (*sbrx_branch): Use it.
911         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
912         (*sbix_branch, *sbix_branch_bit7): Likewise.
913         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
914         Use RTL peepholes to optimize register operand sign tests.
915
916 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
917
918         * config/avr/avr.c (avr_asm_only_p): New variable.
919         (avr_override_options): Set it here if AVR1.
920         (asm_file_start): Test it here, report an error if set.
921
922 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
923
924         * alias.c: Fix formatting.
925         * attribs.c: Likewise.
926         * bb-reorder.c: Likewise.
927         * bitmap.c: Likewise.
928         * bitmap.h: Likewise.
929         * builtins.c: Likewise.
930
931 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
932
933         * reload.c (find_valid_class): Accept new argument DEST,
934         choose class accordingly.
935         (push_reload): Update callers.
936
937 2002-05-26  Andreas Jaeger  <aj@suse.de>
938
939         * combine.c (combine_instructions): Do not indent #if for
940         traditional C.
941
942 2002-05-25  Richard Henderson  <rth@redhat.com>
943
944         * c-pragma.c (apply_pragma_weak): Convert value identifier to
945         string for decl_attributes.
946         (handle_pragma_weak): Call assemble_alias if we're modifying
947         an existing decl.
948
949 2002-05-25  Richard Henderson  <rth@redhat.com>
950
951         PR target/6788
952         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
953         using rtl instead of fprintf.
954         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
955         * config/sparc/sparc-protos.h: Update.
956
957 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
958
959         * Makefile.in (C_COMMON_H): Fix.
960         Update other targets.
961         * c-common.c: Don't include c-lex.h.
962         (builtin_define_with_value): Make static and prototype.
963         (builtin_define_std): Move from c-lex.h.
964         * c-common.h (init_c_lex): Move from c-lex.h.
965         * c-decl.c: Don't include c-lex.h.
966         (make_pointer_declarator): Move from c-parse.in.
967         * c-lex.c: Don't include c-lex.h.
968         * c-lex.h: Remove.
969         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
970         (make_pointer_declarator): Move to c-decl.c.
971         * c-pragma.c: Don't include c-lex.h.
972         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
973         * c-tree.h (make_pointer_declarator): New.
974 doc:
975         * passes.texi, tm.texi: Update.
976 objc:
977         * Make-lang.in: Update and correct.
978         * objc-act.c: Don't include c-lex.h or cpplib.h.
979 treelang:
980         * treetree.c: Don't include c-lex.h.
981 config:
982         * darwin-c.c: Don't include c-lex.h.
983         * c4x/c4x-c.c: Don't include c-lex.h.
984         * c4x/t-c4x: Update.
985         * i370/i370-c.c: Don't include c-lex.h.
986         * i370/t-i370: Update.
987         * i960/i960-c.c: Don't include c-lex.h.
988         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
989         * i960/t-960bare: Update.
990         * i960/t-vxworks: Update.
991         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
992         * rs6000/t-darwin: Update.
993         * rs6000/t-rs6000-c-rule: Update.
994         * v850/v850-c.c: Don't include c-lex.h.
995         * v850/v850.c: Don't include c-lex.h or cpplib.h.
996
997
998 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
999
1000         * tree.def: Fix typos.
1001         * doc/install.texi: Likewise.
1002
1003 2002-05-25  Richard Henderson  <rth@redhat.com>
1004
1005         * configure.in (HAVE_AS_TLS): Add ia64 test.
1006         * configure: Rebuild.
1007         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1008         (override_options): Set it.
1009         (TARGET_HAVE_TLS): New.
1010         (sdata_symbolic_operand): Look for 's'.
1011         (tls_symbolic_operand): New.
1012         (ia64_expand_load_address): Abort for tls symbols.
1013         (gen_tls_get_addr): New.
1014         (gen_thread_pointer): New.
1015         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
1016         (rtx_needs_barrier): Add new unspecs.
1017         (ia64_encode_section_info): Handle tls symbols.
1018         (ia64_strip_name_encoding): Strip two encoding chars.
1019         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1020         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1021         (TARGET_OPTIONS): Add tls-size.
1022         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1023         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1024         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1025         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1026         (movsf, movdf): Likewise.
1027         (movdi_symbolic): Use match_scratch.  Don't split if we won't
1028         have a scratch availiable.
1029         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1030         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1031         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1032         * config/ia64/ia64-protos.h: Update.
1033         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1034         sdata_symbolic_operand.
1035         (ASM_OUTPUT_LABELREF): Strip two characters.
1036
1037 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1038
1039         * combine.c (simplify_set): Remove an unnecessary subreg.
1040
1041 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1042
1043         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1044
1045         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1046
1047 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1048
1049         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
1050
1051 2002-05-25  Roger Sayle  <roger@eyesopen.com>
1052
1053         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1054         (cond (compare x y) 0) into the equivalent (cond x y).
1055
1056 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1057
1058         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
1059
1060 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
1061
1062         * config.gcc: Remove all stanzas for previously obsoleted
1063         systems.  Where necessary, add explicit error stanzas to
1064         prevent removed systems from being misidentified as something
1065         else.  Begin a fresh obsoletions list, with the systems that
1066         were reprieved last round.
1067         * doc/install.texi: Remove all mention of dead targets.
1068         * fixinc/mkfixinc.sh: Likewise.
1069
1070         * config/arm/arm.h: Bit 31 of target_flags is no longer
1071         reserved.
1072
1073         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1074         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1075         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1076         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1077         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1078         config/alpha/osf12.h, config/alpha/osf2or3.h,
1079         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1080         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1081         config/clipper/clipper-protos.h, config/clipper/clipper.c,
1082         config/clipper/clipper.h, config/clipper/clipper.md,
1083         config/clipper/clix.h, config/convex/convex-protos.h,
1084         config/convex/convex.c, config/convex/convex.h,
1085         config/convex/convex.md, config/convex/fixinc.convex,
1086         config/convex/proto.h, config/elxsi/elxsi-protos.h,
1087         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1088         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1089         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1090         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1091         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1092         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1093         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1094         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1095         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1096         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1097         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1098         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1099         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1100         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1101         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1102         config/m68k/altos3068.h, config/m68k/apollo68.h,
1103         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1104         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1105         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1106         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1107         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1108         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1109         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1110         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1111         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1112         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1113         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1114         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1115         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1116         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1117         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1118         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1119         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1120         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1121         config/mips/dec-osf1.h, config/mips/elflorion.h,
1122         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1123         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1124         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1125         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1126         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1127         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1128         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1129         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1130         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1131         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1132         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1133         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1134         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1135         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1136         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1137         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1138         Delete file.
1139
1140 2002-05-24  Richard Henderson  <rth@redhat.com>
1141
1142         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1143         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1144         * config/i386/i386.c (tls_model_chars): Add leading space.
1145         (tls_symbolic_operand): Don't bias by 1.
1146         (legitimize_address): Don't unbias by 1.
1147
1148 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1149
1150         * lcm.c (optimize_mode_switching): Change bb used as indices
1151         to bb->index.
1152
1153 2002-05-24  Richard Henderson  <rth@redhat.com>
1154
1155         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1156         of update_life_info_in_dirty_blocks.
1157
1158 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1159
1160         PR other/6782
1161         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1162
1163 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1164
1165         PR preprocessor/6780
1166         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1167
1168 2002-05-24  Jim Blandy  <jimb@redhat.com>
1169
1170         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1171         entry with a type code of zero, marking the end of the compilation
1172         unit's macro info.
1173
1174 2002-05-24  Richard Henderson  <rth@redhat.com>
1175
1176         * varasm.c (asm_output_bss): Always output one byte.
1177         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1178
1179 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1180
1181         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1182         namespace.
1183
1184 2002-05-24  Andreas Jaeger  <aj@suse.de>
1185
1186         * ggc-page.c (alloc_page): Cast variables of type size_t to
1187         unsigned long, adjust printf format string.
1188         (ggc_alloc): Likewise.
1189         (ggc_print_statistics): Likewise.
1190         (ggc_print_statistics): Correct printf format string for SCALE to
1191         use unsigned long.
1192
1193 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1194
1195         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1196
1197 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1198             Zack Weinberg     <zack@codesourcery.com>
1199
1200         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1201         quoted strings.
1202         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1203         directive in assembly file.
1204         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1205         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1206         * config/pj/pj.h (ASM_FILE_START): Likewise.
1207         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1208         * config/avr/avr.c (asm_file_end): Likewise.
1209         * toplev.c (output_quoted_string): Handle possibly signed plain
1210         char.
1211         * toplev.h (output_clean_symbol_name): Declare
1212         * toplev.c (output_clean_symbol_name): Define.
1213         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1214         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1215
1216 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1217
1218         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1219
1220 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1221
1222         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1223         of size of unsigned.
1224
1225 2002-05-23  Richard Henderson  <rth@redhat.com>
1226
1227         * configure.in (HAVE_AS_TLS): New test.
1228         * config.in, configure: Rebuild.
1229         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1230         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1231         (override_options): Set it.
1232         (tls_model_chars, tls_symbolic_operand): New.
1233         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1234         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1235         (local_exec_symbolic_operand): New.
1236         (get_pic_label_name): Merge into output_set_got.
1237         (ix86_asm_file_end): Emit pic_label_name if defined.
1238         (legitimate_constant_p, constant_address_p): New.
1239         (legitimate_pic_operand_p): New.
1240         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1241         (legitimate_address_p): Likewise.
1242         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1243         (ix86_strip_name_encoding): New.
1244         (get_thread_pointer): New.
1245         (legitimize_address): Handle tls symbols.
1246         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1247         Remove UNSPEC_PLT.
1248         (struct machine_function): Add some_ld_name.
1249         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1250         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1251         (output_addr_const_extra): New.
1252         (maybe_get_pool_constant): New.
1253         (ix86_split_to_parts): Use it.
1254         (ix86_expand_move): Handle tls symbols.
1255         (ix86_tls_get_addr): New.
1256         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1257         (TARGET_OPTIONS): Add tls-dialect.
1258         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1259         (LEGITIMATE_CONSTANT_P): Likewise.
1260         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1261         (TARGET_STRIP_NAME_ENCODING): New.
1262         (ASM_OUTPUT_LABELREF): New.
1263         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1264         (OUTPUT_ADDR_CONST_EXTRA): New.
1265         (PREDICATE_CODES): Update.
1266         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1267         * config/i386/i386.md: Regroup and renumber unspec constants.
1268         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1269         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1270         (tls_global_dynamic, tls_local_dynamic_base): New.
1271         (tls_local_dynamic_once): New.
1272         * config/i386/i386-protos.h: Update.
1273
1274 2002-05-23  Richard Henderson  <rth@redhat.com>
1275
1276         * genemit.c (gen_insn): Print file:lineno comment before function.
1277         (main): likewise.
1278         * gensupport.c (struct queue_elem): Add filename member.
1279         (queue_pattern): Initialize it; update all callers.
1280         (process_include): Don't free filename.
1281         (read_md_rtx): Set read_rtx_filename.
1282
1283 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1284
1285         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1286
1287 2002-05-23  Richard Henderson  <rth@redhat.com>
1288
1289         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1290
1291 2002-05-23  Richard Henderson  <rth@redhat.com>
1292
1293         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1294         commentary from Mark.
1295
1296 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1297
1298         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1299         Use FOR_EACH_BB macros to iterate over basic block chain.
1300         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1301         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1302         Likewise.
1303         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1304         find_unreachable_blocks, create_edge_list, verify_edge_list,
1305         remove_fake_edges, add_noreturn_fake_exit_edges,
1306         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1307         Likewise.
1308         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1309         find_sub_basic_blocks): Likewise.
1310         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1311         Likewise.
1312         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1313         Likewise.
1314         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1315         Likewise.
1316         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1317         commit_edge_insertions, commit_edge_insertions_watch_calls,
1318         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1319         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1320         * conflict.c (conflict_graph_compute): Likewise.
1321         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1322         df_modified_p, df_refs_unlink, df_dump): Likewise.
1323         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1324         * final.c (compute_alignments): Likewise.
1325         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1326         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1327         count_or_remove_death_notes): Likewise.
1328         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1329         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1330         classic_gcse, compute_transp, cprop, compute_pre_data,
1331         compute_transpout, invalidate_nonnull_info,
1332         delete_null_pointer_checks_1, delete_null_pointer_checks,
1333         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1334         compute_store_table, build_store_vectors, store_motion): Likewise.
1335         * global.c (global_conflicts, mark_elimination): Likewise.
1336         * graph.c (print_rtl_graph_with_bb): Likewise.
1337         * haifa-sched.c (sched_init): Likewise.
1338         * ifcvt.c (if_convert): Likewise.
1339         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1340         compute_available, compute_nearerout, compute_rev_insert_delete,
1341         optimize_mode_switching): Likewise.
1342         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1343         * predict.c (estimate_probability, note_prediction_to_br_prob,
1344         propagate_freq, counts_to_freqs, expensive_function_p,
1345         estimate_bb_frequencies): Likewise.
1346         * profile.c (instrument_edges, get_exec_counts,
1347         compute_branch_probabilities, compute_checksum, branch_prob,
1348         find_spanning_tree): Likewise.
1349         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1350         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1351         Likewise.
1352         * regclass.c (scan_one_insn, regclass): Likewise.
1353         * regmove.c (mark_flags_life_zones, regmove_optimize,
1354         record_stack_memrefs): Likewise.
1355         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1356         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1357         * resource.c (find_basic_block): Likewise.
1358         * sched-ebb.c (schedule_ebbs): Likewise.
1359         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1360         find_single_block_region, find_rgns, schedule_insns)
1361         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1362         * ssa-ccp.c (optimize_unexecutable_edges,
1363         ssa_ccp_df_delete_unreachable_insns): Likewise.
1364         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1365         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1366         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1367         compute_coalesced_reg_partition, rename_equivalent_regs,
1368         convert_from_ssa): Likewise.
1369         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1370         process_for_unwind_directive): Likewise.
1371
1372         * df.c (FOR_ALL_BBS): Removed.
1373         * gcse.c (struct null_pointer_info): Type of current_block field
1374         changed.
1375         (struct reg_avail_info): Type of last_bb field changed.
1376         * config/ia64/ia64.c (block_num): Removed.
1377         (need_copy_state): Type changed.
1378         (last_block): New.
1379
1380 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1381
1382         * cppinit.c (mark_named_operators): Split out from init_builtins.
1383         (cpp_finish_options): Call it from here instead.
1384
1385 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1386
1387         * builtin-attrs.def: Update copyright years.
1388         (ATTR_NONNULL): New attribute identifier.
1389         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1390         attribute tree lists.
1391         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1392         format operand.
1393         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1394         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1395         attribute lists.  Chain the appropriate nonnull attribute.
1396         * c-format.c (check_format_arg): Remove null format string
1397         warning.
1398         * testsuite/gcc.dg/format/null-1.c: New test.
1399
1400 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1401
1402         * Makefile.in (ADAC): Define.
1403         (SYSLIBS): Define.
1404         (.SUFFIXES): Move before language makefile fragments.
1405         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1406
1407 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1408
1409         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1410         placed in common.
1411
1412 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1413
1414         * cfg.c (dump_flow_info): Print results of
1415         maybe_hot/probably_never_executed predicates.
1416         * toplev.c (open_dump_file): Print function frequency.
1417
1418 2002-05-23  David S. Miller  <davem@redhat.com>
1419
1420         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1421         regsets.
1422
1423 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1424
1425         * c-common.c (warn_nonnull): Declare.
1426         (c_common_attribute_table): Add "nonnull" attribute.
1427         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1428         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1429         check_function_arguments_recurse): New functions.
1430         * c-common.h (warn_nonnull): Declare extern.
1431         (check_function_arguments, check_function_arguments_recurse): New
1432         prototypes.
1433         * c-decl.c (c_decode_option): Add -Wnonnull option.
1434         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1435         format checking.
1436         (format_check_context): New structure.
1437         (check_format_info_recurse): Remove recursion and rename to...
1438         (check_format_arg): ...this.  Update comment.
1439         (check_format_info): Use check_function_arguments_recurse.
1440         * c-typeck.c (build_function_call): Call check_function_arguments
1441         instead of check_function_format.
1442         * doc/extend.texi: Document "nonnull" attribute.
1443         * doc/invoke.texi: Docuemnt -Wnonnull option.
1444         * testsuite/gcc.dg/nonnull-1.c: New test.
1445         * testsuite/gcc.dg/nonnull-2.c: New test.
1446
1447 2002-05-23  David S. Miller  <davem@redhat.com>
1448
1449         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1450         * cfgcleanup.c (cleanup_cfg): If it is set do not
1451         attempt to delete trivially dead insns.
1452         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1453         * toplev.c (rest_of_compilation): Document non-trivial aspect
1454         the RTL before optimize_save_area_alloca is run.
1455
1456 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1457
1458         * c-lex.c (indent_level): Remove.
1459         (cb_file_change, c_lex): Remove indent level handling.
1460         * c-lex.h (indent_level): Remove.
1461         * input.h (struct file_stack): Remove indent_level.
1462         * toplev.c (push_srcloc): Remove indent_level handling.
1463
1464 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1465
1466         PR target/6753
1467         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1468         of x in constraints for clarity.
1469         (sse_mov?fcc split): abort if op2 == op3.
1470         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1471         sse_movsfcc_const0_4): Add earlyclobber.
1472         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1473         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1474         Use Y instead of x in constraints.
1475
1476 2002-05-23  Richard Henderson  <rth@redhat.com>
1477
1478         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1479         (C++98 Thread-Local Edits): New subsection.
1480
1481         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1482         (ix86_arch): Set type to enum processor_type.
1483
1484         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1485         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1486
1487 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1488
1489         * configure.in: Fix as version test for binutils 2.12.1 releases
1490         (without dates).
1491         * configure: Rebuilt.
1492
1493 2002-05-23  Richard Henderson  <rth@redhat.com>
1494
1495         * config/i386/i386.c (get_pic_label_name): New.
1496         (load_pic_register): Remove.
1497         (output_set_got): New.
1498         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1499         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1500         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1501         (prologue_set_got, prologue_get_pc): Remove.
1502         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1503         (builtin_setjmp_receiver): Use gen_set_got.
1504         * config/i386/i386-protos.h: Update.
1505
1506 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1507
1508         * gcse.c (hash_expr): Do not use alias set for hashing.
1509
1510 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1511
1512         * dbxout.c (dbxout_class_name_qualifiers): New function.
1513         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1514
1515 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1516
1517         * cpperror.c (_cpp_begin_message): No special casing
1518         of CPP_FATAL_LIMIT.
1519         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1520         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1521         * cpplib.c (do_include_common): Use DL_ERROR.
1522         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1523         (DL_ICE): Renumber.
1524         * fix-header.c (read_scan_file): Update.
1525
1526 2002-05-22  Richard Henderson  <rth@redhat.com>
1527
1528         * config/i386/i386.c (ix86_expand_call): New function, extracted
1529         from md call patterns.  Add pic_offset_table_rtx to
1530         CALL_INSN_FUNCTION_USAGE when needed.
1531         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1532         (call_value_pop, call_value, untyped_call): Likewise.
1533         (call_exp, call_value_exp): Remove.
1534         * config/i386/i386-protos.h: Update.
1535
1536 2002-05-22  Richard Henderson  <rth@redhat.com>
1537
1538         * varasm.c (default_section_type_flags): Check for VAR_DECL
1539         before using DECL_THREAD_LOCAL.
1540
1541 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1542
1543         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1544         (STARTFILE_SPEC): Delete PE crt0.o.
1545         * config/rs6000/aix51.h: Same.
1546         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1547         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1548         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1549         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1550         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1551
1552 2002-05-22  Richard Henderson  <rth@redhat.com>
1553
1554         * varasm.c (default_section_type_flags): Handle tls data and
1555         default sections.
1556         (default_unique_section): Handle tls sections.
1557
1558 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1559
1560         * configure.in (CROSS): Define NATIVE_CROSS.
1561         * configure: Regenerate.
1562         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1563         (startfile_prefix_spec): New var.
1564         (static_specs): Add startfile_prefix_spec.
1565         (do_spec_2): Split out from..
1566         (do_spec): ..here.
1567         (main): Process startfile_prefix_spec.
1568         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1569         dynamic linker.
1570         (STARTFILE_PREFIX_SPEC): Define.
1571         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1572         absolute paths.
1573
1574 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1575
1576         * cpperror.c: Fix formatting.
1577         * cppexp.c: Likewise.
1578         * cppfiles.c: Likewise.
1579         * cpphash.c: Likewise.
1580         * cpphash.h: Likewise.
1581         * cppinit.c: Likewise.
1582         * cpplex.c: Likewise.
1583         * cpplib.c: Likewise.
1584         * cppmacro.c: Likewise.
1585         * cppmain.c: Likewise.
1586         * cppspec.c: Likewise.
1587
1588 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1589
1590         * combine.c (force_to_mode): Use gen_int_mode.
1591         Don't clear CONST_INT bits outside of mode.
1592
1593 2002-05-22  Richard Henderson  <rth@redhat.com>
1594
1595         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1596         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1597
1598 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1599
1600         PR c/6643
1601         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1602         if DECL_SIZE_UNIT is INTEGER_CST.
1603
1604 2002-05-22  Richard Henderson  <rth@redhat.com>
1605
1606         * flow.c (life_analysis): Delete broken reg_label check.
1607
1608 2002-05-22  Richard Henderson  <rth@redhat.com>
1609
1610         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1611         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1612
1613 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1614
1615         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1616         (embed-bb.c): New rule.
1617         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1618         * config/sh/embed_bb.c: Delete.
1619
1620 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1621
1622         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1623
1624 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1625
1626         * config/h8300/h8300.md (*andorqi3): New.
1627
1628 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1629
1630         PR preprocessor/6517
1631         * Makefile.in: Update.
1632         * c-common.c (c_common_post_options): Add preprocessor
1633         errors to the error count.
1634         * c-lang.c (c_post_options): Kill.
1635         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1636         * hooks.h: Add header guards.
1637         * langhooks-def.h: Include hooks.h.
1638         (LANG_HOOKS_POST_OPTIONS): Update.
1639         * langhooks.h (struct lang_hooks): Update post_options.
1640         * toplev.c (parse_options_and_default_flags): Update.
1641 objc:
1642         * objc-lang.c (objc_post_options): Kill.
1643         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1644
1645 2002-05-21  Bruce Korb  <bkorb@gnu.org>
1646
1647         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1648         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1649         * fixinc/fixincl.x: regen.
1650
1651 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
1652
1653         * cfgbuild.c: Fix formatting.
1654         * cfg.c: Likewise.
1655         * cfgcleanup.c: Likewise.
1656         * cfglayout.c: Likewise.
1657         * cfgloop.c: Likewise.
1658         * cfgrtl.c: Likewise.
1659
1660 2002-05-21  Richard Henderson  <rth@redhat.com>
1661
1662         * c-common.h (enum rid): Add RID_THREAD.
1663         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1664         (grokdeclarator): Grok __thread.
1665         * c-parse.in (reswords): Add __thread.
1666         (rid_to_yy): Add RID_THREAD.
1667
1668         * tree.h (DECL_THREAD_LOCAL): New.
1669         (struct tree_decl): Add thread_local_flag.
1670         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1671         * tree.c (staticp): TLS variables are not static.
1672
1673         * target-def.h (TARGET_HAVE_TLS): New.
1674         * target.h (have_tls): New.
1675         * output.h (SECTION_TLS): New.
1676         * varasm.c (assemble_variable): TLS variables can't be common for now.
1677         (default_section_type_flags): Handle .tdata and .tbss.
1678         (default_elf_asm_named_section): Handle SECTION_TLS.
1679         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1680
1681         * flags.h (flag_tls_default): Declare.
1682         * toplev.c (flag_tls_default): Define.
1683         (display_help): Display help for it.
1684         (decode_f_option): Set it.
1685
1686         * doc/extend.texi (Thread-Local): New node describing language-level
1687         thread-local storage.
1688         * doc/invoke.texi (-ftls-model): Document.
1689
1690         * fixinc/inclhack.def (thread_keyword): New.
1691         * fixinc/fixincl.x: Rebuild.
1692
1693 2002-05-21  Jeffrey A Law  <law@redhat.com>
1694
1695         * optabs.c (expand_binop): For double-word integer multiplies,
1696         do not compute intermediate results into something that is
1697         not a register (such as a SUBREG or MEM).
1698
1699         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1700         (ix86_sched_reorder): Make sure to initialize scheduling
1701         data even when there's only one insn in the ready queue.
1702
1703 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1704
1705         * genautomata.c (reserv_sets_hash_value): Fix a typo.
1706
1707 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1708
1709         * genautomata.c (reserv_sets_hash_value): Define hash_value as
1710         set_el_t.  Transform the hash value into unsigned.
1711         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1712         (transform_3): Add code to process `(A,B)+(D,E)'.
1713
1714 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
1715
1716         * reload1.c (do_output_reload): Run delete_output_reload
1717         only if optimizing.
1718
1719 2002-05-21  Roger Sayle  <roger@eyesopen.com>
1720
1721         PR middle-end/6600
1722         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1723         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
1724         (can_store_by_pieces): ... and here to limit the largest mode used.
1725         Add a comment to document this function.
1726
1727 2002-05-21  Richard Henderson  <rth@redhat.com>
1728
1729         * flow.c (life_analysis): Fix test for deleted label.
1730
1731 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1732
1733         * doc/tm.texi: Fix typo.
1734
1735 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
1736
1737         * c-common.c (c_common_init): Set options->unsigned_char from
1738         flag_signed_char.
1739         (cb_register_builtins): Define __STRICT_ANSI__ and
1740         __CHAR_UNSIGNED__ here...
1741         * cppinit.c (init_builtins): Not here.
1742         (cpp_create_reader): unsigned_char option defaults to 0, not
1743         !DEFAULT_SIGNED_CHAR.
1744         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1745         and -funsigned-char.
1746
1747         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1748         * cpphash.c (_cpp_init_hashtable): Don't set it.
1749         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1750         directly.  Clarify comment.
1751
1752 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1753
1754         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1755         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
1756         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
1757         BASIC_BLOCK (n_basic_blocks - 1).
1758         * cfganal.c (can_fallthru, flow_call_edges_add,
1759         flow_preorder_transversal_compute): Too.
1760         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1761         find_sub_basic_blocks): Too.
1762         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1763         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1764         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1765         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1766         * combine.c (this_basic_block): Type changed to basic_block.
1767         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1768         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1769         get_last_value, distribute_notes, distribute_links): Too.
1770         * final.c (compute_alignments): Too.
1771         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1772         * function.c (thread_prologue_and_epilogue_insns): Too.
1773         * gcse.c (compute_code_hoist_vbeinout): Too.
1774         * global.c (build_insn_chain): Too.
1775         * ifcvt.c (find_if_block, find_cond_trap): Too.
1776         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1777         * regmove.c (regmove_optimize): Too.
1778         * resource.c (find_basic_block): Too.
1779         * sched-ebb.c (schedule_ebbs): Too.
1780         * ssa-dce.c (find_control_dependence, find_pdom): Too.
1781
1782 2002-05-21  Andreas Jaeger  <aj@suse.de>
1783
1784         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1785
1786 2002-05-21  Richard Henderson  <rth@redhat.com>
1787
1788         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1789         unspec names, not numbers.
1790
1791 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
1792
1793         * doc/sourcebuild.texi: Mention snapshot-README and
1794         snapshot-index.html as needing updating for new front ends.
1795
1796 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1797
1798         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1799         disabling checking, and avoid multiple evaluation of RTX.
1800
1801 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
1802
1803         * bitmap.c (bitmap_find_bit): Return early if we have the correct
1804         element cached.
1805
1806 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
1807
1808         * profile.c (gen_edge_profiler):  Set alias set before the memory is
1809         used.
1810
1811 2002-05-20  David S. Miller  <davem@redhat.com>
1812
1813         * cselib.c (max_value_regs): New.
1814         (cselib_lookup, cselib_invalidate_regno): Initialize it when
1815         adding new entries to the REG_VALUES table and we are dealing with
1816         a hard register.
1817         (clear_table): Initialize it.
1818         (cselib_invalidate_regno): Use it to determine which hard
1819         registers to scan when mode is not VOIDmode.
1820
1821 2002-05-20  Duraid Madina   <duraid@fl.net.au>
1822
1823         * tradcpp.c (fixup_newlines): Use old-style function header.
1824
1825 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
1826
1827         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1828
1829 2002-05-20  H.J. Lu  (hjl@gnu.org)
1830
1831         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1832
1833         * config/mips/mips.h (DFMODE_NAN): Defined.
1834         (SFMODE_NAN): Likewise.
1835
1836 2002-05-20  Dale Johannesen  <dalej@apple.com>
1837
1838         * combine.c (cant_combine_insn_p):  Back out my
1839         previous patch.
1840
1841 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
1842
1843         * params.c: Fix formatting.
1844         * params.h: Likewise.
1845         * predict.c: Likewise.
1846         * prefix.c: Likewise.
1847         * print-rtl.c: Likewise.
1848         * print-tree.c: Likewise.
1849         * profile.c: Likewise.
1850
1851 2002-05-20  H.J. Lu  (hjl@gnu.org)
1852
1853         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1854
1855 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
1856
1857         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1858         switches straight on to the assembler, do not abbreviate them.
1859         * config/arm/elf.h (ASM_SPEC): As above.
1860         * config/arm/semi.h (ASM_SPEC): As above.
1861         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1862         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1863         -mcpu=xscale on to the assembler by default.
1864         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1865
1866 2002-05-20  Richard Henderson  <rth@redhat.com>
1867
1868         * cse.c (canon_hash): Reorder do_not_record test.  Always
1869         allow pic_offset_table_rtx.
1870
1871 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
1872
1873         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1874         (expand_binop): Ditto (3 times).
1875
1876 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
1877
1878         * Makefile.in (distclean): Remove QMTest stuff.
1879         (QMTEST_PATH): New variable.
1880         (QMTESTFLAGS): Likewise.
1881         (QMTESTRUNFLAGS): Likewise.
1882         (QMTEST): Likewise.
1883         (QMTEST_GPP_TESTS): Likewise.
1884         (QMTEST_DIR): Likewise.
1885         (QMTEST_DIR/context): New target.
1886         (qmtest-g++): Likeise.
1887         (qmtest-gui): Likewise.
1888         (QMTEST_DIR/gpp-expected.qmr): Likewise.
1889
1890 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
1891
1892         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1893         an altivec register if TARGET_ALTIVEC.
1894
1895         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1896         to ALTIVEC_VECTOR_MODE.
1897         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1898         (rs6000_va_arg): Vectors may go in registers if they are not
1899         altivec vectors.
1900
1901 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
1902
1903         * protoize.c: Fix formatting.
1904
1905 2002-05-19  Richard Henderson  <rth@redhat.com>
1906
1907         * gensupport.c (init_include_reader): Merge into ...
1908         (process_include): ... here.  Simplify composite path creation.
1909         Plug memory leaks.  Fix file/line number tracking.  Do not
1910         process_define_cond_exec.  Return void.
1911         (process_rtx): Don't check process_include return value.
1912
1913 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1914
1915         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1916         fields.
1917         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1918         traversing basic block chain.
1919         (create_basic_block_structure, create_basic_block): Declaration changed.
1920         (link_block, unlink_block): Declare.
1921         * cfg.c (entry_exit_blocks): Initialize new fields.
1922         (link_block, unlink_block): New.
1923         (expunge_block_nocompact): Unlink basic block.
1924         (dump_flow_info): Print prev_bb/next_bb fields.
1925         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1926         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1927         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1928         * cfgrtl.c (create_basic_block_structure, create_basic_block,
1929         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1930         (verify_flow_info): Check that list agrees with numbering.
1931
1932 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1933
1934         * c-common.c (preprocessing_asm): New macro.
1935         * c-lex.h (builtin_define, builtin_assert): Use pfile.
1936 doc:
1937         * tm.texi: Update.
1938 config/alpha:
1939         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1940         (CPP_SPEC): Simplify.
1941         (TARGET_CPU_CPP_BUILTINS): Update.
1942         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1943         (CPP_SPEC): Simplify.
1944         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1945         (TARGET_OS_CPP_BUILTINS): Update.
1946         * osf.h (CPP_XFLOAT_SPEC): Kill.
1947         (TARGET_OS_CPP_BUILTINS): Update.
1948         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1949         * osf5.h (CPP_XFLOAT_SPEC): Kill.
1950         * vms.h (CPP_SUBTARGET_SPEC): Kill.
1951         (TARGET_OS_CPP_BUILTINS): Update.
1952
1953 2002-05-19  Richard Henderson  <rth@redhat.com>
1954
1955         * varasm.c (default_binds_local_p): Fix typo.
1956
1957 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1958
1959         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1960         CONST_INT operand to the correct mode after adding 1 to it.
1961
1962 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
1963
1964         * config.gcc (powerpc-wrs-windiss*): New target.
1965
1966 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1967
1968         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1969         (ashrdi3): Use it.
1970
1971 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
1972
1973         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1974         alphasort.
1975         * config.in: Regenerated.
1976         * configure: Regenerated.
1977
1978 2002-05-19  Richard Henderson  <rth@redhat.com>
1979
1980         * target-def.h (TARGET_BINDS_LOCAL_P): New.
1981         * target.h (struct gcc_target): Move boolean fields to the end.
1982         Add binds_local_p.
1983         * varasm.c (default_binds_local_p): New.
1984         * output.h: Declare it.
1985
1986         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1987         * config/cris/cris.c (cris_encode_section_info): Likewise.
1988         * config/i386/i386.c (i386_encode_section_info): Likewise.
1989         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1990         * config/sh/sh.c (sh_encode_section_info): Likewise.
1991
1992         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1993         (TARGET_BINDS_LOCAL_P): New.
1994
1995 2002-05-19  Richard Henderson  <rth@redhat.com>
1996
1997         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1998         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1999         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2000
2001         * toplev.c (display_help): Kill -a -ax help.
2002
2003         * config/1750a/1750a.h, config/alpha/alpha.h,
2004         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2005         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2006         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2007         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2008
2009         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2010         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2011
2012         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2013         (ix86_output_function_block_profiler): Kill.
2014         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2015         (m68hc11_function_block_profiler): Kill.
2016         * config/m68hc11/m68hc11-protos.h: Update.
2017         * config/m88k/m88k.c (output_block_profiler): Kill.
2018         (output_function_block_profiler): Kill.
2019         * config/m88k/m88k-protos.h: Update.
2020
2021 2002-05-19  Richard Henderson  <rth@redhat.com>
2022
2023         * system.h (STRIP_NAME_ENCODING): Poison it.
2024         * output.h (STRIP_NAME_ENCODING): Remove.
2025         (default_strip_name_encoding): Declare.
2026         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2027         * target.h (strip_name_encoding): New.
2028         * varasm.c (default_strip_name_encoding): New.
2029
2030         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2031         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2032         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2033         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2034         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2035         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2036         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2037         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2038         config/v850/v850.h: Use the hook, not the macro.
2039
2040         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2041         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2042         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2043         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2044         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2045         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2046         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2047         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2048         config/v850/v850.c, config/v850/v850.h:
2049         Move STRIP_NAME_ENCODING to out-of-line function and add
2050         TARGET_STRIP_NAME_ENCODING.
2051
2052         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2053         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2054         with TARGET_STRIP_NAME_ENCODING referencing existing function;
2055         make function static.
2056
2057         * xcoffout.c: Include target.h
2058         * Makefile.in (xcoffout.o): Update.
2059
2060         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2061         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2062         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2063         reloc argument unused.
2064         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2065
2066         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2067         STRIP_NAME_ENCODING docs.
2068
2069 2002-05-19  Andreas Jaeger  <aj@suse.de>
2070
2071         * gengenrtl.c: Add prototype for excluded_rtx.
2072
2073         * real.h: Add prototype for exact_real_truncate.
2074
2075 2002-05-18  Richard Henderson  <rth@redhat.com>
2076
2077         * system.h (ENCODE_SECTION_INFO): Poison it.
2078         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2079         * target.h (encode_section_info): New.
2080         * varasm.c (make_decl_rtl, output_constant_def): Use it.
2081         * hooks.c (hook_tree_int_void): New.
2082         * hooks.h: Declare it.
2083
2084         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2085         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2086         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2087         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2088         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2089         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2090         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2091         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2092         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2093         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2094         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2095         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2096         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2097         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2098         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2099         referencing existing function.  Make function static.
2100
2101         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2102         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2103         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2104         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2105         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2106         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2107         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2108         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2109         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2110         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2111         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2112         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2113         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2114         Move ENCODE_SECTION_INFO to out-of-line function and add
2115         TARGET_ENCODE_SECTION_INFO.
2116
2117         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2118         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2119
2120         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2121         from SUBTARGET_*
2122         (switch_to_section): Replace in_rdata case with in_readonly_data.
2123
2124         * config/h8300/h8300.c (h8300_encode_label): Make static.
2125         * config/h8300/h8300-protos.h: Update.
2126
2127         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2128         from rs6000_encode_section_info; make static.
2129         (rs6000_xcoff_encode_section_info): New.
2130
2131         * config/v850/v850.c (v850_encode_data_area): Make static.
2132         * config/v850/v850-protos.h: Update.
2133
2134         * config/vax/vax.c: Include flags.h.
2135         (vms_select_section): Fix typo.
2136
2137         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2138         ENCODE_SECTION_INFO docs.
2139
2140 2002-05-18  Richard Henderson  <rth@redhat.com>
2141
2142         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2143         REGISTER_TARGET_PRAGMAS.
2144         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2145
2146         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2147
2148 2002-05-18  Richard Henderson  <rth@redhat.com>
2149
2150         * system.h (SELECT_RTX_SECTION): Poison.
2151         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2152         * target.h (select_rtx_section): New.
2153         * varasm.c (output_constant_pool): Use it.
2154         (default_select_rtx_section, default_elf_select_rtx_section): New.
2155         * output.h: Declare them.
2156
2157         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2158         * config/darwin.c (machopic_select_rtx_section): ... here.
2159         * config/darwin-protos.h: Update.
2160
2161         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2162         * config/nextstep.c (machopic_select_rtx_section): ... here.
2163         (nextstep_select_section): Rename variable to avoid macro clash.
2164         * config/nextstep-protos.h: Update.
2165
2166         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2167         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2168         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2169         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2170         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2171         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2172         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2173         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2174         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2175         (SELECT_RTX_SECTION): Remove.
2176
2177         * config/darwin.h, config/elfos.h, config/nextstep.h,
2178         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2179         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2180         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2181         config/sparc/lynx.h, config/xtensa/xtensa.c
2182         (TARGET_ASM_SELECT_RTX_SECTION): New.
2183
2184         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2185         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2186         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2187         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2188         (ia64_aix_select_rtx_section): New.
2189         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2190         redefining.
2191         * config/mips/mips.c (mips_select_rtx_section): Make static.
2192         Support ELF SHF_MERGE features.
2193         * config/mips/mips-protos.h: Update.
2194         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2195         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2196         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2197         make static, fall back to default_elf_select_rtx_section.
2198         * config/rs6000/rs6000-protos.h: Update.
2199         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2200         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2201         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2202         * config/romp/romp.c (romp_select_rtx_section): New.
2203         * config/s390/s390.c (s390_select_rtx_section): New.
2204         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2205         declarations before target macro definition.
2206         (xtensa_emit_call): Use static buffer.
2207         (xtensa_select_rtx_section): New.
2208         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2209         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2210         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2211
2212         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2213         SELECT_RTX_SECTION docs.
2214
2215 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2216
2217         * i386.md (movsi/movdi): Fix template.
2218         (sse2 patterns): Set attributes consistently.
2219
2220         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2221
2222 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2223
2224         * optabs.c (complex_part_zero_p): New.
2225         * (expand_cmplxdiv_straight): Use it.
2226         * (expand_cmplxdiv_wide): Ditto.
2227         * (expand_binop): Ditto.
2228
2229 2002-05-18  Richard Henderson  <rth@redhat.com>
2230
2231         * final.c (HAVE_READONLY_DATA_SECTION): New.
2232         (shorten_branches): Use it instead of ifdefs.
2233         * varasm.c (enum in_section): Add in_readonly_data.
2234         (text_section, data_section): Tidy.
2235         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2236
2237         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2238         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2239         (READONLY_DATA_SECTION): Don't undef.
2240
2241         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2242         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2243         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2244
2245         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2246         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2247         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2248         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2249
2250         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2251         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2252         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2253         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2254         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2255         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2256         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2257         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2258         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2259
2260         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2261         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2262         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2263         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2264         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2265         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2266
2267         * config/elfos.h, config/netware.h, config/svr3.h,
2268         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2269         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2270         config/h8300/h8300.h, config/i386/i386-interix.h,
2271         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2272         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2273
2274         * config/elfos.h, config/netware.h, config/svr3.h,
2275         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2276         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2277         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2278         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2279
2280         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2281         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2282         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2283         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2284         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2285         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2286         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2287         config/rs6000/sysv4.h, config/v850/v850.h
2288         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2289         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2290
2291         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2292         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2293         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2294         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2295         * config/alpha/alpha.c (alpha_start_function): Likewise.
2296         (alpha_write_linkage): Likewise.
2297         * config/m32r/m32r.c (m32r_select_section): Likewise.
2298         * config/m88k/m88k.c (m88k_select_section): Likewise.
2299         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2300         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2301         (rs6000_elf_select_section): Likewise.
2302         * config/v850/v850.c (v850_select_section): Likewise.
2303
2304         * config/1750a/1750a.h, config/i860/sysv3.h
2305         (READONLY_DATA_SECTION_ASM_OP): New.
2306         READONLY_DATA_SECTION_ASM_OP.
2307         * config/i386/interix.c, config/i386/winnt.c
2308         (i386_pe_unique_section): Always use .rdata prefix.
2309         * config/pa/som.h (readonly_data): Always switch to read-only section.
2310         (READONLY_DATA_SECTION): Predicate on flag_pic.
2311         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2312         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2313         (READONLY_DATA_SECTION): Update.
2314
2315 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2316
2317         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2318         is used without -Wformat.
2319         * c-common.h (warn_format_zero_length): Declare extern.
2320         * c-decl.c (warn_options): Add "format-zero-length".
2321         * c-format.c (warn_format_zero_length): Declare.
2322         (set_Wformat): Set warn_format_zero_length for -Wformat.
2323         (check_format_info): Only warn about zero-length formats if
2324         warn_format_zero_length is true.  Include the format type
2325         name in the warning message.
2326         * doc/invoke.texi: Document -Wformat-zero-length.
2327         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2328
2329 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2330
2331         * timevar.c: Fix formatting.
2332         * tlink.c: Likewise.
2333         * toplev.c: Likewise.
2334         * tree-dump.c: Likewise.
2335         * tree-inline.c: Likewise.
2336
2337 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2338
2339         * cppinit.c (cpp_post_options): If preprocessed, turn off
2340         traditional.  If traditional, turn off column numbers.
2341         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2342         * cpptrad.c (handle_newline): Update line_base.
2343         (skip_comment): Handle -Wcomment.
2344
2345 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2346
2347         * cppinit.c (struct builtin): Remove unused fields.
2348         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2349         (operator_array): New - was second half of builtin_array.
2350         (init_builtins): Simplify loop over builtin_array/operator_array.
2351
2352 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2353
2354         * defaults.h (UNIQUE_SECTION): Remove.
2355         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2356
2357 2002-05-17  Richard Henderson  <rth@redhat.com>
2358
2359         * expr.c (init_expr_once): Don't use start/end_sequence.
2360         Use rtx_alloc instead of emit_insn.
2361         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2362         (lang_independent_init): ... not here.
2363
2364 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2365
2366         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2367
2368 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2369
2370         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2371         for fixed registers, possibly used for global register variables.
2372         (initial_elimination_offset, avr_output_function_prologue,
2373         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2374
2375 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2376
2377         * Makefile.in: Update for cpptrad.c.
2378         * cpphash.h (struct cpp_buffer): New members for buffer
2379         overlays.
2380         (struct cpp_reader): New members for traditional output.
2381         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2382         * cppinit.c (cpp_create_reader): Set trad_line.
2383         (cpp_destroy): Free trad_out_base if used.
2384         (cpp_read_main_file): Overlay an empty buffer if traditional.
2385         (cpp_finish_options): Don't do builtins.
2386         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2387         (cpp_handle_option): Handle it.
2388         * cpplex.c (continue_after_nul): New.
2389         (_cpp_lex_direct): Use handle_nul.
2390         * cpplib.h (struct cpp_options): New traditional option.
2391         * cpptrad.c: New file.
2392
2393 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2394
2395         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2396         and set the options flag.
2397         * cppinit.c (lang_flags): Remove objc.
2398         (lang_defaults): Remove OBJC and OBJCXX.
2399         (set_lang): Update.
2400         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2401         (cpp_handle_option): Remove -+ and -lang-objc++.
2402         For ObjC, just set a flag.
2403         (print_help): Update.
2404         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2405
2406 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2407
2408         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2409         bootstrap with -mips3.
2410
2411 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2412
2413         * final.c: Fix formatting.
2414         * fix-header.c: Likewise.
2415         * flow.c: Likewise.
2416         * fold-const.c: Likewise.
2417         * function.c: Likewise.
2418
2419 2002-05-17  David S. Miller  <davem@redhat.com>
2420
2421         PR c/6689, PR optimization/6615
2422         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2423         and make it a pointer to rtx.  Update comments.
2424         (update_equiv_regs): When scanning for equivalences, record
2425         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2426         it while making the equiv replacements.
2427
2428 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2429
2430         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2431
2432 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2433
2434         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2435         when encoding visibility into SYMBOL_REF_FLAG.
2436
2437 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2438
2439         * expr.c (force_operand): Fix reversed move.
2440
2441 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2442
2443         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2444         that can be ignored.
2445
2446 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2447
2448         * doc/install.texi (Final install): Recommend to install into a
2449         "clean" target directory.
2450
2451 2002-05-17  Richard Henderson  <rth@redhat.com>
2452
2453         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2454         for code blocks.  Tidy whitespace.
2455
2456 2002-05-17  Richard Henderson  <rth@redhat.com>
2457
2458         * hooks.c (hook_tree_bool_false): New.
2459         * hooks.h: Declare it.
2460         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2461         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2462         * target.h (select_section, unique_section): New.
2463         (in_small_data_p): New.
2464         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2465         (variable_section, output_constant_def_contents): Likewise.
2466         (default_select_section, default_unique_section): New.
2467         (categorize_decl_for_section, default_elf_select_section): New.
2468         * output.h: Declare them.
2469
2470         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2471         (TARGET_ASM_SELECT_SECTION): New.
2472         (SELECT_SECTION): Move ...
2473         * config/darwin.c (machopic_select_section): ... here.
2474         * config/darwin-protos.h: Update.
2475
2476         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2477         (SELECT_SECTION): Move ...
2478         * config/nextstep.c (nextstep_select_section): ... here.
2479         * config/nextstep-protos.h: Update.
2480
2481         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2482         (TARGET_ASM_SELECT_SECTION): New.
2483         * config/svr3.h (SELECT_SECTION): Remove.
2484
2485         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2486         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2487         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2488         (alpha_encode_section_info): Use it.
2489         * config/alpha/alpha-protos.h: Update.
2490         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2491         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2492         (TARGET_ASM_SELECT_SECTION): New.
2493         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2494
2495         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2496         (TARGET_ASM_UNIQUE_SECTION): New.
2497
2498         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2499         (avr_unique_section): Rename from unique_section; make static.
2500         * config/avr/avr-protos.h: Update.
2501         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2502
2503         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2504
2505         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2506         (TARGET_ASM_UNIQUE_SECTION): New.
2507         * config/i386/i386-interix.h: Likewise.
2508         * config/i386/win32.h: Likewise.
2509         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2510         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2511         * config/i386/sco5.h (SELECT_SECTION): Remove.
2512         (TARGET_ASM_SELECT_SECTION): New.
2513         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2514
2515         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2516         instead of SELECT_SECTION.
2517         * config/m68k/dpx2.h: Likewise.
2518         * config/rs6000/lynx.h: Likewise.
2519
2520         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2521         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2522         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2523         (ia64_in_small_data_p): New.
2524         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2525         (ia64_aix_select_section, ia64_aix_unique_section): New.
2526         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2527         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2528
2529         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2530         (TARGET_ASM_SELECT_SECTION): New.
2531         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2532         * config/m32r/m32r-protos.h: Update.
2533
2534         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2535         (SELECT_SECTION): Move ...
2536         * config/m88k/m88k.c (m88k_select_section): ... here.
2537
2538         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2539         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2540         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2541         (mcore_unique_section): Make static.
2542         * config/mcore/mcore-protos.h: Update.
2543
2544         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2545         (TARGET_ASM_UNIQUE_SECTION): New.
2546         * config/mips/elf64.h: Likewise.
2547         * config/mips/iris6gld.h: Likewise.
2548         * config/mips/linux.h: Likewise.
2549         * config/mips/mips-protos.h: Update.
2550         * config/mips/mips.c (mips_select_section): Add align argument.
2551         * config/mips/mips.h (SELECT_SECTION): Remove.
2552         (TARGET_ASM_SELECT_SECTION): New.
2553
2554         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2555         * config/mmix/mmix.c (mmix_select_section): Remove.
2556         (mmix_unique_section): Remove.
2557         * config/mmix/mmix-protos.h: Update.
2558
2559         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2560         (SELECT_SECTION): Move ...
2561         * config/pa/pa.c (pa_select_section): ... here.
2562         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2563
2564         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2565         from rs6000_select_section and make static.
2566         (rs6000_elf_unique_section): Similarly.
2567         (rs6000_xcoff_select_section): From xcoff.h.
2568         (rs6000_xcoff_unique_section): Likewise.
2569         * config/rs6000/rs6000-protos.h: Update.
2570         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2571         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2572         * config/rs6000/xcoff.h: Likewise.
2573
2574         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2575         (SELECT_SECTION): Move ...
2576         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2577
2578         * config/v850/v850.h (SELECT_SECTION): Move ...
2579         * config/v850/v850.c (v850_select_section): ... here.
2580         (TARGET_ASM_SELECT_SECTION): New.
2581
2582         * config/vax/vms.h (SELECT_SECTION): Move ...
2583         * config/vax/vax.c (vms_select_section): ... here.
2584         (TARGET_ASM_SELECT_SECTION): New.
2585
2586         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2587         for the target hooks.
2588
2589 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
2590
2591         * config/arm/arm.c (emit_multi_reg_push): Do not set
2592         RTX_FRAME_RELATED_P on the SEQUENCE.
2593
2594 2002-05-16  Richard Henderson  <rth@redhat.com>
2595
2596         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2597         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
2598
2599 2002-05-16  Richard Henderson  <rth@redhat.com>
2600
2601         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2602
2603         * config/ia64/ia64.c (saveable_obstack): Do not declare.
2604
2605 2002-05-16  Richard Henderson  <rth@redhat.com>
2606
2607         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2608         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2609         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2610         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2611         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2612         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2613         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2614         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2615         Revert "Basic block renumbering removal", and two followup patches.
2616
2617 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2618
2619         * lcm.c (optimize_mode_switching): Revert previous change.
2620
2621 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2622
2623         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2624         with only extant block numbers.
2625
2626 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2627
2628         * lcm.c (optimize_mode_switching): Fix typo.
2629
2630 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2631
2632         * flow.c (calculate_global_regs_live): Queue blocks in program order.
2633
2634 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2635
2636         * doc/install.texi (Configuration): Document PWDCMD.
2637
2638 2002-05-16  Dale Johannesen  <dalej@apple.com>
2639
2640         * combine.c (cant_combine_insn_p):  Reenable combinations
2641         involving hard regs unless CLASS_LIKELY_SPILLED_P.
2642
2643 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2644
2645         * c-common.c (cb_register_builtins): Handle more built-ins
2646         here rather than in gcc.c specs.
2647         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2648         (cpp_options): Pass -O flags even when only preprocessing.
2649         * toplev.c (set_fast_math_flags): New prototype.
2650         (fast_math_flags_set_p): New.
2651         (set_no_fast_math_flags): Remove.
2652         (decode_f_option): Update.
2653         * toplev.h (set_fast_math_flags): Update.
2654         (fast_math_flags_set_p): New.
2655         (set_no_fast_math_flags): Remove.
2656 config:
2657         * c4x/c4x.c (c4x_override_options): Update.
2658
2659 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
2660
2661         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2662         Default-define here.
2663         (builtin_define_with_value): Can now wrap the expansion in
2664         quotation marks if such is wanted.
2665         (cb_register_builtins): Update calls to builtin_define_with_value.
2666         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2667         here.
2668         (c_common_init): Set options->stdc_0_in_system_headers.
2669         * c-lex.h: Update prototype of builtin_define_with_value.
2670         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2671         and REGISTER_PREFIX.
2672
2673         * cppinit.c (VERS, ULP, C, X): Kill.
2674         (builtin_array): Remove entries for __VERSION__,
2675         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2676         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
2677         a constant.
2678         (init_builtins): Kill off a bunch of now-dead code.
2679         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2680         -fno-leading-underscore.
2681         (cpp_handle_option): Remove code to set user_label_prefix.
2682         (cpp_post_options): Likewise.
2683
2684         * cpplib.h (struct cpp_options): Remove user_label_prefix.
2685         (stdc_0_in_system_headers): New.
2686         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2687         stdc_0_in_system_headers) too to decide the value of __STDC__.
2688
2689         * tradcpp.c (user_label_prefix): Kill.
2690         (main): Remove code handling -f(no-)leading-underscore.
2691         (initialize_builtins): Don't define __REGISTER_PREFIX__
2692         or __USER_LABEL_PREFIX__.
2693         (install_value): Wrap compound statement in dummy loop so the
2694         macro works properly in an if statement.
2695
2696
2697 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
2698
2699         * loop.h (struct loop_info): Add member has_prefetch.
2700         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2701         (prescan_loop): Initialize has_prefetch.
2702         (struct prefetch_info): Change prefetch_in_loop and
2703         prefetch_before_loop from bit fields to ints.
2704         (emit_prefetch_instructions): Several small fixes.
2705         (check_dbra_loop): Don't reverse loop that uses prefetch.
2706
2707 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2708
2709         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2710         * configure.in: Likewise.
2711         * fixinc/check.tpl: Likewise.
2712         * fixinc/fixinc.dgux: Likewise.
2713         * fixinc/fixinc.svr4: Likewise.
2714         * fixinc/fixinc.winnt: Likewise.
2715         * fixinc/fixincl.sh: Likewise.
2716         * fixproto: Likewise.
2717         * configure: Regenerate.
2718
2719 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2720
2721         Basic block renumbering removal:
2722         * basic_block.h (struct basic_block_def): Renamed index to sindex,
2723         added prev_bb and next_bb fields.
2724         (n_basic_blocks): Renamed to num_basic_blocks.
2725         (last_basic_block): New, index of last basic block.
2726         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2727         traversing basic block chain.
2728         (BLOCK_NUM): index -> sindex.
2729         (create_basic_block_structure, create_basic_block): Declaration changed.
2730         (debug_num2bb): Declare.
2731         (expunge_block_nocompact): Declaration removed.
2732         (link_block, unlink_block, compact_blocks): Declare.
2733         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2734         * cfg.c (entry_exit_blocks): Initialize new fields.
2735         (clear_edges, alloc_block, expunge_block, cached_make_edge,
2736         redirect_edge_pred, dump_flow_info, dump_edge_info,
2737         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2738         free_aux_for_edges): Modified.
2739         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2740         (expunge_block_nocompact): Removed.
2741         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2742         find_unreachable_blocks, create_edge_list, print_edge_list,
2743         verify_edge_list, flow_edge_list_print, remove_fake_successors,
2744         remove_fake_edges, flow_reverse_top_sort_order_compute,
2745         flow_depth_first_order_compute, flow_preorder_transversal_compute,
2746         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2747         flow_dfs_compute_reverse_execute): Modified.
2748         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2749         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2750         Modified.
2751         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2752         merge_blocks_move_predecessor_nojumps,
2753         merge_blocks_move_successor_nojumps, merge_blocks,
2754         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2755         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2756         * cfglayout.c (skip_insns_after_block, label_for_bb,
2757         record_effective_endpoints, scope_to_insns_finalize,
2758         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2759         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2760         cfg_layout_duplicate_bb): Modified.
2761         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2762         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2763         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2764         flow_loops_find, flow_loop_outside_edge_p): Modified.
2765         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2766         flow_delete_block, compute_bb_for_insn, split_block,
2767         try_redirect_by_replacing_jump, redirect_edge_and_branch,
2768         force_nonfallthru_and_redirect, tidy_fallthru_edge,
2769         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2770         commit_edge_insertions, commit_edge_insertions_watch_calls,
2771         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2772         purge_all_dead_edges): Modified.
2773         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2774         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2775         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2776         Modified.
2777         * conflict.c (conflict_graph_compute): Modified.
2778         * df.c (FOR_ALL_BBS): Removed.
2779         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2780         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2781         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2782         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2783         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2784         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2785         * final.c (compute_alignments, final_scan_insn): Modified.
2786         * flow.c (verify_local_live_at_start, update_life_info,
2787         update_life_info_in_dirty_blocks, free_basic_block_vars,
2788         delete_noop_moves, calculate_global_regs_live,
2789         initialize_uninitialized_subregs, allocate_bb_life_data,
2790         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2791         mark_used_reg, count_or_remove_death_notes): Modified.
2792         * function.c (thread_prologue_and_epilogue_insns): Modified.
2793         * gcse.c (struct null_pointer_info): Change typo of current_block
2794         to basic_block.
2795         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2796         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2797         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2798         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2799         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2800         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2801         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2802         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2803         pre_delete, one_pre_gcse_pass, compute_transpout,
2804         invalidate_nonnull_info, delete_null_pointer_checks_1,
2805         free_code_hoist_mem, compute_code_hoist_vbeinout,
2806         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2807         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2808         compute_store_table, build_store_vectors, insert_insn_start_bb,
2809         insert_store, replace_store_insn, free_store_memory, store_motion):
2810         Modified.
2811         * global.c (global_alloc, global_conflicts, mark_elimination,
2812         build_insn_chain): Modified.
2813         * graph.c (print_rtl_graph_with_bb): Modified.
2814         * haifa-sched.c (sched_init): Modified.
2815         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2816         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2817         if_convert): Modified.
2818         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2819         compute_insert_delete, pre_edge_lcm, compute_available,
2820         compute_farthest, compute_nearerout, compute_rev_insert_delete,
2821         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2822         Modified.
2823         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2824         * loop.c (loop_dump_aux): Modified.
2825         * predict.c (combine_predictions_for_insn, estimate_probability,
2826         last_basic_block_p, process_note_prediction, process_note_predictions,
2827         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2828         expensive_function_p, estimate_bb_frequencies,
2829         compute_function_frequency): Modified.
2830         * print-rtl.c (print_rtx): Modified.
2831         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2832         get_exec_counts, compute_branch_probabilities, compute_checksum,
2833         branch_prob, find_spanning_tree): Modified.
2834         * recog.c (split_all_insns, peephole2_optimize): Modified.
2835         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2836         convert_regs_1, convert_regs_2, convert_regs): Modified.
2837         * regclass.c (scan_one_insn, regclass): Modified.
2838         * regmove.c (mark_flags_life_zones, regmove_optimize,
2839         combine_stack_adjustments): Modified.
2840         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2841         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2842         * reorg.c (dbr_schedule): Modified.
2843         * resource.c (find_basic_block, init_resource_info): Modified.
2844         * sbitmap.c (sbitmap_intersection_of_succs,
2845         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2846         sbitmap_union_of_preds): Modified.
2847         * sched-deps.c (init_dependency_caches): Modified.
2848         * sched-ebb.c (schedule_ebbs): Modified.
2849         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2850         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2851         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2852         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2853         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2854         ssa_const_prop): Modified.
2855         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2856         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2857         * ssa.c (remove_phi_alternative, find_evaluations,
2858         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2859         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2860         make_regs_equivalent_over_bad_edges,
2861         make_equivalent_phi_alternatives_equival,
2862         compute_conservative_reg_partition,
2863         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2864         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2865         Modified.
2866
2867 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
2868
2869         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2870
2871 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
2872
2873         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2874         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2875         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2876         calling CONSTANT_POOL_ADDRESS_P.
2877         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2878         to decide whether to define __arm__ or __thumb.
2879         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2880         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2881
2882 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2883
2884         * config/arc/arc.h (CPP_PREDEFINES): Remove.
2885         (CPP_SPEC): Update.
2886         (TARGET_CPU_CPP_BUILTINS): New.
2887
2888 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2889
2890         * cpphash.h (cpp_macro): Move here, and make expansion a union.
2891         * cppmacro.c (cpp_macro): Remove.
2892         (enter_macro_context, replace_args, warn_of_redefinition,
2893         _cpp_create_definition, cpp_macro_definition): Update.
2894
2895 2002-05-16  Jason Merrill  <jason@redhat.com>
2896
2897         * config/mips/mips.c (mips_output_external): Don't do sdata
2898         optimization for a variable with DECL_COMDAT set.
2899
2900 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2901
2902         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2903         Cleanups for accepting modifiers on pointers.
2904         Fix predicate typos.
2905         Allow long pointers as well as int pointers.
2906
2907 2002-05-15  Richard Henderson  <rth@redhat.com>
2908
2909         * varasm.c (merge_weak): Remove special case for extern and common.
2910
2911 2002-05-15  Matt Hiller  <hiller@redhat.com>
2912
2913         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2914         XFAILing.
2915         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2916         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2917         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2918         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2919         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2920         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2921
2922 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2923
2924         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2925
2926 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2927
2928         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2929         ("altivec_mfvscr"): Read from VSCR.
2930
2931         Add vscr sets for the following insns: altivec_vctuxs,
2932         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2933         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2934         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2935         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2936         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2937         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2938         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2939         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2940         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2941         altivec_vsum2sws, altivec_vsumsws.
2942
2943         * config/rs6000/rs6000.h: Add VSCR fixed register.
2944         (CALL_REALLY_USED_REGISTERS): Add vscr.
2945         (CALL_USED_REGISTERS): Same.
2946         (FIXED_REGISTERS): Same.
2947         (REG_ALLOC_ORDER): Same.
2948         (reg_class): Add VSCR_REGS.
2949         (REG_CLASS_NAMES): Same.
2950         (REG_CLASS_CONTENTS): Same.
2951         (VSCR_REGNO): New.
2952         (REGISTER_NAMES): Add vscr.
2953         (DEBUG_REGISTER_NAMES): Same.
2954         (ADDITIONAL_REGISTER_NAMES): Same.
2955         (FIRST_PSEUDO_REGISTER): Increment.
2956         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2957
2958 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
2959
2960         * fold-const.c (fold): Fix a typo.
2961
2962 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
2963
2964         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2965         comparison against the highest or lowest integer value before
2966         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2967         transformation and that of an unsigned comparison against 0
2968         right after.
2969
2970 2002-05-15  Richard Henderson  <rth@redhat.com>
2971
2972         * varasm.c (merge_weak): Error for any weakening after definition.
2973         Adjust weakening after use warning to catch more cases.
2974         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2975         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2976
2977 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
2978
2979         * invoke.texi (-malign-double): Re-add lost warning.
2980
2981         * i386-protos.h (x86_output_mi_thunk): Declare.
2982         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2983         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2984
2985         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2986         when flag_asynchronous_unwind_tables is set.
2987
2988         * flags.h (flag_reorder_functions): Declare.
2989         * function.c (prepare_function_start): Initialize frequnecy.
2990         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2991         * Makefile.in (predict.o): Add dependency on target.h and params.h
2992         * defaults.h (HOT_TEXT_SECTION_NAME,
2993         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2994         * predict.c (choose_function_section): New function.
2995         (estimate_bb_frequencies): Use it.
2996         * toplev.c (flag_reorder_functions): New global variable.
2997         (lang_independent_options): New.
2998         (parse_options_and_default_flags): Set.
2999         * varasm.c (assemble_start_function): Bypass functdion alignment
3000         for never executed functions.
3001         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3002         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3003         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3004         Document.
3005
3006         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3007
3008         * predict.c: Inlude profile.h
3009         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3010         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3011         Use the information about maximal counter in the program.
3012
3013         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3014
3015         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3016         probably_never_executed_bb_p): New functions.
3017         * cfgcleanup.c (outgoing_edges_match): Use them.
3018         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3019         (maybe_hot_bb_p, probably_cold_bb_p,
3020         probably_never_executed_bb_p): New functions.
3021
3022         * function.h (function): Add new field function_frequency.
3023         * predict.c (compute_function_frequency): New function.
3024         (estimate_probability): Call it.
3025
3026 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3027
3028         PR optimization/5172, optimization/5200
3029         * gcse.c (gcse_main): Disable store_motion.
3030
3031 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
3032
3033         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3034         (c_common_nodes_and_builtins): Use it.
3035         (builtin_define_with_value): New function.
3036         (cb_register_builtins): Define __SIZE_TYPE__,
3037         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3038         using builtin_define_with_value.  Use consistent notation when
3039         defining __GXX_WEAK__.
3040         (WCHAR_TYPE_SIZE): Don't redefine.
3041         (combine_strings): Don't use WCHAR_TYPE_SIZE.
3042
3043         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3044         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3045         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3046         * tradcpp.c (initialize_builtins): Likewise.
3047         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3048
3049         * c-lex.h (builtin_define_with_value): Prototype.
3050         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3051         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3052         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3053
3054         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3055         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3056         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3057         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3058         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3059         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3060         config/sparc/sol2-bi.h, config/sparc/sparc.h:
3061         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
3062         to __SIZE_TYPE__ etc from all spec strings. When this makes
3063         extra specs empty, delete them.
3064
3065 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3066
3067         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3068         for PA8000 or generating dwarf2 call frame information.
3069         (output_call): Remove DO_FRAME_NOTES check from return pointer
3070         optimization.
3071         (following_call): Return 0 when scheduling for PA8000 or generating
3072         dwarf2 call frame information.  Revise comment.
3073
3074 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3075
3076 config/alpha:
3077         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3078         and __IEEE_FP_INEXACT as appropriate.
3079         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3080         (CPP_SPEC): Remove ieee defines.
3081         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3082
3083 2002-05-14  Richard Henderson  <rth@redhat.com>
3084
3085         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3086         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3087
3088 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3089
3090         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3091         (CPP_SPEC): Update.
3092         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3093         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3094         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3095         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3096         (EXTRA_SPECS): Update.
3097         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3098         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3099         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3100         define TARGET_OS_CPP_BUILTINS if necessary.
3101
3102 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3103
3104         * gcc.c (cpp_options): Must pass -m* and -f* options
3105         to the front end even when only preprocessing.
3106         (cc1_options): Remove redundant -lang-c.
3107         * tradcpp.c (main): Ignore -m options.
3108 objc:
3109         * lang-specs.h: Similarly.
3110
3111 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3112
3113         * genautomata.c (transform_3): Add code for transformation
3114         `(A,B,...)+C -> A+C,B,...'.
3115
3116 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3117
3118         * final.c (end_final): Do not output profile_arcs constructor, when
3119         no functions are instrumented.
3120
3121 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3122
3123         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3124
3125 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3126
3127         * doc/install.texi: Remove special markup originally required for
3128         HTML generation with texi2html.
3129
3130 2002-05-14  Andreas Schwab  <schwab@suse.de>
3131
3132         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3133         SELECT_SECTION.
3134         (UNIQUE_SECTION): Define to get small data correctly.
3135
3136         * varasm.c (resolve_unique_section): Add third parameter
3137         flag_function_or_data_sections and use it instead of
3138         flag_function_sections.
3139         (assemble_start_function): Pass flag_function_sections.
3140         (asm_emit_uninitialised): Pass flag_data_sections.
3141         (assemble_variable): Likewise.
3142
3143 2002-05-14  Richard Henderson  <rth@redhat.com>
3144
3145         * config/i386/i386.md: Use define_constants for unspec numbers.
3146         * config/i386/i386.c: Likewise.
3147
3148 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3149
3150         * doc/contrib.texi: Update my entry.
3151
3152 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3153
3154         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3155         * fixinc/fixincl.x: Regenerated.
3156         * fixinc/tests/base/math.h: Update.
3157         * fixinc/tests/base/testing.h: Likewise.
3158
3159 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3160
3161         * genattr.c (gen_attr): Don't emit a comma after the last
3162         enumerator.
3163
3164 2002-05-13  Richard Henderson  <rth@redhat.com>
3165
3166         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3167         by non-local gotos.
3168         * recog.c (peephole2_optimize): Likewise.
3169
3170 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3171
3172         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3173         input to O_BINARY.
3174
3175 2002-05-13  Jeffrey A Law  (law@redhat.com)
3176
3177         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3178         Update prototype and callers.
3179         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3180         the mem_set_list which reference the stack pointer, as do
3181         calls to constant functions as they may clobber outgoing
3182         argument space.
3183
3184         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3185
3186         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3187         (ia32_multipass_dfa_lookahead): New function.
3188
3189 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3190
3191         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3192         (translate_options): Remove 'V'.
3193         (process_command): Similarly.
3194 doc:
3195         * invoke.texi: Remove documentation of 'V'.
3196
3197 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3198
3199         * config/s390/linux.h: Revert 2002-04-22 changes.
3200
3201 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3202
3203         * config/fr30/fr30.md: Only allow splits of immediate loads
3204         if the destination is a register.
3205
3206 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3207
3208         * Makefile.in (c-common.o, cppinit.o): Update.
3209         * c-common.c: Include except.h.
3210         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3211         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3212         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3213         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3214         CPP_PREDEFINES): Handle here.
3215 config:
3216         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3217         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3218         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3219         TARGET_OS_CPP_BUILTINS.
3220         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3221         (CPP_SPEC, EXTRA_SPECS): Update.
3222         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3223         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3224         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3225         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3226         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3227 doc:
3228         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3229         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3230
3231 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3232
3233         * emit-rtl.c (global_rtl): Update comment.
3234         (const_double_htab, const_double_htab_hash,
3235         const_double_htab_hash, lookup_const_double): New.
3236         (const_int_htab_hash, const_int_htab_eq): Remove const
3237         qualifiers, which cause tons of warnings with RTL checking on.
3238         (gen_rtx_CONST_DOUBLE): Deleted.
3239         (const_double_from_real_value): New function - bears some
3240         resemblance to the former immed_real_const_1.
3241         (immed_double_const): Moved here from varasm.c and
3242         simplified.
3243         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3244         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3245         (gen_rtx): Use immed_double_const.
3246         (init_emit_once): Initialize the const_double_htab.  Use
3247         REAL_VALUE_FROM_INT where possible.  Can now use
3248         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3249         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3250         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3251         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3252         (init_varasm_status, mark_varasm_status): Don't touch
3253         x_const_double_chain.
3254
3255         * output.h: Delete prototype for clear_const_double_mem.
3256         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3257         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3258         const_double_from_real_value, not immed_real_const_1, and use
3259         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3260         CONST_DOUBLE_ATOF.
3261         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3262         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3263         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3264         (gen_rtx_REG): Second arg is unsigned.
3265
3266         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3267         (excluded_rtx): New, return true for CONST_DOUBLE.
3268         (genmacro): Write nothing for excluded codes.
3269         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3270         * expr.c (expand_expr): Likewise.
3271         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3272         CONST_DOUBLE_CHAIN.
3273         * toplev.c (rest_of_compilation): Don't call
3274         clear_const_double_mem.
3275
3276         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3277         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3278         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3279         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3280         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3281         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3282         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3283         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3284
3285 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3286
3287         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3288
3289 2002-05-12  Tom Tromey  <tromey@redhat.com>
3290
3291         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3292
3293 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3294
3295         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3296         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3297         * gensupport.h: Prototype new routines.
3298         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3299         use of printf.
3300         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3301         (next_comma_elt): Use scan_comma_elt.
3302
3303         * config/i386/i386.md: Use new attribute notation to break up
3304         long lines in define_attr forms.
3305
3306 2002-05-12  Richard Henderson  <rth@redhat.com>
3307
3308         * expr.c (compress_float_constant): New.
3309         (emit_move_insn): Use it.
3310         (float_extend_from_mem): New.
3311         (init_expr_once): Initialize it.
3312         * real.c (exact_real_truncate): New.
3313
3314         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3315         dropped into memory; penalize for size.
3316         (RTX_COSTS): FLOAT_EXTEND is free.
3317         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3318         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3319
3320 2002-05-12  Richard Henderson  <rth@redhat.com>
3321
3322         * profile.h (profile_info): Add missing extern to declaration.
3323         * profile.c (profile_info): Define it.
3324
3325 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3326
3327         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3328         used for DImode and TImode.
3329
3330 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3331
3332         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3333         fake a newline.
3334
3335 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3336
3337         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3338         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3339         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3340         (rs6000_override_options): Handle -m(no-)longcall.
3341         (init_cumulative_args, output_mi_thunk): Check for both
3342         longcall and shortcall attributes on the function.
3343         (rs6000_attribute_table): Add "shortcall".
3344         (rs6000_handle_longcall_attribute): Update comment.
3345         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3346         altivec_expand_ternop_builtin): Add default clauses to switches
3347         to silence warnings.
3348
3349         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3350         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3351         (TARGET_OPTIONS): Add longcall and no-longcall.
3352
3353         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3354         call_value_nonlocal_sysv): Split by alternatives.  One pair
3355         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3356         the call cookie.  The other pair accepts only LR/CTR and has
3357         no restriction.
3358
3359         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3360         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3361         tmake_file.
3362         * config/rs6000/rs6000-c.c: New file.
3363         * config/rs6000/t-rs6000-c-rule: New file.
3364         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3365         Prototype rs6000_pragma_longcall.
3366
3367         * doc/extend.texi: Document shortcall attribute.
3368         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3369
3370 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3371
3372         * reorg.c (dbr_schedule): Remove unnecessary test.
3373
3374 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3375
3376         * i386.md (testsi to testqi spliters): New.
3377
3378         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3379
3380         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3381
3382         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3383
3384         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3385         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3386         that can be made fallthru.
3387
3388         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3389
3390         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3391         (cfg_layout_initialize): Use it.
3392
3393 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3394
3395         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3396         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3397         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3398
3399 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3400
3401         * dbxout.c: Fix formatting.
3402         * dependence.c: Likewise.
3403         * df.c: Likewise.
3404         * diagnostic.c: Likewise.
3405         * doloop.c: Likewise.
3406         * dominance.c: Likewise.
3407         * doschk.c: Likewise.
3408         * dwarf2asm.c: Likewise.
3409         * dwarf2out.c: Likewise.
3410         * dwarfout.c: Likewise.
3411
3412 2002-05-10  Richard Henderson  <rth@redhat.com>
3413
3414         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3415         Convert integers constants as needed.  Replace "nwords" field with
3416         "sizeof_bb".
3417         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3418         * function.h: Fix typo in comment.
3419         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3420
3421 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3422
3423         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3424         into the equivalent (signed char)c > 0.
3425
3426 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3427
3428         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3429         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3430         (struct prefetch_info): Fix spelling of member bytes_accessed.
3431         (emit_prefetch_instructions): Make dump messages more regular;
3432         restructure code to add more dump messages; use new macros for
3433         heuristics. (There are no code generation changes in any of this).
3434
3435 2002-05-10  David S. Miller  <davem@redhat.com>
3436
3437         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3438         (struct rtx_def): Update unchanging flag comment.
3439         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3440         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3441         to be handled to INSN too.
3442         (dbr_schedule): Likewise.
3443         * resource.c (next_insn_no_annul): Likewise.
3444
3445         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3446         casing.
3447
3448 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3449
3450         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3451         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3452         (possibly) work around broken /bin/sh.
3453
3454 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3455
3456         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3457         . as N64/N32 libgcc_s.so subdirs.
3458
3459 2002-05-10  David S. Miller  <davem@redhat.com>
3460
3461         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3462
3463         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3464         more accurately.
3465         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3466         comment.
3467         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3468         * doc/rtl.texi: Document these macros more accurately.
3469         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3470         JUMP_INSNs and CALL_INSNs.
3471         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3472         or INSN_FROM_TARGET_P if the code is appropriate.
3473
3474 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3475
3476         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3477         before using SYMBOL_REF_FLAG (addr).
3478
3479         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3480         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3481         Make non-static.  Update all callers.
3482         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3483         New insns to clear/set/test a single bit in I/O address space.
3484
3485 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3486
3487         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3488
3489 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3490
3491         * Makefile.in: Update.
3492         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3493         builtin_define_std): New.
3494         (c_common_init): Register CPP builtins callback.
3495         * c-common.h (flag_iso, flag_undef): New.
3496         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3497         * c-lex.c: Don't include target.h.
3498         (cb_register_builtins): Move to c-common.c.
3499         (init_c_lex): Don't register hook here.
3500         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3501         (cpp_define, cpp_assert): Remove.
3502         * gcc.c (cc1_options): Pass -undef to front end.
3503         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3504         (TARGET_INITIALIZER): Update.
3505         * target.h (struct cpp_reader): Don't predeclare.
3506         (struct gcc_target): Remove cpp builtin hook.
3507         * tree.c (default_register_cpp_builtins): Remove.
3508 doc:
3509         * tm.texi: Update.
3510
3511 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3512
3513         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3514
3515 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3516
3517         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3518         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3519
3520 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3521
3522         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3523         * config/sparc/libgcc-sparc-glibc.ver: New file.
3524         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3525         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3526
3527 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3528
3529         PR target/6429
3530         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3531         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3532         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3533         base multilibs.
3534         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3535         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3536         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3537         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3538
3539 2002-05-09  Richard Henderson  <rth@redhat.com>
3540
3541         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3542         * config/ia64/ia64.c: Likewise.
3543
3544 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3545
3546         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3547         (save_restore_insns): Likewise.
3548         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3549         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3550
3551 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3552
3553         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3554         * i386.md: Move scheduling information into new files.
3555
3556         * i386.md (type attribute): Add "rotate" for rotate insns.
3557         (rotate insns): Set type to "rotate".
3558         (various attributes and function units): Treat rotate like shift.
3559         (pent_pair attribute): Only rotates by one bit position are
3560         pairable.
3561         (sbb insns): Explicitly set pent_pair attribute on a couple
3562         that were missing it.
3563
3564 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3565
3566         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3567         make sure that buffer starts on odd word address.
3568         (sh_va_arg): Skip odd fp registers when reading a double precision
3569         value.
3570
3571 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3572
3573         * tree.h (preserve_data, object_permanent_p, type_precision):
3574         Remove.
3575
3576 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3577
3578         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3579         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3580 doc:
3581         * cpp.texi: Update for removal of obsolete features.
3582
3583 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
3584                           Jeffrey A Law  (law@redhat.com)
3585
3586         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
3587         the DFA interface for Pentium processors.
3588         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3589         (attr_pent_pair, ix86_pent_find_pair): Remove.
3590         (ix86_sched_reorder_pentium): Remove.
3591         (ix86_sched_reorder): Remove reordering for Pentium.
3592         * i386.md (Pentium scheduling): Rewrite using DFA description.
3593
3594 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3595
3596         * cfganal.c (can_fallthru): Fix fast path.
3597         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3598         with edges to the next block.
3599
3600 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3601                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
3602
3603         * final.c (end_final): Use C trees to output data structures for profiling.
3604
3605         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3606         (profile.o): New dependency profile.h
3607         (final.o): New dependency profile.h
3608         * profile.h: New file. New global structure profile_info.
3609         * final.h (count_edges_instrumented_now): Declare.
3610         (current_function_cfg_checksum): Declare.
3611         (function_list): New structure.
3612         (functions_head, functions_tail): New static variables.
3613         (end_final): Emits more data, removed some -ax stuff.
3614         (final): Stores function names and chcksums.
3615         * gcov-io.h (__write_gcov_string): New function.
3616         (__read_gcov_string): New function.
3617         * gcov.c (read_profile): New function.
3618         (create_program_flow_graph): Uses read_profile instead of reading
3619         da_file.
3620         (read_files): Removed da_file checking, it's done by read_profile now.
3621         * libgcc2.c (bb_function_info): New structure.
3622         (bb): New field in structure, removed some -ax stuff.
3623         (__bb_exit_func): Changed structure of da_file.
3624         * profile.c (count_edges_instrumented_now): New global variable.
3625         (current_function_cfg_checksum): New global variable.
3626         (max_counter_in_program): New global variable.
3627         (get_exec_counts): New function.
3628         (compute_checksum): New function.
3629         (instrument_edges): Sets count_edges_instrumented_now.
3630         (compute_branch_probabilities): Uses get_exec_counts instead of
3631         reading da_file.
3632         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3633         (init_branch_prob): Removed da_file checking, done in get_exec_counts
3634         now.
3635         (end_branch_prob): Removed da_file checking, done in get_exec_counts
3636         now.
3637         * gcov.texi: Updated information about gcov file format.
3638
3639 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3640
3641         * sbitmap.c: Fix formatting.
3642         * scan.c: Likewise.
3643         * scan-decls.c: Likewise.
3644         * sched-deps.c: Likewise.
3645         * sched-ebb.c: Likewise.
3646         * sched-rgn.c: Likewise.
3647         * sched-vis.c: Likewise.
3648         * sdbout.c: Likewise.
3649         * sibcall.c: Likewise.
3650         * simplify-rtx.c: Likewise.
3651         * ssa.c: Likewise.
3652         * ssa-ccp.c: Likewise.
3653         * ssa-dce.c: Likewise.
3654         * stmt.c: Likewise.
3655         * stor-layout.c: Likewise.
3656         * stringpool.c: Likewise.
3657
3658 2002-05-09  David S. Miller  <davem@redhat.com>
3659
3660         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3661
3662 2002-05-07  David S. Miller  <davem@redhat.com>
3663
3664         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3665         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3666         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3667         library implementation clobbers the output before the inputs
3668         are fully consumed, use stack temporary for the output.
3669
3670 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
3671
3672         * config/netbsd.h (CPP_SPEC): Remove.
3673         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3674         * config/i386/netbsd.h (CPP_SPEC): Define.
3675         * config/ns32k/netbsd.h (CPP_SPEC): Define.
3676         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3677         * config/sparc/netbsd.h (CPP_SPEC): Define.
3678         * config/vax/netbsd.h (CPP_SPEC): Define.
3679
3680 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3681
3682         * read-rtl.c: Fix formatting.
3683         * real.c: Likewise.
3684         * recog.c: Likewise.
3685         * regclass.c: Likewise.
3686         * regmove.c: Likewise.
3687         * reg-stack.c: Likewise.
3688         * reload1.c: Likewise.
3689         * reload.c: Likewise.
3690         * resource.c: Likewise.
3691         * rtlanal.c: Likewise.
3692         * rtl.c: Likewise.
3693         * rtl-error.c: Likewise.
3694
3695 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3696
3697         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3698         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3699
3700 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
3701
3702         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3703         use __SSE2__ macro instead.
3704         * config/i386/xmmintrin.h: Likewise.
3705
3706 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
3707
3708         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3709         and use it in all invocations of these macros.  Clean up comments.
3710         * rtl.c (rtl_check_failed_flag): Add an argument for the name
3711         of the flag access macro whose check failed.
3712         * doc/rtl.texi (Flags): Document additional flag uses.
3713
3714 2002-05-08  Robert Spier <rspier@pobox.com>
3715             Neil Booth  <neil@daikokuya.demon.co.uk>
3716
3717         PR preprocessor/6521
3718         * cppfiles.c (handle_missing_header): Don't do anything
3719         different for <> includes.
3720 doc:
3721         * cppopts.texi: Update documentation for -MG.
3722
3723 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3724
3725         * cpplex.c (cpp_interpret_charconst): Truncate as well as
3726         sign-extend.
3727 doc:
3728         * cpp.texi: Clarify multichar charconst valuation.
3729
3730 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3731
3732         * doc/invoke.texi: Document -mwindiss option.
3733
3734 2002-05-08  Jason Merrill  <jason@redhat.com>
3735
3736         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3737
3738         * dwarf2out.c (gen_type_die): Abort on broken recursion.
3739
3740         PR c++/6381
3741         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3742         REAL_CST.
3743
3744 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
3745
3746         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3747         little-endian multilibs to override arm/thumb multilibs.
3748         Do not build hardware floating point multilibs, nor apcs-26
3749         multilibs for the Thumb.
3750
3751 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3752
3753         PR c/6569.
3754         * varasm.c (mark_weak): New function.
3755         (merge_weak): Use it.  Do not call declare_weak.
3756         (declare_weak): Use merge_weak.
3757
3758 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3759
3760         * cse.c (dead_libcall_p): Update counts.
3761         (delete_trivially_dead_insns): Update call of dead_libcall_p.
3762
3763 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
3764
3765         * cfglayout.c (function_tail_eff_head): Rename to ...
3766         (function_footer): ... this one.
3767         (unlink_insn_chain): New functions.
3768         (label_for_bb): Only call block_label and emit debug message.
3769         (record_effective_endpoints): Actually unlink the headers and footers.
3770         (fixup_reorder_cahin): Re-insert the unlinked sequences.
3771         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3772         * cfglayout.h (struct reorder_block_def): New fields footer/header;
3773         remove eff_head/eff_end.
3774         * rtl.h (set_first_insn): Declare.
3775         * emit-rtl.c (set_first_insn): New function.
3776
3777         * cfglayout.c (fixup_reorder_chain): Dump duplicated
3778         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3779         cfg_layout_duplicate_bb): New global function.
3780         (duplicate_insn_chain): New static function.
3781         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3782         cfg_layout_duplicate_bb): Declare.
3783         (struct reorder_block_def): Add "original" field.
3784         * emit-rtl.c (emit_copy_of_insn_after): New function.
3785         * rtl.h (emit_copy_of_insn_after): Declare.
3786
3787         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3788         (fixup_reorder_chain): properly handle edges to exit block.
3789
3790 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3791                                Jan Hubicka  <jh@suse.cz>
3792
3793         * basic-block.h (note_prediction_to_br_prob): declare.
3794         * c-semantics.c: Inlucde predit.h
3795         (expand_stmt): predict GOTO_STMT as not taken.
3796         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3797         (cleanup_cfg): Do not free tail_recursion_list.
3798         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3799         (flow_delete_block): Kill predictions past end of basic block.
3800         * output.h (delete_unreachable_blocks): Declare.
3801         * predict.c (predicted_by_p, process_note_predictions,
3802         process_note_prediction, last_block_p): New function.
3803         (estimate_probability): Bypass loop on PRED_CONTINUE;
3804         do not handle noreturn heuristics; kill PRED_RETURN; add
3805         PRED_EARLY_RETURN.
3806         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3807         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3808         * predict.h (IS_TAKEN): New constant.
3809         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3810         * rtl.c (NOTE_INSN_PREDICTION): New.
3811         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3812         New macro.
3813         (insn_note): add NOTE_INSN_PREDICTION.
3814         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3815         CFG; free tail_recursion_label_list.
3816         * stmt.c: Include predict.h;
3817         (return_prediction): New.
3818         (expand_value_return): Use it.
3819         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3820
3821 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
3822
3823         * config/mips/mips.md: Name the unspecs with define_constant.
3824         (*HILO_delay): Rename to 'hilo_delay' (no star).
3825         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3826         (reload_outdi, reload_outsi): Likewise.
3827
3828 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
3829
3830         * toplev.c: Fix formatting.
3831
3832 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
3833
3834         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3835         * configure.in (ac_rtlflag_checking): New.
3836         * doc/install.texi (--enable-checking): Document RTL flag checking.
3837
3838 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3839
3840         * c-common.c (c_common_init): Set options->unsigned_wchar.
3841         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3842         group target dependencies.
3843         (init_builtins, cpp_handle_option): Update.
3844         * cpplex.c (cpp_interpret_charconst): Update.
3845         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3846         signed_char to unsigned_char, group target dependencies.
3847         * defaults.h (WCHAR_UNSIGNED): Remove.
3848         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3849 config:
3850         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3851         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3852         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3853         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3854         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3855 doc:
3856         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3857
3858 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3859
3860         * fixinc/inclhack.def (windiss_math1): New fix.
3861         (windiss_math2): Likewise.
3862         (windiss_valist): Likewise.
3863         * fixinc/fixincl.x: Regenerated.
3864
3865 2002-05-07  Andreas Jaeger  <aj@suse.de>
3866
3867         * genautomata.c (output_internal_min_issue_delay_func): Add
3868         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3869         (output_internal_trans_func): Likewise.
3870
3871 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
3872
3873         * pa.c (hppa_profile_hook): Use force_reg to get the address
3874         of the profile hook into an appropriate pseudo register.
3875
3876 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3877
3878         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3879         (LINK_START_SPEC): Handle it.
3880         (LINK_OS_SPEC): Likewise.
3881         (CPP_SPEC): Likewise.
3882         (STARTFILE_SPEC): Likewise.
3883         (LIB_SPEC): Likewise.
3884         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
3885         all platforms.
3886         (CRTSAVRES_DEFAULT_SPEC): New macro.
3887         (LIB_WINDISS_SPEC): New macro.
3888         (CPP_OS_WINDISS_SPEC): Likewise.
3889         (STARTFILE_WINDISS_SPEC): Likewise.
3890         (ENDFILE_WINDISS_SPEC): Likewise.
3891         (LINK_START_WINDISS_SPEC): Likewise.
3892         (LINK_OS_WINDISS_SPEC): Likewise.
3893         * config/rs6000/windiss.h: New file.
3894
3895 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
3896
3897         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3898
3899 2002-05-06  David S. Miller  <davem@redhat.com>
3900
3901         * config/sparc/sparc.md (shift insns): Do not mask off
3902         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3903         take care of it.
3904
3905 2002-05-06  Richard Henderson  <rth@redhat.com>
3906
3907         PR c++/6212
3908         * expr.c (highest_pow2_factor_for_type): New.
3909         (expand_assignment): Use it.
3910
3911 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
3912
3913         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3914         unspec_volatile.
3915         ("altivec_mfvscr"): Same.
3916
3917 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
3918
3919         * rtl.h (struct rtx_def): Update comments.
3920         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
3921         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
3922         RTL_FLAG_CHECK macros with list of expected RTL codes.
3923         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3924         (rtl_check_failed_flag): New.
3925         * reload1.c (reload): Use REG macro before changing rtx to MEM.
3926         (reload_cse_noop_set_p): Check rtx code before using access macro.
3927         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3928         before using access macro.
3929
3930 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
3931
3932         * doc/rtl.texi (Flags): Update to reflect current usage.
3933
3934 2002-05-06  Roger Sayle  <roger@eyesopen.com>
3935
3936         PR opt/3995
3937         * fold-const.c (sign_bit_p): New function.
3938         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3939         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3940         Reapply fold when converting (A & C) == C into (A & C) != 0.
3941         (fold_binary_op_with_conditional_arg): Fix typo in comment.
3942
3943 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3944
3945         * c-common.c (warn_multichar): New.
3946         (c_common_init): Set CPP's warn_multichar.
3947         * c-common.h (warn_multichar): New.
3948         * c-decl.c (warn_multichar): Remove.
3949         * c-lex.c (lex_charconst): Update.
3950         * c-tree.h (warn_multichar): Remove.
3951         * cppexp.c (eval_token): Sign-extend charconst value.
3952         * cppinit.c (cpp_create_reader): Set warn_multichar.
3953         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3954         each character.  Update prototype.  Sign-extend the result.
3955         * cpplib.h: Fix conditions.
3956         (struct cpp_options): Add new warning flag.
3957         (cpp_interpret_charconst): Update prototype.
3958 doc:
3959         * cpp.texi: Update documentation.
3960
3961 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
3962
3963         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3964         Fix typo in usage of allof instead of unit.
3965
3966 2002-05-06  Richard Henderson  <rth@redhat.com>
3967
3968         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3969         and any jump or call for IN.
3970
3971 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
3972
3973         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3974         -msse2.
3975         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3976
3977 2002-05-06  Roger Sayle  <roger@eyesopen.com>
3978
3979         * fold-const.c (lshift-double): Cast the high word to an unsigned
3980         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3981         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3982         avoid compiler warning.  (fold): Remove redundant code from
3983         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3984
3985 2002-05-06  Jeff Law  <law@redhat.com>
3986
3987         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3988         * pa.c (pa_adjust_cost): Remove all true dependency cost
3989         adjustments.  Also remove support for non-DFA scheduling.
3990         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3991         to adjust true dependency costs.  Update various comments.
3992         (7100lc, 7200, 7300 scheduling): Simplify by combining the
3993         FP ALU & MPY units into a single unit.
3994
3995 2002-05-06  Catherine Moore  <clm@redhat.com>
3996
3997         * config/v850/v850.c (compute_register_save_size): Make sure
3998         to count all of the registers that will be saved.
3999
4000 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4001
4002         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4003
4004 2002-05-06  David S. Miller  <davem@redhat.com>
4005
4006         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4007         allow result to overlap input operands in memory.
4008
4009 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4010
4011 doc:
4012         * cpp.texi: Update multichar charconst docs.
4013
4014 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4015
4016         * cpplex.c (cpp_interpret_charconst): Sign-extend each
4017         character.  Don't ignore excess characters.  Treat
4018         multicharacter character constants as signed.
4019         (cpp_parse_escape): Clarify diagnostic.
4020
4021 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4022
4023         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4024         use add instead of shift.
4025         (ashldi3_sp64): Likewise.
4026         (ashlsi3_const1, ashldi3_const1): Remove.
4027         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4028         * config/sparc/sparc.c (const1_operand): New.
4029
4030 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
4031
4032         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4033
4034 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4035
4036         PR target/6561
4037         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4038
4039 2002-05-05  Richard Henderson  <rth@redhat.com>
4040
4041         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4042         memory latency adjustments.
4043         (alpha_variable_issue): Remove.
4044         (alpha_use_dfa_pipeline_interface): New.
4045         (alpha_multipass_dfa_lookahead): New.
4046         * config/alpha/alpha.md: Remove define_function_unit scheduling;
4047         include new dfa scheduling.
4048         (attr type): Add none.
4049         (blockage): Use it.
4050         * config/alpha/ev4.md: New.
4051         * config/alpha/ev5.md: New.
4052         * config/alpha/ev6.md: New.
4053
4054 2002-05-05  David S. Miller  <davem@redhat.com>
4055
4056         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4057
4058 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
4059
4060         * cse.c: Fix formatting.
4061         * emit-rtl.c: Likewise.
4062
4063 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4064
4065         * genautomata.c (initiate_states): Add additional guard to
4066         initialize `units_array'.
4067
4068 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4069
4070         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4071         process_unit_to_form_the_same_automaton_unit_lists,
4072         form_the_same_automaton_unit_lists
4073         check_unit_distributions_to_automata): New prototypes and
4074         functions.
4075         (check_automata): Rename it into `check_automata_insn_issues'.
4076         (unit_decl): New fields `the_same_automaton_unit' and
4077         `the_same_automaton_message_reported_p'.
4078         (unit_decl_t): New typedef.
4079         (the_same_automaton_lists): New gloval variable.
4080         (unit_regexp, unit_set_el, units_array, units_cmp,
4081         output_get_cpu_unit_code_func): Use the typedef.
4082         (evaluate_max_reserv_cycles): Increment
4083         `description->max_insn_reserv_cycles'.
4084         (initiate_states): Don't increment `max_cycles_num'.
4085         (transform_insn_regexps): Move code around transformation of
4086         regexps from `generate'.
4087         (generate): Remove call of `transform_insn_regexps'.
4088         (expand_automata): Call `transform_insn_regexps' and
4089         `check_unit_distributions_to_automata'.  Check errors before
4090         `generate'.
4091
4092         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4093         automaton `ultrasparc3_1'.
4094
4095 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4096
4097         * c-common.c (c_common_init): Set up CPP arithmetic.
4098         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4099         something reasonable for the host.
4100         (sanity_checks): Add checks.
4101         (cpp_read_main_file): Call sanity_checks() from here...
4102         (cpp_post_options): ... not here.
4103         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4104         * cpplib.h (struct cpp_options): New member int_precision.
4105
4106 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4107
4108         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4109
4110 2002-05-04  David S. Miller  <davem@redhat.com>
4111
4112         * config/sparc/linux.h, config/sparc/linux64.h
4113         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4114
4115         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4116         more RTX codes.
4117         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4118
4119         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4120         of SETs.
4121
4122 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4123
4124         * treelang; New directory for new sample language treelang.
4125
4126 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4127
4128         * Makefile.in (c-lex.o): Update.
4129         * c-lex.c: Include target.h.
4130         (cb_register_builtins): New.
4131         (init_c_lex): Set builtins callback.
4132         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4133         * cppinit.c (init_builtins): Use callback, including for
4134         GXX_WEAK.
4135         * cpplib.h (struct cpp_callbacks): New member.
4136         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4137         (TARGET_INITIALIZER): Update.
4138         * target.h (struct gcc_target): New hook.
4139         * tree.c (default_register_cpp_builtins): New.
4140         * tree.h (default_register_cpp_builtins): New.
4141 doc:
4142         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4143
4144 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4145
4146         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4147         (cpp_post_options): Move sanity checks to...
4148         (sanity_checks): New.
4149         * cpplex.c (maybe_read_ucs): Fix prototype.
4150         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4151         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4152         if necessary.
4153
4154 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4155
4156         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4157         builtins.  Use V2DI patterns instead of TI for logical operations.
4158         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4159         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4160         (ix86_expand_builtins): Change the pattern used for movntdq.
4161         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4162         sse2_nandv2di3): New patterns.
4163         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4164         on operands.
4165         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4166         (cvtdq2pd): Correct mode on operand 1.
4167         (sse2_umulsidi3): Describe without unspec.
4168         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4169         machine modes.
4170         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4171         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4172         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4173         ashlv4si3, ashlv2di3): Use SImode for shift count.
4174         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4175         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4176         New patterns.
4177         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4178         New typedefs.
4179         (__m128i, __m128d): New macros.
4180         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4181         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4182         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4183         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4184         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4185         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4186         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4187         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4188         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4189         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4190         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4191         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4192         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4193         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4194         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4195         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4196         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4197         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4198         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4199         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4200         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4201         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4202         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4203         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4204         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4205         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4206         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4207         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4208         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4209         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4210         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4211         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4212         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4213         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4214         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4215         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4216         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4217         functions.
4218         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4219         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4220
4221 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4222
4223         * dwarf2out.c: Fix formatting.
4224         * varasm.c: Likewise.
4225
4226 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4227
4228         PR c/6543
4229         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4230         clobber and use result as temporary value.
4231
4232 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4233
4234         * expr.c (force_operand): Use expand_simple_* to handle more
4235         cases.
4236
4237 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4238
4239         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4240         and sign-extension.
4241         (lex_charconst): Update for change in prototype of
4242         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4243         appropriately.
4244         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4245         * cppinit.c (cpp_create_reader): Initialize them for no
4246         change in semantics.
4247         (cpp_post_options): Add sanity checks.
4248         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4249         and truncation issues.  Calculate in type cppchar_t.
4250         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4251         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4252         run-time dependent precision correctly.  Return whether the
4253         result is signed or not.
4254         * cpplib.c (dequote_string): Use cppchar_t; update.
4255         * cpplib.h (cppchar_signed_t): New.
4256         struct cpp_options): New precision members.
4257         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4258         * cppexp.c (eval_token): Update.
4259
4260 2002-05-03  David S. Miller  <davem@redhat.com>
4261
4262         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4263         * config/sparc/sparc.c (sparc_rtx_costs): New function
4264         implementing RTX_COSTS and CONST_COSTS.
4265         * config/sparc/sparc.h (CONST_COSTS): Delete.
4266         (RTX_COSTS_CASES): Define.
4267         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4268         the work.
4269
4270         * config/sparc/sparc.md (DFA schedulers): Split out...
4271         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4272         config/sparc/sparclet.md, config/sparc/supersparc.md,
4273         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4274
4275         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4276         checks on it, always defined for Sparc.
4277
4278         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4279         Tweak, and add more detailed comments.
4280
4281 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4282
4283         * Re-apply patch accidentally reverted with
4284         DFA scheduler merge: remove all rules and variables to slurp
4285         source files out of libiberty and rebuild them with HOST_CC.
4286         ($(HOST_PREFIX_1)varray.o): New rule.
4287         (genattrtab rule): Word wrap.
4288
4289 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4290
4291         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4292         (CPP_SUBTARGET_SPEC): Define.
4293         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4294         cpp_subtarget specs.
4295         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4296
4297 2002-05-03  David S. Miller  <davem@redhat.com>
4298
4299         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4300         * target.h (struct gcc_target): Delete cycle_display member.
4301
4302         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4303         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4304         (ia64_sched_reorder2): Mention need for cycle display handling
4305         once such notes exist.
4306
4307 2002-05-03  Richard Henderson  <rth@redhat.com>
4308
4309         * real.c (etoasc): Strip most trailing zeros for clarity.
4310         * sched-vis.c: Include real.h.
4311         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4312         * Makefile.in (sched-vis.o): Add real.h.
4313
4314 2002-05-03  David S. Miller  <davem@redhat.com>
4315
4316         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4317         no longer needed.
4318
4319 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4320
4321         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4322         when we get an out of range literal.
4323         (altivec_expand_ternop_builtin): Same.
4324         (altivec_expand_unop_builtin): Same.
4325         (altivec_expand_builtin): Same, for dss.
4326         (altivec_expand_builtin): Use trees instead of rtl when
4327         determining literal argument validity.
4328
4329 2002-05-03  David S. Miller  <davem@redhat.com>
4330
4331         Delete cycle display scheduling hook.
4332         * config/ia64/ia64.c (ia64_cycle_display,
4333         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4334         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4335         and use emit_insn_before instead of ia64_emit_insn_before.
4336         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4337         (cycle_display): Delete insn pattern.
4338         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4339         (cycle_display): Delete insn pattern.
4340         * config/sparc/sparc.c (sparc_cycle_display,
4341         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4342         * doc/md.texi (cycle_display): Don't mention.
4343         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4344
4345 2002-05-03  Richard Henderson  <rth@redhat.com>
4346
4347         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4348         * recog.h: Declare them.
4349
4350         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4351         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4352         * config/sparc/sparc-protos.h: Update.
4353
4354 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4355
4356         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4357         -D__arch64__.  Add -D_LP64.
4358         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4359         from sparc.h.
4360         (CPP_ARCH64_SPEC): Likewise.
4361         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4362         (NO_BUILTIN_SIZE_TYPE): Undef.
4363
4364 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4365
4366         * genautomata.c (min_issue_delay_pass_states): Change return type
4367         in the prototype.
4368         (min_issue_delay_pass_states): Change the algorithm.
4369         (min_issue_delay): Set up min_insn_issue_delay for the state.
4370         (output_min_issue_delay_table): Interchange the nested loops and
4371         and initiate min_insn_issue_delay for states.
4372
4373 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4374
4375         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4376         jump is simplejump.
4377
4378 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4379
4380         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4381         sequence.
4382
4383 2002-05-03  Richard Henderson  <rth@redhat.com>
4384
4385         PR opt/6534
4386         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4387         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4388         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4389         code before JUMP, not EARLIEST.
4390
4391 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4392
4393         * c-format.c (check_format_info_main): Don't check for presence of
4394         parameter for * width until after operand number has been read,
4395         and only check for it if format parameters are available.
4396         Fixes PR c/6547.
4397
4398 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4399
4400         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4401         (LINK_SPEC): Undef before defining.
4402
4403 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4404
4405         PR preprocessor/6489
4406         * tradcpp.c (fixup_newlines): New.
4407         (main, finclude): Use it.
4408
4409 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4410
4411         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4412         * config/mips/mips.c (mips_unique_section): Strip encoding from
4413         decl name.
4414
4415 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4416
4417         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4418         mode.
4419
4420 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4421
4422         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4423         (Specific): Removed buildstats references.
4424         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4425         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4426         Accomodate Solaris versions beyond 8.
4427         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4428         (Specific, *-*-solaris2.8): Removed, obsolete.
4429
4430 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4431
4432         PR target/6542
4433         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4434         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4435         fill leaf_reg_remap with identity.
4436         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4437
4438 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4439
4440         * config/h8300/crti.asm: Remove trailing spaces.
4441         * config/h8300/h8300.c: Likewise.
4442         * config/h8300/lib1funcs.asm: Likewise.
4443
4444 2002-05-02  Jason Merrill  <jason@redhat.com>
4445
4446         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4447         * c-decl.c (c_init_decl_processing): Use it.
4448         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4449         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4450         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4451
4452 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4453
4454         * regrename.c: Fix formatting.
4455         * tree.c: Likewise.
4456
4457 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4458
4459         * i386.md (attribute memory): Handle compares properly.
4460
4461 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4462
4463         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4464         to none.
4465
4466 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4467
4468         * function.c: Fix formatting.
4469
4470 2002-05-02  Jan Hubicka  <jh@suse.cz>
4471
4472         * haifa-sched.c (schedule_insn): Print table of instructions and
4473         reservations.
4474         (sched_block): Do not print ready list at verbosity level 1.
4475         * sched-vis.c (print_insn): Make global.
4476         * sched-ebb.c (ebb_print_insn): Rename from...
4477         (print_insn): ... this one.
4478         * sched-int.h (print_insn): Declare
4479
4480 2002-05-02  Richard Henderson  <rth@redhat.com>
4481
4482         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4483         emitted by cycle_display.
4484
4485 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4486
4487         * doc/install.texi (*-*-freebsd*): Update to latest status.
4488
4489 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4490
4491         PR target/6540
4492         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4493         * config/float-sparc.h: Assume 128-bit long double if
4494         __LONG_DOUBLE_128__ is defined.
4495
4496 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4497
4498         * genattrtab.c (write_function_unit_info): Add a dummy element
4499         when num_units == 0.
4500
4501 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4502
4503         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4504         TYPE_MODE (double_type_node) instead of DFmode.
4505
4506 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4507
4508         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4509         jumps post reload.
4510         * toplev.c (rest_of_compilation): Revert Richard's patch.
4511
4512 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4513
4514         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4515
4516 2002-05-02  Catherine Moore  <clm@redhat.com>
4517
4518         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4519
4520 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4521
4522         * combine.c: Fix comment typos.
4523         * expr.c: Likewise.
4524         * genautomata.c: Likewise.
4525         * stmt.c: Likewise.
4526         * tree.h: Likewise.
4527
4528 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4529
4530         * doc/install.texi: State GNAT version requirements.
4531
4532 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4533
4534         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4535         of the frame pointer or arg pointer register which strict register
4536         checking is not enabled.
4537
4538 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4539
4540         * gcc.dg/altivec-8.c: New.
4541
4542         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4543         PRE_INC and PRE_DEC for altivec modes.
4544
4545 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4546
4547         * fixinc/check.tpl(set-writable): make sure the function exists first
4548         * fixinc/inclhack.def(alpha_assert): fix test_text
4549         * fixinc/tests/base/assert.h: add in missing result
4550
4551 2002-05-01  Jeff Law  <law@redhat.com>
4552
4553         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4554         'T' constraint.
4555
4556 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4557
4558         * dbxout.c (dbxout_type): Emit size information for range types,
4559         as well, but only when using GDB extensions.
4560
4561 2002-05-01  Richard Henderson  <rth@redhat.com>
4562
4563         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4564         target-independent gnu binutils date test.
4565
4566 2002-05-01  Richard Henderson  <rth@redhat.com>
4567
4568         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4569         info before expunging the block.
4570
4571 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4572
4573         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4574         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4575         -M -or -MM is in effect.
4576
4577 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4578
4579         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4580         A29k configurations.
4581         * doc/install.texi: Update to match.
4582
4583 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4584
4585         PR bootstrap/6514
4586         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4587         for duplicates. Always loop over whole list.
4588
4589 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4590
4591         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4592
4593 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4594
4595         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4596         support routines.
4597
4598 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4599
4600         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4601
4602 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
4603
4604         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4605         (nabs_nopower): Same.
4606         (floatdisf2): New pattern.
4607         (absdi2): Convert to define_insn_and_split.
4608         (nabsdi2): Same.
4609         (trunctfsf2): Same.
4610         (floatditf2): Same.
4611         (floatsitf2): Same.
4612         (fix_trunctfdi2): Same.
4613         (fix_trunctfsi2): Same.
4614
4615 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4616
4617         * doc/install.texi: Update Texinfo version requirement
4618         documentation.
4619
4620 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4621
4622         PR target/6512, PR target/5628
4623         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4624         when memory is not aligned.
4625         (movdf_insn_v9only_vis): Likewise.
4626         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4627         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4628         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4629
4630 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
4631
4632         * gcc.dg/altivec-7.c: New.
4633
4634         * config/rs6000/altivec.h: Cleanup.
4635
4636 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
4637
4638         * doc/invoke.texi (Option Summary): Add -mvrsave=.
4639         (RS/6000 and PowerPC Options): Document -mvrsave=.
4640
4641         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4642         (rs6000_altivec_vrsave_string): Same.
4643         (rs6000_override_options): Call rs6000_parse_vrsave_option.
4644         (rs6000_parse_vrsave_option): New.
4645         (rs6000_stack_info): Only generate vrsave instructions when
4646         TARGET_ALTIVEC_VRSAVE.
4647
4648         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4649         (rs6000_altivec_vrsave_string): Define extern.
4650         (rs6000_altivec_vrsave): Same.
4651         (TARGET_ALTIVEC_VRSAVE): New.
4652
4653 2002-04-30  Richard Henderson  <rth@redhat.com>
4654
4655         PR opt/6516
4656         * toplev.c (rest_of_compilation): Don't run cross-jump before
4657         bb-reorder.
4658
4659 2002-04-30  Tom Rix  <trix@redhat.com>
4660
4661         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4662         check which_alternative.
4663
4664 2002-04-30  Kazu Hirata  <kazu@hxi.com>
4665
4666         * cpplex.c: Fix comment formatting.
4667         * function.c: Likewise.
4668         * integrate.c: Likewise.
4669         * regrename.c: Likewise.
4670         * sibcall.c: Likewise.
4671         * simplify-rtx.c: Likewise.
4672         * tree-inline.c: Likewise.
4673
4674 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4675
4676         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4677         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4678         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4679         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4680         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4681         * pa/x-ada: New file.  Define ADA_CFLAGS.
4682
4683 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
4684
4685         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4686         from MMIX_LAST_REGISTER_FILE_REGNUM.
4687         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4688         (struct machine_function): New member highest_saved_stack_register
4689         previously static variable in mmix.c.
4690         (MACHINE_DEPENDENT_REORG): Define.
4691         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4692         (MMIX_OUTPUT_REGNO): New.
4693         (mmix_target_asm_function_prologue): Move calculation of last used
4694         saved-stack-register into...
4695         (mmix_machine_dependent_reorg): New function.  Update to also handle
4696         !TARGET_ABI_GNU.
4697         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4698         register names, simplify somewhat by new variable regno.
4699         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
4700         register.
4701         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4702         emitting register names.
4703         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4704         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4705         Remove fixed FIXME.
4706         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4707         Declare.
4708
4709         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4710
4711 2002-04-30  Richard Henderson  <rth@redhat.com>
4712
4713         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4714         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4715         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4716         emit_tfmode_cvt): New.
4717         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4718         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4719         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4720         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4721         * config/sparc/sparc-protos.h: Update.
4722
4723 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
4724
4725         * install.texi (Final install): Add to the list of info to include
4726         in a report of a successful bootstrap, and add link to 3.1 list.
4727
4728 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
4729
4730         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4731         (mode): Add vector modes
4732         (i387): Kill attribute.
4733         (unit): New attribute.
4734         (length_immediate): Grok new types.
4735         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4736         (modrm): Use "unit".
4737         (memory): Handle MMX/SSE properly.
4738         (scheduling descriptions): Kill uses of fop1.
4739         (sse, mmx, fp patterns): Set type and mode properly.
4740
4741 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
4742
4743         * pa.c (override_options): Default to PA8000 scheduling.
4744         * doc/invoke.texi (HP-PA options): Mention newly added 7300
4745         scheduling parameter.
4746
4747         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4748         handling of double precision multiplies.
4749
4750         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4751         fpdiv and fpsqrt instructions.
4752         (7200 & 7300 scheduling): Fix typo in handling of
4753         store-load and store-store penalties.
4754
4755 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4756
4757         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4758         mips.  Add two missing commas.
4759
4760 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
4761
4762         * doc/contrib.texi (Contributors): Update Paolo Carlini's
4763         and Benjamin Kosnik's entries.
4764
4765 2002-04-29  David S. Miller  <davem@redhat.com>
4766
4767         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4768         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4769         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4770         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4771
4772 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4773
4774         * combine.c (find_split_point): Use gen_int_mode.
4775
4776 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4777
4778         Merging code from dfa-branch:
4779
4780         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
4781
4782         * genautomata.c (output_reserv_sets): Fix typo.
4783
4784         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
4785
4786         * genautomata.c (output_reserv_sets): Remove
4787         next_cycle_output_flag.
4788
4789         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
4790
4791         * sched-rgn.c (init_ready_list): Make the DFA code handle
4792         USE/CLOBBER insns in the same way as the traditional
4793         scheduler.
4794         (new_ready): Similarly..
4795
4796         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
4797
4798         * haifa-sched.c (schedule_block): Change the DFA state only after
4799         issuing insn.
4800
4801         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
4802
4803         * pa.c (hppa_use_dfa_pipeline_interface): New function.
4804         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4805         (override_options): Add PA7300 scheduling support.
4806         (pa_adjust_cost): Update various comments.  Properly
4807         handle anti and output dependencies when using the
4808         DFA scheduler.
4809         (pa_issue_rate): Add PA7300 scheduling support.
4810         (pa_can_combine_p): Call extract_insn before calling
4811         constrain_operands (taken from mainline tree).
4812         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4813         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
4814         descriptions using DFA descriptions.  Add PA7300
4815         scheduling support.
4816
4817         2002-03-30  David S. Miller  <davem@redhat.com>
4818
4819         Add UltraSPARC-III DFA scheduling support.
4820         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4821         Update FP conditional move on register insn patterns to use it, as
4822         appropriate.
4823         (define_attr cpu): Add ultrasparc3.
4824         (define_attr us3load_type): New, update integer load patterns to
4825         set it, as appropriate.
4826         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4827         (rest): Add UltraSPARC3 scheduling description.
4828         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4829         (PROCESSOR_ULTRASPARC3): New.
4830         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4831         ({ASM,CPP}_CPU_SPEC): Likewise.
4832         (REGISTER_MOVE_COST): Likewise.
4833         (RTX_COSTS): Likewise.
4834         * config/sparc/sparc.c (sparc_override_options,
4835         sparc_initialize_trampoline, sparc64_initialize_trampoline,
4836         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4837         sparc_issue_rate): Likewise.
4838         * config/sparc/sol2.h: Likewise.
4839         * config/sparc/sol2-sld-64.h: Likewise.
4840         * config/sparc/linux64.h: Likewise.
4841
4842         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
4843
4844         * doc/md.texi: Add comments about usage the latency time for the
4845         different dependencies and about case when two or more conditions
4846         in different define_insn_reservations returns TRUE for an insn.
4847
4848         * doc/md.texi: Add reference for automaton based pipeline
4849         description.
4850
4851         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
4852
4853         * doc/passes.texi: Add missed information about genattrtab.
4854
4855         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
4856
4857         * genautomata.c (output_automata_list_transition_code): Check
4858         automata_list on NULL.
4859
4860         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
4861
4862         * genautomata.c (output_insn_code_cases,
4863         output_automata_list_min_issue_delay_code,
4864         output_automata_list_transition_code,
4865         output_automata_list_state_alts_code): Comment the functions.
4866
4867         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
4868
4869         * genautomata.c (automata_list_el_t): New typedef.
4870         (get_free_automata_list_el,free_automata_list_el,
4871         free_automata_list, automata_list_hash, automata_list_eq_p,
4872         initiate_automata_lists, automata_list_start, automata_list_add,
4873         automata_list_finish, finish_automata_lists,
4874         output_insn_code_cases, output_automata_list_min_issue_delay_code,
4875         output_automata_list_transition_code,
4876         output_automata_list_state_alts_code, add_automaton_state,
4877         form_important_insn_automata_lists): New functions and prototypes.
4878         (insn_reserv_decl): Add members important_automata_list and
4879         processed_p.
4880         (ainsn): Add members important_p.
4881         (automata_list_el): New structure.
4882         (first_free_automata_list_el, current_automata_list,
4883         automata_list_table): New global variables.
4884         (create_ainsns): Initiate member important_p.
4885         (output_internal_min_issue_delay_func): Generate the switch and
4886         call output_insn_code_cases.
4887         (output_internal_trans_func, output_internal_state_alts_func):
4888         Ditto.
4889         (generate): Call initiate_automata_lists.
4890         (automaton_states): New global variable.
4891         (expand_automata): Call form_important_insn_automata_lists.
4892         (write_automata): Call finish_automata_lists.
4893
4894         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
4895
4896         * genautomata.c (add_excls, add_presence_absence): Check that
4897         cpu units in the sets belong the same automaton.
4898
4899         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4900         about that cpu units in the sets belong the same automaton.
4901
4902         * doc/md.texi: Ditto.
4903
4904         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
4905                     Nitin Gupta  <niting@noida.hcltech.com>
4906
4907         * config/sh/sh.c (sh_use_dfa_interface): New function.
4908
4909         (sh_issue_rate): New Function.
4910         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4911         TARGET_SCHED_ISSUE_RATE: define.
4912
4913         * config/sh/sh.md: Add DFA based pipeline description for SH4.
4914
4915         (define_attr insn_class): New attribute used for DFA
4916          scheduling.
4917         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4918         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4919          cmpeqdi_t): Likewise.
4920
4921         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4922          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4923          ex_group.
4924         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4925
4926         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
4927
4928         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4929         break.
4930
4931         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
4932
4933         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4934         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4935         necessary.
4936         (output_dfa_start_func): Initiate new variable insn_codes_length,
4937         (write_automata): Output definition of the new variable.
4938
4939         2001-10-02  David S. Miller  <davem@redhat.com>
4940
4941         * haifa-sched.c (advance_one_cycle): New function.
4942         (schedule_block): Use it.
4943         (queue_to_ready): Use it, and also make sure to advance the DFA
4944         state on all stall cycles, not just those where insn_queue links
4945         are found.
4946
4947         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
4948
4949         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
4950         non-zero if the highest-priority instruction could be scheduled.
4951         (choose_ready): Remove last argument from max_issue call.
4952
4953         2001-09-28  David S. Miller  <davem@redhat.com>
4954
4955         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4956         ultrasparc and 3 for other multi-issue sparcs.
4957
4958         2001-09-27  David S. Miller  <davem@redhat.com>
4959
4960         * config/sparc/sparc.md (cycle_display): New pattern.
4961         * config/sparc/sparc.c (sparc_cycle_display): New.
4962         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4963
4964         2001-09-25  David S. Miller  <davem@redhat.com>
4965
4966         Convert all of Sparc scheduling to DFA
4967         * config/sparc/sparc.md: Kill all define_function_unit
4968         directives and replace with DFA equivalent.
4969         * config/sparc/sparc.c (ultrasparc_adjust_cost,
4970         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4971         ultra_fpmode_conflict_exists, ultra_find_type,
4972         ultra_build_types_avail, ultra_flush_pipeline,
4973         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4974         ultrasparc_variable_issue, ultrasparc_sched_init,
4975         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4976         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4977         ultra_cur_hist, ultra_cycles_elapsed): Kill.
4978         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4979         ultrasparc_store_bypass_p): New.
4980         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4981         Declare.
4982
4983         2001-09-24  David S. Miller  <davem@redhat.com>
4984
4985         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4986         ready->vec[foo] not ready[foo].
4987
4988         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
4989
4990         * doc/md.texi: Correct examples for define_insn_reservations
4991         `mult' and `div'.
4992
4993         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
4994
4995         * genautomata.c (create_automata): Print message about creation of
4996         each automaton.
4997         (generate): Remove printing meease about creation of
4998         automata.
4999
5000         2001-09-05  David S. Miller  <davem@redhat.com>
5001
5002         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5003         * config/sparc/linux64.h: Likewise.
5004
5005         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
5006
5007         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5008         schedule_block, sched_init, sched_finish): Add missed calls of
5009         use_dfa_pipeline_interface.
5010
5011         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5012         Ditto.
5013
5014         * sched-vis.c (get_visual_tbl_length): Ditto.
5015
5016         2001-08-27  Richard Henderson  <rth@redhat.com>
5017
5018         * genattr.c (main): Emit state_t even when not doing scheduling.
5019
5020         2001-08-27  Richard Henderson  <rth@redhat.com>
5021
5022         * genautomata.c (expand_automata): Always create a description.
5023
5024         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5025
5026         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5027         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5028         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5029         RTL constructions.
5030
5031         * genattr.c (main): New variable num_insn_reservations.  Increase
5032         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5033         pipeline hazard recognizer interface.
5034
5035         * genattrtab.h: New file.
5036
5037         * genattrtab.c: Include genattrtab.h.
5038         (attr_printf, check_attr_test, make_internal_attr,
5039         make_numeric_value): Move protypes into genattrtab.h.  Define them
5040         as external.
5041         (num_dfa_decls): New global variable.
5042         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5043         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5044         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5045         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5046
5047         * genautomata.c: New file.
5048
5049         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5050
5051         * sched-int.h: (curr_state): Add the external definition for
5052         automaton pipeline interface.
5053         (haifa_insn_data): Add comments for members blockage and units.
5054
5055         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5056         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5057         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5058         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5059         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5060         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5061         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5062         macros.
5063         (TARGET_SCHED): Use the new macros.
5064
5065         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5066         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5067         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5068         dfa_bubble): New members in gcc_target.sched.
5069
5070         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5071         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5072         (insn_queue): Redefine it as pointer to array.
5073         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5074         INSN_QUEUE_SIZE.
5075         (max_insn_queue_index_macro_value): New variable.
5076         (curr_state, dfa_state_size, ready_try): New varaibles for
5077         automaton interface.
5078         (ready_element, ready_remove, max_issue): New function prototypes
5079         for automaton interface.
5080         (choose_ready): New function prototype.
5081         (insn_unit, blockage_range): Add comments.
5082         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5083         FUNCTION_UNITS_SIZE == 0.
5084         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5085         actual_hazard, potential_hazard): Add comments.
5086         (insn_cost): Use cost -1 as undefined value.  Remove
5087         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5088         pipeline interface.
5089         (ready_element, ready_remove): New functions for automaton
5090         interface.
5091         (schedule_insn): Add new code for automaton pipeline interface.
5092         (queue_to_ready): Add new code for automaton pipeline interface.
5093         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5094         (debug_ready_list): Print newline when the queue is empty.
5095         (max_issue): New function for automaton pipeline interface.
5096         (choose_ready): New function.
5097         (schedule_block): Add new code for automaton pipeline interface.
5098         Print ready list before scheduling each insn.
5099         (sched_init): Add new code for automaton pipeline interface.
5100         Initiate insn cost by -1.
5101         (sched_finish): Free the current automaton state and finalize
5102         automaton pipeline interface.
5103
5104         * sched-rgn.c: Include target.h.
5105         (init_ready_list, new_ready, debug_dependencies): Add new code for
5106         automaton pipeline interface.
5107
5108         * sched-vis.c: Include target.h.
5109         (get_visual_tbl_length): Add code for automaton interface.
5110         (target_units, print_block_visualization):  Add comments.
5111
5112         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5113         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5114         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5115         (getruntime.o, genautomata.o): New entries.
5116         (genattrtab.o): Add new dependency file genattrtab.h.
5117         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5118         (getruntime.o, hashtab.o): New entries for canadian cross.
5119
5120         * doc/md.texi: Description of automaton based model.
5121
5122         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5123         Add comments.
5124         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5125         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5126         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5127         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5128         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5129         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5130         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5131         hook descriptions.
5132         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5133         MAX_DFA_ISSUE_RATE): New macro descriptions.
5134
5135         * doc/contrib.texi: Add dfa based scheduler contribution.
5136
5137         * doc/gcc.texi: Add more information about genattrtab.
5138
5139 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5140
5141         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5142         adjust_address_nv call.
5143
5144 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5145
5146         * doc/install.texi (Testing): Provide additional information, and
5147         a stronger encouragement, for running the testsuites.
5148
5149 2002-04-29  DJ Delorie  <dj@redhat.com>
5150
5151         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5152         given in upper case.
5153
5154 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5155
5156         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5157         Solaris 2 <widec.h> if missing.
5158         * fixinc/fixincl.x: Regenerate.
5159         * fixinc/tests/base/widec.h: New file.
5160
5161 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5162
5163         * toplev.c (f_options): Add "profile" switch so that
5164         -fno-profile can be used to disable -p.
5165
5166 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5167
5168         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5169         UV2DImode.
5170         * tree.c (build_common_tree_nodes_2): Likewise.
5171         * tree.h (enum tree_index): Likewise.
5172         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5173
5174         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5175         entries.
5176         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5177         (ix86_expand_builtin): Add support for SSE2 builtins.
5178         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5179         (VALID_SSE_REG_MODE): Use it.
5180         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5181         (enum ix86_builtins): Add SSE2 builtins.
5182         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5183         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5184         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5185         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5186         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5187         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5188         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5189         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5190         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5191         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5192         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5193         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5194         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5195         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5196         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5197         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5198         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5199         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5200         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5201         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5202         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5203         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5204         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5205         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5206         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5207         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5208         lfence_insn): New patterns.
5209         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5210         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5211
5212 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5213
5214         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5215
5216 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5217
5218         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5219         Janis Johnson.
5220         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5221         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5222         and CPU instead of cpu.
5223
5224 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5225
5226         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5227         variables.
5228         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5229         (rest_of_compilation): Do if conversion only when asked for.
5230         (parse_options_and_default_flags): Set new variables to 1 for -O1
5231         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5232
5233 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5234
5235         * i386.c (dbx64_register_map): Fix typo.
5236
5237 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5238
5239         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5240         real_one_half, real_bb_freq_max): New static variables.
5241         (debug_profile_bbauxs): Kill.
5242         (process_note_predictions): Kill unused variable.
5243         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5244         volatile double.
5245         (propagate_freq): Use REAL_ARITHMETICS.
5246         (estimate_bb_frequencies): Likevise; init new static variables.
5247         * Makefile.in (predict.o): Add dependency on real.h
5248
5249 2002-04-28  David S. Miller  <davem@redhat.com>
5250
5251         PR target/6500
5252         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5253         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5254         several {reads,writes} instead.
5255         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5256         Define.
5257
5258 2002-04-27  David S. Miller  <davem@redhat.com>
5259
5260         PR target/6494
5261         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5262         of the stack bias.
5263
5264         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5265         including signal.h and sys/ucontext.h, not needed.
5266
5267 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5268
5269         * varasm.c (output_constant_def): Correct test for not calling
5270         ENCODE_SECTION_INFO for INTEGER_CST.
5271
5272 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5273
5274         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5275         keep most cases as function eval_token.
5276         (eval_token): New function.
5277         (_cpp_parse_expr): Read token here for improved diagnostics.
5278         Don't use op_as_text.  Detect bad ':' here.
5279         (reduce): Don't detect bad ':' here.
5280         (op_as_text): Remove.
5281         * cpphash.h (_cpp_test_assertion): Change prototype.
5282         * cpplib.c (_cpp_test_assertion): Change prototype.
5283
5284 2002-04-28  Richard Henderson  <rth@redhat.com>
5285
5286         PR c/5154
5287         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5288         (ggc_mark_rtx_children): New.
5289
5290 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5291
5292         PR target/6496
5293         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5294         after call peepholes for UltraSPARC.
5295         (call + jump 64-bit peepholes): Remove.
5296
5297 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5298
5299         PR c/6497
5300         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5301         result as temporary value.
5302
5303 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5304
5305         PR c++/6396
5306         * toplev.c (rest_of_compilation): Only run regrename and copy
5307         propagation if optimizing.
5308
5309 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5310
5311         PR optimization/6475
5312         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5313         register of REGNO_DECL (i).
5314         * Makefile.in (reload1.o): Add $(TREE_H).
5315
5316 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5317
5318         * cppexp.c (lex): Update to use state.skip_eval.
5319         (struct op): Remove prio and flags members.
5320         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5321         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5322         (LEFT_ASSOC): New macro.
5323         (optab): New table of operator priorities and flags.
5324         (SHIFT): Update.
5325         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5326         malloc-ed parser stack.
5327         (reduce): New; reduce the operator stack.
5328         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5329         * cpphash.h (struct op): Predeclare.
5330         (struct cpp_reader): New members op_stack, op_limit.
5331         (struct lexer_state): New member skip_eval.
5332         (_cpp_parse_expr): Update.
5333         (_cpp_expand_op_stack): New.
5334         * cpplib.c (do_if): Update.
5335         * cppinit.c (cpp_create_reader): Create op stack.
5336         (cpp_destroy): And destroy it.
5337         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5338         (TTYPE_TABLE): Correct.
5339
5340 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5341
5342         PR c/6343
5343         * c-decl.c (duplicate_decls): Call merge_weak.
5344         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5345         * output.h (merge_weak): Prototype merge_weak.
5346         * varasm.c (merge_weak): New function.
5347         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5348         Mark RTL with SYMBOL_REF_WEAK.
5349
5350 2002-04-27  Kurt Garloff <garloff@suse.de>
5351
5352         * tree-inline.c (inlinable_function_p): Improve heuristics
5353         by using a smoother function to cut down allowable inlinable size.
5354         * param.def: Add parameters max-inline-insns-single,
5355         max-inline-slope, min-inline-insns that determine the exact
5356         shape of the above function.
5357         * param.h: Likewise.
5358
5359 2002-04-26  Richard Henderson  <rth@redhat.com>
5360
5361         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5362         (yyoverflow): Re-add.  Set them.
5363         (free_parser_stacks): New.
5364         * c-common.h: Declare it.
5365         * c-lex.c (c_common_parse_file): Call it.
5366
5367 2002-04-26  Richard Henderson  <rth@redhat.com>
5368
5369         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5370         for fallthru search.
5371
5372 2002-04-26  Eric Christopher  <echristo@redhat.com>
5373
5374         PR optimization/3700
5375         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5376         (TARGET_SCHED_ISSUE_RATE): Use.
5377
5378 2002-04-25  David S. Miller  <davem@redhat.com>
5379
5380         PR target/6422
5381         * reorg.c (optimize_skip): Do not allow exception causing
5382         instructions to be considered for delay slots.
5383         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5384         (relax_delay_slots): Do not try to consider exception causing
5385         instructions as redundant.
5386
5387 2002-04-26  Richard Henderson  <rth@redhat.com>
5388
5389         PR c/5225
5390         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5391
5392 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5393
5394         PR bootstrap/6445
5395         * config/i386/i386.md (untyped_call): Return the value in a float
5396         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5397         TARGET_80387.
5398
5399 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5400
5401         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5402         in unsigned-ness correctly.
5403
5404 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5405
5406         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5407         portable runtime model.
5408
5409 2002-04-26  Richard Henderson  <rth@redhat.com>
5410
5411         * c-parse.in (yyoverflow): Revert.
5412
5413 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5414             Richard Henderson  <rth@redhat.com>
5415
5416         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5417         result as temporary value.
5418
5419 2002-04-26  Richard Henderson  <rth@redhat.com>
5420
5421         PR c/3581
5422         * c-common.c (fix_string_type): Split out of ...
5423         (combine_strings): ... here.  Take a varray, not a tree list.
5424         (c_expand_builtin_printf): Use fix_string_type.
5425         * c-common.h: Update decls.
5426         * c-parse.in (string): Remove.  Update all uses to use STRING
5427         instead, and not call combine_strings.
5428         (yylexstring): New.
5429         (_yylex): Use it.
5430         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5431         (build_asm_stmt): Likewise.
5432         * objc/objc-act.c (my_build_string): Use fix_string_type.
5433         (build_objc_string_object): Build varray for combine_strings.
5434
5435 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5436
5437         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5438         x86-64.
5439
5440 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5441
5442         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5443         (HAVE_NO_R_OPERAND): Remove.
5444         (HAVE_VALUE): Remove.
5445         (op_to_prio): Update.
5446         (UNARY): Don't alter flags.
5447         (_cpp_parse_expr): want_value used to indicate whether
5448         a number or unary operator is expected next.  Distinguish
5449         unary and binary +/-.
5450         (op_as_text): Update for unary operators.
5451
5452 2002-04-25  Richard Henderson  <rth@redhat.com>
5453
5454         PR c/2161
5455         * c-parse.in (yyoverflow): New.
5456
5457 2002-04-25  Richard Henderson  <rth@redhat.com>
5458
5459         PR c/2098
5460         * c-common.c (shorten_compare): Simplfy conditions leading to
5461         the generation of a warning.
5462
5463 2002-04-25  Richard Henderson  <rth@redhat.com>
5464
5465         PR c/2035
5466         * expmed.c (extract_bit_field): Fall through to generic code rather
5467         than aborting on subreg special case.
5468
5469 2002-04-25  David S. Miller  <davem@redhat.com>
5470
5471         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5472         for DECL being NULL.
5473
5474 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5475
5476         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5477
5478 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5479
5480         * c-decl.c (grokdeclarator): Remove outdated ??? note
5481         on invalid declaration of flexible array members.
5482
5483 2002-04-25  Richard Henderson  <rth@redhat.com>
5484
5485         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5486
5487 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5488
5489         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5490         needed by the compiler, even if they are used as global regs.
5491
5492 2002-04-25  Matt Hiller  <hiller@redhat.com>
5493
5494         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5495         functions.
5496         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5497         of the corresponding functions.
5498         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5499         New prototypes.
5500
5501 2002-04-25  Matt Hiller  <hiller@redhat.com>
5502
5503         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5504
5505         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5506         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5507         registers, adjust comment accordingly.
5508         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5509         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5510         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5511         for coprocessor registers.
5512         (ADDITIONAL_REGISTER_NAMES): Include
5513         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5514
5515         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5516         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5517         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5518         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5519         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5520
5521         (mips_char_to_class): Adjust comment to include coprocessor
5522         constraint letters.
5523
5524         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5525         New functions.
5526         (mips_reg_names, mips_regno_to_class): Include coprocessor
5527         information.
5528         (mips_sw_reg_names): Ditto, make non-static.
5529         (mips_move_1word): Handle moves to and from coprocessor registers.
5530         (mips_move_2words): Handle moves to and from coprocessor
5531         registers.
5532         (mips_class_max_nregs, mips_register_move_cost): Handle
5533         coprocessor register classes.
5534         (override_options): Initialize mips_char_to_class and
5535         mips_hard_regno_mode_ok properly for coprocessor registers.
5536
5537         * config/mips/mips.md (movdi_internal, movdi_internal2,
5538         movsi_internal1, movsi_internal2): Add constraint-sets for
5539         coprocessor registers.
5540         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5541         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5542         isn't mips.
5543         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5544         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5545         isn't mips.
5546         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5547         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5548         isn't mips.
5549         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5550         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5551         isn't mips.
5552
5553         * doc/tm.texi: Document feature.
5554
5555 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5556
5557         * integrate.c (function_attribute_inlinable_p): Simplify.
5558         Check the table pointer is not NULL.
5559
5560 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5561
5562         * doc/c-tree.texi: Fix typo in introduction.
5563
5564 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5565
5566         * c-common.h (c_common_parse_file): Update.
5567         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5568         * c-lex.c (YYDEBUG): Get from c-lex.h.
5569         (c_common_parse_file): Update.
5570         * c-lex.h (YYDEBUG, yydebug): New.
5571         * c-parse.in (YYDEBUG): Get from c-lex.h.
5572         (c_set_yydebug): Remove.
5573         * c-tree.h (c_set_yydebug): Remove.
5574         * langhooks-def.h (lhd_do_nothing_i): New.
5575         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5576         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5577         * langhooks.c  (lhd_do_nothing_i): New.
5578         (lhd_set_yydebug): Remove.
5579         * langhooks.h (struct lang_hooks): Update.
5580         * toplev.c (set_yydebug): New.
5581         (compile_file): Update call to parse_file hook.
5582         (decode_d_option): Update.
5583 objc:
5584         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5585
5586 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
5587
5588         * loop.c (load_mems): Don't change the interface of called functions.
5589
5590         * calls.c (expand_call): Take current_function_pretend_args_size
5591         into account when setting argblock for sibcalls.
5592
5593 2002-04-24  Matt Hiller  <hiller@redhat.com>
5594
5595         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5596         * c-lex.c: Ditto.
5597
5598         * cpplex.c (skip_line_comment): Process comment one multibyte
5599         character at a time rather than one char at a time, if
5600         appropriate.
5601         (parse_string): Process string one multibyte character at a time
5602         rather than one char at a time, if appropriate.
5603         * c-lex.c (lex_string): Lex and copy multibyte strings
5604         appropriately.
5605         * cpplib.h (cppchar_t): Change to unsigned.
5606
5607 2002-04-24  Richard Henderson  <rth@redhat.com>
5608
5609         PR c/3467
5610         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5611         for c99.
5612
5613 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
5614
5615         * sh.c (sh_va_arg): If argument was passed by reference,
5616         dereference the pointer.
5617
5618         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5619
5620         * sh.md (divsi3_i4_media): Use match_operand for input values
5621         rather than hard registers.
5622         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5623         unnecessarily through hard registers.  Keep copies of pseudo
5624         registers outside of the libcall sequence.
5625
5626         * sh.md (casesi_shift_media): Add modes.
5627
5628         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5629         values in memory.
5630
5631 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5632
5633         * attribs.c (c_common_attribute_table): Move table and handlers
5634         to c-common.c.
5635         (format_attribute_table, lang_attribute_table,
5636         lang_attribute_common): Remove.
5637         (init_attributes): Replace NULL pointers with pointers to the
5638         empty table.
5639         (handle_packed_attribute, handle_nocommon_attribute,
5640         handle_common_attribute, handle_noreturn_attribute,
5641         handle_noinline_attribute, handle_always_inline_attribute,
5642         handle_used_attribute, handle_unused_attribute,
5643         handle_const_attribute, handle_transparent_union_attribute,
5644         handle_constructor_attribute, handle_destructor_attribute,
5645         handle_mode_attribute, handle_section_attribute,
5646         handle_aligned_attribute, handle_weak_attribute,
5647         handle_alias_attribute, handle_visibility_attribute,
5648         handle_no_instrument_function_attribute, handle_malloc_attribute,
5649         handle_no_limit_stack_attribute, handle_pure_attribute,
5650         handle_deprecated_attribute, handle_vector_size_attribute,
5651         vector_size_helper): Move to c-common.c.
5652         * c-common.c (c_common_attribute_table,
5653         handle_packed_attribute, handle_nocommon_attribute,
5654         handle_common_attribute, handle_noreturn_attribute,
5655         handle_noinline_attribute, handle_always_inline_attribute,
5656         handle_used_attribute, handle_unused_attribute,
5657         handle_const_attribute, handle_transparent_union_attribute,
5658         handle_constructor_attribute, handle_destructor_attribute,
5659         handle_mode_attribute, handle_section_attribute,
5660         handle_aligned_attribute, handle_weak_attribute,
5661         handle_alias_attribute, handle_visibility_attribute,
5662         handle_no_instrument_function_attribute, handle_malloc_attribute,
5663         handle_no_limit_stack_attribute, handle_pure_attribute,
5664         handle_deprecated_attribute, handle_vector_size_attribute,
5665         vector_size_helper): Move from attribs.c.
5666         * c-common.h (c_common_attribute_table,
5667         c_common_format_attribute_table): New.
5668         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5669         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5670         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5671         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5672         (LANG_HOOKS_INITIALIZER): Update.
5673         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5674         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5675         * target.h: Update comment.
5676         * tree.c (default_target_attribute_table): Remove.
5677         * tree.h (default_target_attribute_table, format_attribute_table,
5678         lang_attribute_table, lang_attribute_common): Remove.
5679 objc:
5680         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5681         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5682
5683 2002-04-24  Jason Merrill  <jason@redhat.com>
5684
5685         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5686         * dwarf2out.c (dwarf_attr_name): Support it.
5687         (gen_array_type_die): Emit it.
5688         (lookup_type_die): No special handling for VECTOR_TYPE.
5689         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5690
5691 2002-04-24  Richard Henderson  <rth@redhat.com>
5692
5693         * config/mips/mips.md (movdi_usd): Renumber.
5694
5695 2002-04-24  David S. Miller  <davem@redhat.com>
5696
5697         PR target/6420
5698         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5699         32-bit Sparc and current_function_returns_struct is true.
5700
5701 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5702
5703         * loop.c (canonicalize_condition): Use gen_int_mode.
5704
5705 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
5706
5707         * config/rs6000/altivec.h: Cleanup file.  Add non individual
5708         variants.
5709         (vec_vaddubm): New.
5710         (vec_vadduhm): New.
5711         (vec_vadduwm): New.
5712         (vec_vaddfp): New.
5713         (vec_vaddcuw): New.
5714         (vec_vaddubs): New.
5715         (vec_vaddsbs): New.
5716         (vec_vadduhs): New.
5717         (vec_vadduws): New.
5718         (vec_vaddsws): New.
5719         (vec_vand): New.
5720         (vec_vandc): New.
5721         (vec_vavgub): New.
5722         (vec_vavgsb): New.
5723         (vec_vavguh): New.
5724         (vec_vavgsh): New.
5725         (vec_vavguw): New.
5726         (vec_vavgsw): New.
5727         (vec_vrfip): New.
5728         (vec_vcmpbfp): New.
5729         (vec_vcmpequb): New.
5730         (vec_vcmpequh): New.
5731         (vec_vcmpequw): New.
5732         (vec_vcmpeqfp): New.
5733         (vec_vcmpgefp): New.
5734         (vec_vcmpgtub): New.
5735         (vec_vcmpgtsb): New.
5736         (vec_vcmpgtuh): New.
5737         (vec_vcmpgtsh): New.
5738         (vec_vcmpgtuw): New.
5739         (vec_vcmpgtsw): New.
5740         (vec_vcmpgtfp): New.
5741         (vec_vcmpgefp): New.
5742         (vec_vcfux): New.
5743         (vec_vcfsx): New.
5744         (vec_vctsxs): New.
5745         (vec_vctuxs): New.
5746         (vec_vexptefp): New.
5747         (vec_vrfim): New.
5748         (vec_lvx): New.
5749         (vec_lvebx): New.
5750         (vec_lvehx): New.
5751         (vec_lde): Add vector float variant.
5752         (vec_lvewx): New.
5753         (vec_lvxl): New.
5754         (vec_vlogefp): New.
5755         (vec_vmaddfp): New.
5756         (vec_vmhaddshs): New.
5757         (vec_vmaxub): New.
5758         (vec_vmaxsb): New.
5759         (vec_vmaxuh): New.
5760         (vec_vmaxsh): New.
5761         (vec_vmaxuw): New.
5762         (vec_vmaxsw): New.
5763         (vec_vmaxsw): New.
5764         (vec_vmaxfp): New.
5765         (vec_vmrghb): New.
5766         (vec_vmrghh): New.
5767         (vec_vmrghw): New.
5768         (vec_vmrglb): New.
5769         (vec_vmrglh): New.
5770         (vec_vmrglw): New.
5771         (vec_vminub): New.
5772         (vec_vminsb): New.
5773         (vec_vminuh): New.
5774         (vec_vminsh): New.
5775         (vec_vminuw): New.
5776         (vec_vminsw): New.
5777         (vec_vminfp): New.
5778         (vec_vmladduhm): New.
5779         (vec_vmhraddshs): New.
5780         (vec_msumubm): New.
5781         (vec_vmsummbm): New.
5782         (vec_vmsumuhm): New.
5783         (vec_vmsumshm): New.
5784         (vec_vmsumuhs): New.
5785         (vec_vmsumshs): New.
5786         (vec_vmuleub): New.
5787         (vec_vmulesb): New.
5788         (vec_vmuleuh): New.
5789         (vec_vmulesh): New.
5790         (vec_vmuloub): New.
5791         (vec_mulosb): New.
5792         (vec_vmulouh): New.
5793         (vec_vmulosh): New.
5794         (vec_vnmsubfp): New.
5795         (vec_vnor): New.
5796         (vec_vor): New.
5797         (vec_vpkuhum): New.
5798         (vec_vpkuwum): New.
5799         (vec_vpkpx): New.
5800         (vec_vpkuhus): New.
5801         (vec_vpkshss): New.
5802         (vec_vpkuwus): New.
5803         (vec_vpkswss): New.
5804         (vec_vpkshus): New.
5805         (vec_vpkswus): New.
5806         (vec_vperm): New.
5807         (vec_vrefp): New.
5808         (vec_vrlb): New.
5809         (vec_vrlh): New.
5810         (vec_vrlw): New.
5811         (vec_vrfin): New.
5812         (vec_vrsqrtefp): New.
5813         (vec_vsel): New.
5814         (vec_vslb): New.
5815         (vec_vslh): New.
5816         (vec_vslw): New.
5817         (vec_vsldoi): New.
5818         (vec_vsl): New.
5819         (vec_vslo): New.
5820         (vec_vspltb): New.
5821         (vec_vsplth): New.
5822         (vec_vspltw): New.
5823         (vec_vspltisb): New.
5824         (vec_vspltish): New.
5825         (vec_vspltisw): New.
5826         (vec_vsrb): New.
5827         (vec_vsrh): New.
5828         (vec_vsrw): New.
5829         (vec_vsrab): New.
5830         (vec_vsrah): New.
5831         (vec_vsraw): New.
5832         (vec_vsr): New.
5833         (vec_vsro): New.
5834         (vec_stvx): New.
5835         (vec_stvebx): New.
5836         (vec_stvehx): New.
5837         (vec_stvewx): New.
5838         (vec_stvxl): New.
5839         (vec_vsububm): New.
5840         (vec_vsubuhm): New.
5841         (vec_vsubuwm): New.
5842         (vec_vsubfp): New.
5843         (vec_vsubcuw): New.
5844         (vec_vsububs): New.
5845         (vec_vsubsbs): New.
5846         (vec_vsubuhs): New.
5847         (vec_vsubshs): New.
5848         (vec_vsubuws): New.
5849         (vec_vsubsws): New.
5850         (vec_vsum4ubs): New.
5851         (vec_vsum4sbs): New.
5852         (vec_vsum4shs): New.
5853         (vec_vsum2sws): New.
5854         (vec_vsumsws): New.
5855         (vec_vrfiz): New.
5856         (vec_vupkhsb): New.
5857         (vec_vupkhpx): New.
5858         (vec_vupkhsh): New.
5859         (vec_vupklsb): New.
5860         (vec_vupklpx): New.
5861         (vec_vupklsh): New.
5862         (vec_vxor): New.
5863
5864 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
5865
5866         PR c/5430
5867         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5868         added literals from substracted literals.
5869         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5870         (fold) [associate]: Preserve MINUS_EXPR if needed.
5871
5872 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
5873
5874         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5875         are obsoleted.
5876
5877 2002-04-23  Tom Tromey  <tromey@redhat.com>
5878
5879         * gcc.c: Added --resource.  For PR java/6314.
5880
5881 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
5882
5883         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5884         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5885         these libraries.
5886
5887 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
5888
5889         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5890
5891 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5892
5893         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5894         workaround.
5895         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5896         (ix86_expand_clrstr): Fix typo.
5897         * loop.c (gen_load_of_final_value): New.
5898         (loop_givs_rescan, strength_reduce, check_dbra_loop):
5899         Use it.
5900
5901 2002-04-23  Roger Sayle  <roger@eyesopen.com>
5902
5903         * builtins.c (builtin_memset_gen_str): New function.
5904         (expand_builtin_memset): Optimize the case of constant length, but
5905         unknown value.
5906
5907 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
5908
5909         * config/rs6000/altivec.h (vec_step): Remove extraneous
5910         parentheses.
5911         (vec_ctu): Cast return.
5912
5913 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
5914
5915         PR target/6413
5916         * function.h: (struct function): Add profile_label_no field.
5917         (current_function_profile_label_no): Define.
5918         * function.c: (profile_label_no): New static var.
5919         (expand_function_start): Increment it, and copy to
5920         current_function_profile_label_no.
5921         * output.h (profile_label_no): Delete.
5922         * final.c (profile_label_no): Delete.
5923         (profile_function): Use current_function_profile_label_no.
5924         (final_end_function): Don't increment profile_label_no here.
5925         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5926         profile_label_no with current_function_profile_label_no.
5927         * config/pa/pa.c (current_function_number): Delete.
5928         (pa_output_function_prologue): Don't output profile label here.
5929         (hppa_profile_hook): Use label_no param rather than
5930         current_function_number.
5931         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5932         * config/pa/pa.h: .. here.
5933         (FUNCTION_PROFILER): Output profile label here.
5934
5935 2002-04-22  Eric Christopher  <echristo@redhat.com>
5936
5937         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5938         patch of 2002-04-09 due to binutils issues.
5939         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5940
5941 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
5942
5943         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5944         constraint to 'o' for m=r and r=m alternatives.
5945         ("*movv8hi_internal1"): Same.
5946         ("*movv16qi_internal1"): Same.
5947         ("*movv4sf_internal1"): Same.
5948
5949 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
5950
5951         * rtl.h (RTX_FLAG): New macro.
5952         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5953         * final.c (alter_subreg): Use macro to access rtx flag.
5954         * integrate.c (copy_rtx_and_substitute): Use new access macro.
5955         * print-rtl.c (print_rtx): Use new access macro.
5956
5957         * cse.c (insert): Check rtx code before accessing flag.
5958
5959         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5960         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5961         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5962         convert_const_symbol_ref, make_canonical, make_alternative_compare,
5963         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5964         simplify_test_exp, optimize_attrs, simplify_by_exploding,
5965         find_and_mark_used_attributes, unmark_used_attributes,
5966         add_values_to_cover, simplify_with_current_value,
5967         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5968         copy_rtx_unchanging, main): Use new access macros.
5969
5970 2002-04-22  Tom Rix  <trix@redhat.com>
5971
5972         * expmed.c (init_expmed): Generate shifted constant once.
5973
5974 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
5975
5976         * c-lex.c (lex_charconst): Call convert to get constant in
5977         proper type; don't just smash the type field.
5978         Fixes PR c/6300.
5979
5980         * config.gcc: Add list of obsolete configurations.  Disallow
5981         building these without --enable-obsolete.
5982         * doc/install.texi: Document --enable-obsolete and obsoletion
5983         policy.  Mention obsoletion of individual targets in
5984         appropriate places.
5985
5986 2002-04-22  Richard Henderson  <rth@redhat.com>
5987
5988         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5989
5990 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
5991
5992         PR f/6138.
5993         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5994         (walk_fixup_memory_subreg): Likewise.
5995         (fixup_var_refs_insn): Adjust accordingly.
5996         (fixup_var_refs_1): Likewise.
5997
5998 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
5999
6000         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6001         LIBPATH_ARCH64_SPEC): Define.
6002         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6003         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6004         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6005         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6006
6007 2002-04-22      Joel Sherrill <joel@OARcorp.com>
6008
6009         * gthr-rtems.h: Correct prototypes to remove warnings.
6010
6011 2002-04-22  Richard Henderson  <rth@redhat.com>
6012
6013         PR c/6344
6014         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6015
6016         * gcse.c (free_insn_expr_list_list): New.
6017         (clear_modify_mem_tables): Use it.  Fix bit set usage.
6018         (canon_list_insert): Use EXPR_LISTs for expressions.
6019         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6020
6021 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6022
6023         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
6024         file change and include code to _cpp_pop_buffer.
6025         * cpphash.h (struct pending_option): Predeclare.
6026         (struct cpp_reader): New member next_include_file.
6027         (_cpp_pop_file_buffer): Update.
6028         (_cpp_push_next_buffer): Update, rename.
6029         * cppinit.c (cpp_destroy): Free include chain and pending here.
6030         (cpp_finish_options): Simplify.
6031         (_cpp_push_next_buffer): Rename and clean up.
6032         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6033         Clarify.
6034         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6035
6036 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6037
6038         * config/rs6000/altivec.h (vec_xor): Add variant for both args
6039         being vector signed int.
6040         (vec_andc): Same.
6041         (vec_xor): Add variant for both args being vector signed char.
6042         Remove redundant variant.
6043         (vec_andc): Same.
6044
6045 2002-04-21  David S. Miller  <davem@redhat.com>
6046
6047         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6048         compare mode in output RTL.
6049
6050 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
6051
6052         * config/rs6000/rs6000.c (rs6000_override_options): Correct
6053         style and formatting of previous patch.
6054
6055 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
6056
6057         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6058         flag_pic for ABI_AIX.
6059
6060 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6061
6062         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6063         * cppfiles.c (read_include_file): Similarly.
6064         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6065         uxstrdup ustrchr, ufputs): Similarly.
6066         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6067         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6068         cpp_ideq, parse_identifier, parse_number): Similarly.
6069         * cpplib.c (struct directive, dequote_string, D, run_directive,
6070         cpp_push_buffer): Similarly.
6071         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6072         _cpp_create_definition, check_trad_stringification,
6073         cpp_macro_definition): Similarly.
6074
6075 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6076
6077         * cppmacro.c (funlike_invocation_p): Don't step back
6078         over CPP_EOF.
6079
6080 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
6081
6082         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6083         labelno.
6084
6085 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6086
6087         * doc/invoke.texi: Remove Chill references.
6088         * doc/gcc.texi: Update last modified date.
6089
6090 2002-04-20  Kazu Hirata  <kazu@hxi.com>
6091
6092         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6093         push and pop.  Replace add.l with add.w.
6094
6095 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6096
6097         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6098         multiply instructions for H8/300H case.
6099
6100 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6101
6102         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6103         Bum three instructions from each routine.
6104
6105 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6106
6107         * Makefile.in: Update.
6108         * decl.c (push_c_function_context, pop_c_function_context,
6109         mark_c_function_context): Rename for consistency.
6110         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6111         * c-tree.h (push_c_function_context, pop_c_function_context,
6112         mark_c_function_context): Rename for consistency.
6113         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6114         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6115         * function.c (init_lang_status, save_lang_status,
6116         restore_lang_status, mark_lang_status, free_lang_status):
6117         Move to langhooks.h.
6118         (push_function_context_to, pop_function_context_from,
6119         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6120         Update.
6121         * function.h (init_lang_status, save_lang_status,
6122         restore_lang_status, mark_lang_status, free_lang_status):
6123         Move to langhooks.h.
6124         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6125         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6126         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6127         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6128         (LANG_HOOKS_INITIALIZER): Update.
6129         (lhd_do_nothing_f): New.
6130         * langhooks.h (struct lang_hooks_for_functions): New.
6131         (struct lang_hooks): New hooks.
6132         * langhooks.c (lhd_do_nothing_f): New.
6133 objc:
6134         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6135         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6136
6137 2002-04-19  David S. Miller  <davem@redhat.com>
6138
6139         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6140         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6141
6142 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6143
6144         PR optimization/3756
6145         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6146         x = ((int) y < 0) ? cst1 : cst2.
6147
6148 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6149
6150         PR c/6358
6151         * function.c: Reapply patch for c/6358.
6152         (expand_function_end): Copy decl_rtl's mode, not
6153         current_function_return_rtx mode.
6154
6155 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6156
6157         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6158         targets.
6159
6160 2002-04-19  Tom Tromey  <tromey@redhat.com>
6161
6162         * doc/install.texi (Specific): Update status of Solaris 2.8.
6163         For PR libgcj/6158.
6164
6165 2002-04-19  Andreas Schwab  <schwab@suse.de>
6166
6167         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6168         (PUT_REAL): Restore old definition.
6169
6170 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6171             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6172
6173         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6174         binutils 2.11.2 and higher generate smaller binaries than Sun's
6175         native tools.
6176
6177 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6178
6179         PR c++/6352
6180         * toplev.c (rest_of_compilation): Do not defer functions for which
6181         TREE_SYMBOL_REFERENCED has already been set.
6182
6183 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6184
6185         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6186         alternative.
6187
6188 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6189
6190         * builtins.c: Include langhooks.h.
6191         (lang_type_promotes_to): Remove.
6192         (expand_builtin_va_arg): Use new hook.
6193         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6194         (simple_type_promotes_to): Move to c-typeck.c.
6195         * c-common.h (simple_type_promotes_to): Remove.
6196         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6197         * c-format.c: Include langhooks.h.
6198         (check_format_types): Update.
6199         * c-tree.h (c_type_promotes_to): New.
6200         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6201         (type_lists_compatible_p): Update.
6202         * langhooks-def.h (lhd_type_promotes_to): New.
6203         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6204         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6205         * langhooks.c (lhd_type_promotes_to): New.
6206         * langhooks.h (struct lang_hooks_for_types): New hook.
6207         * tree.h (lang_type_promotes_to): Remove.
6208 objc:
6209         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6210
6211 2002-04-18  Richard Henderson  <rth@redhat.com>
6212
6213         * function.c: Revert patch for c/6358.
6214
6215 2002-04-18  Richard Henderson  <rth@redhat.com>
6216
6217         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6218         blocks.  Handle multiple references to the TRAP block.  Handle
6219         non-adjacent THEN and OTHER blocks.
6220
6221 2002-04-18  Richard Henderson  <rth@redhat.com>
6222
6223         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6224         crash with no type for by-mode libcalls.
6225
6226         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6227
6228 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6229
6230         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6231         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6232         the register windows.
6233
6234 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6235
6236         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6237         appropriate.  Document need for extended precision even when
6238         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6239         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6240         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6241         instead of relying on later syntax error when REAL_WIDTH > 5.
6242         * real.c: Define NE based only on whether or not we have a
6243         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6244         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6245         define GET_REAL and PUT_REAL as simple memcpy operations; no
6246         need to byteswap or round.
6247         Use #error instead of #ifdef-ing out the entire file, for
6248         prompt error detection.
6249
6250         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6251
6252 2002-04-18  David S. Miller  <davem@redhat.com>
6253
6254         * config/sparc/sparc.h (BRANCH_COST): Define.
6255
6256         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6257         does it.
6258
6259 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6260
6261         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6262         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6263         propagate_block calls after relaxation loop using new variable
6264         stabilized_prop_flags.
6265
6266 2002-04-18  Richard Henderson  <rth@redhat.com>
6267
6268         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6269         (ia64_va_arg): Expect variable sized types by reference.
6270         * config/ia64/ia64-protos.h: Update.
6271         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6272         ia64_function_arg_pass_by_reference.
6273
6274 2002-04-18  Richard Henderson  <rth@redhat.com>
6275
6276         * ifcvt.c: Include except.h.
6277         (block_has_only_trap): Break out from find_cond_trap.
6278         (find_cond_trap): Use it.  Always delete the trap block.
6279         (merge_if_block): Allow then block null.  Be less simplistic about
6280         what insns can end a block.
6281         * Makefile.in (ifcvt.o): Depend on except.h.
6282
6283         * config/ia64/ia64.md (trap, conditional_trap): New.
6284
6285 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6286
6287         PR c/6358
6288         * function.c (assign_parms): Assign hard current_function_return_rtx
6289         register here...
6290         (expand_function_end): ...not here.
6291
6292 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6293
6294         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6295         * c-tree.h (c_incomplete_type_error): New.
6296         * c-typeck.c (require_complete_type, build_component_ref): Update.
6297         (incomplete_type_error): Rename.
6298         * langhooks-def.h (lhd_incomplete_type_error): New.
6299         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6300         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6301         * langhooks.c (lhd_incomplete_type_error): New.
6302         * langhooks.h (struct lang_hooks_for_types): New hook.
6303         * tree.c (size_in_bytes): Use new hook.
6304         * tree.h (incomplete_type_error): Remove.
6305 objc:
6306         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6307
6308 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6309
6310         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6311         TARGET_FLOAT_FORMAT blocks.
6312
6313 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6314
6315         * doc/install.texi (Downloading the source): Do not mention Chill
6316         any longer, but mention Ada.
6317         (Configuration): Do not mention Chill any longer.
6318
6319 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6320
6321         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6322
6323 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6324
6325         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6326         in last patch.
6327
6328 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6329
6330         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6331         instead of unsigned_type.
6332
6333 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6334
6335         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6336         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6337         later.
6338
6339 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6340
6341         * attribs.c (vector_type_node_list): New static variable.
6342         (handle_vector_size_attribute): Use it to avoid generating a
6343         new type node each time we are called.
6344
6345         * combine.c (subst): Avoid trying to make a vector mode subreg of
6346         an integer constant.
6347         (gen_lowpart_for_combine): Likewise.
6348
6349 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6350             Jakub Jelinek  <jakub@redhat.com>
6351
6352         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6353         for integer constant c (if x has unsigned type or sign bit is not
6354         set in c).  This folds the zero/sign extension into the bit-wise and
6355         operation.
6356
6357 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6358
6359         PR middle-end/6205
6360         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6361         otherwise xorps.
6362
6363 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6364
6365         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6366
6367 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6368
6369         * gcc.c (read_specs): Detect and fail if an attempt is made to
6370         rename a spec string to an already existing string.
6371
6372 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6373
6374         * config/s390/s390.c (legitimize_pic_address): Do not generate
6375         illegal address constant without CONST.
6376
6377 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6378
6379         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6380         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6381
6382 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6383
6384         PR optimization/6305
6385         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6386         to make sure previous reloads are taken into account.  Generate
6387         better code if one operand is an in-range immediate constant.
6388
6389 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6390
6391         * doc/install.texi (Building): libgcj requires GNU make.
6392
6393 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6394
6395         PR bootstrap/6315
6396         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6397         even if hard quad and register is not floating.
6398         (movtf reg<-mem split): Disallow splitting if hard quad and
6399         register is floating.
6400         (movtf mem<-reg split): Likewise.
6401         * config/sparc/sparc.c (fp_register_operand): New predicate.
6402         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6403
6404 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6405
6406         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6407         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6408         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6409         UNPROTOIZE on command line.
6410         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6411         (in_system_include_dir): Use cpp_include_defaults (defined in
6412         cppdefault.o).
6413         * unprotoize.c: Delete file.
6414
6415 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6416
6417         * config/rs6000/altivec.h (vec_ld): Add array variants.
6418         (vec_lde): Same.
6419         (vec_ldl): Same.
6420
6421 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6422             Aldy Hernandez <aldyh@redhat.com>
6423
6424         * config/rs6000/altivec.h: Define __ALTIVEC__.
6425         (bool): New.
6426         (__pixel): New.
6427         (pixel): New.
6428         (vec_cfux): New.
6429         (vec_vmaddfp): New.
6430         (vec_vsldoi): New.
6431         Add parentheses to all macro arguments.
6432
6433 2002-04-16  Richard Henderson  <rth@redhat.com>
6434
6435         PR c++/6320
6436         * except.c (remove_eh_handler): Insert inner regions at beginning
6437         of sibling chain.  Refactor expressions.
6438
6439 2002-04-16  Richard Henderson  <rth@redhat.com>
6440
6441         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6442         * config/sparc/sol2-gas-bi.h: New file.
6443         * config.gcc (sparc*-solaris): Add it as needed.
6444         * configure.in (AS_SPARC64_FLAG): Remove check.
6445         * config.in, configure: Regenerate.
6446
6447         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6448
6449 2002-04-16  Richard Henderson  <rth@redhat.com>
6450
6451         * config/mips/mips.c (override_options): Don't override N32 for
6452         a 64-bit ISA.
6453
6454         PR 6202
6455         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6456         (HILO_delay): Set can_delay false.
6457
6458 2002-04-16  Dale Johannesen <dalej@apple.com>
6459
6460         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6461         instruction addresses.
6462         (rs6000_output_function_epilogue): Likewise.
6463
6464 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6465
6466         * c-parse.in (poplevel, compstmt_start,
6467         compstmt_primary_start): Add ending ';', in accordance
6468         with POSIX.
6469
6470 2002-04-16  Richard Henderson  <rth@redhat.com>
6471
6472         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6473         Adjust tm_file order to get TARGET_DEFAULT set properly.
6474         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6475         * doc/install.texi (sparc-solaris): Update.
6476
6477 2002-04-16  Dale Johannesen <dalej@apple.com>
6478
6479         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6480         comparison operands do not match each other or if modes of
6481         conditions do not match result.
6482
6483 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6484
6485         PR target/6305
6486         * config/s390/s390.md (mulsidi3): Set both subregs of the
6487         multiword register.
6488
6489 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6490
6491         * config/rs6000/altivec.h (vec_addc): Type check.
6492
6493 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6494
6495         PR middle-end/6279
6496         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6497
6498         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6499
6500 2002-04-15  Richard Henderson  <rth@redhat.com>
6501
6502         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6503         call_really_used_regs too.
6504
6505 2002-04-15  Richard Henderson  <rth@redhat.com>
6506
6507         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6508
6509 2002-04-15  David S. Miller  <davem@redhat.com>
6510
6511         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6512         as being CLOBBERed.
6513
6514 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6515
6516         PR c/6290
6517         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6518         CONST_VECTOR is { 0, ... 0 }.
6519
6520 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6521
6522         * doc/install.texi (Installing GCC: Configuration): Clarify
6523         the only supported ways to configure gcc.
6524
6525 2002-04-15  Roland McGrath  <roland@frob.com>
6526
6527         * config.gcc (alpha*-*-gnu*): New target configuration.
6528         * config/alpha/gnu.h: New file for it.
6529         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6530
6531 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6532
6533         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6534         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6535         * tree.h (expand_start_stmt_expr): Update prototype.
6536         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6537         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6538         on the STMT_EXPR created for the inline function.
6539
6540 2002-04-15  Richard Henderson  <rth@redhat.com>
6541
6542         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6543         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6544         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6545         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6546         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6547         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6548         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6549         Define __gnu_linux__, not gnu_linux.
6550         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6551
6552 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6553
6554         Remove Chill front end.
6555         * gcc.c (default_compilers): Remove Chill entries.
6556         * ch: Remove directory.
6557         * doc/frontends.texi: Remove information about Chill.
6558         * doc/sourcebuild.texi: Likewise.
6559         * doc/standards.texi: Likewise.
6560
6561 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6562
6563         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6564         (LONGLONG_STANDALONE): Define.
6565
6566 2002-04-15  David S. Miller  <davem@redhat.com>
6567
6568         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6569         Call emit_library_call with LCT_NORMAL.
6570         (sparc_initialize_trampoline): Use LCT_foo instead of
6571         magic constant in emit_library_call invocations.
6572         (sparc64_initialize_trampoline): Likewise.
6573         (sparc_profile_hook): Likewise.
6574         * config/sparc/sparc.md: Likewise.
6575
6576         * config/sparc/sparc.c (sparc_extra_constraint_check):
6577         Fix type of argument 'c'.
6578         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6579         Likewise.
6580
6581 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6582
6583         * diagnostic.h (output_buffer_state): Redefine.
6584         (output_format_decoder): New macro.
6585         (output_prefixing_rule): Likewise.
6586         (output_line_cutoff): Likewise.
6587         (diagnostic_format_decoder): Adjust.
6588         (diagnostic_prefixing_rule): Likewise.
6589         (diagnostic_line_cutoff): Likewise.
6590         (diagnostic_state): Likewise.
6591         (diagnostic_kind_count): Likewise.
6592         (diagnostic_buffer): Now a macro.
6593
6594         * diagnostic.c (diagnostic_buffer): Remove definition.
6595         (output_is_line_wrapping): Adjust.
6596         (set_real_maximum_length): Likewise.
6597         (output_set_maximum_length): Likewise.
6598         (init_output_buffer): Likewise.
6599         (lhd_print_error_function): Likewise.
6600         (output_do_verbatim): Likewise.
6601
6602 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6603
6604         * cpperror.c (print_location): Don't print include chain
6605         if line == 0.
6606         (cpp_begin_message): Update to use DL_ macros.
6607         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6608         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6609         cpp_notice, cpp_notice_from_errno): Remove.
6610         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6611         level.
6612         (cpp_errno): New.
6613         * cppexp.c (CPP_ICE): Remove.
6614         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6615         lex, integer_overflow, _cpp_parse_expr): Update.
6616         * cppfiles.c (read_include_file, find_include_file,
6617         handle_missing_header, _cpp_read_file, remap_filename): Update.
6618         * cpphash.h (enum error_type): Remove.
6619         (_cpp_begin_message): Update.
6620         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6621         cpp_handle_option, cpp_post_options): Update.
6622         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6623         skip_whitespace, parse_identifier, parse_slow, parse_string,
6624         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6625         cpp_interpret_charconst): Update.
6626         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6627         lex_macro_node, do_undef, glue_header_name, parse_include,
6628         do_include_common, read_flag, do_line, do_linemarker, do_ident,
6629         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6630         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6631         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6632         _cpp_pop_buffer, do_diagnostic): Update.
6633         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6634         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6635         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6636         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6637         cpp_notice, cpp_notice_from_errno): Remove.
6638         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6639         level.
6640         (cpp_errno): New.
6641         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6642         collect_args, enter_macro_context, save_parameter, parse_params,
6643         _cpp_create_definition, check_trad_stringification,
6644         cpp_macro_definition): Update.
6645         * cppmain.c (cpp_preprocess_file): Update.
6646         * fix-header.c (read_scan_file): Update.
6647
6648 2002-04-14  Andreas Schwab  <schwab@suse.de>
6649
6650         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6651
6652 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6653
6654         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6655
6656 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6657
6658         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6659         not gnu_hurd.
6660
6661 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
6662
6663         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6664
6665 2002-04-13      Joel Sherrill <joel@OARcorp.com>
6666
6667         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
6668         sparc-elf and sparc-rtems targets.
6669
6670 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6671
6672         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6673         defined, and __gnu_hurd__ wherever __GNU__ is defined.
6674         * arm/linux-elf.h: Likewise.
6675         * cris/aout.h: Likewise.
6676         * cris/linux.h: Likewise.
6677         * i370/linux.h: Likewise.
6678         * i386/gnu.h: Likewise.
6679         * i386/linux-aout.h: Likewise.
6680         * i386/linux-oldld.h: Likewise.
6681         * i386/linux.h: Likewise.
6682         * i386/linux64.h: Likewise.
6683         * ia64/linux.h: Likewise.
6684         * m68k/linux-aout.h: Likewise.
6685         * m68k/linux.h: Likewise.
6686         * mips/linux.h: Likewise.
6687         * pa/pa-linux.h: Likewise.
6688         * pj/linux.h: Likewise.
6689         * rs6000/sysv4.h: Likewise.
6690         * s390/linux.h: Likewise.
6691         * sh/linux.h: Likewise.
6692         * sparc/linux-aout.h: Likewise.
6693         * sparc/linux.h: Likewise.
6694         * sparc/linux64.h: Likewise.
6695         * xtensa/linux.h: Likewise.
6696
6697 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
6698
6699         * stmt.c (check_unique_operand_names): Expect operand names to
6700         be strings rather than identifiers.  Use simple_cst_equal to
6701         compare them.
6702         (resolve_operand_name_1): Make same identifier to string change here.
6703         * c-parse.in (asm_operand): Convert a named operand into a string.
6704         * cp/parse.y (asm_operand): Likewise.
6705
6706 2002-04-13  Andreas Schwab  <schwab@suse.de>
6707
6708         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6709
6710 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
6711
6712         Revert these changes:
6713
6714         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
6715
6716         PR c++/5571
6717         * stor-layout.c (layout_decl): Reset the RTL for the decl.
6718
6719 2002-04-12  Richard Henderson  <rth@redhat.com>
6720
6721         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6722         (sparc*-*-solaris): Clean up header files.
6723         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6724         and plan on generating 64-bit code.
6725         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6726         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6727         * config/sparc/sol2-sld-64.h: Rename ...
6728         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
6729         for AS_SPARC64_FLAG not defined.
6730         * config/sparc/sol2-gld-bi.h: New.
6731         * config/sparc/sol2-sld.h: Remove.
6732         * config/sparc/sol26-sld.h: New.
6733         * config/sparc/sol2.h: Tidy comments.
6734         * doc/install.texi: Document sparc-solaris configury changes.
6735
6736 2002-04-12  Richard Henderson  <rth@redhat.com>
6737
6738         * recog.c (offsettable_address_p): Match the logic in adjust_address.
6739
6740         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6741         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
6742
6743 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6744
6745         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6746
6747 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
6748
6749         * pa.c (pa_can_combine_p): Call extract_insn before calling
6750         constrain_operands.
6751
6752 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
6753
6754         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6755         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6756         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6757         (CPP_PREDEFINES): Handle __declspec.
6758         * config/i386/t-interix (USER_H): Remove.
6759
6760 2002-04-12  DJ Delorie  <dj@redhat.com>
6761
6762         * integrate.c (compare_blocks): Make comparisons safe for when
6763         sizeof(int) < sizeof(char *).
6764         (find_block): Likewise.
6765
6766 2002-04-12  Jan Hubicka  <jh@suse.cz>
6767             David Edelsohn  <edelsohn@gnu.org>
6768
6769         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6770         registers.
6771         (symbol_ref_operand): New.
6772         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6773         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6774
6775 2002-04-12  Andreas Schwab  <schwab@suse.de>
6776
6777         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6778         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6779         overrides the definition in config/svr4.h.
6780
6781 2002-04-12      Eric Norum <eric.norum@usask.ca>
6782
6783         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6784         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6785         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6786         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6787         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6788         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6789         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6790         definitions to config/rtems.h and make the targets more similar.
6791
6792 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6793
6794         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6795         POINTERS_EXTEND_UNSIGNED.
6796         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6797         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6798
6799         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6800         not specified.
6801
6802 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
6803
6804         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6805         depends on TARGET_SHMEDIA, not TARGET_SH5.
6806
6807 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
6808
6809         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6810         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6811
6812 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
6813
6814         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6815         no r0 clobber.
6816
6817 2002-04-12  Andreas Schwab  <schwab@suse.de>
6818
6819         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6820
6821 2002-04-12  Richard Henderson  <rth@redhat.com>
6822
6823         PR bootstrap/4191
6824         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6825
6826         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6827         modes spanning multiple hard regs.
6828
6829         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6830
6831 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6832
6833         * pa.c (pa_output_function_prologue): Don't accumulate the total
6834         number of code bytes when using TARGET_64BIT, or gas, SOM and not
6835         the portable runtime.
6836         (output_deferred_plabels): Handle 64bit plabels.
6837         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6838         generating pic code using the GAS assembler for object formats that
6839         are not SOM (ie., ELF32 and ELF64).
6840         (output_millicode_call): Check attribute type if attribute length is 28.
6841         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
6842         dbr_sequence_length once.
6843         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6844         dbr_sequence_length once.
6845         * pa.h (TARGET_SOM): Define if not defined.
6846         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6847         with GAS and not SOM.
6848         (jump, call_internal_reg, call_value_internal_reg): Likewise.
6849         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
6850
6851 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6852
6853         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6854         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6855         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6856         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6857         elfos.h and dbxelf.h values are fine now.
6858         * config/i386/freebsd.h, config/alpha/freebsd.h
6859         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6860
6861 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6862
6863         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6864         or set Acpu or Amachine.  Reformat.
6865         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6866         define.
6867         (LINK_SPEC): Do not need to undef.
6868         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6869         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6870         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6871         define.
6872         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6873         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6874         (LINK_SPEC): Do not need to undef.
6875         (DONT_USE_BUILTIN_SETJMP): Do not define.
6876         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6877         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
6878         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6879         Remove trailing spaces.
6880         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6881         __ELF__, or set Acpu or Amachine.  Reformat.
6882         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6883         define.
6884
6885 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6886
6887         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6888         all other *-*-freebsd* targets.
6889
6890 2002-04-11  Richard Henderson  <rth@redhat.com>
6891
6892         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6893
6894 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6895
6896         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6897         Include {cpu}/{cpu}.h thru tm_file.
6898         (alpha*-*-linux*ecoff): Remove target.
6899         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6900         (LINK_SPEC): Remove, is not OS independent.
6901         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6902         (LINK_SPEC): Do not need to #undef any longer.
6903         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6904         any longer.
6905         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6906         __ELF__.
6907         (LINK_SPEC): Moved here from alpha/elf.h.
6908         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6909         SUB_CPP_PREDEFINES.
6910         * config/alpha/linux-ecoff.h: Remove.
6911         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6912         (CPP_SPEC): Define _POSIX_SOURCE as needed.
6913         (CPP_SUBTARGET_SPEC): Do not define.
6914         (LINK_SPEC): Do not need to #undef any longer.
6915         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6916         * config/alpha/vms.h: Likewise.
6917
6918 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
6919
6920         * doc/extend.texi: Remove old claim that typedefs cannot have
6921         an alignment attribute.
6922
6923 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6924
6925         PR optimization/6177
6926         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6927         bitpos is 0 and bitsize CONCAT size.
6928
6929 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6930
6931         PR c/6223
6932         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6933
6934 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
6935
6936         * config/alpha/freebsd.h: Minor reformatting.
6937         (CPP_SPEC): Define ELF and add cpp_subtarget.
6938         (ASM_SPEC): No longer needed.
6939
6940 2002-04-11  Richard Henderson  <rth@redhat.com>
6941
6942         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6943         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
6944         (dimode mem/zero splitter): New.
6945
6946 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
6947
6948         * config/cris/cris.c (cris_override_options): Tweak error message
6949         for PIC not implemented.
6950
6951         * config/cris/cris.h: Tweak comments related to parameter-passing.
6952
6953         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6954
6955 2002-04-10  Richard Henderson  <rth@redhat.com>
6956
6957         * except.c (add_ehl_entry): Allow duplicates after landing pad
6958         creation.
6959
6960 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
6961
6962         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6963
6964 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
6965
6966         * c-decl.c (c_init_decl_processing): Move generation of
6967         decls for g77_integer_type_node and friends from here ...
6968         * c-common.c (c_common_nodes_and_builtins): ... to here.
6969
6970 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
6971
6972         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6973         is only used as frame pointer when frame_pointer_needed is true.
6974
6975 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
6976
6977         PR target/817
6978         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6979         for the fact that the pool entry uses two words.
6980         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
6981         1k bytes.
6982         (movdf_soft_insn): Similarly.
6983         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6984         for the fact that the pool entry uses three words.
6985
6986 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
6987
6988         * config/mips/mips.c (mips_va_arg): When using the struct version
6989         of the EABI va_list, allow arguments in the register save area to
6990         take up less room than a stack argument.
6991
6992 2002-04-10  Richard Henderson  <rth@redhat.com>
6993
6994         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6995         if EXPAND_INITIALIZER.
6996
6997 2002-04-09  Richard Henderson  <rth@redhat.com>
6998
6999         * config/alpha/alpha.md (movdi_er_maybe_g): New.
7000         * config/alpha/alpha.c (alpha_expand_mov): Use it.
7001
7002 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
7003
7004         PR optimization/6233
7005         * rtlanal.c (pure_call_p): New function.
7006         * rtl.h (pure_call_p): Declare.
7007         * loop.c (prescan_loop): Use it to set has_nonconst_call.
7008         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7009
7010 2002-04-09  Eric Christopher  <echristo@redhat.com>
7011
7012         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7013         information to .comm directive.
7014
7015 2002-04-09  Richard Henderson  <rth@redhat.com>
7016
7017         PR c/5078
7018         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7019
7020 2002-04-09  Richard Henderson  <rth@redhat.com>
7021
7022         * basic-block.h (flow_delete_block_noexpunge): Declare.
7023         (expunge_block_nocompact): Declare.
7024         * cfg.c (expunge_block_nocompact): Split out from ...
7025         (expunge_block): ... here.
7026         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7027         (flow_delete_block_noexpunge): Split out from ...
7028         (flow_delete_block): ... here.
7029         * cfgcleanup.c (delete_unreachable_blocks): Compact while
7030         removing dead blocks.
7031         * except.c (exception_handler_labels): Remove.
7032         (exception_handler_label_map): New.
7033         (struct eh_region): Add aka member.
7034         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7035         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7036         (for_each_eh_label, for_each_eh_label_1): New.
7037         (init_eh): Register exception_handler_label_map.
7038         (free_eh_status): Use free_region.
7039         (find_exception_handler_labels): Use the map, not the list.
7040         (remove_exception_handler_label): Likewise.
7041         (maybe_remove_eh_handler): Likewise.
7042         (remove_eh_handler): Use the region aka bitmap.
7043         * except.h (exception_handler_labels): Remove.
7044         (for_each_eh_label): Declare.
7045         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7046         * loop.c (invalidate_loops_containing_label): New.
7047         (find_and_verify_loops): Use it.  Use for_each_eh_label.
7048         * sched-rgn.c (is_cfg_nonregular): Use
7049         current_function_has_exception_handlers.
7050
7051 2002-04-09  Richard Henderson  <rth@redhat.com>
7052
7053         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7054         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7055         Do not return changed status.
7056         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7057         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7058         New functions that do return changed status.
7059         * sbitmap.h: Update decls.
7060         * gcse.c, lcm.c: Use _cg functions as needed.
7061
7062 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7063
7064         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7065         (sh64-*-elf*, sh-*-rtemself*): Likewise.
7066         * config/sh/embed_bb.c: New file.
7067         * config/sh/embed-elf.h: New file.
7068         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7069         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
7070         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7071         __PTRDIFF_TYPE__ .
7072         (SUBTARGET_CPP_PTR_SPEC): Don't define.
7073         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7074         Add subtarget_asm_endian_spec.
7075         (ASM_SPEC): Use subtarget_asm_endian_spec.
7076         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7077         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7078         (WCHAR_UNSIGNED): Define.
7079         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7080         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7081         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7082         Fix value.
7083         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7084         (sh_adjust_cost): Likewise.
7085         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7086         __PTRDIFF_TYPE__ .
7087         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7088         (WCHAR_TYPE_SIZE): Likewise.
7089         (ASM_SPEC): Use subtarget_asm_endian_spec.
7090         (SH_ELF_WCHAR_TYPE): #undef/ #define.
7091         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7092         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7093         (MAX_WCHAR_TYPE_SIZE): Don't #define .
7094         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7095         (USER_LABEL_PREFIX): Don't #undef /#define .
7096         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7097         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7098         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7099         (ASM_SPEC): Likewise.
7100         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7101         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7102         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7103         (LIB2FUNCS_EXTRA): Define.
7104         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7105         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7106         (LIB1ASMFUNCS_CACHE): Define.
7107         (LIB2FUNCS_EXTRA): Redefine empty.
7108
7109 2002-04-08  Richard Henderson  <rth@redhat.com>
7110
7111         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7112
7113 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7114
7115         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7116         and optimize for size.
7117         (__do_global_ctors): Fix pointer comparison.
7118         (__do_global_dtors): Likewise.
7119
7120 2002-04-09  David S. Miller  <davem@redhat.com>
7121
7122         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7123         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7124         allow reloading pseudos.
7125         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7126         * config/sparc/sparc-protos.h: Declare it.
7127
7128         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7129         unsigned comparison warning.
7130         (output_restore_regs): Mark leaf_function as unused.
7131
7132 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7133
7134         * expr.c (is_aligning_offset): New function.
7135         (expand_expr, case COMPONENT_EXPR): Call it.
7136
7137 2002-04-08  David S. Miller  <davem@redhat.com>
7138
7139         PR target/6082
7140         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7141
7142         Make init_priority work on Sparc when using GNU ld.
7143         * config/sparc/linux.h, config/sparc/linux64.h,
7144         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7145         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7146         * config/sparc/sol2-gld.h: New file to do the same.
7147         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7148         sparc/sol2-gld.h to tm_file.
7149
7150         PR optimization/4328
7151         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7152         * doc/md.texi: Document it.
7153         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7154         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7155         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7156         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7157         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7158
7159 2002-04-08  Andreas Jaeger  <aj@suse.de>
7160
7161         * stmt.c (expand_asm_operands): Revert last patch from Richard
7162         Henderson.
7163
7164 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7165
7166         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7167         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7168
7169 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7170
7171         * doc/contrib.texi (Contributors): Add David O'Brien.
7172
7173 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7174
7175         * configure.in (auto-build.h): Use target_alias and build_alias
7176         when running configure.
7177         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7178         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7179         * configure: Regenerate.
7180
7181 2002-04-07  David S. Miller  <davem@redhat.com>
7182
7183         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7184
7185 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7186
7187         PR 5933
7188         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7189         generating 32-bit pic code.
7190
7191 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7192
7193         * cppinit.c (cpp_create_reader): Initialize
7194         discard_comments_in_macro_exp.
7195         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7196         (cpp_handle_option): Handle "-CC" option.
7197         * cpplex.c (save_comment): If saving a C++ comment in
7198         a directive, convert it to a C comment.
7199         (_cpp_lex_direct): Pass second comment start character to
7200         save_comment to indicate comment type.
7201         * cpplib.c (_cpp_handle_directive): If processing
7202         a "#define" directive and discard_comments_in_macro_exp
7203         is false,  re-enable saving of comments.
7204         (lex_macro_node): If discard_comments_in_macro_exp is false,
7205         discard any comments before the macro identifier.
7206         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7207         member.
7208         * cppmacro.c (cpp_get_token): If expanding a macro while
7209         processing a directive, discard any comments we might encounter.
7210         (parse_params): If discard_comments_in_macro_exp is false,
7211         ignore comments in the macro parameter list.
7212         * gcc.c (cpp_unique_options): Add "-CC" option.
7213         (option_map): Map "--comments-in-macros" to "-CC".
7214         * doc/cppopts.texi: Document "-CC" option.
7215         * f/lang-specs.h: Add "-CC" option.
7216         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7217         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7218         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7219         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7220         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7221         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7222
7223 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7224
7225         PR middle-end/6180
7226         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7227
7228 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7229
7230         PR c++/5571
7231         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7232
7233         PR opt/5120
7234         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7235         RTX_UNCHANGING_P for the functions arguments when a tail call
7236         is made.
7237
7238 2002-04-06  Jason Merrill  <jason@redhat.com>
7239
7240         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7241         (parse_options_and_default_flags): Set them appropriately.
7242         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7243
7244 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7245
7246         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7247         here.
7248
7249         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7250         semicolon.
7251
7252         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7253         types come in by-reference.  Fix typo in comment.
7254
7255 2002-04-05  David S. Miller  <davem@redhat.com>
7256
7257         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7258         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7259         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7260         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7261
7262 2002-04-05  David S. Miller  <davem@redhat.com>
7263
7264         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7265         are not going to emit return instructions, emit at least a nop
7266         for the sake of sane backtraces.
7267
7268 2002-04-05  Richard Henderson  <rth@redhat.com>
7269
7270         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7271
7272 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7273
7274         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7275
7276 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7277
7278         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7279         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7280         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7281
7282 2002-04-05  Andreas Schwab  <schwab@suse.de>
7283
7284         * c-convert.c: Include c-common.h.
7285         * Makefile.in (c-convert.o): Updated.
7286
7287 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7288
7289         * mklibgcc.in: Use separate libgcc.map for each multilib.
7290         * Makefile.in (distclean): Don't remove libgcc.map here.
7291
7292 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7293
7294         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7295         genmultilib invocation.
7296
7297 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7298
7299         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7300         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7301         to num_gprs for symmetry.
7302         * config/mips/mips.c: Adjust accordingly.
7303
7304 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7305
7306         * c-common.c (truthvalue_conversion): Rename, update.
7307         * c-common.h (c_common_truthvalue_conversion): New.
7308         * c-convert.c (convert): Update.
7309         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7310         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7311         * c-typeck.c (build_binary_op, build_unary_op,
7312         build_conditional_expr): Update.
7313         * fold-const.c (constant_boolean_node, fold): Use langhook.
7314         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7315         * langhooks.h (struct lang_hooks): New hook.
7316         * stmt.c (expand_decl_cleanup): Use langhook.
7317         * tree.h (truthvalue_conversion): Remove.
7318 objc:
7319         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7320
7321 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7322
7323         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7324         Add rules to make null object file.
7325
7326 2002-04-04  Jim Blandy  <jimb@redhat.com>
7327
7328         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7329         macro formal parameter names.
7330
7331 2002-04-04  David S. Miller  <davem@redhat.com>
7332
7333         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7334
7335 2002-04-04  Richard Henderson  <rth@redhat.com>
7336
7337         PR middle-end/5099
7338         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7339         Support copies into and out of memory.  Don't accept allows_reg
7340         and allows_mem as gospel.
7341
7342 2002-04-04  Richard Henderson  <rth@redhat.com>
7343
7344         PR opt/6165
7345         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7346         (write_dependence_p): Likewise.
7347
7348 2002-04-04  Richard Henderson  <rth@redhat.com>
7349
7350         * predict.c (estimate_bb_frequencies): Do frequency calculation
7351         with a volatile temporary.
7352
7353 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7354
7355         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7356
7357 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7358
7359         PR c++/6119
7360         * final.c (final_start_function): Don't bump profile_label_no here...
7361         (final_end_function): ...but here.
7362
7363 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7364
7365         * config/sparc/sparc.md (pic): New attribute.
7366         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7367         into stack slots.
7368         (split after do_builtin_setjmp_setup): New.
7369
7370 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7371
7372         PR fortran/6106
7373         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7374         change.
7375
7376 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7377
7378         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7379         UNITS_PER_WORD for zero sized aggregates.
7380
7381 2002-04-03  David S. Miller  <davem@redhat.com>
7382
7383         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7384         one-character spec for this, just use %(link_gcc_c_sequence).
7385
7386 2002-04-03  David S. Miller  <davem@redhat.com>
7387
7388         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7389         handling.
7390
7391 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7392
7393         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7394         (DWARF_FRAME_RETURN_COLUMN): Move.
7395         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7396         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7397         * pa.c (except.h, predict.h): Include.
7398         (FRP): Delete.
7399         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7400         (output_ascii): Add cast.
7401         (store_reg_modify): Revise to add frame notes.
7402         (set_reg_plus_d): Likewise.
7403         (compute_frame_size): Include space for eh data registers in frame if
7404         the current function calls eh_return.
7405         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7406         function calls eh_return.  Save eh data registers if the current
7407         function calls eh_return.  Fix code to add frame notes.  Emit
7408         blockage to prevent insns with frame notes being scheduled in the
7409         delay slot of calls.
7410         (hppa_expand_epilogue): Restore eh data registers and do final stack
7411         adjustment if the current function calls eh_return.  Don't add frame
7412         notes.
7413         (output_call): Revise for change in length of call insn.  Don't do
7414         return pointer adjustment for an unconditional jump in the delay slot
7415         of a call when using frame notes.
7416         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7417         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7418         (ARG_POINTER_CFA_OFFSET): Define.
7419         * pa.md (return_external_pic): New pattern.
7420         (prologue): Correct formatting.  Use return_external_pic if current
7421         function calls eh_return.
7422         (call_internal_symref, call_value_internal_symref,
7423         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7424         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7425         respectively.
7426         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7427
7428         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7429         list of targets to check using "nop" insn.
7430         * configure: Rebuilt.
7431
7432 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7433
7434         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7435
7436 2002-04-03  David S. Miller  <davem@redhat.com>
7437
7438         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7439         library sequence passed to the linker.
7440         (LINK_COMMAND_SPEC): Use it.
7441         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7442         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7443         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7444
7445 2002-04-03  Jason Merrill  <jason@redhat.com>
7446
7447         * except.c (struct eh_status): Remove protect_list.
7448         (begin_protect_partials, end_protect_partials): Remove.
7449         (add_partial_entry): Remove.
7450         * except.h: Remove prototypes.
7451
7452         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7453         expand_decl_cleanup_eh.
7454
7455         PR c++/5636
7456         * tree.h (CLEANUP_EH_ONLY): New macro.
7457         * stmt.c (expand_decl_cleanup_eh): New fn.
7458         (expand_cleanups): Check CLEANUP_EH_ONLY.
7459         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7460         Use expand_decl_cleanup_eh.
7461         (expand_stmt): Adjust.
7462         * c-common.h: Adjust prototype.
7463
7464 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7465
7466         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7467         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7468         (cris_target_asm_function_epilogue): Ditto.
7469         (cris_initial_frame_pointer_offset): Ditto.
7470         (cris_simple_epilogue): Ditto.
7471         (cris_expand_builtin_va_arg): Variable-size types come in
7472         by-reference.
7473
7474 2002-04-03  David S. Miller  <davem@redhat.com>
7475
7476         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7477         little-endian.
7478         (set_fast_math): Correct 'fsr' type.
7479
7480 2002-04-03  Richard Henderson  <rth@redhat.com>
7481
7482         PR opt/3569
7483         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7484         * toplev.c (check_global_declarations): Use it.
7485         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7486         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7487         (LANG_HOOKS_DECLS): Add it.
7488         * langhooks.c (lhd_warn_unused_global_decl): New.
7489         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7490         * c-objc-common.c (c_warn_unused_global_decl): New.
7491         * c-tree.h (c_warn_unused_global_decl): Declare.
7492         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7493
7494 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7495
7496         * langhooks-def.h (lhd_set_decl_assembler_name,
7497         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7498         (LANG_HOOKS_INITIALIZER): Update.
7499         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7500         * langhooks.h (struct lang_hooks): New hook.
7501         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7502         (lang_set_decl_assembler_name): Remove.
7503         (init_obstacks): Don't set hook.
7504         (decl_assembler_name): New function.
7505         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7506         (decl_assembler_name): New.
7507         (lang_set_decl_assembler_name): Remove.
7508
7509 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7510
7511         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7512         works properly with .hidden symbols.
7513         * configure: Rebuilt.
7514         * config.in: Rebuilt.
7515         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7516         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7517         properly with .hidden symbols.
7518
7519 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7520
7521         PR middle-end/6102
7522         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7523         USE argument.
7524
7525 2002-04-03  Richard Henderson  <rth@redhat.com>
7526
7527         PR opt/4120
7528         * sched-rgn.c (sets_likely_spilled): New.
7529         (sets_likely_spilled_1): New.
7530         (add_branch_dependences): Use it.
7531
7532 2002-04-02  Richard Henderson  <rth@redhat.com>
7533
7534         PR opt/4311
7535         * loop.h (LOOP_FIRST_PASS): New.
7536         * loop.c (strength_reduce): Mind it when deciding to unroll.
7537         * toplev.c (rest_of_compilation): Set it.
7538
7539 2002-04-02  David S. Miller  <davem@redhat.com>
7540
7541         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7542         mems_ok_for_ldd_peep when the order of the loads being examined
7543         is reversed.
7544         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7545         existing comment to increase comprehension of this situation.
7546
7547 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7548
7549         * config/sh/sh.md: Don't use union real_extract.
7550
7551 2002-04-02  Richard Henderson  <rth@redhat.com>
7552
7553         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7554
7555 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7556
7557         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7558         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7559         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7560         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7561         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7562         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7563         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7564         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7565         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7566         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7567         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7568         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7569         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7570         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7571         Include as many configury headers via tm_file as possible.  This
7572         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7573         * config/openbsd-oldgas.h: New file.
7574         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7575         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7576         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7577         config/i386/i386-coff.h, config/i386/i386-interix.h,
7578         config/i386/iscdbx.h, config/i386/linux-aout.h,
7579         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7580         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7581         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7582         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7583         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7584         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7585         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7586         config/i386/vxi386.h: Do not directly include configury headers.
7587         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7588         Directly include configury headers that are no longer automatically
7589         included by the above headers.
7590         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7591         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7592         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7593         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7594         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7595         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7596         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7597         (TARGET_VERSION): Define.
7598         * config/i386/beos-elf.h, config/i386/freebsd.h,
7599         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7600         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7601         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7602         config/i386/sco5.h, config/i386/sysv4.h
7603         (TARGET_VERSION): Do not need to protect.
7604         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7605         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7606         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7607         config/i386/i386-interix.h, config/i386/linux-aout.h,
7608         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7609         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7610         (YES_UNDERSCORES): Do not define - not needed.
7611         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7612         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7613         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7614         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7615         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7616         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7617         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7618         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7619
7620 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
7621             Richard Henderson  <rth@redhat.com>
7622
7623         PR c/5484
7624         * function.c (assign_temp): Accept either type or decl argument.
7625         Detect variables whose size is too large to fit into an integer.
7626         * stmt.c (expand_decl): Pass the decl, not the type.
7627
7628 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7629
7630         * protoize.c: Match include directory usage with cppdefault.c.
7631
7632 2002-04-03  Jeffrey A Law  (law@redhat.com)
7633             Hans-Peter Nilsson  <hp@bitrange.com>
7634
7635         * combine.c (simplify_comparison): Avoid narrowing a comparison
7636         with a paradoxical subreg when doing so would drop signficant bits.
7637
7638 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
7639
7640         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7641         if POINTERS_EXTEND_UNSIGNED is defined.
7642
7643 2002-04-02  Richard Henderson  <rth@redhat.com>
7644
7645         PR opt/3967
7646         * local-alloc.c (contains_replace_regs): LO_SUM may contain
7647         replace regs.
7648
7649 2002-04-02  Richard Henderson  <rth@redhat.com>
7650
7651         * doc/standards.texi: Document required freestanding libc entry points.
7652
7653 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
7654
7655         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7656         associated splitter.  Remove MQ constraint.
7657         (ctrdi_internal4): Correct CCmode clobber.
7658
7659 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7660
7661         * milli64.S ($$dyncall): New function.
7662         * t-linux (LIB1ASMFUNCS): Revise module list.
7663         (LIB1ASMSRC): Use pa/milli64.S.
7664
7665 2002-04-02  Richard Henderson  <rth@redhat.com>
7666
7667         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7668         rename solaris_sys_varargs_h.
7669
7670 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7671
7672         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7673         the same mode as its component.
7674
7675 2002-04-02  Richard Henderson  <rth@redhat.com>
7676
7677         PR opt/190
7678         * final.c (this_is_asm_operands): Export.
7679         * output.h (this_is_asm_operands): Declare.
7680         * config/i386/i386.c (print_operand): Error odd asm operands.
7681
7682 2002-04-02  Richard Henderson  <rth@redhat.com>
7683
7684         PR opt/420
7685         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7686
7687 2002-04-01  Richard Henderson  <rth@redhat.com>
7688
7689         PR target/1538
7690         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7691         * fixinc/fixincl.x: Rebuild.
7692
7693 2002-04-01  Richard Henderson  <rth@redhat.com>
7694
7695         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7696         (atomic_alloc, atomic_free): New.
7697         (SIZE, MASK_FOR, PTR_IN): New.
7698         (emergency_reg_state, emergency_reg_state_free): New.
7699         (emergency_labeled_state, emergency_labeled_state_free): New.
7700         (reg_state_alloced, labeled_state_alloced): New.
7701         (alloc_reg_state, free_reg_state): New.
7702         (alloc_label_state, free_label_state, free_label_states): New.
7703         (push, pop, dup_state_stack, free_state_stack): Use them.
7704         (desc_label_state): Likewise.
7705         (uw_frame_state_for): Free label states and state stack.
7706         (uw_update_reg_address): Eliminate warnings.
7707
7708 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
7709
7710         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7711         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7712
7713 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7714
7715         * c-decl.c (grokdeclarator): Update.
7716         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7717         * c-tree.h (c_mark_addressable): New.
7718         * c-typeck.c (default_function_array_conversion, build_unary_op,
7719         build_array_ref, convert_for_assignment): Update.
7720         (mark_addressable): Rename.
7721         * calls.c (try_to_integrate, expand_call): Use langhook.
7722         * expr.c (expand_expr): Use langhook.
7723         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7724         * langhooks.h (struct lang_hooks): New hook.
7725         * stmt.c (expand_asm_operands): Use langhook.
7726         * tree.h (mark_addressable): Remove.
7727 objc:
7728         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7729
7730 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7731
7732         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7733         in previous change.
7734
7735 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7736
7737         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7738         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7739
7740 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7741
7742         * c-common.c (unsigned_conversion_warning, convert_and_check,
7743         unsigned_type, signed_type, shorten_compare,
7744         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7745         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7746         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7747         New.
7748         * c-decl.c (grokdeclarator): Update.
7749         * c-format.c (check_format_types): Update.
7750         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7751         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7752         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7753         * convert.c (convert_to_integer): Use new hooks.
7754         * expmed.c (make_tree): Use new hooks.
7755         * expr.c (store_expr): Use new hooks.
7756         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7757         all_ones_mask_p, unextend, fold): Use new hooks.
7758         * langhooks.h (struct lang_hooks_for_types): New hooks.
7759         * tree.h (signed_or_unsigned_type, signed_type,
7760         unsigned_type): Remove.
7761 objc:
7762         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7763         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7764
7765 2002-03-31  Richard Henderson  <rth@redhat.com>
7766
7767         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7768         (desc_frgr_mem): Fix reference to f16-f31.
7769
7770 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7771
7772         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7773         RTVEC_ELT): Const-ify.
7774         * varray.h (VARRAY_CHECK): Const-ify.
7775         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7776         ggc_mark_rtvec, ggc_mark): Const-ify.
7777
7778 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7779
7780         * diagnostic.c: Include langhooks-def.h.
7781         * Makefile.in (diagnostic.o): Update.
7782
7783 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7784
7785         * c-common.c (c_unsafe_for_reeval): Rename.
7786         * c-common.h (c_unsafe_for_reeval): Rename.
7787         * c-decl.c (finish_incomplete_decl): Rename.
7788         (c_init_decl_processing): Don't set langhook.
7789         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7790         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7791         * c-objc-common.c (c_objc_common_init): Don't set langhook.
7792         * c-tree.h (finish_incomplete_decl): Rename.
7793         * langhooks-def.h (lhd_unsafe_for_reeval): New.
7794         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7795         (LANG_HOOKS_INITIALIZER): Update.
7796         * langhooks.c (lhd_unsafe_For_reeval): New.
7797         * langhooks.h (struct langhooks): New hooks.
7798         * toplev.c (incomplete_decl_finalize_hook): Remove.
7799         (wrapup_global_declarations): Update.
7800         * tree.c (lang_unsafe_for_reeval): Remove.
7801         (unsafe_for_reeval): Update.
7802         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7803         Remove.
7804 objc:
7805         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7806         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7807
7808 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7809
7810         * diagnostic.c (print_error_function): Remove.
7811         (default_print_error_function): Rename.
7812         (report_error_function): Update.
7813         * diagnostic.h (print_error_function): Remove.
7814         (default_print_error_function): Remove.
7815         * langhooks-def.h (struct diagnostic_context): Predeclare.
7816         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7817         (LANG_HOOKS_INITIALIZER): Update.
7818         * langhooks.h (struct diagnostic context): Predeclare.
7819         (struct lang_hooks): New hook.
7820
7821 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7822
7823         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7824         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7825         !flag_pic.
7826         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7827         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7828         of PIC_OFFSET_TABLE_REGNUM thruout.
7829         * config/rs6000/rs6000.md: Likewise.
7830         * config/rs6000/darwin.h: Likewise.
7831
7832 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7833
7834         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7835         unsigned HOST_WIDE_INT, not unsigned int.
7836
7837 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7838
7839         PR middle-end/6096, middle-end/6098, middle-end/6099
7840         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7841         CODE_LABELs.
7842         (fill_slots_from_thread): Likewise.
7843
7844 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7845
7846         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7847         floating fields in float regs.
7848         (function_arg_record_value_2): Likewise.
7849
7850 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7851
7852         * config/mmix/mmix.md (define_constants): Remove misleading
7853         FIXME.  Add MMIX_fp_rO_OFFSET.
7854         ("nonlocal_goto_receiver"): Don't have stack-frame address of
7855         saved rO as part of the pattern.  Remove FIXME.
7856         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
7857         here, at output-time.
7858
7859 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7860
7861         PR middle-end/6100
7862         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7863         REG_BR_PRED.
7864         (output_v9branch): Likewise.
7865
7866 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
7867
7868         * gcc.c: Revert previous patch for now.
7869         * config/i386/djgpp.h: Likewise.
7870
7871 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7872
7873         * config/mmix/crti.asm (_init): Register _fini with atexit.
7874         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7875
7876 2002-03-31  Richard Henderson  <rth@redhat.com>
7877
7878         PR target/3997
7879         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7880         (ASM_OUTPUT_DEF_FROM_DECLS): New.
7881
7882 2002-03-31  Richard Henderson  <rth@redhat.com>
7883
7884         * libgcc2.c (__bb_exit_func): Make static.
7885
7886         * config/alpha/alpha.md (trap): New.
7887
7888 2002-03-31  Richard Henderson  <rth@redhat.com>
7889
7890         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7891         promoted argument types; build trap.
7892         (expand_builtin_trap): New.
7893         (expand_builtin): Use it.
7894         * stmt.c (expand_nl_goto_receivers): Likewise.
7895         * expr.h (expand_builtin_trap): Declare.
7896         * libfuncs.h (LTI_abort, abort_libfunc): New.
7897         * optabs.c (init_optabs): Init abort_libfunc.
7898
7899 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
7900
7901         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7902         (LINK_COMMAND_SPEC): ... from here.
7903         (init_gcc_specs): Duplicate it here too, omitting
7904         shared_name in the second copy.
7905         (init_spec): Test for duplicate
7906         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7907
7908 2002-03-30  David S. Miller  <davem@redhat.com>
7909
7910         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7911         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7912
7913 2002-03-30  Roger Sayle <roger@eyesopen.com>
7914             Richard Henderson  <rth@redhat.com>
7915
7916         * regmove.c (combine_stack_adjustments_for_block): Avoid
7917         emitting a stack adjustment of zero bytes.  Let delete_insn
7918         update bb->head.
7919
7920 2002-03-30  Richard Henderson  <rth@redhat.com>
7921
7922         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7923         (sparc_emitting_epilogue): New.
7924         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7925         * config/sparc/sparc-protos.h: Update.
7926         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7927         (TARGET_SWITCHES): Update.
7928         * config/sparc/sparc.md (return): Remove.
7929         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7930         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7931         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7932         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7933         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7934         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7935         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7936         Remove MASK_EPILOGUE.
7937         * doc/invoke.texi: Update.
7938
7939 2002-03-30  Daniel Berlin  <dan@dberlin.org>
7940
7941         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7942         CPP will start the file for us.
7943
7944 2002-03-30  Richard Henderson  <rth@redhat.com>
7945
7946         PR target/5446
7947         * config/ia64/ia64.c (group_barrier_needed_p): Special case
7948         prologue_allocate_stack.
7949         (ia64_single_set): Use insn codes for recognition of special
7950         cases, not rtl matching.
7951         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7952
7953 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
7954
7955         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7956
7957 2002-03-30  Richard Henderson  <rth@redhat.com>
7958
7959         PR target/6032
7960         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7961         or -fomit-frame-pointer with profiling.
7962         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7963         (FUNCTION_PROFILER): Do nothing.
7964         (PROFILE_HOOK): New.
7965         * config/sparc/sparc.c (sparc_override_options): Don't check
7966         code models for profiling.
7967         (sparc_function_profiler): Remove.
7968         (sparc_profile_hook): New.
7969         * config/sparc/sparc-protos.h: Update.
7970
7971 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7972
7973         PR optimization/6086
7974         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7975         of SUBREG of volatile MEM or because the MEM was mode dependent,
7976         return CLOBBER instead of unmodified SUBREG.
7977
7978 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7979
7980         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7981         when not optimizing.
7982
7983         * toplev.c (rest_of_compilation): Cann mark_constant_function
7984         only when optimizing.
7985
7986         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7987         are NULL.
7988
7989         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7990         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7991         (try_optimize_cfg): clear all AUX fields.
7992
7993         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7994         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7995         (ix86_address_cost): Be prepared for SUBREGed registers.
7996         (legitimate_address_p): Accept SUBREGed registers.
7997
7998 2002-03-29  Richard Henderson  <rth@redhat.com>
7999
8000         PR target/5672
8001         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8002
8003 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8004
8005         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8006         for aggregate and TFmode types.
8007
8008 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8009
8010         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8011
8012 2002-03-29  Richard Henderson  <rth@redhat.com>
8013
8014         PR target/5886
8015         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8016         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8017
8018 2002-03-29  Richard Henderson  <rth@redhat.com>
8019
8020         PR target/6041
8021         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8022         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8023         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8024         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8025         conditional.
8026         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8027
8028 2002-03-29  Dale Johannesen <dalej@apple.com>
8029
8030         * loop.c (combine_movables): Do allow combination of pseudos.
8031
8032 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
8033
8034         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8035         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8036         No functional change except ...
8037         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
8038         * doc/install.texi (*-*-freebsd*): Document port configuration.
8039
8040 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8041
8042         * Makefile.in (convert.o, calls.o, expmed.o): Update.
8043         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8044         Use new hooks.
8045         * builtin-types.def (BT_PTRMODE): Update.
8046         * c-common.c (type_for_size): Rename c_common_type_for_size.
8047         (type_for_mode): Similarly.
8048         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8049         Use new hook.
8050         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8051         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8052         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8053         Redefine.
8054         * c-typeck.c (common_type, comptypes, default_conversion):
8055         Use new hooks.
8056         * calls.c: Include langhooks.h.
8057         (emit_library_call_value_1): Use new hooks.  Avoid redundant
8058         calls.
8059         * convert.c: Include langhooks.h
8060         (convert_to_pointer, convert_to_integer): Use new hooks.
8061         * except.c (init_eh): Similarly.
8062         * expmed.c: Include langhooks.h.
8063         (expand_mult_add): Use new hooks.
8064         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8065         try_casesi): Similarly.
8066         * fold-const.c (optimize_bit_field_compare, make_range,
8067         decode_field_reference, fold_truthop, fold): Similarly.
8068         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8069         put_var_into_stack): Similarly.
8070         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8071         LANG_HOOKS_TYPE_FOR_SIZE): New.
8072         (LANG_HOOKS_TYPES_INITIALIZER): Update.
8073         * langhooks.h (lang_hooks_for_types): New hooks.
8074         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8075         * tree.c (get_unwidened, get_narrower): Similarly.
8076         * tree.h (type_for_mode, type_for_size): Remove.
8077         * varasm.c (force_const_mem): Use new hooks.
8078         * utils2.c (nonbinary_modular_operation): Update.
8079 objc:
8080         * objc-act.c (handle_impent): Update.
8081         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8082         Redefine.
8083
8084 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
8085
8086         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8087         * config/ia64/ia64.c (basereg_operand): New.
8088         * config/ia64/ia64-protos.h (basereg_operand): Declare.
8089         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8090
8091 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8092
8093         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8094         unwind information when frame_pointer_needed.
8095         (mmix_assemble_integer): Tweak wording in comment.
8096
8097 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8098
8099         * Makefile.in (except.o): Update.
8100         * except.c: Include langhooks.h.
8101         (init_eh): Use langhook.
8102         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8103         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8104         (LANG_HOOKS_INITIALIZER): Update.
8105         * langhooks.h (lang_hooks_for_types): New.
8106         (struct lang_hooks): Add it.
8107         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8108         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8109 config:
8110         * alpha/alpha.c: Include langhooks.h.
8111         (alpha_build_va_list): Use langhook.
8112         * d30v/d30v.c: Include langhooks.h.
8113         (d30v_build_va_list): Use langhook.
8114         * i386/i386.c: Include langhooks.h.
8115         (ix86_build_va_list): Use langhook.
8116         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8117         * s390/s390.c: Include langhooks.h.
8118         (s390_build_va_list): Use langhook.
8119         * stormy16/stormy16.c: Include langhooks.h.
8120         (stormy16_build_va_list): Use langhook.
8121
8122 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8123
8124         PR c++/5964
8125         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8126         attributes.
8127         (length): Compute variable length for branches/calls/jumps here.
8128         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8129         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8130         define branch_type attribute.
8131         (divsi3_sp32): Maximum length is 6 not 7.
8132         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8133         call_address_untyped_struct_value_sp32,
8134         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8135         * config/sparc/sparc.c (empty_delay_slot): New function.
8136         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8137         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8138
8139 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8140
8141         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8142         nonzero_bits if not needed.
8143         (nonzero_bits) [XOR]: Likewise.
8144         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8145         reg_last_set_mode and mode are both MODE_INT, but not equal.
8146         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8147         in nonzero_bits_mode for MODE_INT modes.
8148
8149 2002-03-28  Richard Henderson  <rth@redhat.com>
8150
8151         PR target/5715
8152         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8153         to GAS.  Correct drift between alternatives.
8154
8155 2002-03-28  Richard Henderson  <rth@redhat.com>
8156
8157         PR target/6087
8158         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8159
8160 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8161
8162         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8163         emulation to the linker.
8164
8165 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8166
8167         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8168         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8169
8170 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8171
8172         * combine.c (simplify_and_const_int): Make sure to apply mask
8173         when force_to_mode returns a constant integer.  PR3311.
8174
8175 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8176
8177         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8178
8179 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8180
8181         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8182         and Objective-C Dialect Options.
8183
8184 2002-03-28  Richard Henderson  <rth@redhat.com>
8185
8186         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8187         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8188
8189 2002-03-28  Richard Henderson  <rth@redhat.com>
8190
8191         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8192         on to c_expand_body.
8193         * c-tree.h (finish_function): Update decl.
8194         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8195
8196 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8197
8198         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8199
8200 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8201
8202         * rtlanal.c: Include flags.h
8203         (may_trap_p): Do not mark FP operations if trapping
8204         if !flag_trapping_math
8205         * Makefile.in (rtlanal.o): Add dependency on flag.h
8206         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8207
8208 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8209
8210         * mips.md: Use dconst1, not 1.0, as first argument of
8211         REAL_VALUE_LDEXP.  Don't use union real_extract.
8212
8213 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8214
8215         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8216         rather than $target.  Heed program_prefix and
8217         program_transform_name.  Search for gas in cross-compiler case too.
8218         "test -x" rather than "test -f".
8219         (gcc_cv_ld): Likewise.
8220         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8221         (gcc_cv_objdump): Likewise.
8222         * configure: Regenerate.
8223
8224 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8225
8226         * Makefile.in (attribs.o): Update.
8227         * attribs.c: Include langhooks.h.
8228         (decl_attributes): Use langhook.
8229         * c-decl.c (insert_default_attributes): Rename.
8230         * c-tree.h (c_insert_default_attributes): New.
8231         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8232         (LANG_HOOKS_INITIALIZER): Update.
8233         * langhooks.h (struct lang_hooks): New hook.
8234         * tree.h (insert_default_attributes): Remove.
8235 objc:
8236         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8237
8238 2002-03-27  Andreas Schwab  <schwab@suse.de>
8239
8240         * config/i386/i386.c (classify_argument): Also check for
8241         QUAL_UNION_TYPE.
8242
8243 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8244
8245         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8246         any more.
8247
8248 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8249
8250         * i960.md (ret): Set PC.
8251         (nonlocal_goto): Fix expander.
8252         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8253         some jump or call.
8254
8255 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8256
8257         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8258         of libcall regions.
8259
8260 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8261
8262         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8263         assigning to BLOCK_FOR_INSN directly.
8264
8265 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8266
8267         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8268
8269 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8270
8271         * c-common.c (c_expand_expr): Fix prototype.
8272         * c-common.h (c_expand_expr): Always declare, update.
8273         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8274         * c-objc-common.c (c_objc_common_init): No global hook.
8275         * expr.c (expand_expr): Use langhook.
8276         * expr.h (enum expand_modifier): Conditionally declare.
8277         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8278         (LANG_HOOKS_INITIALIZER): Update.
8279         * langhooks.c (lhd_expand_expr): New.
8280         * langhooks.h (struct lang_hooks): New hook.
8281         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8282         (lang_independent_init): Don't default hook.
8283 objc:
8284         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8285
8286 2002-03-27  Richard Henderson  <rth@redhat.com>
8287
8288         PR target/6054
8289         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8290         TARGET_CONST_GP.  Simplify conditions.
8291
8292 2002-03-27  Richard Henderson  <rth@redhat.com>
8293
8294         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8295         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8296         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8297
8298 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8299
8300         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8301         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8302         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8303         Remove unnecessary masks.
8304         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8305         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8306         -mwindows, -mdll switches and their negations.
8307
8308 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8309
8310         * gcc-common.c (lang_mark_false_label_stack): Remove.
8311         * ggc.h (lang_mark_false_label_stack): Similarly.
8312
8313 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8314
8315         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8316
8317         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8318         or __rtems_ is defined.
8319
8320 2002-03-26  Richard Henderson  <rth@redhat.com>
8321
8322         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8323         if a non-trivial load was emitted.
8324         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8325         in high+extra+low case.
8326
8327 2002-03-26  Richard Henderson  <rth@redhat.com>
8328
8329         * config.gcc (sparc*-solaris): Use float_format=sparc.
8330
8331 2002-03-26  Richard Henderson  <rth@redhat.com>
8332
8333         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8334         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8335         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8336         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8337         (WINT_TYPE_SIZE): Fix at 32.
8338
8339 2002-03-26  Richard Henderson  <rth@redhat.com>
8340
8341         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8342         until after eh landing pad generation.
8343         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8344         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8345
8346 2002-03-26  Richard Henderson  <rth@redhat.com>
8347
8348         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8349
8350 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8351
8352         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8353         and warning switches.
8354         (cc1_options):  Likewise.
8355
8356 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8357
8358         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8359         Restore more of the signal context.  Set no_reg_stack_frame.
8360         * config/ia64/unwind-ia64.c (unw_state_record):
8361         Add no_reg_stack_frame, comments.
8362         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8363         (uw_update_context): Adjust bsp when unwinding from leaf,
8364         but not signal frame.
8365
8366 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8367
8368         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8369
8370 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8371
8372         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8373
8374 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8375
8376         PR target/5621
8377         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8378         "Add a pool_range attribute", which was lost during the ARM/Thumb
8379         merge.
8380
8381 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8382
8383         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8384         a register into the MAC16 accumulator.
8385
8386 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8387
8388         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8389         (Warning Options): Document -Wswitch-enum.
8390         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8391         -Wswitch.
8392         (warn_switch_enum): Define variables.
8393         * flags.h (warn_switch_enum): Declare variables.
8394         * stmt.c (expand_end_case_type): When warn_switch_enum /
8395         -Wswitch-enum, perform switch checks.
8396         Fix PR c/5044.
8397
8398 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8399
8400         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8401         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8402         (reload_muladdsi_compare0_scratch): Delete.
8403
8404 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8405
8406         * doc/install.texi (*-*-freebsd*): Update.
8407
8408 2002-03-26  Richard Henderson  <rth@redhat.com>
8409
8410         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8411         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8412
8413         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8414         types from the normal argument frame.
8415
8416         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8417         variable sized objects by reference.
8418         (sparc_va_arg): Receive them by reference too.
8419
8420 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8421
8422         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8423         code to not restoring global registers.
8424
8425 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8426
8427         * Makefile.in (ggc-common.o): Update.
8428         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8429         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8430         * c-tree.h (c_mark_tree): New.
8431         * ggc-common.c: Include langhooks.h.
8432         (gcc_mark_trees): Use new langhook.
8433         * ggc-callbacks.c: Delete file.
8434         * ggc.h (lang_mark_tree): Remove.
8435         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8436         (LANG_HOOKS_INITIALIZER): Update.
8437         * langhooks.h (struct lang_hooks): New hook.
8438 objc:
8439         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8440
8441 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8442
8443         * doc/cpp.texi: Exclude entire Top node from printed manual.
8444         Move option index after directive index.  Insert page breaks
8445         before GFDL and concept index.  Index environment variables
8446         with command line options.
8447         * doc/cppenv.texi: Use @vtable for environment variable list.
8448         Add paragraph explaining semantics of empty elements in path
8449         variables.  Exclude a cross-reference to Fishkill from the
8450         manpage.  Remove an unnecessary cross-reference of the entry
8451         right above the referer.  Don't use @anchor in text that goes
8452         into manpage.
8453         * doc/cppopts.texi: Cross-reference the environment variables
8454         section, not the specific environment variable, for consistency.
8455
8456 2002-03-25  Richard Henderson  <rth@redhat.com>
8457
8458         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8459         anywhere in the block.  Don't refer to insns that have been
8460         removed from the chain.  Iterate backward through the new insns.
8461         Don't refer to edges that have been removed.
8462
8463 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8464
8465         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8466         test for overflow of constant.
8467
8468 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8469
8470         PR target/2623
8471         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8472         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8473         these patterns on arm_archv4.
8474
8475 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8476
8477         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8478         int".
8479
8480 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8481
8482         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8483         float_handled, float_handler, float_signal, set_float_handler,
8484         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8485         * toplev.h: Don't prototype do_float_handler.
8486
8487         * c-lex.c: Fold parse_float into lex_number.  Make warning
8488         about portability of hex float constants more informative, and
8489         don't issue it on top of a syntax error.
8490         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8491         their callers.
8492         * real.h: Define REAL_VALUE_ABS here...
8493         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8494         simplify_unary_real, simplify_binary_real, and
8495         simplify_binary_is2orm1 into their callers.
8496         * tree.c: Fold build_real_from_int_cst_1 into caller.
8497
8498         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8499
8500         * tsystem.h: Include float.h here...
8501         * libgcc2.c: ... not here.
8502
8503 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8504
8505         Fixes for: PR bootstrap/3591, target/5676
8506         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8507         defined.  Do not disable exceptions or rtti.
8508         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8509         mcore.h.  Disable exceptions and rtti, since they are not
8510         supported by EPOC.
8511
8512 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8513
8514         * c-decl.c (maybe_build_cleanup): Remove.
8515         * expr.c (expand_expr): Use langhook.
8516         * langhooks-def.h (lhd_return_null_tree,
8517         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8518         (LANGHOOKS_INITIALIZER): Update.
8519         * langhooks.c (lhd_return_null_tree): New.
8520         * langhooks.h (struct lang_hooks): New hook.
8521         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8522         * tree.h (maybe_build_cleanup): Remove.
8523
8524 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8525
8526         * regrename.c (build_def_use): Move recog_memoized
8527         before extract_insn.
8528
8529 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8530
8531         PR target/6043
8532         * expr.c (emit_group_store): Handle storing into CONCAT.
8533
8534 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8535
8536         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8537         corresponding MATCH_DUP.
8538
8539 2002-03-24  Richard Henderson  <rth@redhat.com>
8540
8541         * unroll.c (unroll_loop): Zero label_map.
8542
8543         * gcse.c: Include except.h.
8544         * Makefile.in (gcse.o): Update.
8545
8546 2002-03-24  Richard Henderson  <rth@redhat.com>
8547
8548         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8549         Do resolve_unique_section before shared data clause.
8550
8551 2002-03-24  Richard Henderson  <rth@redhat.com>
8552
8553         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8554
8555 2002-03-24  Richard Henderson  <rth@redhat.com>
8556
8557         * recog.c (peephole2_optimize): Split blocks when EH insns are
8558         generated in the middle of a block.  Do global life update if
8559         zapped EH edges.
8560
8561 2002-03-24  Richard Henderson  <rth@redhat.com>
8562
8563         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8564
8565 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8566
8567         preprocessor/3951
8568         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8569         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8570         (init_dependency_output): Don't make no_output decision here.
8571
8572 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8573
8574         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8575         warn_switch.  Update description.
8576         (expand_end_case_type): Call check_for_full_enumeration_handling
8577         when warn_switch.
8578
8579 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8580
8581         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8582         (m68hc11_split_move): Call it to see if the source and destination
8583         operands use the same direction auto inc/dec mode, otherwise make the
8584         source an offsetable memory operand and generate an add.
8585
8586 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8587
8588         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8589         register for operand 2.
8590         ("*subsi3_zero_extendqi"): Likewise.
8591         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8592         bits so that it is compatible with a pop.
8593         ("*andhi3_gen"): Likewise.
8594         ("xorhi3"): Likewise.
8595
8596 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8597
8598         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8599         -pedantic here...
8600         (cpp_post_options): ... not here.
8601
8602 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8603             Aldy Hernandez  <aldyh@redhat.com>
8604
8605         Removal of separate preprocessor cpp0.
8606
8607         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8608         cpp0, install-common): Update.
8609         * c-common.c (flag_preprocess_only): New.
8610         (c_common_init): Preprocess for -E.
8611         * c-common.h (flag_preprocess_only): New.
8612         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8613         * c-objc-common.c (c_init_decl_processing): Exit quickly
8614         for NULL return from c_common_init.
8615         * cpplib.h (cpp_preprocess_file): New.
8616         * cppmain.c (main, general_init, pfile, progname): Remove.
8617         (do_preprocessing): Rename cpp_preprocess_file, don't call
8618         cpp_finish.  Don't close stdout here.
8619         (setup_callbacks): Update prototype.
8620         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8621         Update.
8622         * tradcpp.c (main): Ignore -quiet.
8623 objc:
8624         * lang-specs.h (default_compilers): Preprocess with cc1obj.
8625
8626 2002-03-24  Richard Henderson  <rth@redhat.com>
8627
8628         PR optimization/5742
8629         * machmode.def: Add inner mode field to complex modes.
8630         * config/mips/mips.c (mips_function_value): Always define.  Add
8631         new argument to handle libcalls.
8632         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8633         (FUNCTION_VALUE): Likewise.
8634         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8635         * config/mips/mips-protos.h: Update.
8636
8637 2002-03-23  Richard Henderson  <rth@redhat.com>
8638
8639         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8640         * config/sparc/sparc-protos.h: Update.
8641         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8642
8643 2002-03-23  Richard Henderson  <rth@redhat.com>
8644
8645         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8646         _start or _init begins the text segment.
8647
8648 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
8649
8650         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
8651         not HOST_WIDEST_INT.
8652         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8653
8654 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
8655
8656         PR java/5489
8657         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8658         operand argument to output_return_instruction.
8659         * arm.c (arm_print_operand, case 'd'): If the operand is
8660         const_true_rtx then just return.
8661         (arm_print_operand, case 'D'): If the operand is const_true_rtx
8662         then abort.
8663
8664 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8665
8666         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8667         (Warning Options): Document -Wswitch-default.
8668         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
8669         -Wswitch.
8670         (warn_switch_default): Define variable.
8671         (warn_switch): Update comment.
8672         * flags.h (warn_switch_default): Declare variable.
8673         (warn_switch): Update comment.
8674         * stmt.c (expand_end_case): Check for and, when
8675         warn_switch_no_default, warn of a missing default case.
8676
8677 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
8678
8679         * real.h (N): Special case 128 bit doubles.
8680
8681         * combine.c (simplify_comparison): When widening modes, ignore
8682         sign extension on CONST_INTs.
8683
8684 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8685
8686         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8687         passed to adjust_address.  Fix comment formatting.
8688
8689
8690 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
8691
8692         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8693         Always make REAL_VALUE_TYPE a struct containing an array of
8694         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
8695         big it is.  Don't declare or use union real_extract.
8696
8697         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8698         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8699         (print_operand), config/arm/arm.c (output_move_double),
8700         config/arm/arm.md (consttable_4, consttable_8),
8701         config/romp/romp.c (output_fpops), config/s390/s390.h
8702         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8703         (xtensa_output_literal): Don't use union real_extract.
8704
8705         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8706         (sfmode_constant_to_ulong), config/ns32k/merlin.h
8707         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8708         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8709         (PRINT_OPERAND): Don't use local version of union
8710         real_extract.
8711
8712         * config/convex/convex.c (check_float_value), config/vax/vax.c
8713         (vax_float_literal), config/m88k/m88k.md (divdf3),
8714         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8715         config/pdp11/pdp11.c (output_move_quad): Don't do host
8716         arithmetic on target floating point quantities.
8717
8718         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8719         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8720
8721         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8722         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8723
8724         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8725         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8726         INFINITY.
8727         * print-rtl.c (print_rtx): Disable code which needs
8728         floating-point emulator.
8729         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8730         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8731         depending on HOST_FLOAT_FORMAT to be defined properly.
8732
8733         * config/1750a/1750a.c (get_double, float_label): Delete.
8734         (print_operand): Delete huge commented-out chunk.  Use
8735         REAL_VALUE_TO_DECIMAL.
8736         * config/1750a/1750a-protos.h: Delete prototypes of deleted
8737         functions.
8738         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8739         IEEE_FLOAT_FORMAT.
8740         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8741         Use REAL_VALUE_TO_DECIMAL as ELF version does.
8742         * config/m88k/m88k.c (real_power_of_2_operand,
8743         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8744         real_extract out of the union; run the input through
8745         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8746         from that into the union.
8747         * config/pdp11/pdp11.c (output_move_double): Rearrange
8748         parentheses to make automatic indenter happy.
8749
8750         * doc/tm.texi (Cross-compilation): Rename node to "Floating
8751         Point" and rewrite to describe current situation.  Also adjust
8752         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8753         match code.
8754         * doc/rtl.texi: Adjust cross reference.
8755
8756 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8757
8758         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8759         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8760         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8761         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8762         prevent use of sp as a reload register.
8763         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8764         non_acc_reg_operand.
8765         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8766         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8767         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8768         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8769
8770 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8771
8772         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8773         * cpplex.c (unterminated): Delete.
8774         (parse_string): No string literal may extend over multiple
8775         lines.  Suppress the error when preprocessing assembly.
8776         * cppmain.c (scan_translation_unit): Strings are single-line.
8777
8778         * doc/cpp.texi: Update to match.
8779
8780 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8781
8782         PR optimization/5854
8783         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8784         Shut up warnings.
8785         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8786         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8787         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8788         const0 if scratch register was not allocated.
8789         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8790         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8791         with GEN_INT (...).
8792         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8793         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8794         with GEN_INT (...) everywhere.  Remove constraints in define_split
8795         patterns.
8796         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8797         require scratch register for setting 0 into regs/non-pushable memory.
8798
8799 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8800
8801         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8802         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8803
8804 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
8805
8806         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
8807         * cppinit.c (cpp_create_reader):  On by default.
8808         (cpp_handle_option):  Handle -W[no-]endif-labels.
8809         (cpp_post_options):  Also enable if -pedantic.
8810         * cpplib.c (do_else):  Use it.
8811         (do_endif):  Likewise.
8812         * doc/cppopts.texi:  Document new option.
8813         * doc/invoke.texi:  Document new option.
8814
8815 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
8816
8817         * config/i386/i386.c, config/i386/i386.md: Change all occurences
8818         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8819
8820 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8821
8822         * flow.c (calculate_global_regs_live): Clear aux fields of
8823         ENTRY and EXIT.
8824
8825 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8826
8827         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8828         REG or MEM subregs, pass rtx * instead of rtx to it.
8829         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8830         rtx * instead of rtx to alter_subreg.
8831         * config/m32r/m32r.c (gen_split_move_double): Likewise.
8832         * config/pj/pj.c (pj_output_rval): Likewise.
8833
8834 2002-03-22  Richard Henderson  <rth@redhat.com>
8835
8836         PR target/3177
8837         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8838         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8839         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8840         (ia64_expand_prologue): Look at int_regs, not words, for number
8841         of incomming int regs.
8842
8843 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
8844
8845         * expr.c (expand_expr): A RESULT_DECL is part of a call.
8846
8847 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
8848
8849         * toplev.c (flag_loop_optimize, flag_crossjumping):
8850         New static variables.
8851         (rest_of_compilation): Conditionalize crossjumping and
8852         loop optimizer.
8853         (parse_options_and_default_flags): Default loop_optimize and
8854         crossjumping.
8855         (lang_independent_options): Add -fcrossjumping and -floop-optimize
8856         * invoke.texi (crossjumping, loop-optimize): Document.
8857
8858 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8859
8860         * real.c (eiisneg): Move outside #ifdef NANS.
8861
8862 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8863
8864         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8865         frequencies match; avoid match on different loop depths.
8866         (try_crossjump_to_bb): Kill tests that no longer brings time
8867         savings.
8868         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8869         updating code.
8870         (split_edge): Likewise.
8871
8872         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8873         variable.
8874
8875         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8876         * cfgrtl.c: Include insn-config.h
8877         (split_block) Dirtify block in presence of conditional execution
8878
8879 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8880
8881         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8882         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8883         (function_arg): Constify CUMULATIVE_ARGS.
8884         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8885         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8886         (UNITS_PER_DOUBLE): New macro.
8887         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
8888         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
8889         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
8890         fp_regs and stack_words.
8891         (EABI_FLOAT_VARARGS_P): New macro.
8892         * config/mips/mips.c (struct mips_arg_info): New.
8893         (mips_arg_info): New function.
8894         (function_arg_advance): Use it.  Add adjustment instructions here
8895         rather than in function_arg.
8896         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
8897         for VOIDmode at the beginning of the function.
8898         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
8899         (function_arg_pass_by_reference): Likewise.
8900         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8901         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8902         (mips_va_start): Likewise.  Use the new stack_words field of
8903         CUMULATIVE_ARGS to set up overflow area.  Reformat.
8904         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
8905         doubles and other types, aligning the overflow pointer for non-doubles
8906         too.  Remove some code duplication.  Replace hard-coded constants.
8907
8908 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8909
8910         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8911         (CLASS_UNITS): Undefine.
8912         (CLASS_MAX_NREGS): Use FP_INC.
8913         * config/mips/mips.c (compute_frame_size): Likewise.
8914         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8915
8916 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8917
8918         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8919         prototype, and handle lexing numbers and identifiers.
8920         (parse_identifier): Update to new form of parse_slow.
8921         (parse_number): Fast path only, use parse_slow otherwise.
8922         (_cpp_lex_direct): Update calls to parse_number.
8923
8924 2002-03-21  DJ Delorie  <dj@redhat.com>
8925
8926         * bb-reorder.c (make_reorder_chain_1): Protect against
8927         when redundant edges are omitted.
8928         * predict.c (dump_prediction): Likewise.
8929
8930 2002-03-21  Richard Henderson  <rth@redhat.com>
8931
8932         PR target/5996
8933         * fixinc/inclhack.def (solaris_stdio_tag): New.
8934         * fixinc/fixincl.x: Regenerate.
8935
8936 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
8937
8938         PR c/5597
8939         * c-typeck.c (process_init_element): Flag non-static
8940         initialization of a flexible array member as illegal.
8941
8942 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
8943
8944         * config/rs6000/t-linux64: New.
8945         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8946         t-ppccomm.  Use t-rs6000 and t-linux64.
8947         (powerpc64-*-gnu* <tmake_file>): Likewise.
8948         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8949         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8950         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8951
8952 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
8953
8954         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8955         flag_really_no_inline instead of optimize == 0.
8956
8957         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8958
8959         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8960
8961         * flags.h (flag_really_no_inline): New.
8962
8963         * c-common.c (c_common_post_options): Initialize
8964         flag_really_no_inline.
8965
8966         * toplev.c (flag_really_no_inline): New.
8967
8968 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
8969
8970         * config/avr/avr.md (length): Fix length computation for
8971         conditional branches.
8972
8973 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8974
8975         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8976         sdbout.o, profile.o): Update.
8977         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8978         langhook.
8979         * c-common.h (gettags): Move here from tree.h.
8980         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8981         insert_block, getdecls, kept_level_p, global_bindings_p): New.
8982         * dbxout.c (dbxout_init): Use getdecls langhook.
8983         * expr.c (expand_expr): Use insert_block langhook.
8984         * fold-const.c: Include langhooks.h.
8985         (fold_range_test, fold_binary_op_with_conditional_arg,
8986         fold): Use global_bindings_p langhook.
8987         * integrate.c (expand_inline_function): Use insert_block langhook.
8988         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8989         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8990         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8991         LANG_HOOKS_GETDECLS): New.
8992         (LANG_HOOKS_INITIALIZER): Update.
8993         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8994         langhook.
8995         * langhooks.h (struct lang_hooks_for_decls): New.
8996         (struct lang_hooks): Update.
8997         * profile.c: Include langhooks.h.
8998         (output_func_start_profiler): Use new langhooks.
8999         * sdbout.c: Include langhooks.h.
9000         (sdbout_init, sdbout_finish): Use getdecls langhook.
9001         * stmt.c: Include langhooks.h.
9002         (expand_fixup, fixup_gotos): Use new langhooks.
9003         * stor-layout.c: Include langhooks.h.
9004         (variable_size): Use global_bindings_p langhook.
9005         * toplev.c (compile_file): Use getdecls langhook.
9006         * tree-inline.c (remap_block): Use insert_block langhook.
9007         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9008         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9009
9010 2002-03-21  Richard Henderson  <rth@redhat.com>
9011
9012         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9013         constants in .data when -fpic.
9014
9015 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9016
9017         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9018         where appropriate.
9019
9020 2002-03-21  Tom Tromey  <tromey@redhat.com>
9021
9022         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
9023
9024 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9025
9026         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9027
9028         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9029
9030 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9031             Richard Henderson  <rth@redhat.com>
9032
9033         PR c/5354
9034         * c-common.c (c_expand_expr): Preserve result of a statement
9035         expression if needed.
9036
9037 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9038
9039         PR bootstrap/4195
9040         * genrecog.c (maybe_both_true_mode): Remove.
9041         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9042         * machmode.def (Pmode): Likewise.
9043
9044 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
9045
9046         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9047         (nonlocal_mentioned_p_1): New function.
9048         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9049         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9050         (mark_constant_function): Recognize pure functions.
9051         * rtl.h (global_reg_mentioned_p): New prototype.
9052         * rtlanal.c (global_reg_mentioned_p,
9053         global_reg_mentioned_p_1): New function.
9054
9055 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9056
9057         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9058         UNIX assert.h.
9059         * fixinc/fixincl.x: Regenerate.
9060
9061 2002-03-20  Jason Merrill  <jason@redhat.com>
9062
9063         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9064
9065 2002-03-20  Michael Meissner  <meissner@redhat.com>
9066
9067         * doc/invoke.texi (Optimize Options): Document that -O2 sets
9068         -fstrict-aliasing.
9069
9070 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9071
9072         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9073         ".literal_position" directive before the constant pool.
9074
9075 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9076
9077         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9078         Add Craig Rodrigues.
9079         Add Brad Lucier to testers.
9080
9081 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9082
9083         PR target/4792
9084         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9085         to if_then_else.
9086         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9087         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9088         instead of insn_extract.
9089
9090 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9091
9092         PR bootstrap/4192
9093         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9094
9095         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9096         stmt if some case has been output.
9097
9098 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9099
9100         PR c/5972
9101         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9102         movsfcc_1, movdfcc_1): Add %O2.
9103         * config/i386/i386.c (print_operand): Handle %ON.
9104         Print . before float condition codes in Sun as cmov syntax.
9105         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9106         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9107         no longer true.
9108
9109 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9110
9111         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9112         return instruction if PC was popped.
9113
9114 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9115
9116         * config/xtensa/xtensa.md: Remove unused type attributes.
9117         (adddi_carry, subddi_carry): Change type attribute to "multi".
9118
9119 2002-03-19  Dale Johannesen  <dalej@apple.com>
9120
9121         PR optimization/5999, middle-end/5731
9122         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9123         multiplications by reciprocals.
9124
9125 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9126
9127         * Makefile.in: Update.
9128         * c-common.c: Include langhooks.h.
9129         (inline_forbidden_p): Use new hook.
9130         * diagnostic.c: Include langhooks.h.
9131         (format_with_decl, announce_function,
9132         default_print_error_function): Use new hook.
9133         * dwarf2out.c (dwarf2_name): Use new hook.
9134         * function.c: Include langhooks.h.
9135         (init_function_start): Use new hook.
9136         * langhooks-def.h (lhd_decl_printable_name): New.
9137         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9138         (LANGHOOKS_INITIALIZER): Update.
9139         * langhooks.c (lhd_decl_printable_name): New.
9140         * langhooks.h (struct lang_hooks): New hook.
9141         * toplev.c (decl_name, decl_printable_name): Remove.
9142         (open_dump_file): Use new hook.
9143         (process_options): Remove old hook.
9144         * tree.h (decl_printable_name): Remove.
9145 objc:
9146         * objc-act.c (objc_init): Remove old hook.
9147         (objc_printable_name): Export.
9148         * objc-act.h (objc_printable_name): New.
9149         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9150
9151 2002-03-19  Jim Blandy  <jimb@redhat.com>
9152
9153         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9154         the start_source_file debug hook, not the current line number.
9155
9156 2002-03-19  Richard Henderson  <rth@redhat.com>
9157
9158         * flow.c (EH_USES): Provide default.
9159         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9160         * doc/tm.texi (EH_USES): New.
9161
9162         * config/ia64/ia64.c (ia64_eh_uses): New.
9163         * config/ia64/ia64-protos.h: Update.
9164         * config/ia64/ia64.h (EH_USES): New.
9165
9166 2002-03-19  Richard Henderson  <rth@redhat.com>
9167
9168         * varasm.c (output_constant_def): Fix stupid typo.
9169
9170 2002-03-19  Richard Henderson  <rth@redhat.com>
9171
9172         PR 5879
9173         * except.c (current_function_has_exception_handlers): New.
9174         * except.h: Declare it.
9175         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9176         Combine tests that disable all sibcalls for the function.
9177
9178 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9179
9180         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9181         for INTEGER_CST.
9182
9183 2002-03-19  Richard Henderson  <rth@redhat.com>
9184
9185         PR 5977, 5991
9186         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9187         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9188
9189 2002-03-19  Jim Blandy  <jimb@redhat.com>
9190
9191         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9192         name, even if the replacement list contains no tokens, as required
9193         by Dwarf.
9194
9195 2002-03-19  Jason Merrill  <jason@redhat.com>
9196
9197         * varasm.c (globalize_decl): Get the name from the RTL, not
9198         DECL_ASSEMBLER_NAME.
9199
9200         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9201
9202 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9203
9204         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9205         subdi_carry): Define.
9206
9207 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9208
9209         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9210         about -fpic/-fPIC if extra_warnings set.
9211
9212 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9213
9214         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9215         TREE_STRING_POINTER.
9216         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9217
9218 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9219
9220         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9221         in favor of SP if FRAME_POINTER_REQUIRED is false.
9222
9223 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9224
9225         * emit-rtl.c (gen_int_mode): New function.
9226         * rtl.h: Prototype for it.
9227         * combine.c (make_extraction, simplify_comparison), expmed.c
9228         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9229         (convert_modes, store_field), optabs.c (expand_fix),
9230         simplify-rtx.c (neg_const_int, simplify_unary_real),
9231
9232         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9233         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9234
9235 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9236
9237         PR c/5656
9238         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9239         convert_parm_for_inlining.
9240         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9241         Define.
9242         * langhooks-def.h: Likewise.
9243         * objc/objc-lang.c: Likewise.
9244         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9245         function.
9246         * tree-inline.c (initialize_inlined_parameters):
9247         Call convert_parm_for_inlining lang hook if needed.
9248         * c-typeck.c (c_convert_parm_for_inlining): New function.
9249         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9250
9251 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9252
9253         * calls.c (precompute_arguments): Do not assume that temporaries
9254         can be destroyed after expanding the argument.
9255         (expand_call): Likewise.
9256
9257 2002-03-15  Eric Christopher  <echristo@redhat.com>
9258
9259         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9260         Fix register preference on last change.
9261         * config/mips/mips.c (mips_return_in_memory): New function.
9262         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9263         * config/mips/mips-protos.h: Declare.
9264         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9265         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9266
9267 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9268
9269         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9270         a register too.
9271         (anddi3, iorsi3): Likewise.
9272
9273         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9274         use %gprel for symbols that are going to be placed in linkonce
9275         sections.
9276
9277         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9278         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9279         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9280         not needed.  Disregard leaf_function_p().
9281         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9282         mips16 frame pointer.
9283         * config/mips/mips.md (store ra): Only to small SP offsets.
9284         2001-08-22  Graham Stott  <grahams@redhat.com>
9285         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9286         return a REG rtx for the return address register.
9287
9288 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9289
9290         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9291         constant-pool addresses as "mode-dependent".
9292         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9293
9294 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9295
9296         PR target/5740
9297         * expr.c (emit_group_load): Use extract_bit_field if
9298         needed for CONCAT arguments.
9299
9300 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9301
9302         PR target/4863
9303         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9304         offset to the base of the table.
9305         (thumb_tablejump): Matcher for Thumb tablejump insn.
9306         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9307         as the difference of two labels.
9308         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9309         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9310         tables in the code.
9311         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9312         * arm.c (get_jump_table_size): If the table is not in the text
9313         section, return zero.
9314
9315 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9316
9317         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9318         of gen_rtx_SUBREG.
9319         (arm_reload_out_hi): Use gen_lowpart instead of
9320         gen_rtx_SUBREG to access QImode components.
9321         * config/arm/arm.md: Disable zero_extend split for QImode
9322         subregs in BIG_ENDIAN mode.
9323         (storehi_bigend): Match use of least significant byte.
9324         (storeinthi): Remove extraneous SUBREG.
9325         Add missing construction of operands[2].
9326         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9327         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9328         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9329
9330 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9331
9332         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9333         any_operand.
9334
9335 2002-03-17  Richard Henderson  <rth@redhat.com>
9336
9337         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9338         explicitly.
9339
9340 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9341
9342         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9343         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9344
9345 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9346
9347         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9348
9349         * predict.c (estimate_bb_frequencies): Delete unused variables.
9350
9351 2002-03-17  Richard Henderson  <rth@redhat.com>
9352
9353         * config/ia64/ia64.c (ia64_attribute_table): Move before
9354         targetm definition.  Make static.
9355
9356 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9357
9358         * c-common.h (yyparse, c_common_parse_file): New.
9359         * c-lang.c: Include c-common.h.
9360         (LANG_HOOKS_PARSE_FILE): Redefine.
9361         * c-lex.c: Include c-common.h.
9362         (yyparse): Rename c_common_parse_file.  Call yyparse.
9363         * c-parse.in (yyparse): Remove macro.
9364         * c-tree.h (yyparse_1): Remove.
9365         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9366         (LANG_HOOKS_INITIALIZER): Update.
9367         * langhooks.h (struct lang_hoooks): New hook parse_file.
9368         * toplev.c (compile_file): Use parse_file hook.
9369         * tree.h (yyparse): Remove.
9370         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9371
9372 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9373
9374         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9375         float_truncate, not fix.
9376         ("*truncdfsf2_real"): Ditto.
9377         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9378
9379         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9380
9381 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9382
9383         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9384         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9385         where appropriate.  Make the second reference to
9386         leaf_function_p a function call, as intended.  Reindented.
9387
9388         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9389         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9390
9391         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9392         add register to non-constant into sp.
9393
9394         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9395         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9396         (mips16_gp_pseudo_rtx): Lose.
9397         (INIT_EXPANDERS): Deleted.
9398         * config/mips/mips.c (mips_init_machine_status): New.
9399         (mips_free_machine_status): New.
9400         (mips_mark_machine_status): New.
9401         (override_options): Set them.
9402         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9403         (struct machine_function): ... new.  Replaced all references.
9404         (mips_add_gc_roots): Don't mark them.
9405         (embedded_pic_fnaddr_reg): New, extracted from...
9406         (embedded_pic_offset): ... here.
9407         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9408         (movsi): Likewise.
9409
9410 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9411
9412         * cppinit.c: Revert -MD removal.
9413
9414 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9415
9416         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9417         soft registers by default for 68HC12.
9418         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9419         when compiling with -fomit-frame-pointer.
9420         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9421         (expand_epilogue): Likewise.
9422         (m68hc11_gen_rotate): Use exg when rotating by 8.
9423
9424 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9425
9426         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9427         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9428         (splits): Remove unused add splits.
9429         ("*addhi3_68hc12"): Tune constraints.
9430         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9431         constant fits in 8-bits and D is dead use abx/aby instructions.
9432         ("*addhi3"): Remove extern declaration of ix_reg.
9433         ("*subsi3"): Optimize and provide new split.
9434         ("subhi3"): Cleanup.
9435         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9436         (arith splits): For 68hc12 save the address register on the stack
9437         and do the arithmetic operation with a pop.
9438
9439 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9440
9441         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9442         allocating QImode in address registers.
9443         ("*movqi_m68hc11"): Likewise.
9444
9445 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9446
9447         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9448
9449 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9450
9451         * cppinit.c (print_help): Display -MD and -MMD.
9452         Don't display usage string.  Update assertion syntax and
9453         typo.
9454         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9455         (cpp_handle_option): Update.
9456
9457 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9458
9459         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9460         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9461         and define it so that regardless of target CPU size,
9462         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9463         of "int" rather than "long."
9464
9465 2002-03-15  Richard Henderson  <rth@redhat.com>
9466
9467         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9468         size as a tree.
9469
9470 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9471
9472         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9473         ("tstqi" split): Avoid using memory for tstqi on address register.
9474         (splits): Remove constraints.
9475         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9476         ("cmpdf", "cmpsf"): Remove since not used.
9477         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9478         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9479
9480 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9481
9482         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9483         ("neghi2"): Tighten constraints.
9484         ("one_cmplsi2"): Optimize and simplify split.
9485         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9486
9487 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9488
9489         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9490         and split of AND operation to clear the upper bits.
9491         ("*logicalsi3_zextqi"): Likewise.
9492         ("*logicallhi3_zexthi_ashift8"): Likewise.
9493         ("*logicalsi3_silshr16"): Likewise.
9494         ("logicalsi3_silshl16"): Likewise.
9495         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9496
9497 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9498
9499         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9500         (m68hc11_indirect_p): New function.
9501         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9502         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9503         TARGET_M6812.
9504         (asm_print_register): Likewise.
9505         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9506         (m68hc11_indirect_p): Declare.
9507         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9508         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9509         (TARGET_SWITCHES): New option -mrelax.
9510         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9511         destination.
9512         ("iorsi3", "xorsi3"): Likewise.
9513         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9514         ("*andhi3_mem"): New to handle destination in memory with bclr
9515         and a scratch register.
9516         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9517         ("*andhi3_const"): New when operand2 is constant.
9518         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9519         ("*andhi3_gen"): Cleanup of the old "andhi3".
9520         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9521         ("xorqi3"): Update constraints.
9522
9523 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9524
9525         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9526         for reg_equiv_memory_loc when the operand is a register that does
9527         not get a hard register (stack location).
9528         (tst_operand): After reload, accept all memory operand.
9529         (symbolic_memory_operand): Fix detection of symbolic references.
9530         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9531         accept symbols and any constant.
9532
9533 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9534
9535         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9536         note on the insn that sets the soft frame register.
9537         (must_parenthesize): ix and iy are also reserved names.
9538         (print_operand_address): One more place where parenthesis are required
9539         to avoid confusion with register names.
9540         (m68hc11_gen_movhi): Allow push of stack pointer.
9541         (m68hc11_check_z_replacement): Fix handling of parallel with a
9542         clobber.
9543         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9544         the replacement register is.
9545         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9546         and D8_REGS classes.
9547         (MODES_TIEABLE_P): All modes are tieable except QImode.
9548
9549 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9550
9551         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9552         (___subdi3): Likewise.
9553         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9554         (__map_data_section): Optimize 68hc11 case.
9555
9556 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9557
9558         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9559         than a shift to avoid adding a register with itself.
9560         (m68hc11_memory_move_cost): Take into account NO_REGS.
9561         (m68hc11_register_move_cost): Update and use memory move cost
9562         for soft registers.
9563         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9564         it gives more opportunities to cse to optimize.
9565         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9566         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9567
9568 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9569
9570         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9571         * c-common.def (CLEANUP_STMT): New tree node.
9572         * c-common.h (CLEANUP_DECL): New macro.
9573         (CLEANUP_EXPR): Likewise.
9574         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9575         * expr.c (expand_expr): Tidy.
9576         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9577         * tree-inline.c (initialize_inlined_parameters): Clean up
9578         new local variables.
9579
9580 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9581
9582         PR bootstrap/4128
9583         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9584         before movrXX only, use reg_overlap_mentioned_p.
9585         Only special case NE if just one insn can be generated.
9586
9587 2002-03-15  Jason Merrill  <jason@redhat.com>
9588
9589         * varasm.c (assemble_variable): Call resolve_unique_section before
9590         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
9591         of error_mark_node.
9592
9593 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9594
9595         PR target/5170
9596         * arm.md (split pattern for thumb shiftable immediates): Add comment
9597         explaining non-obvious test.
9598
9599 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9600
9601         PR target/5712
9602         * arm.md (movaddr, movaddr_insn): Delete.
9603
9604 2002-03-15  Jason Merrill  <jason@redhat.com>
9605
9606         * toplev.c (wrapup_global_declarations): Clarify variable handling.
9607         -fkeep-static-consts doesn't apply to comdats.
9608
9609 2002-03-14  Richard Henderson  <rth@redhat.com>
9610
9611         * c-decl.c: Include c-pragma.h.
9612         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9613         (finish_function): Tidy.
9614         * c-pragma.c: Include c-common.h.
9615         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9616         (handle_pragma_weak): Use them.
9617         (init_pragma): Register pending_weaks.
9618         * c-pragma.h (maybe_apply_pragma_weak): Declare.
9619         * print-tree.c (print_node): Print DECL_WEAK.
9620         * varasm.c (mark_weak_decls): Remove.
9621         (remove_from_pending_weak_list): Remove.
9622         (add_weak): Remove.
9623         (asm_emit_uninitialised): Call globalize_decl for weak commons.
9624         (weak_decls): Make a tree_list.
9625         (declare_weak): Cons weak_decls directly.
9626         (globalize_decl): Remove weak_decls elements directly.
9627         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
9628         symbols.  Don't pretend to handle aliases.
9629         (init_varasm_once): Update weak_decls registry.
9630         * Makefile.in: Update dependencies.
9631
9632 2002-03-14  Richard Henderson  <rth@redhat.com>
9633
9634         PR target/5312
9635         * config/ia64/ia64.c: Include tm_p.h last.
9636         (gen_nop_type): Remove duplicate definition.
9637         (cycle_end_fill_slots): Set sched_data for second L slot.
9638         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9639         (nop_cycles_until): Fix typos.
9640
9641 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9642
9643         PR optimization/5891
9644         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9645
9646 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9647
9648         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9649           descriptors correctly.
9650
9651 2002-03-14  Michael Meissner  <meissner@redhat.com>
9652
9653         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9654         100, allowing MAX_UNROLLED_INSNS to be overridden.
9655
9656         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9657         --param.
9658
9659         * unroll.c (params.h): Include.
9660         (MAX_UNROLLED_INSNS): Delete, now in params.h.
9661
9662         * doc/invoke.texi (--param max-unroll-insns): Document.
9663
9664         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9665
9666 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9667
9668         * arm.md: Fix warnings about constraints in peepholes and splits.
9669
9670 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
9671
9672         * cpphash.h (struct lexer_state): Remove line_extension member.
9673         * cpplib.c (dequote_string, do_linemarker): New functions.
9674         (linemarker_dir): New data object.
9675         (DIRECTIVE_TABLE): No longer need to interpret #line in
9676         preprocessed source.  Delete obsolete comment about return
9677         values of handlers.
9678         (end_directive, directive_diagnostics, _cpp_handle_directive):
9679         Don't muck with line_extension.
9680         (directive_diagnostics): No need to issue warnings for
9681         linemarkers here.
9682         (_cpp_handle_directive): Issue warnings for linemarkers here,
9683         when appropriate.  Dispatch linemarkers to do_linemarker, not
9684         do_line.
9685         (do_line): Code to handle linemarkers split out to do_linemarker.
9686         Convert escape sequences in filename argument, both places.
9687
9688         * cppmacro.c (quote_string): Rename cpp_quote_string and
9689         export.  All callers changed.
9690         * cpplib.h (cpp_quote_string): Prototype.
9691         * cppmain.c (print_line): Call cpp_quote_string on to_file
9692         before printing it.
9693
9694         * doc/cpp.texi: Document that escapes are now interpreted in
9695         #line and in linemarkers, and that non-printing characters are
9696         converted to octal escapes when linemarkers are generated.
9697
9698 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
9699
9700         * emit-rtl.c (try_split): Use delete_insns.
9701         * recog.c (split_all_insns): Fix terminating condition.
9702
9703 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9704             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9705
9706         PR target/5828
9707         * arm.c (arm_output_epilogue): Fix floating-point register save
9708         adjustment when using a frame pointer.
9709
9710 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
9711
9712         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9713         * config/mips/mips.c (compute_frame_size): Retrofit them here.
9714         (save_restore_insns, mips_expand_epilogue): And here.
9715         (build_mips16_call_stub): And here.
9716         (mips_function_value): Use the new macros to decide whether a single
9717         or complex float can be returned in floating-point registers.  Return
9718         a parallel rtx in the complex case.
9719
9720 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9721
9722         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9723         call after liveness analysis.
9724
9725         * recog.c (split_insn): Use delete_insn_and_edges.
9726
9727         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9728         instructions to have branch prediction notes.
9729         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9730
9731 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
9732
9733         * configure.in: Don't pass -Wno-long-long to a ADA compiler
9734         that doesn't support it.
9735         * configure: Regenerate.
9736
9737 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9738
9739         PR target/5626
9740         * config/sparc/sparc.md (normal_branch, inverted_branch,
9741         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9742         inverted_fp_branch): Adjust calls to output_cbranch.
9743         Set length attribute.
9744         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9745         output_v9branch.  Set length attribute.
9746         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9747         predicates.
9748         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9749         (output_cbranch): Likewise.  Handle far branches.
9750         (output_v9branch): Handle far branches.
9751         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9752         Adjust prototypes.
9753         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9754         noov_compare64_op predicates.
9755
9756 2002-03-13  Jason Merrill  <jason@redhat.com>
9757
9758         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9759         into the function and constify it.
9760         * gthr-dce.h, gthr-solaris.h: Likewise.
9761
9762 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
9763
9764         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9765         * config/rs6000/rs6000.c (rs6000_va_arg): Use
9766         std_expand_builtin_va_arg if not ABI_V4.
9767
9768 2002-03-13  Jason Merrill  <jason@redhat.com>
9769
9770         * varasm.c (globalize_decl): New fn.
9771         (assemble_start_function): Use it.
9772         (asm_emit_uninitialized): Use it.
9773         (assemble_alias): Use it.
9774         (assemble_variable): Use it.
9775
9776 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
9777
9778         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9779         2002-03-12 internal visibility change.
9780         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9781         visibility into SYMBOL_REF_FLAG.
9782
9783 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
9784
9785         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9786         VOIDmode operand.  Add compile-time optimization for constant results.
9787
9788 2002-03-12  Jason Merrill  <jason@redhat.com>
9789
9790         * c-typeck.c (convert_for_assignment): Don't allow conversions
9791         between pointers and references.  Only allow lvalues to convert to
9792         reference.
9793
9794 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
9795
9796         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9797         before prologue, to avoid scheduling problems.
9798
9799 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9800
9801         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9802         (ELIMINABLE_REGS): Add sfp->sp.
9803         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9804
9805 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9806
9807         PR optimization/5892
9808         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9809
9810 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9811
9812         * loop.c (basic_induction_var): Don't call convert_modes if mode
9813         classes are different.
9814
9815 2002-03-12  Richard Henderson  <rth@redhat.com>
9816
9817         PR optimization/5901
9818         * function.c (reposition_prologue_and_epilogue_notes): Position
9819         the markers after/before the last/first insn not deleted.
9820
9821 2002-03-12  Richard Henderson  <rth@redhat.com>
9822
9823         PR optimization/5878
9824         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9825         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9826         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9827
9828         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9829         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9830         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9831
9832         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9833         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9834         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9835         also.  Don't set it if not flag_pic.
9836         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9837         to be INVALID_REGNUM when not used.
9838
9839 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
9840
9841         * expmed.c (store_bit_field): Reset alias set for memory.
9842         (extract_bit_field): Same.
9843
9844 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9845
9846         * c-common.c (c_tree_code_type, c_tree_code_length,
9847         c_tree_code_name, add_c_tree_codes): Delete.
9848         * c-common.h (add_c_tree_codes): Delete.
9849         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9850         Define.
9851         * c-objc-common.c (c_objc_common_init): Don't call
9852         add_c_tree_codes, instead set lang_unsafe_for_reeval.
9853         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9854         objc_tree_code_name, add_objc_tree_codes): Delete.
9855         (objc_init): Don't call add_objc_tree_codes.
9856         * objc/objc-lang.c (tree_code_type, tree_code_length,
9857         tree_code_name): Define.
9858         * toplev.c (lang_independent_init): Don't set
9859         tree_code_length[IDENTIFIER_NODE].
9860         * tree.c (tree_code_type, tree_code_length, tree_code_name):
9861         Delete definitions, moved to language front-ends.
9862         * tree.def (IDENTIFIER_NODE): Hardwire the length.
9863         * tree.h (tree_code_type, tree_code_length, tree_code_name):
9864         Const-ify.
9865         (tree_code_length): Change type to unsigned char.
9866
9867 2002-03-12  Richard Henderson  <rth@redhat.com>
9868
9869         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9870         internal visibility change.
9871
9872 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9873
9874         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9875         validize_mem() instead of change_address to avoid clobbering
9876         memory attributes.
9877
9878 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
9879
9880         * c-lex.h (position_after_whitespace): Remove.
9881
9882 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
9883
9884         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9885         (lex_string): Use unsigned char pointers.
9886
9887 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
9888
9889         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9890         is not a valid memory_operand.
9891
9892 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9893
9894         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9895         * config/xtensa/lib1funcs.asm: Fix copyright to include
9896         special case for libgcc files.
9897         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9898         (__divsi3): Likewise.
9899         (__umodsi3): Likewise.
9900         (__modsi3): Likewise.
9901         * config/xtensa/lib2funcs.S: Fix copyright to include
9902         special case for libgcc files.
9903
9904 2002-03-12  Tom Rix  <trix@redhat.com>
9905
9906         * collect2.c (resolve_lib_name): Move outside of
9907         OBJECT_FORMAT_COFF ifdef.
9908         (ignore_library): Same.
9909
9910 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9911
9912         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9913
9914 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9915
9916         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9917         to function_section before writing out the constant pool.
9918
9919 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
9920
9921         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9922         zero_constant.
9923         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9924
9925 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
9926
9927         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9928         (adddi3): Likewise.
9929         (movdf): Likewise.
9930         (movdi): Likewise.
9931         (cmpsi splitter): Likewise.
9932         (modsi3): Fail if <= 0.
9933         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9934         redundant test when HOST_BITS_PER_WIDE_INT != 32.
9935         (reg_or_sub_cint64_operand): Likewise.
9936         (num_insns_constant_wide): Optimize sign extension.
9937         (rs6000_legitimize_address): Likewise.
9938
9939 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
9940
9941         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9942         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9943
9944 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
9945
9946         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9947         address calculation.
9948
9949 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
9950
9951         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9952         scratch register to DImode / TImode.
9953         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9954         register used does not overlap the target.
9955
9956 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9957
9958         * Makefile.in (debug.o): Depend on debug.h.
9959         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9960         * debug.c (do_nothing_debug_hooks): Likewise.
9961         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9962         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9963         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9964         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9965         * dwarfout.c (dwarf_debug_hooks): Likewise.
9966         * integrate.c (output_inline_function): Likewise.
9967         * objc/objc-act.c (synth_module_prologue): Likewise.
9968         * sdbout.c (sdb_debug_hooks): Likewise.
9969         * toplev.c (debug_hooks): Likewise.
9970         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9971
9972 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9973
9974         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9975         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9976         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9977         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9978         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9979         * defaults.h (POINTER_SIZE): Define.
9980         * doc/tm.texi (POINTER_SIZE): Document default.
9981
9982 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9983
9984         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9985
9986 2002-03-11  Richard Henderson  <rth@redhat.com>
9987
9988         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9989         if rebuild_label_notes_after_reload.
9990
9991 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
9992
9993         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
9994         emit pic register load if "internal" visibility.
9995         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9996         (cris_expand_builtin_va_arg): Do all computations on trees.
9997
9998 2002-03-11  Richard Henderson  <rth@redhat.com>
9999
10000         * rtlanal.c: Include recog.h.
10001         (keep_with_call_p): Fix thinko.
10002         * Makefile.in (rtlanal.o): Update dependencies.
10003
10004 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
10005
10006         * genflags.c (gen_insn): Use IS_VSPACE.
10007         * genoutput.c (output_insn_data): Likewise.
10008         (process_template): Likewise.
10009
10010 2002-03-11  Richard Henderson  <rth@redhat.com>
10011
10012         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10013
10014 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10015
10016         * Makefile.in: Update.
10017         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10018         Update documentation.
10019         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10020         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10021
10022 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
10023
10024         * Makefile.in: Give texi2pod its input file as a command line
10025         argument, not on stdin.
10026
10027 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
10028             Daniel Berlin  <dan@dberlin.org>
10029
10030         C++ alias analysis improvement.
10031         * alias.c (record_component_aliases): Record aliases for base
10032         classes too.
10033
10034 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
10035
10036         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10037
10038 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
10039
10040         * toplev.c (vms_fopen): Remove, not needed.
10041
10042         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10043
10044         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10045
10046         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10047         for FP, already done later.
10048
10049         * toplev.c (debug_args): Add entry for VMS_DEBUG.
10050         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10051
10052 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
10053
10054         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10055         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10056         LARGEST_EXPONENT_IS_NORMAL for the given mode.
10057         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10058         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10059         (ediv, emul, eldexp, esqrt): Likewise.
10060         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10061         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10062         (saturate): New function.
10063         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10064         (make_nan): Use a saturation value instead of a NaN if
10065         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
10066         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10067         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
10068         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
10069         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10070         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10071         !ROUND_TOWARDS_ZERO.
10072         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10073         (ROUND_TOWARDS_ZERO): Document.
10074
10075 2002-03-11  Andreas Jaeger  <aj@suse.de>
10076
10077         * cfg.c (dump_flow_info): Remove unused variable.
10078
10079 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
10080
10081         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10082         computations on trees.
10083
10084 2002-03-10  Richard Henderson  <rth@redhat.com>
10085
10086         PR 5693:
10087         * reload.c (copy_replacements_1): New.
10088         (copy_replacements): Use it to recurse through the rtx.
10089
10090 2002-03-10  Richard Henderson  <rth@redhat.com>
10091
10092         * loop.c (strength_reduce): Compute number of iterations as
10093         unsigned HOST_WIDE_INT.
10094
10095 2002-03-10  Richard Henderson  <rth@redhat.com>
10096
10097         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10098         to move away from the end of the block.
10099
10100 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10101
10102         PR preprocessor/5899
10103         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10104
10105 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10106
10107         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10108
10109         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10110
10111 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10112
10113         * config/mmix/mmix.c: Improve comments.
10114         (mmix_target_asm_function_prologue): Drop variable
10115         empty_stack_frame.  Don't allocate unused slot above fp.
10116         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10117         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10118         brace in first column.
10119         (enum reg_class): Ditto.
10120         (FIRST_PARM_OFFSET): Now 0.
10121         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10122
10123 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10124
10125         * combine.c (make_extraction): Fix error in last change.
10126
10127 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10128
10129         * c4x.c (c4x_fp_reglist): Const-ify.
10130         * cris.c (cris_print_operand): Likewise.
10131         * i386.c (ix86_va_arg): Likewise.
10132         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10133         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10134         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10135         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10136         * mcore.h (regno_reg_class): Likewise.
10137         * mips.c (gen_int_relational): Likewise.
10138         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10139         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10140         * pdp11.c (move_costs): Likewise.
10141         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10142         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10143         Likewise.
10144         * s390.h (regclass_map): Likewise.
10145         * sh.c (shift_amounts): Likewise.
10146         * sh.md (rotlsi3): Likewise.
10147
10148 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10149
10150         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10151         (ne0+5): Use new clobber to generate proper shift pattern.
10152         Patch by Michael Matz <matz@kde.org>.
10153
10154 2002-03-09  Andreas Schwab  <schwab@suse.de>
10155
10156         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10157
10158 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10159
10160         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10161
10162 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10163
10164         PR middle-end/5877
10165         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10166         even for non-representable constants.
10167
10168 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10169
10170         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10171         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10172         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10173         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10174         (pop_function_context): Compute MAY_SHARE parameter for
10175         fixup_var_refs.
10176         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10177         (gen_mem_addressof): Call fixup_var_refs with new parm.
10178
10179         * combine.c (make_extraction): Don't make extension of CONST_INT.
10180
10181 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10182
10183         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10184         in o32 and o64 ABIs.
10185         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10186         but getting fixed-size structs passed in registers regardless of
10187         padding in o32 and o64 ABIs.
10188
10189         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10190         offset before loading address of argument passed by transparent
10191         reference.
10192
10193 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10194
10195         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10196
10197 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10198
10199         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10200         marker such that registers after it are saved.
10201
10202 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10203
10204         * sparc.c (arith_4096_operand): Fix error in last change.
10205
10206 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10207
10208         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10209         defaults for MEABI.
10210
10211 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10212
10213         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10214         vectors.
10215
10216 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10217
10218         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10219
10220 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10221
10222         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10223         removed; fix return value.
10224         * combine.c (combine_instructions): Dirtify blocks where we failed to
10225         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10226         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10227
10228 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10229
10230         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10231
10232 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10233
10234         * recog.c (peephole2_optimize): Re-distribute EH edges.
10235
10236 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10237
10238         * expr.c (expand_expr): Use unsave lang hook.
10239         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10240         (LANG_HOOKS_INITIALIZER): Update.
10241         * langhooks.h (struct lang_hooks): New hook unsave.
10242         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10243         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10244         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10245         (unsave_expr_now): Remove.
10246         * tree.h (unsave_expr_now, lang_unsave,
10247         lang_unsave_expr_now): Remove.
10248         (lhd_unsave): New.
10249
10250 2002-03-08  Andreas Jaeger  <aj@suse.de>
10251
10252         * flow.c (propagate_block_delete_insn): Remove unused variable.
10253
10254 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10255
10256         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10257         insn length for memory load/store.
10258
10259 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10260
10261         * doc/install.texi (--with-libiconv-prefix): Document.
10262
10263 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10264
10265         * doc/sourcebuild.texi: Fix typo.
10266
10267 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10268
10269         PR c/3711
10270         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10271         trees.
10272
10273 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10274
10275         * rtl.c (copy_most_rtx): Move from here ...
10276         * emit-rtl.c (copy_most_rtx): ... to here.
10277
10278 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10279
10280         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10281         SUBTARGET_CPP_SIZE_SPEC.
10282         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10283
10284         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10285
10286 2002-03-07  Matt Hiller  <hiller@redhat.com>
10287
10288         * gensupport.c (first_dir_md_include): Renamed from include;
10289         change all references.
10290         (last_dir_md_include): Renamed from last_include; change all
10291         references.
10292         (init_md_reader): Unconditionally initialize base_dir whether or
10293         not filename is a relative path.
10294
10295 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10296
10297         * config/fp-bit.c (_unord_f2): Compile it in even if
10298         US_SOFTWARE_GOFAST is enabled.
10299
10300         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10301         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10302         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10303         NULL_RTX, try reversing the comparison and the operands.
10304
10305 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10306
10307         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10308         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10309         and MATCH_OP_DUP.
10310
10311 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10312
10313         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10314
10315 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10316
10317         * basic-block.h (fixup_abnormal_edges): Declare.
10318         * reload1.c (fixup_abnormal_edges): New function.
10319         * reg-stack.c (convert_regs): Use it.
10320
10321         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10322
10323         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10324
10325 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10326
10327         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10328         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10329         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10330         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10331         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10332         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10333         unless x and y could be infinite.
10334         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10335         Check that the common type of both arguments is a real, even for
10336         targets without unordered comparisons.  Allow an integer argument
10337         to be compared against a real.
10338         (expand_tree_builtin): Use expand_unordered_cmp.
10339         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10340         * cse.c (fold_rtx): Likewise.  Fix indentation.
10341         * fold-const.c (fold_real_zero_addition_p): New.
10342         (fold): Use it, and the new HONOR_... macros.
10343         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10344         * jump.c (reversed_comparison_code_parts): After searching for
10345         the true comparison mode, use HONOR_NANS to decide whether it
10346         can be safely reversed.
10347         (reverse_condition_maybe_unordered): Remove IEEE check.
10348         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10349         to decide which simplifications are valid.  Allow the following
10350         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10351         and (a - -b) to (a + b).
10352         (simplify_relational_operation): Use HONOR_NANS.
10353         * doc/tm.texi: Document the MODE_HAS_... macros.
10354
10355 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10356
10357         * combine.c (simplify_comparison): If simplifying a logical shift
10358         right and compare with constant, force the comparison to unsigned.
10359
10360 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10361
10362         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10363
10364         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10365         -mabi=no-altivec
10366         (alt_reg_names): Remove % for vrsave.
10367
10368 2002-03-06  Richard Henderson  <rth@redhat.com>
10369
10370         PR optimization/5844
10371         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10372         if used indicates we've already emitted one copy of an operand.
10373         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10374         (gen_split): Supply a non-null used.
10375
10376 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10377
10378         * reload1.c (reload): Unshare all rtl after reload is done.
10379
10380         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10381         but simply fail if the expression is too complex to simplify.
10382         (simplify_gen_binary): Handle simplify_plus_minus failures.
10383
10384 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10385
10386         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10387         consistently call delete_trivially_dead_insns after CSE and GCSE;
10388         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10389         after liveness2; update comment in last crossjumping.
10390         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10391
10392 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10393
10394         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10395         after completing fast dead code elimination.
10396
10397         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10398         COMPARE operator.
10399
10400 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10401
10402         * version.c:  Fix misplaced leading blanks on first line.
10403
10404 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10405
10406         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10407
10408 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10409
10410         * cfgcleanup.c (mentions_nonequal_regs): New function.
10411         (thread_jump): Use it.
10412         * toplev.c (rest_of_compilation): Run jump threading after
10413         liveness.
10414
10415 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10416
10417         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10418         patch.
10419
10420 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10421
10422         * predict.c (estimate_bb_frequencies): Do not reload the
10423         frequencies from notes.
10424
10425 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10426
10427         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10428         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10429
10430         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10431         delete_noop_moves): Return indeger.
10432         * flow.c (ndead): New variable.
10433         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10434         BB argument; update callers.
10435         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10436         (life_analysis): Do not call purge_all_dead_edges.
10437         (update_life_info): Return number of deleted insns; print statistics.
10438         (update_life_info_in_dirty_blocks): likewise.
10439         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10440         return number of insns deleted.
10441
10442         * cse.c: Include timevar.h
10443         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10444         iterate until stabilizes; print statistics; return number of killed
10445         insns.
10446         * Makefile.in: (cse.o): Add timevar.h dependency
10447         * rtl.h (delete_trivially_dead_insns): New.
10448         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10449         * toplev.c (rest_of_compilation): Update callers.
10450
10451         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10452         (try_optimize_cfg): Do not update liveness.
10453         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10454         removal stabilizes; use delete_trivially_dead_insns.
10455
10456         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10457
10458 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10459
10460         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10461         callbacks when processing assembly language.
10462
10463 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10464
10465         * pa.h (ASM_FILE_END): Define.
10466         * som.h (ASM_FILE_END): Delete.
10467
10468         * pa.c (function_arg): Don't pass floats in general registers in
10469         indirect calls if TARGET_ELF32.
10470
10471 2002-03-05  Richard Henderson  <rth@redhat.com>
10472
10473         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10474
10475 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10476
10477         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10478
10479 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10480
10481         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10482         -r command line.  Don't hide any symbols if not building
10483         shared libgcc.
10484
10485 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10486
10487         * cfg.c (dump_flow_info): Warn about profile mismatches.
10488         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10489         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10490
10491 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10492
10493         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10494         wide volatile memory by parts.
10495
10496 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10497
10498         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10499         is NULL.
10500
10501 2002-03-05  Richard Henderson  <rth@redhat.com>
10502
10503         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10504
10505 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10506
10507         * toplev.c (documented_lang_options): Document more
10508         language-specific options.
10509         * doc/invoke.texi (Warning Options): Correct documentation for
10510         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10511         * c-decl.c (c_decode_option): Use a table to handle warning options.
10512
10513 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10514
10515         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10516         parameter to mmix_encode_section_info.
10517         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10518         relocatably.  Always produce ELF, not mmo if linking relocatably.
10519         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10520         first is non-zero, don't add symbol prefix.
10521         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10522         prototype accordingly.
10523
10524 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10525
10526         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10527
10528 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10529
10530         * configure.in: Increase required makeinfo version to 4.1.
10531         * configure: Regenerate.
10532
10533 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10534
10535         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10536         elsewhere now.
10537
10538 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10539
10540         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10541         * doc/invoke.texi: Fix @math uses.
10542
10543 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10544
10545         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10546         removal
10547
10548 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10549
10550         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10551         (powerpc-*-eabisimaltivec*): Same.
10552
10553         * config/rs6000/t-ppcendian: New.
10554
10555 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10556
10557         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10558         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10559         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10560
10561 2002-03-03  Richard Henderson  <rth@redhat.com>
10562
10563         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10564
10565 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10566
10567         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10568         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10569         tree.c, config/m68k/m68k.c:
10570         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10571         REAL_ARITHMETIC blocks unconditional.  Delete some further
10572         #ifdef blocks predicated on REAL_ARITHMETIC.
10573         * flags.h, toplev.c: Delete remaining references to
10574         flag_pretend_float.
10575
10576         * doc/invoke.texi: Remove documentation of -fpretend-float.
10577         * doc/tm.texi: Describe the various REAL_* macros as provided by
10578         real.h, not by the target configuration files.
10579
10580         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10581         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10582         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10583         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10584         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10585         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10586         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10587         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10588         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10589         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10590         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10591         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10592         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10593         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10594         config/xtensa/xtensa.h:
10595         Do not define, undefine, or mention in comments any of
10596         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10597         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10598         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10599         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10600         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10601         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10602         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10603         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10604         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10605
10606 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10607
10608         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10609         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10610         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10611         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10612         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10613         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10614         Delete.
10615         * defaults.h (BITS_PER_WORD): Define.
10616         * doc/tm.texi (BITS_PER_WORD): Document default value.
10617
10618         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10619         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10620         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10621
10622 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10623
10624         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10625         lieu of explicit sizeof/sizeof.
10626         * i386.c (override_options, ix86_init_mmx_sse_builtins,
10627         ix86_expand_builtin): Likewise.
10628         * mips.c (mips_add_gc_roots): Likewise.
10629         * mmix.c (mmix_output_condition): Likewise.
10630         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10631         altivec_init_builtins): Likewise.
10632         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10633         * cppexp.c (Nsuff, parse_number): Likewise.
10634         * cppinit.c (builtin_array_end): Likewise.
10635         * gcc.c (n_default_compilers, process_command): Likewise.
10636         * genpreds.c (output_predicate_decls): Likewise.
10637         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10638         * lcm.c (N_ENTITIES): Likewise.
10639         * stor-layout.c (set_sizetype): Likewise.
10640
10641 2002-03-03  Richard Henderson  <rth@redhat.com>
10642
10643         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10644         for types or labels.
10645
10646 2002-03-03  Richard Henderson  <rth@redhat.com>
10647
10648         * c-decl.c (start_decl): Initialized variables are not common.
10649
10650 2002-03-02  Per Bothner  <per@bothner.com>
10651
10652         * gcc.c (option_map):  Suport new --bootclasspath option.
10653         --CLASSPATH is now just an alias for --classpath.
10654
10655 2002-03-02  Richard Henderson  <rth@redhat.com>
10656
10657         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10658         load if "internal" visibility.
10659         * doc/extend.texi: Document visibility meanings.
10660
10661 2002-03-02  Richard Henderson  <rth@redhat.com>
10662
10663         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10664         to functions as well.
10665
10666 2002-03-02  Richard Henderson  <rth@redhat.com>
10667
10668         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10669         (handle_visibility_attribute): Don't call assemble_visibility.
10670         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10671         without asmspec.  Invoke assemble_alias when needed.
10672         * varasm.c (maybe_assemble_visibility): New.
10673         (assemble_start_function, assemble_variable, assemble_alias): Use it.
10674
10675 2002-03-02  Richard Henderson  <rth@redhat.com>
10676
10677         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10678         invoke ENCODE_SECTION_INFO with first call flag.
10679
10680         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10681         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10682         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10683         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10684         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10685         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10686         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10687         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10688         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10689         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10690         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10691         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10692         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10693         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10694         config/mcore/mcore-protos.h, config/mcore/mcore.c,
10695         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10696         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10697         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10698         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10699         config/sh/sh.h, config/sparc/sparc.h,
10700         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10701         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10702         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10703         FIRST argument.  As needed, examine it and do nothing.
10704
10705         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10706         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10707         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10708
10709         * config/arm/t-pe (pe.o): Add dependencies.
10710
10711 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10712
10713         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10714         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10715         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10716         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10717         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10718         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10719         * defaults.h (BITS_PER_UNIT): Define.
10720         * doc/tm.texi (BITS_PER_UNIT): Document default value.
10721
10722 2002-03-02  Kazu Hirata  <kazu@hxi.com>
10723
10724         * config/h8300/h8300-protos.h: Add a prototype for
10725         compute_a_shift_length.
10726         * config/h8300/h8300.c (h8300_asm_insn_count): New.
10727         (compute_a_shift_length): Likewise.
10728         (h8300_adjust_insn_length): Do not adjust insn length of shift
10729         insns.
10730         * config/h8300/h8300.md (anonymous shift patterns): Use
10731         compute_a_shift_length.
10732
10733 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10734
10735         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10736         trunc_int_for_mode.
10737
10738         * emit-rtl.c (offset_address): Call update_temp_slot_address.
10739
10740 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10741
10742         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10743         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10744         * flags.h (flag_zero_initialized_in_bss): Declare.
10745         * toplev.c (flag_zero_initialized_in_bss): New flag.
10746         (lang_independent_options): Add flag_zero_initialized_in_bss.
10747         * tree.c (initializer_zerop): New function.
10748         * tree.h (initializer_zerop): Declare.
10749         * varasm.c (assemble_variable): If we can emit bss, put zero
10750         initializers in the bss section.
10751
10752 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
10753
10754         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10755         like more than one symbol per .weak directive.
10756
10757 2002-03-01  Richard Henderson  <rth@redhat.com>
10758
10759         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10760         adjust argument_pointer by pretend_args_size.
10761         (ia64_va_start): Adjust va_start address by -pretend_args_size.
10762
10763 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10764
10765         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10766
10767 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
10768
10769         * toplev.c (rest_of_compilation): Delete dead jumptables before
10770         loop.
10771         * flow.c (delete_dead_jumptables): Make global.
10772         * rtl.h (delete_dead_jumptables): Declare.
10773
10774 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
10775
10776         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10777         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10778         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10779
10780 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10781
10782         * config/h8300/h8300-protos.h: Fix formatting.
10783         * config/h8300/h8300.c: Likewise.
10784         * config/h8300/h8300.h: Likewise.
10785
10786 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10787
10788         * config/h8300/h8300.c (print_operand): Support 16-bit
10789         constant addresses.
10790         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10791
10792 2002-02-28  Richard Henderson  <rth@redhat.com>
10793
10794         * expmed.c (store_bit_field): Prevent generation of CONCATs;
10795         pun complex values as integers; use gen_lowpart instead of
10796         gen_rtx_SUBREG.
10797         (extract_bit_field): Likewise.
10798
10799 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
10800             David Edelsohn  <edelsohn@gnu.org>
10801
10802         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10803         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10804         (SUPPORTS_WEAK): Likewise.
10805         * output.h (add_weak): Add tree param.
10806         * varasm.c (add_weak): Likewise.  Save decl.
10807         (struct weak_syms): Add decl field.
10808         (mark_weak_decls): New function.
10809         (init_varasm_once): ggc_add_root mark_weak_decls.
10810         (assemble_start_function): Use ASM_WEAKEN_DECL.
10811         (assemble_variable): Likewise.
10812         (assemble_alias): Likewise.
10813         (declare_weak): Pass decl to add_weak.
10814         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10815         (remove_from_pending_weak_list): Declare and define for
10816         ASM_WEAKEN_DECL.
10817         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10818         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10819         * defaults.h (SUPPORTS_WEAK): Likewise.
10820         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10821         .weak for code sym.  Do emit .size for descriptor sym.
10822         (ASM_DECLARE_FUNCTION_SIZE): Define.
10823         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10824         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
10825         .lglobl unless TARGET_XCOFF.  Formatting fixes.
10826         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10827         .weak for code sym.
10828         (HANDLE_PRAGMA_WEAK): Remove.
10829         (ASM_WEAKEN_LABEL): Remove.
10830         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10831
10832 2002-03-01  Jason Merrill  <jason@redhat.com>
10833
10834         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10835         (TARGET_EXPR_CLEANUP): New macro.
10836
10837 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
10838
10839         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10840         to take ptr_extend into account as third type of extension.
10841         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10842         fields used by SUBREG_PROMOTED_UNSIGNED_P.
10843         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10844         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10845         * calls.c (precompute_arguments): Use new macro.
10846         (expand_call): Ditto.
10847         * combine.c (nonzero_bits): Ditto.
10848         (record_promoted_value): Ditto.
10849         * expr.c (store_expr): Ditto.
10850         (expand_expr): Ditto.
10851         * function.c (assign_parms): Ditto.
10852
10853 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
10854
10855         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10856         override -shared and -shared-libgcc.
10857
10858 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
10859
10860         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10861         of "ultrasparc".
10862         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
10863         to be broken.
10864
10865 2002-02-28  Richard Henderson  <rth@redhat.com>
10866
10867         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10868         4 cycle latency from MM producers.
10869         (ia64_internal_sched_reorder): Likewise with pipeline flush.
10870
10871 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
10872
10873         * mklibgcc.in: Don't use GNU make extension.
10874
10875 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10876
10877         * c-parse.in (STATIC): New terminal.
10878         (scspec): New non-terminal.  Update productions accordingly.
10879         (program): Remove bogus ifc / end ifc.
10880         (array_declarator): Simplify production using STATIC.
10881
10882 2002-02-28  Jim Meyering  <meyering@lucent.com>
10883
10884         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10885         \a still means TARGET_BELL.
10886
10887 2002-02-28  Richard Henderson  <rth@redhat.com>
10888
10889         * haifa-sched.c (sched_emit_insn): New.
10890         (schedule_block): Use last_scheduled_insn to track last insn.
10891         * sched-int.h (sched_emit_insn): Prototype.
10892         * config/ia64/ia64.c (last_issued): Remove.
10893         (ia64_variable_issue): Don't set it.
10894         (nop_cycles_until): Use sched_emit_insn.
10895
10896 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
10897
10898         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10899         extended constants.
10900
10901 2002-02-28  Kazu Hirata  <kazu@hxi.com>
10902
10903         * config/h8300/h8300.c: Fix formatting.
10904         * config/h8300/h8300.h: Likewise.
10905
10906 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10907
10908         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10909         which may overwrite the high byte of the frame pointer.
10910
10911 2002-02-28  Bo Thorsen  <bo@suse.de>
10912
10913         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10914         (STARTFILE_SPEC): Add 64 bit files.
10915         (ENDFILE_SPEC): Likewise.
10916
10917 2002-02-28  Jason Merrill  <jason@redhat.com>
10918
10919         * c-decl.c (finish_function): Only warn about missing return
10920         statement with -Wreturn-type.
10921
10922 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
10923
10924         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10925
10926         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10927         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10928
10929 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
10930
10931         * basic-block.h (BB_REACHABLE): Renumber.
10932         (BB_DIRTY, BB_NEW): New flags.
10933         (clear_bb_flags): Declare.
10934         (update_life_info_in_dirty_blocks): Declare.
10935         * cfg.c (clear_bb_flags): New function.
10936         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10937         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10938         reorder_insns, emit_insn_after): Mark block as dirty.
10939         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10940         (update_life_info_in_dirty_blocks): New function.
10941         * recog.c (apply_change_group): Dirtify block.
10942
10943         * cse.c (cse_insn): Reorder emitting of jump insn to keep
10944         cfg consistent.
10945         * gcse.c (delete_null_pointer_checks): Likewise.
10946
10947         * toplev.c (dump_file_index): Move cse2 after bp,
10948         add DFI_null
10949         (dump_file_info): Similary.
10950         (rest_of_compilation): Avoid most of CFG rebuilds;
10951         do first if converision after null pointer checks, do cse2
10952         after branch prediction; avoid full liveness rebuild after
10953         initializing subregs.
10954         * invoke.texi (-d options): Document -du, renumber.
10955
10956         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10957         (notice_new_block): Do not set BB_UPDATE_LIFE.
10958         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10959          merge_blocks_move_successor_nojumps, merge_blocks,
10960          try_crossjump_to_edge): Likewise.
10961         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10962         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10963         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10964         (merge_of_block): Do not use life_data_ok.
10965         (find_if_case_1): Do not use SET_UPDATE_LIFE.
10966         (if_convert): Use BB_DIRTY mechanizm to update life.
10967         * lcm.c (optimize_mode_switching): Update
10968         update_life_info_in_dirty_blocks
10969
10970 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10971
10972         * Makefile.in (integrate.o): Update.
10973         * c-decl.c (copy_lang_decl): Rename.
10974         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10975         * integrate.c: Include langhooks.h.
10976         (copy_decl_for_inlining): Update to use langhook.
10977         * langhooks-def.h (lhd_do_nothing_t,
10978         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10979         (LANG_HOOKS_INITIALIZER): Update.
10980         * langhooks.c (lhd_do_nothing_t): New.
10981         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10982         * tree.h (copy_lang_decl): Remove.
10983 objc:
10984         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10985
10986 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
10987
10988         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10989         POST_DEC, and POST_MODIFY.
10990
10991 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10992
10993         * c-typeck.c (digest_init): Remove unused parameter; all
10994         callers changed.
10995
10996 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
10997
10998         * expmed.c (expand_shift): Correctly test for low part of a
10999         subreg.
11000
11001 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
11002
11003         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11004         insn UIDs with insn addresses.
11005
11006 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11007
11008         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11009         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11010         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11011         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11012         gcc.c, toplev.c: Delete code implementing -traditional mode.
11013
11014         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11015         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11016         Document removal of -traditional mode for compilation, and
11017         remove documentation only relevant to that mode.
11018
11019         * config/nextstep.h, config/ptx4.h, config/svr4.h,
11020         config/convex/convex.h, config/d30v/d30v.h,
11021         config/i386/dgux.h, config/i386/osf1elf.h,
11022         config/i386/osfelf.h, config/i386/osfrose.h,
11023         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11024         config/m68k/hp310.h, config/m88k/dgux.h,
11025         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11026         config/m88k/m88k.h, config/m88k/openbsd.h,
11027         config/mips/abi64.h, config/mips/osfrose.h,
11028         config/mips/svr4-5.h, config/mips/svr4-t.h,
11029         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11030         config/stormy16/stormy16.h: Remove all references to
11031         -traditional from target specs.  Delete all mention of the
11032         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
11033         delete a couple of commented-out definitions of
11034         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11035         to -traditional.
11036
11037         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11038         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11039
11040 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11041
11042         * mklibgcc.in: Don't use \n in a line subject to
11043         interpretation by echo.
11044
11045 2002-02-27  Graham Stott  <grahams@redhat.com>
11046
11047         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11048         Constify NAME.
11049
11050         * loop.c (prescan_loop): Handle PARALLEL.
11051
11052         * unroll.c (loop_iterations): Return 0 if the add_val for
11053         a BIV is REG.
11054
11055         * final.c (output_operand_lossage): Constify PFX_STR.
11056
11057         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11058
11059 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11060
11061         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11062         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11063
11064 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
11065
11066         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11067
11068 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11069
11070         * cpplex.c (_cpp_lex_token): Handle directives in macro
11071         arguments.
11072         * cpplib.c (_cpp_handle_directive): Save and restore state
11073         if parsing macro args when entering a directive.
11074         * cppmacro.c (collect_args): No need to handle directives
11075         in macro arguments.
11076         (enter_macro_context, replace_args): Use the original macro
11077         definition in case it was redefined whilst collecting arguments.
11078 doc:
11079         * cpp.texi: Update.
11080
11081 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
11082
11083         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11084         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11085         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11086         method on AIX.
11087         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11088         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11089         (load_toc_v4_PIC_2): Same.
11090
11091 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
11092
11093         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11094
11095 2002-02-26  Richard Henderson  <rth@redhat.com>
11096
11097         * config/alpha/alpha.md (ashldi_se): Re-enable.
11098
11099 2002-02-26  Richard Henderson  <rth@redhat.com>
11100
11101         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11102         MODULE_LOCAL_P; improve commentary.
11103
11104 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11105
11106         * doc/cpp.texi: Clarify documentation of relationship between
11107         #line and #include.
11108
11109 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11110
11111         * config/h8300/h8300-protos.h: Update the prototype for
11112         compute_logical_op_length.  Add the prototype for
11113         compute_logical_op_cc.
11114         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11115         code from operands.
11116         (compute_logical_op_cc): New.
11117         * config/h8300/h8300.md: Combine all the logical op patterns
11118         in HImode and SImode.  Use compute_logical_op_cc.
11119
11120 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11121
11122         * config/i386/i386.c (print_operand): Don't append ATT-style
11123         length suffixs to x87 opcodes when in Intel mode.
11124
11125 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11126
11127         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11128         (init_emit_once): Update calls.
11129         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11130         (init_syntax_once): Prototype.
11131
11132 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11133
11134         * pa-linux.h (LIB_SPEC): Update definition.
11135         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11136
11137 2002-02-26  Richard Henderson  <rth@redhat.com>
11138
11139         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11140         if we emitted a stop bit.
11141
11142 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11143
11144         * configure.in (libgcc_visibility): Substitute.
11145         * configure: Rebuilt.
11146         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11147         defined symbols .hidden.
11148
11149 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11150
11151         * attribs.c (c_common_attribute_table): Add visibility.
11152         (handle_visibility_attribute): New function.
11153         * varasm.c (assemble_visibility): New function.
11154         * output.h (assemble_visibility): Add prototype.
11155         * tree.h (MODULE_LOCAL_P): Define.
11156         * crtstuff.c (__dso_handle): Use visibility attribute.
11157         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11158         for MODULE_LOCAL_P symbols too.
11159         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11160         MODULE_LOCAL_P symbols the same way as local symbols.
11161         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11162         into .sdata/.sbss by the user.
11163         * doc/extend.texi (Function Attributes): Document visibility
11164         attribute.
11165
11166 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11167
11168         PR debug/5770
11169         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11170         STRING_CST initializer spanning the whole variable without
11171         embedded zeros.
11172         If expand_expr returned MEM, don't use it.
11173
11174 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11175
11176         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11177         generate a die for the lexical block.
11178
11179 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11180
11181         * config/h8300/h8300-protos.h: Add a prototype for
11182         compute_logical_op_length.
11183         * config/h8300/h8300.c (compute_logical_op_length): New.
11184         * config/h8300/h8300.md (anonymous logical patterns): Use
11185         compute_logical_op_length for length.
11186
11187 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11188
11189         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11190         for vectors.
11191         (gen_type_die): Same.
11192
11193         * attribs.c (handle_vector_size_attribute): Set debug information.
11194
11195 2002-02-26  Daniel Egger  <degger@fhm.edu>
11196
11197         * config/rs6000/rs6000.md: Swap define_insn attributes to
11198         fix incorrect generation of merge high instructions instead
11199         of merge low.
11200
11201 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11202
11203         * c-typeck.c (really_start_incremental_init): Use
11204         bitsize_zero_node for vectors.
11205
11206 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11207
11208         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11209         ("*set_vrsave_internal"): Same.
11210
11211 2002-02-25  Richard Henderson  <rth@redhat.com>
11212
11213         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11214         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11215
11216 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11217
11218         PR target/5755
11219         * config/i386/i386.c (ix86_return_pops_args): Only pop
11220         fake structure return argument if it was passed on the stack.
11221
11222 2002-02-25  Jason Merrill  <jason@redhat.com>
11223
11224         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11225         RESULT_DECL.
11226
11227 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11228
11229         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11230         link with shared_name only.
11231         * doc/invoke.texi (Link Options): Document new behavior.
11232
11233 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11234
11235         * c-typeck.c (push_init_level): Handle vectors.
11236
11237 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11238
11239         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11240         operands of SPARC_SETHI_P.
11241         (input_operand): Likewise.
11242         (sparc_emit_set_const32): Likewise.
11243         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11244         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11245         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11246         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11247         (movdi_insn_sp64_vis): Likewise.
11248         (movdi split, movdf split): Use SETHI32.
11249         * doc/md.texi: Document SPARC constraints L, M and N.
11250
11251 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11252
11253         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11254         ("*set_vrsave_internal"): use mfspr for Darwin.
11255
11256         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11257         gen_get_vrsave_internal.
11258
11259 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11260
11261         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11262
11263 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11264
11265         * cpplex.c (cpp_interpret_charconst): Get signedness or
11266         otherwise of wide character constants correct.
11267         * cppexp.c (lex): Get signedness of wide charconsts correct.
11268
11269 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11270
11271         * optabs.c (widen_operand): Only call convert_modes for
11272         promoted SUBREG if signedness matches.
11273         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11274
11275 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11276
11277         * cpplib.c (glue_header_name): Use local buffer to build up
11278         header name.
11279
11280 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11281
11282         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11283
11284 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11285
11286         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11287         H8/300[HS] separately.
11288         * config/h8300/h8300.md: Remove the early clobber constraint
11289         from bit field patterns.
11290
11291 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11292
11293         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11294         register_operand.
11295         (mulhisi3): Likewise.
11296         (umulqisi3): Likewise.
11297         (umulhisi3): Likewise.
11298
11299 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11300
11301         * cppinit.c (output_deps): Correct test for stdout output.
11302         (init_dependency_output): Cure warning.
11303
11304 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11305
11306         * expr.c (store_expr): When converting expression to promoted
11307         equivalent type, allow using SUBREG_REG of TARGET as the target
11308         of the expansion of EXP.
11309         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11310         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11311         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11312         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11313         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11314
11315 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11316
11317         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11318         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11319         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11320
11321 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11322
11323         PR optimization/5747
11324         * loop.c (scan_loop): Update reg info if move_movables created new
11325         pseudos.
11326
11327 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11328
11329         * gcc.c (init_gcc_spec): Revert last change.
11330
11331 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11332
11333         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11334         gpc_reg_operand constraint.
11335
11336 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11337
11338         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11339         Simplify comparison of `low'.
11340         (add_operand): Fix formatting.
11341         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11342         (mask_operand): Disallow mask to wrap in 64-bit mode.
11343         (rs6000_stack_info): Remove redundant test setting push_p.
11344         (output_toc): Fix formatting.
11345         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11346         cc_reg_not_cr0_operand constraint.
11347         (booldi3, boolcdi3 splitters): Same.
11348
11349 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11350
11351         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11352
11353 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11354
11355         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11356         gcc invoked with -shared-libgcc.
11357
11358 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11359
11360         PR c++/5748
11361         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11362         decl if any of elements was TREE_USED.
11363
11364 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11365
11366         * config/sparc/sol2.h: Don't include sys/mman.h.
11367         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11368         (arith_4096_operand): Don't throw high bits away.
11369         (const64_operand): Take sign extension of CONST_INTs into account.
11370         (const64_high_operand, sparc_emit_set_const32): Likewise.
11371         (GEN_HIGHINT64): Likewise.
11372         (sparc_emit_set_const64_quick1): Likewise.
11373         (const64_is_2insns): Likewise.
11374         (print_operand): Use trunc_int_for_mode for sign extension.
11375         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11376         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11377         chars.  Assume CONST_INT is already properly sign-extended.
11378         (movdi split): Sign-extend each SImode part.
11379         (andsi3 split): Don't mask high bits off, so that result
11380         remains properly sign-extend.
11381         (iorsi3 split): Likewise.
11382         (xorsi3 split): Likewise.
11383
11384 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11385
11386         * fold-const.c (fold): Fix typo in comments.
11387
11388 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11389
11390         * Makefile.in (langhooks.o): Update dependencies.
11391
11392 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11393
11394         * langhooks.c: Include flags.h.
11395
11396 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11397
11398         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11399
11400         * c-common.c (c_common_post_options): Set inline trees by
11401         default.
11402
11403         * doc/extend.texi (Function Attributes): Document always_inline
11404         attribute.
11405         Update documentation about inlining when not optimizing.
11406
11407         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11408
11409         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11410         unless DECL_ALWAYS_INLINE.
11411
11412         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11413         unless DECL_ALWAYS_INLINE.
11414         (c_disregard_inline_limits): Disregard if always_inline set.
11415
11416         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11417         Disregard if always_inline set.
11418         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11419         unless DECL_ALWAYS_INLINE.
11420
11421         * attribs.c (handle_always_inline_attribute): New.
11422         (c_common_attribute_table): Add always_inline.
11423
11424         * config/rs6000/altivec.h: Add prototypes for builtins
11425         requiring the always_inline attribute.
11426
11427 2002-02-21  Eric Christopher  <echristo@redhat.com>
11428
11429         * expmed.c (store_bit_field): Try to simplify the subreg
11430         before generating a new one when when the mode size of
11431         value is less than maxmode.
11432
11433 2002-02-21  Richard Henderson  <rth@redhat.com>
11434
11435         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11436         than gen_rtx_PLUS to form the sum.
11437         * explow.c (force_reg): Rearrange to not allocate new pseudo
11438         when force_operand returns a register.
11439         * expr.c (expand_assignment): Allow offset_rtx expansion to
11440         return a sum.  Do not force addresses into registers.
11441         (expand_expr): Likewise.
11442         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11443         to canonicalize arithmetic that didn't simpify.
11444         (simplify_plus_minus): New argument force; update
11445         all callers.  Don't split CONST unless we can do something with it,
11446         and wouldn't lose the constness of the operands.
11447
11448         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11449         that we generated earlier.
11450
11451 2002-02-21  Tom Tromey  <tromey@redhat.com>
11452
11453         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11454         (output_line_info): Use constant `1', with a long explanatory
11455         comment.
11456         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11457
11458 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11459
11460         * jump.c (redirect_jump): If old label has no UID, don't try to
11461         delete it.
11462
11463 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11464
11465         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11466         If input is constant, do shifts at compile time.
11467
11468 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11469
11470         * doc/extend.texi: Fix some more overfull hboxes.
11471
11472 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11473
11474         PR optimization/4994
11475         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11476         register moves.
11477
11478 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11479
11480         PR c++/4574
11481         * expr.h (expand_and): Add mode argument.
11482         * expmed.c (expand_and): Add mode argument.
11483         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11484         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11485         * except.c (expand_builtin_extract_return_addr): Likewise.
11486         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11487         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11488         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11489         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11490         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11491         gen_rtx (CONST_INT, VOIDmode, x).
11492
11493 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11494
11495         PR c/4697:
11496         * stmt.c (warn_if_unused_value): Move side effects test once more.
11497
11498 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11499
11500         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11501         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11502
11503 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11504
11505         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11506         SUBREG or ZERO_EXTEND.
11507
11508 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11509
11510         * sh.h (current_function_anonymous_args): Remove.
11511         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11512         of current_function_varargs and current_function_stdarg is set.
11513         * sh.c (sh_expand_prologue): Check current_function_varargs /
11514         current_function_stdarg / TARGET_SH5 instead of
11515         current_function_anonymous_args.
11516
11517         * sh64.h (TARGET_VERSION): Define.
11518
11519 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11520
11521         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11522         VRSAVE_REGNO on TARGET_ALTIVEC.
11523
11524 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11525
11526         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11527         bits of SImode const_int.
11528         (includes_rshift_p): Likewise.
11529         (print_operand): Call mask_operand and mask64_operand with correct
11530         mode.
11531         (rs6000_output_function_epilogue): Pad traceback table to word.
11532         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11533         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11534         mask64_operand with correct mode.
11535         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11536
11537 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11538
11539         PR debug/4461
11540         * varasm.c (get_pool_constant_mark): New.
11541         * rtl.h (get_pool_constant_mark): Add prototype.
11542         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11543         be represented if it has not been output.
11544
11545 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11546
11547         * combine.c (do_SUBST): Sanity check substitutions of
11548         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11549         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11550         CONST_INT into its operand.
11551         (known_cond): Likewise, for ZERO_EXTEND.
11552         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11553         allow for simplification of wide modes.  Reject CONST_INTs in
11554         ZERO_EXTEND when their actual mode is not given.
11555
11556 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11557
11558         * c-decl.c (pushdecl): If no global declaration is found for an
11559         extern declaration in block scope, try a limbo one.
11560
11561 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11562
11563         PR c++/4401
11564         * c-common.c (pointer_int_sum): Moved from...
11565         * c-typeck.c (pointer_int_sum): ...here.
11566         * c-common.h (pointer_int_sum): Add prototype.
11567
11568 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11569
11570         PR c++/5713
11571         * c-decl.c (duplicate_decls): Return 0 if issued error about
11572         redeclaration.
11573
11574 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11575             Jakub Jelinek  <jakub@redhat.com>
11576
11577         PR c/4389
11578         * tree.c (host_integerp): Ensure that the constant integer is
11579         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11580         when pos is zero or non-zero respectively.  Clarify comment.
11581         * c-format.c (check_format_info_recurse): Fix host_integerp
11582         usage; the pos argument should be zero when assigning to a
11583         signed HOST_WIDE_INT.
11584
11585 2002-02-20  Richard Henderson  <rth@redhat.com>
11586
11587         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11588         of the operand, rather than assuming TImode.
11589         (ix86_expand_binop_builtin): Cope with commutative patterns
11590         using nonimmediate_operand for both operands.
11591         (ix86_expand_timode_binop_builtin): Likewise.
11592         (ix86_expand_store_builtin): Validate operand 1.
11593         (ix86_expand_unop1_builtin): Likewise.
11594
11595 2002-02-20  Philip Blundell  <philb@gnu.org>
11596
11597         PR 5705
11598         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11599
11600 2002-02-20  Richard Henderson  <rth@redhat.com>
11601
11602         PR c/5615
11603         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11604
11605 2002-02-20  Tom Tromey  <tromey@redhat.com>
11606
11607         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11608         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11609         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11610         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11611         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11612         unconditionally.
11613
11614 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11615
11616         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11617           for (const_int 0) in X not just INTVAL.
11618
11619 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11620
11621         * doc/extend.texi: Avoid or reduce overfull hboxes.
11622
11623 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
11624
11625         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11626         operations if the field does not start at a mode boundary.
11627
11628 2001-02-20      Joel Sherrill <joel@OARcorp.com>
11629
11630         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11631         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11632         Also done for -Acpu and -Amachine.
11633
11634 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11635
11636         * cppinit.c (init_dependency_output): Take deps output file
11637         from -o if none given with -MF.  Suppress normal output.
11638         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11639         * doc/cpp.texi, doc/invoke.texi: Update.
11640
11641 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11642
11643         * toplev.c (output_quoted_string): Write unprintable
11644         characters with octal escapes.
11645
11646 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11647
11648         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11649         really_call_used[VRSAVE_REGNO] if not Altivec.
11650
11651 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
11652
11653         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11654         MODE_MASK.
11655         (constant_pool_expr_1): Fix formatting.
11656         (rs6000_legitimize_reload_address): Likewise.
11657
11658 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11659
11660         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11661         now that we have one.
11662
11663 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11664
11665         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
11666         end of first block of bitfields (which was only seven bits);
11667         rename dummy to unused_1; remove comment which is no longer true.
11668
11669 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11670
11671         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11672
11673 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11674
11675         PR 5399
11676         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11677         if generating PIC.
11678
11679         PR 5054
11680         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11681         arm_is_longcall_p rather than inspecting call-type cookie
11682         directly.
11683         (call_value_insn) [TARGET_THUMB]: Likewise.
11684
11685 2002-02-19  Graham Stott  <grahams@redhat.com>
11686
11687         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11688
11689 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11690
11691         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11692         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11693         (FP_SAVE_INLINE): Delete.
11694
11695         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11696         * config/rs6000/eabi.asm: Remove ABI save restore routines.
11697         * config/rs6000/t-ppccomm: Build crtsavres.o.
11698         * config/rs6000/crtsavres.asm: New file.
11699
11700 2002-02-19  Philip Blundell  <philb@gnu.org>
11701
11702         * config/arm/arm.c (use_return_insn): Don't reject interrupt
11703         functions.
11704         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11705         (output_return_instruction): Allow interrupt functions to return with
11706         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
11707         (arm_expand_prologue): Subtract 4 before stacking LR in an
11708         interrupt function.
11709
11710 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11711
11712         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11713         decl, not just FUNCTION_DECL.
11714         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11715         (arm_assemble_integer): Likewise.
11716         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11717         marked local.
11718
11719 2002-02-19  matthew green  <mrg@eterna.com.au>
11720
11721         * config.gcc (sparc-*-netbsdelf*): Enable target.
11722         (sparc64-*-netbsd*): New target.
11723         * config/sparc/netbsd-elf.h: New file.
11724         * config/sparc/t-netbsd64: New file.
11725
11726 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11727
11728         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11729
11730 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
11731
11732         * doc/invoke.texi: explicitly list the style guidelines that
11733         -Weffc++ checks for.
11734
11735 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
11736
11737         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11738
11739 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11740
11741         PR other/5718
11742         * gcc.c (cpp_unique_options): Treat -o as indicating object file
11743         only if not -E.  If -E, pass -o through to the preprocessor.
11744
11745 2002-02-19  Kazu Hirata  <kazu@hxi.com>
11746
11747         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11748         register number with an appropriate macro.
11749
11750 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11751
11752         * doc/rtl.texi (Constants): Close @code tag.
11753
11754 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
11755
11756         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11757         ("mmx_uavgv4hi3"): Same.
11758         ("pmulhrwv4hi3"): Same.
11759
11760         * tree-inline.c (walk_tree): Handle vectors.
11761
11762         * c-common.c (constant_expression_warning): Handle vectors.
11763         (overflow_warning): Same.
11764
11765         * sched-deps.c (sched_analyze_2): Handle vectors.
11766
11767         * rtlanal.c (rtx_unstable_p): Handle vectors.
11768         (rtx_varies_p): Same.
11769         (count_occurrences): Same.
11770         (regs_set_between_p): Same.
11771         (modified_between_p): Same.
11772         (modified_in_p): Same.
11773         (volatile_insn_p): Same.
11774         (volatile_refs_p): Same.
11775         (side_effects_p): Same.
11776         (may_trap_p): Same.
11777         (inequality_comparisons_p): Same.
11778         (replace_regs): Same.
11779         (computed_jump_p_1): Same.
11780
11781         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11782         argument.
11783         (inner_mode_array): New.
11784         (copy_rtx): Handle vectors.
11785         (copy_most_rtx): Same.
11786         (rtx_equal_p): Same.
11787         (get_mode_alignment): Adjust for vectors.
11788
11789         * resource.c (mark_referenced_resources): Handle vectors.
11790         (mark_set_resources): Same.
11791
11792         * reload1.c (eliminate_regs): Handle vectors.
11793         (elimination_effects): Same.
11794         (scan_paradoxical_subregs): Same.
11795
11796         * reload.c (subst_reg_equivs): Handle vectors.
11797
11798         * regrename.c (scan_rtx): Handle vectors.
11799
11800         * regclass.c (reg_scan_mark_refs): Handle vectors.
11801
11802         * recog.c (find_single_use_1): Handle vectors.
11803
11804         * local-alloc.c (equiv_init_varies_p): Handle vectors.
11805         (contains_replace_regs): Same.
11806         (memref_referenced_p): Same.
11807
11808         * integrate.c (copy_rtx_and_substitute): Handle vectors.
11809         (subst_constants): Same.
11810
11811         * genattrtab.c (attr_copy_rtx): Handle vectors.
11812         (encode_units_mask): Same.
11813         (clear_struct_flag): Same.
11814         (count_sub_rtxs): Same.
11815
11816         * gcse.c (want_to_gcse_p): Handle vectors.
11817         (oprs_unchanged_p): Same.
11818         (hash_expr_1): Same.
11819         (oprs_not_set_p): Same.
11820         (expr_killed_p): Same.
11821         (compute_transp): Same.
11822         (store_ops_ok): Same.
11823
11824         * function.c (purge_addressof_1): Do not allow paradoxical subregs
11825         of vectors.
11826         (fixup_var_refs_1): Same.
11827         (instantiate_virtual_regs_1): Same.
11828
11829         * fold-const.c (operand_equal_p): Handle vectors.
11830         (fold): Same.
11831         (rtl_expr_nonnegative_p): Same.
11832
11833         * flow.c (mark_used_regs): Handle vectors.
11834
11835         * df.c (df_uses_record): Handle vectors.
11836
11837         * cselib.c (cselib_subst_to_values): Handle vectors.
11838         (cselib_mem_conflict_p): Same.
11839         (hash_rtx): Same.
11840
11841         * cse.c (canon_reg): Handle vectors.
11842         (fold_rt): Same.
11843         (cse_process_notes): Same.
11844         (count_reg_usage): Same.
11845         (canon_hash): Same.
11846
11847         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11848
11849         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11850
11851         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11852         (gen_rtx): Handle CONST_VECTOR.
11853         (gen_const_vector_0): New.
11854         (copy_rtx_if_shared): CONST_VECTORs can be shared.
11855         (reset_used_flags): Same.
11856         (copy_insn_1): Same.
11857         (initializer_constant_valid_p): Handle VECTOR_CST.
11858
11859         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11860
11861         * doc/rtl.texi (Constants): Document const_vector.
11862         (CONST0_RTX): Update for vectors.
11863         (RTL sharing): Same.
11864
11865         * print-tree.c (print_node): Add case for VECTOR_CST.
11866
11867         * tree.h (TREE_VECTOR_CST_ELTS): New.
11868         (struct tree_vector): New.
11869         (union tree_node): Add vector node.
11870         (build_vector): Add prototype.
11871
11872         * tree.def (VECTOR_CST): New.
11873
11874         * tree.c (build_vector): New.
11875
11876         * expmed.c (make_tree): Handle CONST_VECTOR.
11877
11878         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11879         (CONST_VECTOR_ELT): New.
11880         (CONST_VECTOR_NUNITS): New.
11881
11882         * machmode.h (GET_MODE_INNER): New.
11883         (DEF_MACHMODE): Accept 8th arg.
11884
11885         * machmode.def: Add 8th argument for vector inner mode.
11886         Add inner vector modes for vectors.
11887
11888         * rtl.def (VEC_CONST): Remove.
11889         (CONST_VECTOR): New.
11890
11891         * expr.c (clear_storage): Allow vectors.
11892         (is_zeros_p): Handle VECTOR_CST.
11893
11894         * varasm.c (output_constant_pool): Handle vectors.
11895         (rtx_const): Add veclo and vechi fields.
11896         (kind): Add RTX_VECTOR.
11897         (decode_rtx_const): Add case for vector.
11898
11899         * config/rs6000/rs6000-protos.h: Add zero_constant.
11900
11901         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11902         constants.  Force easy vector constants into memory.
11903         (easy_vector_constant): New.
11904         (emit_easy_vector_constant): New.
11905         (rs6000_legitimize_reload_address): Do not generate bad reloads on
11906         darwin.
11907
11908         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11909         instruction does.
11910         ("altivec_lvxl"): Same.
11911         (altivec_lvebx): Same.
11912         (altivec_lvehx): Same.
11913         (altivec_lvewx): Same.
11914         ("*movv4si_const0"): New.
11915         ("*movv4sf_const0"): New.
11916         ("*movv8hi_const0"): New.
11917         ("*movv16qi_const0"): New.
11918
11919 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11920
11921         * config/h8300/h8300.c (notice_update_cc): Use
11922         cc_status.value2.
11923
11924 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11925
11926         * config/h8300/h8300.md (divmod patterns): Change the
11927         constraints for operands[1] to register_operand.
11928
11929 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11930
11931         * config/h8300/h8300-protos.h: Remove the prototype for
11932         p_operand.
11933         * config/h8300/h8300.c (p_operand): Remove.
11934         * config/h8300/h8300.md: Replace p_operand with
11935         const_int_operand.
11936
11937 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11938
11939         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11940         comment.
11941         (output_return_instruction): Allow use of LDR to unstack
11942         return addresss even for interrupt handlers or when
11943         interworking.  If compiling for ARMv5, use interworking-safe
11944         return instructions by default.  Remove duplicated code and
11945         lengthy "strcat" sequences.
11946
11947 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11948
11949         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11950         (LINK_EH_SPEC): Define.
11951         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11952
11953 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
11954
11955         * config/s390/s390.c (s390_emit_prologue): Do not set the
11956         frame_related flag for call-clobbered registers.
11957
11958 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
11959
11960         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11961         (construct_container): Fix handling of SSE operands.
11962         (ix86_expand_builtin): Fix handling of 64bit pointers.
11963         (mmx_maskmovq_rex): New pattern.
11964
11965 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
11966
11967         * regrename.c (kill_set_value): Handle subregs properly.
11968
11969 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
11970
11971         * objc/objc-act.c (handle_impent): Remove leading '*'
11972         from objc_class_name.
11973
11974 2002-02-17  Richard Henderson  <rth@redhat.com>
11975
11976         * config/alpha/alpha.c (some_small_symbolic_operand,
11977         some_small_symbolic_operand_1, split_small_symbolic_operand,
11978         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11979         Handle small SYMBOL_REFs anywhere, not just inside memories.
11980         * config/alpha/alpha-protos.h: Update.
11981         * config/alpha/alpha.h (PREDICATE_CODES): Update.
11982         * config/alpha/alpha.md (small symbolic operand splitter): Update.
11983
11984 2002-02-17  Roland McGrath  <roland@frob.com>
11985
11986         * config.gcc (powerpc-*-gnu-gnualtivec*,
11987         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11988         * config/rs6000/gnu.h: New file.
11989         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11990         Grok "gnu" in rs6000_abi_name.
11991         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11992         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11993         Grok -mcall-gnu analogous to -mcall-linux et al.
11994         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11995         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11996         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11997
11998 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
11999
12000         PR c/3444:
12001         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12002         shortening.
12003
12004 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12005
12006         * config/cris/cris.h: Undefine STARTFILE_SPEC and
12007         ENDFILE_SPEC before (re)defining them.
12008
12009 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12010
12011         * config/h8300/h8300.c: Fix formatting.
12012         * config/h8300/h8300.h: Likewise.
12013
12014 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12015
12016         * doc/tm.texi: Explain why empty strings should not be
12017         marked for translation.
12018
12019 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12020
12021         * final.c (output_operand_lossage): Changed to accept
12022         printf style arguments. Change calls where necessary.
12023         * output.h (output_operand_lossage): Change declaration
12024         accordingly. Update copyright.
12025         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12026         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12027         Update copyright date where necessary.
12028
12029         * config/i386/i386.c (print_operand): Likewise. Remove use of
12030         sprintf.
12031
12032         * config/cris/cris.c (cris_operand_lossage): Likewise.
12033         Rename parameter so that exgettext recognizes it as
12034         translatable message.
12035         (LOSE_AND_RETURN): Rename parameter to msgid.
12036
12037 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12038
12039         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12040         hard coded register number with an appropriate macro.
12041         (HARD_REGNO_MODE_OK): Likewise.
12042         (ARG_POINTER_REGNUM): Likewise.
12043         (STATIC_CHAIN_REGNUM): Likewise.
12044         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12045         * config/h8300/h8300.md (define_constants): Define more
12046         register numbers.
12047
12048 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12049
12050         * config/i386/i386.h: Don't mark empty strings for translation.
12051
12052 2002-02-16  H.J. Lu <hjl@gnu.org>
12053
12054         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12055
12056 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
12057
12058         * cppinit.c (merge_include_chains): Check for brack being
12059         NULL before attempting to merge it with qtail.
12060
12061 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12062
12063         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12064         DBX_DEBUG.
12065
12066 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12067
12068         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12069
12070 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12071
12072         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12073         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12074         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12075
12076 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12077
12078         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12079         now only if !TARGET_FIX.
12080         (*movsi_nt_vms_fix): New pattern.
12081
12082 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
12083
12084         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12085         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12086         (alpha_sa_mask, alpha_sa_size): Reflect above change.
12087         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12088         (alpha_start_function, alpha_expand_epilogue): Likewise.
12089         (unicosmk_gen_dsib): Likewise.
12090
12091 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12092
12093         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12094
12095 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
12096
12097         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12098         check_and_change_labels, s390_final_chunkify): Delete.
12099         (s390_split_branches, s390_chunkify_pool): New functions.
12100         (s390_function_prologue): Call them.
12101
12102         * config/s390/s390.h (S390_REL_MAX): Delete.
12103         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12104
12105         * config/s390/s390.md (cjump, icjump, jump): Fix length
12106         attribute calculation.
12107
12108
12109 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12110
12111         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12112         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12113
12114 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12115
12116         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12117         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12118         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12119
12120 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12121
12122         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12123
12124 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12125
12126         * reload.c (find_dummy_reload): Check that an output register
12127         is valid for its mode.
12128
12129 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12130
12131         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12132         to simplify it.
12133
12134         * function.c (assign_parms): Demote promoted argument passed by
12135         transparent reference.
12136
12137 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12138
12139         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12140         -Acpu() and -Amachine() to eliminate warnings.
12141
12142 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12143
12144         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12145
12146 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12147
12148         * config/h8300/h8300-protos.h: Update the prototype for
12149         const_costs.
12150         * config/h8300/h8300.c (const_costs): Treat SET as a little
12151         more expensive operation.
12152         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12153         reference to const_costs.
12154
12155 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12156
12157         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12158
12159 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12160
12161         PR c/5503:
12162         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12163         use arguments from newtype.
12164
12165 2002-02-13  Eric Christopher  <echristo@redhat.com>
12166
12167         * config/mips/mips.c (override_options): Add check for march/mipsX
12168         on the same command line. Fix error message in cpu processing.
12169         Remove architecture and ISA checks.
12170
12171 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12172
12173         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12174
12175         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12176
12177 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12178
12179         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12180         alternatives.
12181         ("*movv8hi_internal1"): Same.
12182         ("*movv16qi_internal1"): Same.
12183         ("*movv4sf_internal1"): Same.
12184
12185         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12186         not push_reload for altivec modes.
12187
12188 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12189
12190         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12191         all RTEMS targets including removal of #includes from config/*/rtems*.h
12192         file and adding them to tm_file setting. Added xm_defines=POSIX to
12193         many targets.
12194         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12195         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12196         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12197         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12198         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12199         config/m68k/rtemself.h: Ditto.
12200         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12201         config/mips/rtems64.h: Ditto.
12202         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12203         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12204         Ditto.
12205         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12206         config/sparc/rtemself.h: Ditto.
12207         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12208         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12209         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12210         more like arm-elf.
12211         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12212         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12213         target made more similar to i386-elf.
12214         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12215         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12216         be similar to config/m68k/t-m68kelf.
12217         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12218
12219 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12220
12221         * regmove.c (kill_value): Handle subregs.
12222
12223 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12224
12225         * i386.md (mul patterns): Allow memory operand to be first;
12226         add expanders where needed; fix constraints.
12227         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12228         Allow memory operand to be the first.
12229
12230         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12231         operands.
12232
12233 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12234
12235         PR c/5681:
12236         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12237         GET_MODE (x).
12238
12239 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12240
12241         PR optimization/5547:
12242         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12243         all valid IA-32 address modes involving non-scaled %ebx and
12244         GOT/GOTOFF as displacement.
12245
12246 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12247
12248         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12249         after emitting ltorg insns.
12250
12251         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12252         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12253         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12254         *abssf2): Fix "op_type" attribute.
12255
12256 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12257
12258         * mkconfig.sh: Avoid using a subshell redirect.
12259         ($output.T): Change to $(output)T.
12260         (ENABLE_NLS): Remove unneeded undef.
12261
12262         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12263         * config/alpha/x-vms (libsubdir): Define.
12264
12265         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12266         register frame procedures. Optimize retrieving context.
12267
12268         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12269         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12270         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12271
12272 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12273
12274         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12275         Make same change as for find_base_value.
12276
12277 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12278
12279         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12280         of QImode and SImode.
12281
12282 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12283
12284         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12285         length computation of movsi.
12286         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12287
12288 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12289
12290         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12291         operands[2] to register_operand.
12292
12293 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12294
12295         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12296
12297 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12298
12299         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12300         for altivec_lvx* and altivec_stvx*.
12301         ("*movv4si_internal"): Add constraint for loading from GPRs.
12302         ("*movv8hi_internal1"): Same.
12303         ("*movv16qi_internal1"): Same.
12304         ("*movv4sf_internal1"): Same.
12305
12306         * config/rs6000/rs6000.c (altivec_register_operand): New.
12307
12308         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12309         altivec_register_operand.
12310
12311 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12312
12313         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12314         handle SYMBOL_REF.
12315
12316 2002-02-13  Stan Shebs  <shebs@apple.com>
12317
12318         * c-typeck.c (digest_init): Handle vectors.
12319         (really_start_incremental_init): Same.
12320         (pop_init_level): Same.
12321         (process_init_element): Same.
12322
12323         * varasm.c (output_constant): Same.
12324
12325         * expr.c (clear_storage): Same.
12326         (store_constructor): Same.
12327
12328 2002-02-12  Eric Christopher  <echristo@redhat.com>
12329
12330         * explow.c (hard_function_value): Add comment explaining
12331         signed/unsigned comparison.
12332
12333 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12334
12335         * jump.c (never_reached_warning): Add finish argument.
12336         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12337         real insn after end.
12338         * rtl.h (never_reached_warning): Adjust prototype.
12339         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12340         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12341         never_reached_warning.
12342
12343 2002-02-12  Graham Stott  <grahams@redhat.com>
12344
12345         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12346
12347 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12348
12349         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12350         logical shifts on H8/300.
12351         (shift_alg_si): Improve several shifts on H8/300.
12352         (get_shift_alg): Likewise.
12353
12354 2002-02-12  Graham Stott  <grahams@redhat.com>
12355
12356         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12357
12358 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12359
12360         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12361         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12362
12363 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12364
12365         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12366         non-CONST_INT through default_assemble_integer.
12367         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12368         <case 8>: Abort for CONST_DOUBLE.
12369
12370 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12371
12372         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12373         is specified.
12374         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12375         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12376
12377 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12378
12379         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12380
12381 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12382
12383         * regrename.c (regrename_optimize): Don't accept a
12384         part-clobbered register if the replaced register is not part
12385         clobbered.
12386
12387         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12388         take padding into account when computing the argument value.
12389
12390         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12391
12392         * combine.c (try_combine): Apply substitutions in
12393         CALL_INSN_FUNCTION_USAGE too.
12394
12395 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12396
12397         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12398         __builtin_altivec_abs*.
12399         (bdesc_abs): New.
12400
12401         * config/rs6000/rs6000.h (rs6000_builtins): Add
12402         ALTIVEC_BUILTIN_ABS*.
12403
12404         * config/rs6000/altivec.h: Use const char for builtins expecting
12405         literals.
12406         (vec_abs): New versions for C and C++.
12407         (vec_abss): Same.
12408
12409 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12410
12411         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12412         using Pmode.
12413
12414 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12415
12416         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12417         constant definition from h8300.md.
12418         (FRAME_POINTER_REGNUM): Likewise.
12419         * config/h8300/h8300.md (define_constants): Add FP_REG.
12420
12421 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12422
12423         * config/h8300/h8300.c (print_operand): Remove redundant code.
12424
12425 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12426
12427         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12428         * config/h8300/h8300.c (byte_reg): Make it static.
12429
12430 2002-02-10  Richard Henderson  <rth@redhat.com>
12431
12432         PR c/5623
12433         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12434
12435 2002-02-10  Richard Henderson  <rth@redhat.com>
12436
12437         PR c++/5624
12438         * tree.c (append_random_chars): Don't abort if main_input_filename
12439         does not exist.
12440
12441 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12442
12443         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12444
12445 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12446
12447         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12448         (pushhi1): Likewise.
12449
12450 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12451
12452         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12453         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12454
12455 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12456
12457         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12458         remove MASK_VIS.
12459         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12460
12461 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12462
12463         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12464         a half of an SImode register on H8/300.
12465
12466 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12467
12468         * i386.md (movdi_2): Add missing '!'.
12469
12470 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12471
12472         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12473         definitions.
12474
12475 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12476
12477         * config/h8300/h8300.md (length): Correct the distance valid
12478         for the short branch.
12479
12480 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12481
12482         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12483
12484 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12485
12486         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12487         registers in SImode.
12488         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12489         part-clobbered.
12490
12491         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12492         patch.
12493
12494         Contribute sh64-elf.
12495         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12496         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12497         (sh_cannot_modify_jumps_p): New function.
12498         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12499         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12500         (sh_ms_bitfield_layout_p): New function.
12501         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12502                     Zack Weinberg  <zack@codesourcery.com>
12503         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12504         expand_simple_binop instead of expand_binop.
12505         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12506         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12507         use of .quad and .uaquad.
12508         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12509         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12510         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12511         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12512         movdi_const_16bit): Make sure all CONSTs have modes.
12513         (sym2PIC): Ditto, but by adjusting all callers.
12514         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12515         if the prologue calls the SHmedia argument decoder or register
12516         saver.
12517         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12518         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12519         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12520         (sh_expand_epilogue): Don't emit USE of return target register.
12521         (prepare_move_operands): Legitimize DImode PIC addresses.
12522         (sh_media_register_for_return): Skip tr0, used to initialize the
12523         PIC register.
12524         (sh_expand_prologue): Remove explicit USE of return register.
12525         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12526         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12527         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12528         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12529         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12530         EXTRA_CONSTRAINT_T.
12531         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12532         (MOVI_SHORI_BASE_OPERAND_P): New.
12533         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12534         (EXTRA_CONSTRAINT_T): Define in terms of them.
12535         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12536         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12537         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12538         alternatives supporting TARGET_REGS.
12539         (UNSPEC_GOTPLT): New constant.
12540         (movdi split): Move incrementing of LABEL_NUSES...
12541         (movdi_const, movdi_const_32bit): Here.  Use
12542         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12543         (movdi_const_16bit): New.
12544         (call, call_value) [flag_pic]: Use GOTPLT.
12545         (call_pop, call_value_pop): New expands.
12546         (call_pop_compact, call_pop_rettramp): New insns.
12547         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12548         (sibcall) [flag_pic]: Use GOT.
12549         (builtint_setjmp_receiver): Remove bogus, unused expand.
12550         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12551         (*pt, *ptb, ptrel): New insns.
12552         (sym2GOT): Handle DImode GOT.
12553         (sym2GOTPLT, symGOTPLT2reg): New expands.
12554         (sym2PIC): New expand.
12555         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12556         (shcompact_return_tramp_i): Use return register explicitly.
12557         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12558         disable flag_reorder_blocks.
12559         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12560         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12561         clobbers, for clarity.
12562         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12563         restoring of r0 in macl as MAYBE_DEAD.
12564         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12565         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12566         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12567         alter_subreg all over.
12568         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12569         reload, instead of emitting instructions that would require
12570         reloading.
12571         (casesi_load_media): Add missing modes.
12572         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12573         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12574         as used if the argument decoder is called.
12575         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12576         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12577         Pmode, then extend it to DImode if necessary.
12578         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12579         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12580         constants in FPU-enabled SHmedia, let them be loaded from memory.
12581         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12582         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12583         Adjust whitespace in assembly output templates.
12584         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12585         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12586         mode of if_then_else.
12587         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
12588         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12589         sh.h.
12590         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
12591                     Joern Rennecke <amylaar@redhat.com>
12592         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12593         (SUBTARGET_CPP_PTR_SPEC): New.
12594         (SUBTARGET_CPP_SPEC): Remove.
12595         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12596         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12597         Fix typo in previous checkin.
12598         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
12599         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12600         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
12601                     Alexandre Oliva  <aoliva@redhat.com>
12602         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12603         what single FP register can hold for SHmedia target.
12604         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12605                     Alexandre Oliva  <aoliva@redhat.com>
12606         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12607         Do not split into SUBREG.
12608         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
12609         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12610         and added new functions as specified in SH5 ABI r9.
12611         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
12612         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12613         8-byte boundary.
12614         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
12615         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12616         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
12617         and consttable_window_ends.
12618         2001-06-03  Graham Stott  <grahams@redhat,com>
12619         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12620         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
12621         * config/sh/sh.c (print_operand): Handle floating-point pair,
12622         vector and matrix registers.
12623         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12624         vector modes into account.
12625         * config/sh/sh.md (movv2sf): Split move between registers into
12626         movdf.
12627         (movv4sf, movv16sf): Introduce insns that get split only after
12628         reload.
12629         * config/sh/shmedia.h: Fix Copyright dates.
12630         * config/sh/ushmedia.h: Likewise.  Move loop counter
12631         declarations into conditionals that uses them.
12632         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12633         loop boundary.
12634         * config/sh/sshmedia.h: Fix Copyright dates.
12635         (sh_media_PUTCFG): Fix constraints.
12636         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
12637         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12638         ptrmemfunc_vbit_in_delta for SH5.
12639         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
12640         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12641         * invoke.texi: Likewise.
12642         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12643         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12644         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12645         GCC_pop_shmedia_regs_nofpu): New global symbols.
12646         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12647         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12648         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12649         compact function with nonlocal labels.
12650         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12651         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12652         (initial_elimination_offset): Account for their stack space.
12653         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12654         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12655         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12656         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12657         least one of the operands to be a register.
12658         (movv2sf): Likewise.  Renamed to movv2sf_i.
12659         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12660         prepare_move_operands() before emitting SHmedia insns.
12661         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
12662         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12663         Don't save nor initialize r12.  Don't mis-align the stack.
12664         Pad the code with a nop.
12665         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
12666         stack.
12667         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
12668         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12669         [__SHMEDIA__]: Implement.
12670         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
12671         * config/sh/sh.md: Set latency of `pt' closer to reality.
12672         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12673         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12674         Set move, load and store type attributes.
12675         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12676         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12677         profiling.
12678         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12679         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12680         * config/sh/sh.c (sh_media_register_for_return): New function.
12681         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12682         branch-target register.
12683         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12684         * config/sh/sh.md (return_media_i): Use any call-clobbered
12685         branch-target register.
12686         (return_media): If r18 wasn't copied in the prologue, copy it
12687         here.
12688         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12689         Clear class FP0_REGS.
12690         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12691         from elf.h.
12692         2001-03-08  DJ Delorie  <dj@redhat.com>
12693         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12694         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
12695         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12696         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
12697         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12698         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
12699         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12700         return value correctly for call_cookie.
12701         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
12702         * config/sh/crt1.asm (start): Modified so as to call
12703         ___setup_argv_and_call_main.
12704         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
12705         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12706         SHmedia mode.
12707         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
12708         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12709         (STRIP_NAME_ENCODING): Use it.
12710         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
12711         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
12712         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12713         prepare_scc_operands().
12714         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12715         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12716         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
12717         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12718         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
12719         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12720         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12721         used in shcompact_incoming_args.
12722         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12723         change.
12724         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12725         mode.
12726         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12727         Adjust accordingly.
12728         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12729         Simplify.  Adjust.  Add sanity check.
12730         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12731         FPU_SINGLE_BIT.
12732         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12733         TARGET_SHCOMPACT.
12734         (udivsi3, divsi3): Use them.
12735         (force_mode_for_call): New insn.
12736         (call, call_value, sibcall_value): Emit it before SHcompact
12737         calls.
12738         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
12739         * config/sh/sh.md (call, call_value, sibcall): Make sure the
12740         call cookie is non-NULL before taking its value.
12741         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
12742         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12743         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
12744         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12745         block.
12746         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12747         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12748         temporary for stack adjusts.  Use MACL and MACH to pass
12749         arguments to shcompact_incoming_args.
12750         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
12751         clobber r1.
12752         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12753         (nested_trampoline): Load static chain address into r1.
12754         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12755         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
12756         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12757         fp_arith_reg_operand().
12758         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
12759         * config/sh/sh.md (casesi): Sign-extend the first two operands,
12760         and use signed compares for them.
12761         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12762         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
12763         ones properly aligned.
12764         (find_barrier): Account for extra alignment needed for 8-byte wide
12765         constants.
12766         (machine_dependent_reorg): Require a label for the second 4-byte
12767         constant after an 8-byte one.
12768         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12769         change.
12770         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12771         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12772         last_float when switching float modes.
12773         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12774         auto-increment for general-purpose registers.
12775         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12776         result.
12777         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12778         for stack adjust.
12779         * config/sh/sh.c (sh_builtin_saveregs): Support using all
12780         registers for varargs.
12781         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
12782         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12783         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12784         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12785         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12786         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
12787         call_cookie accordingly.
12788         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12789         (SHCOMPACT_BYREF): Likewise.
12790         (SHCOMPACT_FORCE_ON_STACK): New macro.
12791         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12792         (sh_builtin_saveregs): Likewise.
12793         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12794         shcompact_incoming_args): Use new shift values.  Support
12795         sequences of consecutive and non-consecutive pushes/pops.
12796         * config/sh/sh.md (return): Don't explicitly use PR_REG.
12797         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
12798         * config/sh/sh.h (TEXT_SECTION): Define.
12799         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12800         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12801         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12802         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12803         return values on FPU-enabled SHmedia.
12804         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12805         FPU-enabled SHmedia.
12806         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12807         value is returned in a non-FP reg and is not returned by
12808         reference.
12809         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12810         jump_ind.
12811         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
12812         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12813         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12814         quad-aligned to be passed by callee-copy reference.
12815         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
12816         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12817         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12818         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
12819         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12820         copying low-numbered FP regs to r7 and r8.
12821         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12822         FP regs to general-purpose regs only if the copy was passed on the
12823         stack.
12824         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12825         copying FP reg to r9.
12826         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12827         copy FP regs to general-purpose regs only in outgoing calls.
12828         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12829         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
12830         HOST_WIDE_INT.
12831         * config/sh/sh.h (struct sh_args): Document all fields.
12832         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12833         passed partially on the stack should not consider making
12834         sibcalls.
12835         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12836         stack_regs only for incoming calls.  When passing FP args,
12837         make sure there are FP regs available before modifying
12838         call_cookie.
12839         (SHCOMPACT_BYREF): Pass double args in general-purpose
12840         registers by reference.
12841         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
12842         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12843         attempt to generate sibcalls if the caller got any arguments
12844         by reference.
12845         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12846         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12847         to 8-byte boundaries.
12848         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12849         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12850         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12851         stored in the stack.
12852         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12853         for the offsets to have the ISA bit set.
12854         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
12855         invocation.  Use beq instead of bgt to mark end of sequence of
12856         loads.
12857         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
12858         bgt to mark end of sequence of stores.
12859         * config/sh/sh.c (arith_operand): Don't check whether
12860         CONST_OK_FOR_J for now.
12861         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12862         instead of long for conversion.
12863         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
12864         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12865         before passing it to fprintf.
12866         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
12867         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12868         Call set_fpscr before reading/writing SR.
12869         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12870         Call set_fpscr.
12871         * config/sh/lib1funcs.asm: Add `.align 2' directives before
12872         SHmedia code.
12873         (FMOVD_WORKS): Define on SH5 with FPU.
12874         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
12875         setting.
12876         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12877         _fpscr_values.
12878         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
12879         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12880         address.
12881         (ia_main_table): Ditto.
12882         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
12883         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12884         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12885         the definitions from sh.h.
12886         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12887         TARGET_SH5.
12888         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12889         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12890         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12891         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
12892         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12893         Increment LABEL_NUSES.
12894
12895         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12896         TARGET_SH5.
12897         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12898         defined.
12899         * config/sh/elf.h (SIZE_TYPE): Likewise.
12900         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12901         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12902         shcompact_incoming_args): Load switch table addresses using
12903         datalabel.
12904         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12905         (NO_BUILTIN_SIZE_TYPE): Define.
12906         (SIZE_TYPE): Don't define.
12907         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12908         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12909         definition of __SH5__=32 for -m5-compact-nofpu.
12910         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12911         ADDR_DIFF_VEC.
12912         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
12913         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12914         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
12915         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12916         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12917         (INSN_LENGTH_ALIGNMENT): Likewise.
12918         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12919         * config/sh/sh.md (call, call_value, sibcall): Simplify
12920         copying of non-branch-target register.
12921         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12922         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
12923         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12924         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12925         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12926         floating-point values as structs.
12927         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12928         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12929         general-purpose register.
12930         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12931         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
12932         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12933         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12934         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12935         (ENCODE_SECTION_INFO): Enclose variables and constants in
12936         DATALABEL unspecs.
12937         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12938         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12939         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12940         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12941         only for LABEL_REFs.  For SYMBOL_REFs, prepend
12942         SH_DATALABEL_ENCODING to the symbol name.
12943         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12944         convert_mode().
12945         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
12946         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12947         UNSPEC_DATALABEL.
12948         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12949         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12950         (DATALABEL_REF_P): Don't require CONST.
12951         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12952         REL label.
12953         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
12954         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12955         right.
12956         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
12957         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12958         Use shallow_copy_rtx and PUT_MODE to change the mode of
12959         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12960         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12961         on SHmedia using GENERAL_REGs.
12962         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12963         bltu_media_i): Fix reversion of conditions.
12964         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
12965         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12966         * config/sh/sh.c (output_far_jump): Save r13 in macl.
12967         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
12968         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12969         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
12970         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12971         (GCC_nested_trampoline): Likewise.
12972         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12973         * config/sh/sh.c (gen_datalabel_ref): Define.
12974         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12975         (INITIALIZE_TRAMPOLINE): Likewise.
12976         (TRAMPOLINE_ADJUST_ADDRESS): Define.
12977         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12978         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12979         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12980         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12981         (ic_invalidate): Adjust for SH5.
12982         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12983         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12984         _nested_trampoline.
12985         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
12986         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12987         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12988         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
12989         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12990         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12991         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
12992         * config/sh/sh.c (target_reg_operand): Match only target-branch
12993         registers and pseudos that aren't virtual registers.
12994         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12995         Copy operands that don't match target_reg_operand to pseudos.
12996         (call_media, call_value_media, sibcall_media): Use
12997         target_reg_operand instead of target_operand.
12998         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
12999         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13000         * config/sh/sh.c (target_reg_operand): Match hardware registers
13001         other than branch-target registers.
13002         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13003         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13004         (fpscr_values) [SH5 == 32]: Define.
13005         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13006         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13007         Handle function addresses coming in SUBREGs.
13008         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
13009         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13010         shcompact_return_trampoline): Use datalabel where appropriate.
13011         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
13012         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13013         general-purpose register to copy one branch-target register to
13014         another.
13015         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13016         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13017         SYMBOL_REFs with VOIDmode.
13018         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13019         bltu_media_i): New insns.
13020         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13021         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13022         (INIT_CUMULATIVE_ARGS): Likewise.
13023         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13024         * machmode.def (V16SFmode): New mode.
13025         * c-common.c (type_for_mode): Support V2SF and V16SF.
13026         * tree.c (build_common_tree_nodes_2): Likewise.
13027         * tree.h (tree_index): Likewise.
13028         * calls.c (emit_call_1): Take args_so_far.  Adjust all
13029         callers.  Introduce CALL_POPS_ARGS.
13030         * tm.texi (CALL_POPS_ARGS): Document.
13031         * config/sh/crt1.asm: Implement in SHmedia mode.
13032         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13033         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13034         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13035         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13036         Implement divsi and udivsi in SHmedia mode.  Introduce
13037         SHcompact trampolines.
13038         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13039         only in SHmedia64.
13040         (regno_reg_class): Rewrite.
13041         (fp_reg_names): Remove.
13042         (sh_register_names, sh_additional_register_names): New.
13043         (print_operand): Added `u'.  Support SUBREGs in addresses.
13044         Add parentheses around shifted CONSTs.
13045         (output_file_start): Output .mode and .abi directives.
13046         (shiftcosts, addsubcosts, multcosts): Adjust.
13047         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
13048         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
13049         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
13050         bytes, not registers.  Take into account the need for the
13051         SHcompact incoming args trampoline.  Adjust all callers.
13052         (sh_expand_prologue): Take stack_regs into account.  Call
13053         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
13054         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
13055         stack aligned as per SH5 ABI.
13056         (sh_builtin_saveregs): Support SH5 ABI.
13057         (sh_build_va_list, sh_va_start): Likewise.
13058         (initial_elimination_offset): Take alignment into account.
13059         Compute location of PR according to the SH5 stack frame.
13060         (arith_reg_operand): Reject branch-target registers.
13061         (shmedia_6bit_operand): New.
13062         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13063         (target_reg_operand): Match DImode only.  Accept SUBREGs.
13064         (target_operand): New.
13065         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13066         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
13067         SIBCALL_REGS for SHmedia.
13068         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13069         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13070         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13071         (TARGET_SWITCHES): New SH5 flags.
13072         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
13073         VALID_REGISTER_P to disable unsupported registers.
13074         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13075         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13076         (FUNCTION_ARG_PADDING): Define.
13077         (FASTEST_ALIGNMENT): Adjust.
13078         (SH_REGISTER_NAMES_INITIALIZER): New.
13079         (sh_register_names): Declare.
13080         (DEBUG_REGISTER_NAMES): Define.
13081         (REGISTER_NAMES): Define based on sh_register_names.
13082         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13083         (sh_additional_register_names): Declare.
13084         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13085         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13086         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13087         (REGISTER_NATURAL_MODE): Define.
13088         (FIRST_PSEUDO_REGISTER): Adjust.
13089         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13090         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13091         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13092         (VECTOR_MODE_SUPPORTED_P): Define.
13093         (REG_CLASS_CONTENTS): Adjust.
13094         (SMALL_REGISTER_CLASSES): Adjust.
13095         (REG_ALLOC_ORDER): Adjust.
13096         (INDEX_REG_CLASS): Adjust.
13097         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13098         (CONST_OK_FOR_LETTER_P): Adjust.
13099         (PREFERRED_RELOAD_CLASS): Adjust.
13100         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13101         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13102         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13103         (FIRST_FP_PARM_REG): Adjust.
13104         (CALL_POPS_ARGS): Define.
13105         (FUNCTION_ARG_REGNO_P): Adjust.
13106         (struct sh_args): New fields.
13107         (GET_SH_ARG_CLASS): Adjust.
13108         (INIT_CUMULATIVE_ARGS): Adjust.
13109         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13110         (FUNCTION_ARG_ADVANCE): Adjust.
13111         (FUNCTION_ARG): Adjust.
13112         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13113         (FUNCTION_ARG_CALLEE_COPIES): Define.
13114         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13115         (STRICT_ARGUMENT_NAMING): Define.
13116         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13117         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13118         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13119         (SETUP_INCOMING_VARARGS): Adjust.
13120         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13121         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13122         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13123         (SUBREG_OK_FOR_INDEX_P): Adjust.
13124         (EXTRA_CONSTRAINT_S): Update.
13125         (EXTRA_CONSTRAINT_T): New.
13126         (EXTRA_CONSTRAINT): Adjust.
13127         (GO_IF_LEGITIMATE_INDEX): Adjust.
13128         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13129         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13130         (MOVE_MAX): Adjust.
13131         (MAX_MOVE_MAX): Define.
13132         (Pmode): Adjust.
13133         (CONST_COSTS): Adjust.
13134         (REGISTER_MOVE_COST): Adjust.
13135         (BRANCH_COST): Adjust.
13136         (TEXT_SECTION_ASM_OP): Adjust.
13137         (DBX_REGISTER_NUMBER): Adjust.
13138         (ASM_OUTPUT_DOUBLE_INT): New.
13139         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13140         (PREDICATE_CODES): Adjust.
13141         (PROMOTE_MODE): Adjust.
13142         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13143         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13144         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13145         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13146         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13147         (TR0_REG, TR1_REG, TR2_REG): New.
13148         (XD0_REG): Renumber.
13149         (UNSPEC_COMPACT_ARGS): New.
13150         (type): Added pt and ptabs.
13151         (length): Default to 4 on SHmedia.  Default pt length to 12
13152         and     20 on SHmedia32 and SHmedia64, respectively.
13153         (pt): New function unit.
13154         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13155         Add whitespace between operands of SHmedia instructions.
13156         (movdicc): Fix.
13157         (adddi3_media, addsi3_media): Adjust constraints.
13158         (subsi3) [SHmedia]: Force operand 1 into a register.
13159         (udivsi3_i1_media, udivsi3_i4_media): New.
13160         (udivsi3): Support SHmedia.
13161         (divsi3_i1_media, divsi3_i4_media): New.
13162         (divsi3): Support SHmedia.
13163         (anddi3, iordi3, xordi3): Adjust constraints.
13164         (zero_extendhidi2, zero_extendqidi2): New.
13165         (extendsidi2, extendhidi2, extendqidi2): New.
13166         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13167         (pop_e, pop_fpul, pop_4): Likewise.
13168         (movsi_media): Support FP and BT registers.
13169         (movsi_media_nofpu): New.  Adjust splits to DImode.
13170         (lduw, ldub): Renamed to zero_extend* above.
13171         (movqi_media): Fix typo.
13172         (movdi_media): Support FP and BT registers.
13173         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13174         (movdi_const_32bit): New.
13175         (shori_media): Require immediate operand.  Use `u' for output.
13176         (movdf_media, movsf_media): Simplified.
13177         (movdf_media_nofpu, movsf_media_nofpu): New.
13178         (movdf, movsf): Adjust
13179         (movv2sf, movv2sf, movv16sf): New.
13180         (beq_media, beq_media_i): Adjust constraints.  Don't use
13181         scratch BT register.
13182         (bne_media, bne_media_i): Likewise.
13183         (bgt_media, bgt_media_i): Likewise.
13184         (bge_media, bge_media_i): Likewise.
13185         (bgtu_media, bgtu_media_i): Likewise.
13186         (bgeu_media, bgeu_media_i): Likewise.
13187         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13188         bunordered): Emit jump insn.  Force operands to registers when
13189         needed.
13190         (jump_media, jump): Simplify.
13191         (call_compact, call_compact_rettramp): New.
13192         (call_value_compact, call_value_compact_rettramp): New.
13193         (call_media, call_value_media): Simplify.
13194         (sibcall_compact, sibcall_media): New.
13195         (call, call_value): Adjust for SHmedia and SHcompact.
13196         (sibcall, sibcall_value, untyped_call): Likewise.
13197         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13198         (indirect_jump): Adjust for SHmedia.
13199         (casesi_jump_media): New.
13200         (nop): Re-enable for SHmedia.
13201         (call_site): Restrict to SH1.
13202         (casesi): Adjust for SHmedia.
13203         (casesi_shift_media, casesi_load_media): New.
13204         (return): Explicitly use PR register.  Call return trampoline
13205         on SHcompact.
13206         (return_i): Explicitly use PR register.
13207         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13208         (return_media): Adjust.
13209         (shcompact_incoming_args): New.
13210         (epilogue): Adjust.
13211         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13212         (movstrsi): Disable on SH5.
13213         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13214         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13215         (subsf3, subsf3_media): Likewise.
13216         (mulsf3, mulsf3_media, mac_media): Likewise.
13217         (divsf3, divsf3_media): Likewise.
13218         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13219         (floatsisf2, fux_truncsfsi2): Likewise.
13220         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13221         constraints.
13222         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13223         (cmpunsf_media, cmpsf): Likewise.
13224         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13225         (abssf2, abssf2_media): Likewise.
13226         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13227         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13228         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13229         (floatsidf2, fix_truncdfsi2): Likewise.
13230         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13231         constraints.
13232         (cmpeqdf_media, cmpgtdf_media): Likewise.
13233         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13234         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13235         (absdf2, absdf2_media): Likewise.
13236         (extendsfdf2, extendsfdf2_media): Likewise.
13237         (truncsfdf2, truncsfdf2_media): Likewise.
13238         * config/sh/sh64.h: New file.
13239         * config/sh/t-sh64: New file.
13240         * config/sh/shmedia.h: New file.
13241         * config/sh/ushmedia.h: New file.
13242         * config/sh/sshmedia.h: New file.
13243         * configure.in: Added sh64-*-elf.
13244         * configure: Rebuilt.
13245         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13246         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13247         (reg_class_from_letter): Use `b' for TARGET_REGS.
13248         (print_operand): Support `%M', `%m', `AND' and
13249         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13250         (andcosts): Adjust for SHmedia.
13251         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13252         Likewise.
13253         (target_reg_operand): New function.
13254         * config/sh/sh-protos.h (target_reg_operand): Declare.
13255         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13256         FP registers on SH5.
13257         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13258         on SH4.
13259         (TARGET_REGISTER_P): New macro.
13260         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13261         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13262         (EXTRA_CONSTRAINT_S): New macro.
13263         (EXTRA_CONSTRAINT): Adjust.
13264         (FLOAT_TYPE_SIZE): Define to 32.
13265         (Pmode): DImode on SHmedia.
13266         (CONST_COSTS): Adjust for SHmedia literals.
13267         (PREDICATE_CODES): Added target_reg_operand.
13268         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13269         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13270         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13271         (cmpdi): Accept SHmedia.
13272         (movdicc_false, movdicc_true): New insns.
13273         (movdicc): New expand.
13274         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13275         no_new_pseudos.
13276         (addsi3_media): Match `S' constraint.
13277         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13278         (negdi2): Expand for SHmedia.
13279         (one_cmpldi2): New expand.
13280         (zero_extendsidi2): Change from expand to insn.
13281         (extendsidi2): Add constraints.
13282         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13283         LD/ST address.  Fix SI immediate loading split.
13284         (movhi_media, movqi_media, lduw, ldub): New insns.
13285         (movhi, movqi): Accept SHmedia.
13286         (shori_media, movdi_media): Relax input constraints.  Split
13287         symbolic constants.
13288         (movdf_media, movsf_media): New insn.  New split to movdi.
13289         (movdf, movsf): Match on SHmedia.
13290         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13291         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13292         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13293         (bunordered): New expand.
13294         (jump_compact): Renamed from `jump'.
13295         (jump_media): New insn.
13296         (jump): New expand.
13297         (call_media, call_value_media): New insns.
13298         (call, call_value): Adjust.
13299         (indirect_jump_compact): Renamed from `indirect_jump'.
13300         (indirect_jump_media): New insn.
13301         (indirect_jump): New expand.
13302         (untyped_call, return): Accept SHmedia.
13303         (return_media): New insn.
13304         (prologue, epilogue, blockage): Accept SHmedia.
13305         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13306         (sunordered): New expand.
13307         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13308         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13309         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13310         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13311         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13312         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13313         abssf2_media): New insns.
13314         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13315         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13316         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13317         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13318         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13319         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13320         absdf2_media): New insns.
13321         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13322         (extendsfdf2_media, truncdfsf2_media): New insns.
13323         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13324         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13325         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13326         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13327         * config/sh/sh.md (adddi3): New expand.
13328         (adddi3_media, adddi3z_media): New insns.
13329         (adddi3_compact): Renamed from adddi3.
13330         (addsi3_media): Use add.l r63 to add constant zero.
13331         (subdi3): New expand.
13332         (subdi3_media): New insn.
13333         (subdi3_compact): Renamed from subdi3.
13334         (mulsidi3): New expand.
13335         (mulsidi3_media): New insn.
13336         (mulsidi3_compact): Renamed from mulsidi3.
13337         (umulsidi3): New expand.
13338         (umulsidi3_media): New insn.
13339         (umulsidi3_compact): Renamed from umulsidi3.
13340         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13341         (ashlsi3, ashrsi3, lshrsi3): Use them.
13342         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13343         (ashldi3, ashrdi3, lshrdi3): Use them.
13344         (zero_extendsidi2): New expand.
13345         (extendsidi2): New insn.
13346         (movsi_media): New insn.  Split to movdi to load constants.
13347         (movsi): Enable for shmedia.
13348         (movdi_media): New insn.  Use shori_media to load wide constants.
13349         (short_media): New insn.
13350         (movdi): Enable for shmedia.
13351         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13352         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13353         (SUBTARGET_CPP_SPEC): Added `!m5'.
13354         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13355         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13356         to all other SH variants.
13357         (TARGET_DEFAULT): Set to SH1_BIT.
13358         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13359         (BITS_PER_WORD): Raise to 64 on shmedia.
13360         (MAX_BITS_PER_WORD): Change to 64.
13361         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13362         (INT_TYPE_SIZE): Keep as 32.
13363         (UNITS_PER_WORD): Raise to 8 on shmedia.
13364         (MIN_UNITS_PER_WORD): Keep as 4.
13365         (POINTER_SIZE): Raise to 64 on shmedia.
13366         (CONST_OK_FOR_J): New macro.
13367         (CONST_OK_FOR_LETTER_P): Use it.
13368         (processor_type): Add PROCESSOR_SH5.
13369         * config/sh/sh.md: Conditionalize all expands, insns and
13370         splits to TARGET_SH1.
13371         (cpu): Added sh5.
13372         (addsi3_compact): Renamed from...
13373         (addsi3): Now an expand.
13374         (addsi3_media, subsi3_media): New insns.
13375         (subsi3): Don't negate constants with SHmedia.
13376
13377         * hooks.c: New file.
13378         * hooks.h: New file.
13379         * Makefile.in (HOOKS_H): New.
13380         (TARGET_DEF_H): Added $(HOOKS_H).
13381         (OBJS): Added hooks.o.
13382         (cfgcleanup.o, bb-reorder.o): Added target.h.
13383         (hooks.o): Added dependencies.
13384         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13385         (TARGET_INITIALIZER): this.
13386         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13387         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13388         * bb-reorder.c: Include target.h.
13389         (reorder_basic_blocks): Skip if cannot modify jumps.
13390         * cfgcleanup.c: Include target.h.
13391         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13392
13393 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13394
13395         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13396         Protect jump delay slot instructions with .set noreorder and
13397         .set nomacro.
13398
13399 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13400
13401         * config/mips/mips.md (casesi_internal_di): Calculate
13402         the index into the target offset table correctly.
13403
13404 2002-02-08  Richard Henderson  <rth@redhat.com>
13405
13406         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13407         * final.c (output_addr_const): Accept and discard SUBREG.
13408         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13409         mark them unknown instead.
13410         (simplify_subtraction): Handle RTX_UNKNOWN.
13411         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13412
13413 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13414
13415         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13416
13417 2002-02-08  Richard Henderson  <rth@redhat.com>
13418
13419         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13420
13421 2002-02-08  Andreas Jaeger  <aj@suse.de>
13422
13423         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13424         * config/i386/t-linux64: New file.
13425
13426 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13427
13428         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13429         * c-parse.in (compstmt): Clear last_expr_type.
13430
13431 2002-02-07  Richard Henderson  <rth@redhat.com>
13432
13433         * loop.c (strength_reduce): Sink final_value when not
13434         eliminating a biv.
13435
13436 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13437
13438         * config/sparc/freebsd.h: Fix mismatched spec {.
13439
13440 2002-02-07  Richard Henderson  <rth@redhat.com>
13441
13442         * cfgrtl.c: Include recog.h and insn-config.h.
13443         (keep_with_call_p): Fix general_operand invocation.
13444         * Makefile.in (cfgrtl.o): Update dependencies.
13445
13446 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13447
13448         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13449         comment.  Accept HImode only if TARGET_H8300.
13450
13451 2002-02-07  Eric Christopher  <echristo@redhat.com>
13452
13453         * config/mips/crtn.asm: Cleanup #ifdefs.
13454
13455 2002-02-07  Eric Christopher  <echristo@redhat.com>
13456
13457         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13458         register 7 as RA instead of $31.
13459         * config/mips/crtn.asm: Ditto.
13460         * config/mips/mips.c (mips_move_2words): Add case for
13461         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13462         (compute_frame_size): Fix typo.
13463         (save_restore_insns): Ditto.  Make documentation about using
13464         register $7 as return register more precise.
13465         (mips_expand_epilogue): Fix comment. Add code to work around not
13466         being able to add to the stack pointer directly.
13467         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13468         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13469         epilogue.
13470
13471 2002-02-07  Tom Rix  <trix@redhat.com>
13472
13473         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13474         immediates in ldu and stdu DS opcode field.
13475         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13476         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13477         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13478
13479 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13480
13481         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13482         offset for stack bias.
13483
13484 2002-02-07  H.J. Lu <hjl@gnu.org>
13485
13486         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13487
13488 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13489
13490         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13491
13492 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13493
13494         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13495         * i386.c (x86_order_regs_for_local_alloc): New global function.
13496         * i386.h (REG_ALLOC_ORDER): CLeanup.
13497         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13498
13499 2002-02-07  Richard Henderson  <rth@redhat.com>
13500
13501         PR optimization/2463
13502         * alias.c (find_base_value): Recall base values for fixed hard regs.
13503         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13504
13505 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13506
13507         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13508         length.
13509
13510 2002-02-06  Richard Henderson  <rth@redhat.com>
13511
13512         PR c/5609
13513         * stmt.c (resolve_operand_name_1): Take more care with mixed
13514         named and unnamed operands.
13515
13516 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13517             Jan Hubicka  <jh@suse.cz>
13518
13519         * loop.c (remove_constant_addition): Avoid clobbering a shared
13520         CONST expression.
13521
13522 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13523
13524         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13525         * config/s390/t-linux64: New file.
13526         * config/s390/libgcc-glibc.ver: New file.
13527
13528 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13529
13530         * config/s390/linux64.h: Delete file.
13531         * config/s390/s390x.h: New file.
13532         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13533         as target header file.
13534         * config/s390/linux.h (TARGET_VERSION): Define depending on
13535         DEFAULT_TARGET_64BIT.
13536         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13537         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13538         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13539         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13540         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13541         (EXTRA_SPEC): New define.
13542         * config/s390/s390.h (TARGET_VERSION): Define depending on
13543         DEFAULT_TARGET_64BIT.
13544         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13545
13546 2002-02-06  Jason Merrill  <jason@redhat.com>
13547
13548         * c-decl.c (finish_function): Warn about a non-void function with
13549         no return statement and no abnormal exit.
13550         (current_function_returns_abnormally): New variable.
13551         (start_function): Clear it.
13552         (struct c_language_function): Add returns_abnormally.
13553         (push_c_function_context): Save it.
13554         (pop_c_function_context): Restore it.
13555         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13556         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13557         an explicit return type.
13558         * c-tree.h: Declare current_function_returns_abnormally.
13559         (C_FUNCTION_IMPLICIT_INT): New macro.
13560         * c-typeck.c (build_function_call): Set it.
13561         (c_expand_return): Set current_function_returns_value even if the
13562         value is erroneous.
13563
13564 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13565
13566         PR c/5420:
13567         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13568         unsafe for reevaluation.
13569
13570 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13571
13572         PR c/5482:
13573         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13574         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13575
13576 2002-02-06  Richard Henderson  <rth@redhat.com>
13577
13578         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13579         be a general_operand.  Dest for function value must be a pseudo.
13580
13581 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13582
13583         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13584         as SYMBOL_REFs from the constant pool.
13585
13586 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
13587
13588         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13589         passed by invisible reference.
13590
13591 2002-02-05  Richard Henderson  <rth@redhat.com>
13592
13593         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13594
13595 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
13596
13597         Implement using "base addresses" in insn operands as default.
13598         * config/mmix/mmix.c (mmix_conditional_register_usage): if
13599         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13600         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13601         used to read the rtx value.
13602         (mmix_target_asm_function_epilogue): Fix spacing.
13603         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13604         (mmix_legitimate_address): Ditto.
13605         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13606         should be loaded with a GETA insn.  Don't allocate needless extra
13607         char for nul termination and fix misleading comment.
13608         (mmix_print_operand_address): Handle constants if
13609         TARGET_BASE_ADDRESSES.
13610         (mmix_output_register_setting): Use base addressing if
13611         TARGET_BASE_ADDRESSES and the number of insns is 3.
13612         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13613         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13614         to use R as constraint, add LDA to match s.
13615         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13616         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13617         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13618         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13619         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13620         order with other fixed registers.
13621         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13622         other parameter/call-clobbered registers.
13623         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13624         -mbase-addresses, -mno-base-addresses.
13625         (MMIX Options): Ditto.
13626
13627 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13628
13629         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13630
13631 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
13632
13633         * config/rs6000/altivec.h: Change elem to _S_elem.
13634
13635 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13636
13637         * config/netbsd.h (WCHAR_TYPE): Define.
13638         (WCHAR_TYPE_SIZE): Ditto.
13639         (WINT_TYPE): Ditto.
13640         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13641         (WCHAR_UNSIGNED): Ditto.
13642         (WCHAR_TYPE_SIZE): Ditto.
13643         (WINT_TYPE): Ditto.
13644         * config/arm/netbsd.h: Likewise.
13645         * config/i386/netbsd-elf.h: Likewise.
13646         * config/i386/netbsd.h: Likewise.
13647         * config/m68k/netbsd-elf.h: Likewise.
13648         * config/m68k/netbsd.h: Likewise.
13649         * config/ns32k/netbsd.h: Likewise.
13650         * config/sparc/netbsd.h: Likewise.
13651         * config/vax/netbsd.: Likewise.
13652
13653 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
13654
13655         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13656         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
13657         (TARGET_INITIALIZER): this.
13658         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13659         (BITFIELD_NBYTES_LIMITED): Markup fix.
13660         * tree.h (default_ms_bitfield_layout_p): Declare.
13661         (record_layout_info): Added prev_field.
13662         * tree.c (default_ms_bitfield_layout_p): New fn.
13663         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13664         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13665         * stor-layout.c: Include target.h.
13666         (start_record_layout): Initialize prev_field.
13667         (place_field): Handle MS bit-field layout, and disregard
13668         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13669         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
13670         * Makefile.in (stor-layout.o): Adjust dependencies.
13671
13672 2002-02-05  Jason Merrill  <jason@redhat.com>
13673
13674         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13675
13676 2002-02-05  Andreas Jaeger  <aj@suse.de>
13677
13678         * crtstuff.c: Fix comments.
13679
13680 2002-02-05  Richard Henderson  <rth@redhat.com>
13681
13682         PR fortran/3393
13683         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13684         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13685
13686         PR fortran/3392
13687         * config/mips/mips.c (function_arg): Handle TImode.
13688         (function_arg_advance): Likewise.
13689
13690 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13691
13692         * config/rs6000/altivec.h (vec_step_help): Rename to
13693         __vec_step_help.
13694
13695 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13696
13697         * config/rs6000/altivec.h: Fix typos.
13698
13699 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13700
13701         * config/arm/netbsd.h: Correct a comment.
13702
13703 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13704
13705         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13706         building void typed builtins.
13707
13708         * config/rs6000/altivec.h (vec_ld*): Fix typos.
13709         (vec_step): Implement for C++.
13710
13711 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13712
13713         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13714
13715 2002-02-04  Richard Henderson  <rth@redhat.com>
13716
13717         * combine.c (nonzero_bits): Re-introduce special case for
13718         sp/fp/ap wrt REGNO_POINTER_ALIGN.
13719
13720 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13721
13722         * doc/extend.texi: Warn about unsupported usage of altivec
13723         builtins.
13724
13725         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13726         (altivec_predicate_*): New.
13727
13728         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13729         Add C++ version of vec_*() functions.
13730
13731         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13732         (bdesc_2arg): Remove altivec predicates.
13733         (altivec_expand_builtin): Handle predicates.
13734         (altivec_init_builtins): Handle predicates.
13735         (altivec_expand_predicate_builtin): New.
13736
13737 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13738
13739         * pa.c (DO_FRAME_NOTES): Move forward.
13740         (store_reg): Revise handling of frame notes.
13741         (load_reg): Likewise.
13742         (set_reg_plus_d): Likewise.
13743         (hppa_expand_prologue): Likewise.
13744         (hppa_expand_epilogue): Likewise.
13745
13746 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13747
13748         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13749
13750 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13751
13752         PR c/4475, c++/3780:
13753         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13754         * c-common.h (SWITCH_TYPE): Define.
13755         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13756         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13757         Rename spareness variable to sparseness.
13758         (expand_end_case_type): Renamed from expand_end_case, use orig_type
13759         if non-NULL instead of TREE_TYPE (orig_index).
13760         * tree.h (expand_end_case_type): Renamed from expand_end_case.
13761         (expand_end_case): Define using expand_end_case_type.
13762         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13763         to expand_end_case_type.
13764         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13765
13766 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13767
13768         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13769         (BIGGEST_ALIGNMENT): Change to 128.
13770
13771 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13772
13773         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13774
13775 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13776
13777         * pa.md (call_internal_reg_64bit): Remove unused variable.
13778
13779 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
13780
13781         * config/arm/arm.h (machine_function): Add uses_anonymous_args
13782         field.
13783         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13784         * config/arm/arm.c (current_function_anonymous_args): Delete,
13785         replace uses with cfun->machine->uses_anonymous_args.
13786         (arm_reorg): Do not reset uses_anonymous_args.
13787
13788         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13789         any geenral register.
13790
13791 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
13792
13793         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13794         the entry block.
13795
13796 2002-02-04  Richard Henderson  <rth@redhat.com>
13797
13798         * combine.c (force_to_mode): Remove STACK_BIAS code.
13799         (nonzero_bits): Likewise.  Replace sp/fp special case with
13800         REGNO_POINTER_ALIGN.
13801
13802         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13803         (HARD_FRAME_POINTER_REGNUM): New.
13804         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13805         (FIXED_REGS, CALL_USED_REGS): Update.
13806         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13807         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13808         (HARD_REGNO_NREGS): Update for SFP.
13809         (STACK_POINTER_OFFSET): Include bias here ...
13810         (FIRST_PARM_OFFSET): ... not here.
13811         (STACK_BIAS): Remove.
13812         (INIT_EXPANDERS): New.
13813         (STARTING_FRAME_OFFSET): Do not include bias.
13814         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13815         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13816         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13817         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13818         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13819         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13820         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13821         (MUST_SAVE_REGISTER): Likewise.
13822         (sparc_flat_function_prologue): Likewise.
13823         (sparc_flat_function_epilogue): Likewise.
13824         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13825         (sparc_init_modes): SFP is GENERAL_REGS.
13826         (sparc_builtin_saveregs): SFP does not have bias applied.
13827
13828 2002-02-04  Richard Henderson  <rth@redhat.com>
13829
13830         * config/alpha/alpha.c (current_function_is_thunk): Don't check
13831         current_function_is_thunk.
13832         (alpha_sa_mask): Distinguish between current_function_is_thunk
13833         called from ASM_OUTPUT_MI_THUNK and not.
13834         (alpha_does_function_need_gp): Thunks always need gp.
13835         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13836         (alpha_output_mi_thunk_osf): New.
13837         * config/alpha/alpha-protos.h: Update.
13838         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13839
13840 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
13841
13842         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13843         function types, not when they're taken away.
13844
13845 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
13846
13847         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13848         CODE_LABEL and jump table when replacing a table jump with a
13849         simple jump.
13850
13851 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13852
13853         * config/s390/s390-protos.h (legitimize_la_operand,
13854         s390_secondary_input_reload_class, s390_plus_operand,
13855         s390_expand_plus_operand): Add prototypes.
13856
13857         config/s390/s390.c (s390_secondary_input_reload_class,
13858         s390_plus_operand, s390_expand_plus_operand): New functions.
13859
13860         (struct s390_address): New member 'pointer'.
13861         (s390_decompose_address): Compute it.
13862         (legitimate_la_operand_p): Use it.
13863         (legitimize_la_operand): New function.
13864         (movti, movdi, movdf splitters): Call it.
13865
13866         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13867         (PREDICATE_CODES): Add s390_plus_operand.
13868
13869         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13870         (la_ccclobber): Allow GENERAL_REGS as output operand.
13871
13872         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13873         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13874         (*la_64, *la_31, reload_indi, reload_insi): ... these.
13875
13876 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13877
13878         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13879         register names for regular asm () construct.
13880
13881 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13882
13883         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13884         registers.
13885
13886 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13887
13888         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13889         pat for recog.
13890
13891 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
13892
13893         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13894         constant pool to be identical by string address and index.
13895
13896 2002-02-04  Anthony Green  <green@redhat.com>
13897
13898         * output.h (SECTION_OVERRIDE): Define.
13899         * varasm.c (named_section): Obey SECTION_OVERRIDE.
13900
13901 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
13902
13903         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13904         by existing arm*-*-netbsd* (a.out) target.
13905         (ns32k-*-netbsdelf*): Likewise.
13906         (sparc-*-netbsdelf*): Likewise.
13907         (vax-*-netbsdelf*): Likewise.
13908
13909 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
13910
13911         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13912         headers and libobjc headers.
13913
13914 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
13915
13916         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13917         (_mingw.h): Remove duplicate include.
13918
13919 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
13920
13921         * config.gcc: Set cpu_type to m68k for 68010, as well.
13922         (m68010-*-netbsdelf*): New...
13923         (m68k*-*-netbsdelf*): ...targets.
13924         * config/m68k/netbsd-elf.h: New file.
13925
13926 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13927
13928         * config/h8300/h8300.c (hand_list): Move inside function_arg.
13929
13930 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13931
13932         * config/h8300/h8300.c (h8_push_ops): Move inside
13933         h8300_init_once.
13934         (h8_pop_ops): Likewise.
13935         (h8_move_ops): Likewise.
13936
13937 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13938
13939         * config/h8300/h8300.c (os_task): Make it static.
13940         (monitor): Likewise.
13941         (pragma_saveall): Likewise.
13942
13943 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
13944
13945         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13946         constant is a valid sign-extension for Pmode.
13947
13948 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13949
13950         * config/h8300/h8300.c: Fix formatting.
13951
13952 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13953
13954         * config/h8300/h8300.md: Fix formatting.
13955
13956 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13957
13958         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13959         predicates of operands[1].  Split the patterns for each
13960         processor variant.
13961
13962 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13963
13964         * config/h8300/h8300.md (xor patterns): Tighten the predicates
13965         of operands[1] to register_operand.
13966
13967 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
13968
13969         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13970         * cpphash.c (_cpp_init_hashtable): Similarly.
13971         * cppinit.c (cpp_create_reader): Default the signed_char flag.
13972         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13973         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13974         (cpp_handle_option): Handle the new options.
13975         * cpplex.c (cpp_interpret_charconst): Use new flag.
13976         * cpplib.h (struct cpp_options): New member signed_char.
13977         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13978         (cpp_options): Handle -fsigned-char and -funsigned-char.
13979         (static_specs): Remove signed_char_spec.
13980         (do_spec1): Don't handle %c.
13981         * system.h: Poison SIGNED_CHAR_SPEC.
13982         * tradcif.y (yylex): Use flag_signed_char.
13983         * tradcpp.h (flag_signed_char): New.
13984         * tradcpp.c (flag_signed_char): New.
13985         (main): Handle new command-line options.
13986         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13987 config:
13988         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13989         * avr/avr.h: Remove old comments.
13990         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13991         (CC1_SPEC): Pass -fsigned-char if -mic*.
13992         (SIGNED_CHAR_SPEC): Remove.
13993 doc:
13994         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13995
13996 2002-02-01  Eric Christopher  <echristo@redhat.com>
13997
13998         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13999         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14000         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14001         (ASM_OUTPUT_REG_POP): Ditto.
14002
14003 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14004
14005         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14006         patch.
14007
14008 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14009
14010         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14011
14012 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14013
14014         PR c/5304:
14015         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14016         unconditionally.
14017
14018 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14019
14020         * cfganal.c: Include tm_p.h.
14021         (keep_with_call_p): Fix the test that determines if a register holds
14022         the return value of a call.
14023
14024 2002-02-01  DJ Delorie  <dj@redhat.com>
14025
14026         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14027         we are given conflicting registers, switch to the other one we
14028         had allocated for us.
14029         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14030         as TImode so we know when the "other" register is available.
14031
14032 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
14033
14034         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14035         sparc/sparc_bi.h.
14036
14037 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14038
14039         * cfganal.c (keep_with_call_p): New function.
14040         (flow_call_edges_add): Prevent splitting a block between a call and
14041         a single-set instruction that should be kept in the same block.
14042
14043 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14044
14045         * doc/install.texi (avr): Update outdated URL.
14046
14047 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
14048
14049         * config/stormy16/stormy16.md (pushqi): New.
14050         (popqi): New.
14051         (pushhi): New.
14052         (pophi): New.
14053         (movhi): Remove stack operands.
14054         (movqi): Likewise.
14055         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14056         nonimmediate_nonstack_operand.
14057         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14058         New.
14059         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14060         New.
14061
14062 2002-01-31  Jason Merrill  <jason@redhat.com>
14063
14064         * Makefile.in (c-parse.c): Handle .output file.
14065         * objc/Make-lang.in (objc-parse.c): Likewise.
14066
14067 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
14068
14069         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14070         the -me[lb] option is given.  Don't output the default flag
14071         twice.
14072
14073 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
14074
14075         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14076         the primary source file; this has not been done yet.
14077         * c-decl.c (c_expand_body): Reset input_filename from
14078         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14079
14080 2002-01-31  Kazu Hirata  <kazu@hxi.com>
14081
14082         * rtlanal.c (subreg_regno_offset): Do not use
14083         SUBREG_REGNO_OFFSET.
14084         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14085         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14086
14087 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14088
14089         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
14090         version rather than GNATS version in --version output.
14091
14092 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
14093
14094         * ifcvt.c (noce_process_if_block): Make a copy of the destination
14095         when copying back from a temporary.
14096
14097 2002-01-30  Richard Henderson  <rth@redhat.com>
14098
14099         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14100         and new_dest are the same.
14101
14102 2002-01-30  Richard Henderson  <rth@redhat.com>
14103
14104         PR opt/5076
14105         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14106         * rtl.c (note_insn_name): Update.
14107         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14108         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14109         to perform loop rotation.
14110         (expand_exit_loop_top_cond): New.
14111         * tree.h (expand_exit_loop_top_cond): Declare it.
14112         * c-semantics.c (genrtl_while_stmt): Use it.
14113         (genrtl_for_stmt): Likewise.
14114
14115 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14116
14117         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14118         arguments to 64-bit boundaries on 64-bit ABIs.
14119
14120 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14121
14122         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14123
14124 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14125
14126         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14127         invalid type.
14128
14129 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14130
14131         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14132         * config/sparc/sparc_bi.h: Remove file.
14133         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14134
14135 2002-01-30  Richard Henderson  <rth@redhat.com>
14136
14137         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14138
14139 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14140
14141         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14142
14143 2002-01-30  Jason Merrill  <jason@redhat.com>
14144
14145         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14146         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14147         (reg_save): Use DW_CFA_offset_extended_sf instead.
14148
14149         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14150
14151 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14152
14153         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14154         in cselib_lookup.
14155
14156 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14157
14158         * rs6000.md ("*call_value_local32"): Remove constraints.
14159         ("*call_value_local64"): Same.
14160         ("*call_value_indirect_nonlocal_aix32"): Same.
14161         ("*call_value_nonlocal_aix32"): Same.
14162         ("*call_value_indirect_nonlocal_aix64"): Same.
14163         ("*call_value_nonlocal_aix64"): Same.
14164         ("*call_value_nonlocal_sysv"): Same.
14165
14166 2002-01-29  Richard Henderson  <rth@redhat.com>
14167
14168         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14169
14170 2002-01-29  Richard Henderson  <rth@redhat.com>
14171
14172         * expr.c (force_operand): Ignore flag_pic for detecting pic
14173         address loads.
14174         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14175         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14176         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14177         instead of open-coded loop.
14178         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14179         be fixed when in use.
14180
14181 2002-01-29  Richard Henderson  <rth@redhat.com>
14182
14183         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14184         * sched-rgn.c (propagate_deps): Update them.
14185         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14186         clobbers list when either gets too long.
14187
14188 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14189
14190         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14191         and INDEX_REGS the same as GENERAL_REGS.
14192         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14193
14194 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14195
14196         * tree.c (build_nonstandard_integer_type): Correct prototype.
14197
14198 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14199
14200         * config/s390/s390.md (movstrsico, movstrdix_64,
14201         movstrsix_31): Remove, replace by ...
14202         (movstrdi_short, movstrsi_short, movstrdi_long,
14203         movstrsi_long): ... these.  New.
14204         (movstrdi, movstrsi): Adapt.
14205
14206         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14207         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14208         Remove unnecessary CC clobber.
14209         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14210         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14211
14212         (divmoddi4): Don't partially initialize TImode register.
14213
14214 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14215
14216         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14217
14218 2002-01-29  Richard Henderson  <rth@redhat.com>
14219
14220         * flow.c (print_rtl_and_abort): Remove.
14221         (print_rtl_and_abort_fcn): Remove.
14222         (verify_local_live_at_start): Use dump_bb instead.
14223         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14224         (verify_wide_reg_1): Return 2 on mode test failure.
14225
14226 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14227
14228         PR c/3325, c/3326, c/2511, c/3347
14229         * c-decl.c (enum_decl_context): Remove BITFIELD.
14230         (grokdeclarator): Take bitfield width as an input.
14231         Ensure bitfields are given the correct type.  Perform
14232         bitfield width validation with build_bitfield_integer_type
14233         rather than waiting for finish_struct.
14234         (grok_typename, grok_typename_in_parm_context, start_decl,
14235         push_parmdecl, grokfield, start_function): Update calls to
14236         grokdeclarator.
14237         (build_bitfield_integer_type): New function.
14238         (finish_struct): Move bitfield validation to grokdeclarator
14239         and build_bitfield_integer_type.
14240         * tree.c (build_nonstandard_integer_type): New function.
14241         * tree.h (build_nonstandard_integer_type): New prototype.
14242 objc:
14243         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14244
14245 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14246
14247         PR other/1502:
14248         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14249         don't ignore unrecognized -W* options.
14250         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14251         * cpplib.h (cpp_handle_option): Adjust prototype.
14252         * c-decl.c (c_decode_options): Pass 0 as last argument to
14253         cpp_handle_option.
14254
14255         PR c/2896:
14256         * gcc.c (cpp_unique_options): Split from cpp_options.
14257         (cpp_options): Source cpp_unique_options.
14258         (default_compilers): Use cpp_unique_options instead of cpp_options
14259         when used together with cc1_options.
14260         (static_specs): Add cpp_unique_options.
14261         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14262         when used together with cc1_options.
14263
14264 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14265
14266         * config/h8300/h8300-protos.h: Update the prototype of
14267         output_a_shift.
14268         * config/h8300/h8300.c (output_a_shift): Remove an unused
14269         argument 'insn'.  Remove redundant code.
14270         * config/h8300/h8300.md: Adust to the new prototype of
14271         output_a_shift.
14272
14273 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14274
14275         * config/h8300/h8300-protos.h: Update the prototypes of
14276         emit_a_rotate and expand_a_rotate.
14277         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14278         first argument to 'enum rtx_code'.
14279         (expand_a_rotate): Likewise.
14280
14281 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14282
14283         * config/h8300/h8300-protos.h: Update the prototype of
14284         output_simode_bld.
14285         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14286         'log2'.
14287         * config/h8300/h8300.md: Adjust to the new prototype.
14288
14289 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14290
14291         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14292         redundant code.
14293
14294 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14295
14296         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14297         is a fixed register before returning pic_offset_table_rtx.
14298         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14299         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14300
14301 2002-01-28  Jason Merrill  <jason@redhat.com>
14302
14303         * dwarf2.h: Sync with src version.
14304
14305 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14306
14307         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14308         BT_FN_VOID_PTR_VAR.
14309         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14310         * doc/extend.texi (__builtin_prefetch): Update documentation:
14311         first argument is now const void ptr.
14312
14313 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14314
14315         * config/h8300/h8300-protos.h: Remove an unused prototype.
14316
14317 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14318
14319         * toplev.c (lang_independent_init): Round up identifier size.
14320
14321 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14322
14323         * config.gcc: Revert previous change.
14324
14325 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14326
14327         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14328
14329 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14330
14331         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14332         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14333         other non-elf netbsd config frags.
14334         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14335         collect2 will does that.
14336         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14337         shared-lib frobbing will work.
14338
14339 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14340
14341         * config/h8300/h8300.h: Fix formatting.
14342         * config/h8300/h8300.md: Likewise.
14343
14344 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14345
14346         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14347         the old, removed AAA_standards fix.
14348         * fixinc/fixincl.x: Rebuilt.
14349
14350 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14351
14352         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14353         atexit call in crtbegin, hooked in after call to frame_dummy;
14354         register EH before registering __fini__start.
14355
14356 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14357
14358         * config/rs6000/altivec.h: Remove spurious semicolons.
14359
14360 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14361
14362         * config/h8300/h8300.md: Replace dead bit extraction patterns
14363         with ones that work.
14364
14365 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14366
14367         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14368         if not STRICT_ALIGNMENT.
14369         * rtl.h (MEM_ALIGN): Likewise.
14370
14371 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14372
14373         * doc/invoke.texi (-fdump-translation-unit): Revert this
14374         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14375
14376 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14377
14378         * config/h8300/h8300.md (define_constants): New.
14379         (anonymous patterns) Use defined constants appropriately.
14380
14381 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14382
14383         * config/h8300/h8300.c (function_arg): Remove redundant code.
14384
14385 2002-01-26  Richard Henderson  <rth@redhat.com>
14386
14387         * sched-deps.c (reg_pending_uses_head): New.
14388         (reg_pending_barrier): Rename from reg_pending_sets_all.
14389         (find_insn_list): Don't mark inline.
14390         (find_insn_mem_list): Remove.
14391         (add_dependence_list, add_dependence_list_and_free): New.
14392         (flush_pending_lists): Replace only_write param with separate
14393         for_read and for_write parameters.  Update all callers.  Use
14394         add_dependence_list_and_free.
14395         (sched_analyze_1): Do not add reg dependencies here; just set
14396         the pending bits.  Use add_dependence_list.
14397         (sched_analyze_2): Likewise.
14398         (sched_analyze_insn): Replace schedule_barrier_found with
14399         reg_pending_barrier.  Add all dependencies for pending reg
14400         uses, sets, and clobbers.
14401         (sched_analyze): Don't add reg dependencies for calls, just
14402         set pending bits.  Use regs_invalidated_by_call.  Treat
14403         sched_before_next_call as a normal list, not a fake insn.
14404         (init_deps): No funny init for sched_before_next_call.
14405         (free_deps): Free pending mems lists.  Don't zero reg_last.
14406         (init_deps_global): Init reg_pending_uses.
14407         (finish_deps_global): Free it.
14408         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14409         (find_insn_mem_list): Remove.
14410         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14411         (propagate_deps): Use them.  Zero temp mem lists.
14412
14413 2002-01-26  Richard Henderson  <rth@redhat.com>
14414
14415         * Makefile.in (CRTSTUFF_CFLAGS): New.
14416         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14417         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14418         crtstuff.c instead of alpha assembly version.
14419         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14420         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14421         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14422         (__do_global_dtors_aux): Mark used.
14423         (frame_dummy, __do_global_ctors_aux): Mark used.
14424         (fini_dummy, init_dummy): Remove.
14425
14426         * config/alpha/crtbegin.asm: Remove file.
14427         * config/alpha/crtend.asm: Remove file.
14428         * config/alpha/t-crtbe: Remove file.
14429         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14430         (LINK_EH_SPEC): New.
14431
14432         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14433         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14434         calling constructors.
14435         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14436
14437         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14438         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14439         CRT_END_INIT_DUMMY hack.
14440         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14441         FORCE_{INIT,FINI}_SECTION_ALIGN.
14442
14443         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14444         FORCE_{INIT,FINI}_SECTION_ALIGN.
14445
14446         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14447         invocation sequence.
14448         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14449
14450         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14451         (FORCE_CODE_SECTION_ALIGN): New.
14452
14453 2002-01-26  Richard Henderson  <rth@redhat.com>
14454
14455         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14456
14457 2002-01-26  Richard Henderson  <rth@redhat.com>
14458
14459         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14460         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14461
14462 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14463
14464         * config/h8300/h8300.md: Remove bit extraction patterns that
14465         cannot be triggered.
14466         Restrict each bit extraction pattern to a variant on which the
14467         pattern is tested.
14468
14469 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14470
14471         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14472
14473 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14474
14475         * config/h8300/h8300.md: Remove bit test patterns that cannot
14476         be triggered.
14477         Restrict each bit test pattern to a variant on which the
14478         pattern is tested.
14479
14480 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14481
14482         * builtins.c (expand_builtin_strncat): Remove redundant check for
14483         INTEGER_CST.
14484
14485 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14486
14487         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14488         default setting.
14489         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14490         existing setting.
14491
14492 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14493
14494         * dbxout.c (dbxout_init): Use assemble_name rather than just
14495         stripping off the first character.
14496         (dbxout_source_file): Likewise.
14497
14498 2002-01-25  DJ Delorie  <dj@redhat.com>
14499
14500         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14501         using rtx_equal_p, not by comparing pointers.
14502
14503 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14504
14505         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14506         for PIC_OFFSET_TABLE_REGNUM.
14507         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14508
14509 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14510
14511         * config.gcc (x86_64-*-freebsd*): New target.
14512         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14513         value.
14514         (i[34567]86-*-freebsd*): Don't include svr4.h.
14515         * config/i386/freebsd64.h: New file.
14516
14517 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14518
14519         * config/alpha/x-vms (version): Make static.
14520
14521         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14522         in previous checkin.
14523
14524         * Makefile.in (install-headers-cp): New target.
14525         * config.gcc (alpha-dec-*vms*): Install headers with
14526         install-headers-cp
14527
14528 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14529
14530         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14531         avoid it's copies.
14532
14533 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14534
14535         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14536         of compare_tree_int.
14537         (expand_builtin_strncat): Likewise.
14538         * c-decl.c (finish_struct): Use tree_low_cst.
14539         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14540         * tree.c (compare_tree_int): Likewise.
14541
14542 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14543
14544         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14545         adjustments even if they are implemented by more than two insns.
14546
14547 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14548
14549         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14550         * df.h (struct ref): Kill B.
14551         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14552
14553         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14554         * flow.c (propagate_one_insn): Use it.
14555         (mark_used_regs): Handle NIL.
14556
14557 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14558
14559         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14560         to help folding.
14561
14562 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14563
14564         * rs6000.md (prefetch): Make address V4SI mode so that the address
14565         is restricted to legitimate form for instruction.
14566
14567 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14568
14569         * doc/install.texi (xtensa-*-elf): New target.
14570         (xtensa-*-linux*): New target.
14571         * doc/contrib.texi: Add myself.
14572
14573 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14574
14575         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14576         purpose register to hold an SImode (or smaller) value.
14577
14578 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14579
14580         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14581         registry only.
14582         * crtstuff.c: Likewise.
14583
14584 2002-01-25  Kazu Hirata  <kazu@hxi.com>
14585
14586         * config/h8300/h8300.md (negation patterns): Tighten
14587         predicates to register_operand.
14588
14589 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
14590
14591         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14592         mode, not Pmode.
14593
14594         * builtins.c (expand_builtin_prefetch): Same.
14595
14596 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14597
14598         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14599         modes.
14600
14601 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14602
14603         * config/h8300/h8300.c (print_operand): Remove support for
14604         operand character 'A'.
14605         * config/h8300/h8300.md (three anonymous patterns): Replace
14606         operand character 'A' with either 'T' or 'S'.
14607
14608 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14609
14610         * config/h8300/h8300.c (print_operand): Remove support for
14611         operand character 'U'.
14612
14613 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
14614
14615         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14616
14617 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
14618
14619         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14620         values to be assigned to the stack pointer.
14621
14622 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
14623
14624         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14625         to const_double needs to be done right for big-endian systems.
14626
14627 2002-01-24  Jason Merrill  <jason@redhat.com>
14628
14629         PR c++/2432
14630         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14631         to can_throw_internal.
14632
14633 2002-01-23  Richard Henderson  <rth@redhat.com>
14634
14635         * fold-const.c (fold): Change UINT_MAX test to check vs precision
14636         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
14637
14638 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14639
14640         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14641         (symGOT2reg): Use them, then set as GOT value as unchanging.
14642         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
14643         as a temporary, if possible.
14644         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
14645         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14646
14647 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14648
14649         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14650         accept to accept 0x80 as operands[2].
14651
14652 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14653
14654         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14655
14656 2002-01-23  Richard Henderson  <rth@redhat.com>
14657
14658         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14659
14660 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
14661
14662         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14663         (parmlist_or_identifiers_1): Verify that only a parmlist follows
14664         an attribute.
14665
14666 2002-01-23  Richard Henderson  <rth@redhat.com>
14667
14668         * expr.c (move_by_pieces_1): Extend size before negation.
14669
14670         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14671         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14672         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14673         * config/m68k/t-m68kelf: Likewise.
14674
14675 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
14676
14677         * config/xtensa/elf.h: New file.
14678         * config/xtensa/lib1funcs.asm: New file.
14679         * config/xtensa/lib2funcs.S: New file.
14680         * config/xtensa/linux.h: New file.
14681         * config/xtensa/t-xtensa: New file.
14682         * config/xtensa/xtensa-config.h: New file.
14683         * config/xtensa/xtensa-protos.h: New file.
14684         * config/xtensa/xtensa.c: New file.
14685         * config/xtensa/xtensa.h: New file.
14686         * config/xtensa/xtensa.md: New file.
14687         * config.gcc (xtensa-*-elf*): New target.
14688         (xtensa-*-linux*): New target.
14689         * cse.c (canon_hash): Compare rtx pointers instead of register
14690         numbers.  This is required for the Xtensa port.
14691         * integrate.c (copy_insn_list): Handle case where the static
14692         chain is in memory and the memory address has to be copied to
14693         a register.
14694         * doc/invoke.texi (Option Summary): Add Xtensa options.
14695         (Xtensa Options): New node.
14696         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14697
14698 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14699
14700         * diagnostic.c (internal_error): Do ICE suppression only
14701         when ENABLE_CHECKING is not defined.
14702
14703         * c-typeck.c (require_complete_type): Return error_mark_node
14704         if type is error_mark_node.
14705
14706 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
14707
14708         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14709         -Os and issue a warning.
14710
14711 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14712
14713         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14714         current (lack of) need for host configuration by hand.
14715
14716         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14717         references.  Documentation of some target macros moved from
14718         hostconfig.texi to tm.texi.
14719
14720 2002-01-23  Will Cohen  <wcohen@redhat.com>
14721
14722         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14723         defined.
14724
14725 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14726
14727         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14728         operand[3].
14729
14730 2002-01-23  Jason Merrill  <jason@redhat.com>
14731
14732         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14733
14734         * function.c (assign_parms): Don't put args of inline functions
14735         into registers when not optimizing.
14736
14737 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
14738
14739         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14740         (prologue_use): New pattern.
14741         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14742         preference to gen_rtx_USE.
14743         (thumb_expand_prologue): Use gen_prologue_use in preference to
14744         gen_rtx_USE.
14745         (thumb_expand_epilogue): Use gen_prologue_use in preference to
14746         gen_rtx_USE.
14747
14748 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
14749
14750         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14751
14752 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14753
14754         PR c/3504
14755         * doc/extend.texi: Correct documentation of __alignof__.
14756
14757 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
14758
14759         * params.h: Rename arguments of DEFPARAM so that it will be
14760         recognized as a translation keyword.
14761
14762 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14763
14764         * extend.texi: Document altivec functions.
14765         Fix N-bit adjectives in X86 builtin documentation.
14766
14767 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14768
14769         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14770         auto_inc_dec values.
14771
14772 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
14773
14774         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14775         after backslash.
14776         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14777
14778 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14779
14780         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14781
14782 2002-01-22  Richard Henderson  <rth@redhat.com>
14783
14784         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14785         copy_insn not copy_rtx.
14786
14787 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
14788
14789         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14790         "nonzero" as that might add "1" bits.  Ensure "constop" is
14791         properly sign extened.
14792         (force_to_mode): Tweak for sign extended constop.
14793
14794 2002-01-22  Richard Henderson  <rth@redhat.com>
14795
14796         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14797         for_each_rtx instead of assuming we're already looking at the MEM.
14798         (split_small_symbolic_mem_operand): Likewise.
14799         * config/alpha/alpha.h (PREDICATE_CODES): Update.
14800         * config/alpha/alpha.md (small symbolic memory splitters): Update.
14801
14802 2002-01-22  Richard Henderson  <rth@redhat.com>
14803
14804         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14805         sequence number for the literal.
14806         (divmoddi_internal_er): Likewise.
14807
14808 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14809
14810         PR java/4972
14811         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14812         in LIBICONV variable.
14813         * configure: Regenerated.
14814
14815 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
14816
14817         * dependence.c (build_def_use): Remove array_idx.
14818
14819         * dwarfout.c (last_filename): Remove.
14820         (output_compile_unit_die): Remove last_filename.
14821
14822 2002-01-22  Roger Sayle  <roger@eyesopen.com>
14823             Richard Henderson  <rth@redhat.com>
14824
14825         PR opt/3640
14826         * fold-const.c (fold): Optimize unsigned comparisons against
14827         UINT_MAX (and similar unsigned constants).
14828
14829 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
14830
14831         * Makefile.in (loop.o): Depend on OPTABS_H.
14832         * loop.c (emit_prefetch_instructions): Check the prefetch operand
14833         against the predicate.
14834
14835         PR target/5379
14836         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14837         for the address operand.
14838
14839 2002-01-22  Richard Henderson  <rth@redhat.com>
14840
14841         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14842
14843 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14844
14845         PR other/5450
14846         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14847         preprocessor flags.
14848
14849 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
14850
14851         * config.gcc (x86_64-*-netbsd*): New target.
14852         * config/i386/netbsd64.h: New file.
14853
14854 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14855
14856         * regrename.c (kill_value): Fix typo.
14857
14858 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14859
14860         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14861
14862         * config/rs6000/rs6000.h: Same.
14863
14864         * function.c (instantiate_virtual_regs): Remove
14865         STARTING_FRAME_PHASE.
14866         (assign_stack_local_1): Same.
14867         Calculate frame phase.
14868
14869 2002-01-22  Nick Clifton  <nickc@redhat.com>
14870
14871         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14872         variable declaration to outer scope in order to simplify
14873         future extensions.
14874         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14875         arm_hard_regno_mode_ok.
14876         * config/arm/arm-protos.h: Add a prototype for
14877         arm_hard_regno_mode_ok.
14878         * config/arm/arm.c (soft_df_operand): Remove now redundant
14879         check for DImode values using IP_REGNUM.
14880         (nonimmediate_soft_df_operand): Remove now redundant check for
14881         DImode values using IP_REGNUM.
14882         (arm_hard_regno_mode_ok): New function. New check: make sure
14883         that DImode values are not stored in IP_REGNUM.
14884
14885         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14886         note with a USE.
14887         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14888
14889 2002-01-22  Jason Merrill  <jason@redhat.com>
14890
14891         * c-semantics.c (genrtl_compound_stmt): Only check nesting
14892         consistency if this COMPOUND_STMT is scoped.
14893
14894 2002-01-22  Kazu Hirata  <kazu@hxi.com>
14895
14896         * predict.c: Fix formatting.
14897         * print-tree.c: Likewise.
14898         * protoize.c: Likewise.
14899         * real.h: Likewise.
14900         * rtl.h: Likewise.
14901         * sbitmap.h: Likewise.
14902         * scan.c: Likewise.
14903         * sched-deps.c: Likewise.
14904         * sched-vis.c: Likewise.
14905         * sdbout.c: Likewise.
14906         * sibcall.c: Likewise.
14907         * ssa.c: Likewise.
14908         * ssa-ccp.c: Likewise.
14909         * ssa-dce.c: Likewise.
14910         * stmt.c: Likewise.
14911         * stor-layout.c: Likewise.
14912         * system.h: Likewise.
14913
14914 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14915
14916         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14917         if fits in bounds of base type.
14918
14919         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14920         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14921         (add_bound_info, default): If can't find a context, make a
14922         SAVE_EXPR.
14923         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14924
14925 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
14926
14927         * c-typeck.c (parser_build_binary_op): If result from
14928         build_binary_op is ERROR_MARK just return error_mark_node without
14929         further processing.
14930
14931 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
14932
14933         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14934         Split a.out-specific bits into...
14935         * config/netbsd-aout.h: ...this.
14936         * config/netbsd-elf.h: New file.
14937         * config/alpha/netbsd-elf.h: Remove.
14938         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14939         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14940         (STARTFILE_SPEC): Remove redundant definition.
14941         (ENDFILE_SPEC): Likewise.
14942         (LINK_SPEC): Likewise.
14943         (CPP_SPEC): Likewise.
14944         (ASM_SPEC): Likewise.
14945         (LIB_SPEC): Likewise.
14946         (SWITCH_TAKES_ARG): Likewise.
14947         (TARGET_MEM_FUNCTIONS): Likewise.
14948         (CPP_PREDEFINES): Redefine.
14949         (ASM_FINAL_SPEC): Remove redefinition.
14950         (ASM_COMMENT_START): Redefine.
14951         (FUNCTION_PROFILER): Define.
14952         (TARGET_VERSION): Redefine.
14953         Comment and formatting cleanup.
14954         * config/i386/netbsd.h: Include <netbsd-aout.h>.
14955         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14956         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14957         big- or little-endian.
14958         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14959         * config.gcc (*-*-netbsd*): Add definitions common to all
14960         NetBSD configs.
14961         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14962         gnu_ld definitions.  Add netbsd-elf.h to and remove
14963         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
14964         tmake_file, and don't lose previous tmake_file contents.
14965         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14966         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14967         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
14968         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14969         (mipsel-*-netbsd*): Rename this to...
14970         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
14971         mips/little.h to tm_file for mips*el-*.
14972         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14973         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14974         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14975
14976 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14977
14978         * pa-protos.h (reg_before_reload_operand): New function prototype.
14979         * pa.c (reg_before_reload_operand): New function implementation.
14980         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
14981         contraints to "*m".
14982
14983 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14984
14985         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14986
14987 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14988
14989         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14990         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14991         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14992         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14993         (ENDFILE_SPEC): Undefine.
14994         (STARTFILE_SPEC): Redefine for PA.
14995
14996 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14997
14998         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14999
15000 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
15001
15002         * config.gcc: Add entries to supported PowerPC --with-cpu
15003         types.
15004
15005 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
15006
15007         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15008         true for 64-bit mode only SSE registers in 32-bit mode.
15009
15010 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15011
15012         * unwind-dw2.c: Fix formatting.
15013         * unwind-dw2-fde.c: Likewise.
15014         * unwind-dw2-fde.h: Likewise.
15015         * unwind-pe.h: Likewise.
15016         * varasm.c: Likewise.
15017         * varray.h: Likewise.
15018
15019 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
15020
15021         Remove workaround for register stack overwrite bug in mmix.
15022         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15023         support for TARGET_REG_STACK_FILL_BUG.
15024         * config/mmix/mmix.h: Remove member has_call_without_parameters.
15025         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15026         Delete.
15027         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15028         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15029         -mno-reg-stack-fill-bug-workaround.
15030         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15031         machine member has_call_without_parameters.
15032         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15033         -mreg-stack-fill-bug-workaround and
15034         -mno-reg-stack-fill-bug-workaround.
15035         (MMIX Options): Ditto.
15036
15037 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15038
15039         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15040         as appropriate.
15041         Remove redundant code.
15042
15043 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15044
15045         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15046         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15047         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15048         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15049         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15050         out target macro definitions and non-target-specific comments
15051         mostly taken from old versions of the manual.
15052
15053 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15054
15055         * config/h8300/h8300.h: Fix comment formatting.
15056         * config/ia64/aix.h: Likewise.
15057         * config/ia64/ia64-protos.h: Likewise.
15058         * config/ia64/ia64.c: Likewise.
15059         * config/ia64/ia64.h: Likewise.
15060         * config/ia64/ia64intrin.h: Likewise.
15061         * config/ia64/linux.h: Likewise.
15062         * config/ia64/unwind-aix.c: Likewise.
15063         * config/ia64/unwind-ia64.c: Likewise.
15064
15065 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15066
15067         * config/h8300/h8300.c: Revise comments about shift code.
15068
15069 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15070
15071         * config/h8300/h8300.c (function_arg): Update a comment.
15072
15073 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15074
15075         * config/h8300/h8300.md: Update the comments at the beginning
15076         of the file.
15077
15078 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15079
15080         * config/i370/i370.c: Fix comment formatting.
15081         * config/i370/i370.h: Likewise.
15082         * config/i370/i370.md: Likewise.
15083         * config/i370/linux.h: Likewise.
15084
15085 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15086
15087         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15088
15089         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15090         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15091         in incomplete case.
15092
15093 2002-01-20  Graham Stott  <grahams@redhat.com>
15094
15095         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15096
15097 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15098
15099         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15100
15101 2002-01-19  Tom Rix  <trix@redhat.com>
15102
15103         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15104
15105 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15106
15107         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15108
15109         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15110         STARTING_FRAME_PHASE.
15111         (STARTING_FRAME_PHASE): New.
15112         (instantiate_virtual_regs): Check saneness of
15113         STARTING_FRAME_PHASE.
15114
15115         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15116
15117 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15118
15119         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15120
15121 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15122
15123         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15124         be used for bootstrapping GCC 3.0.
15125
15126 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15127
15128         * config/h8300/h8300.md: Fix an insn length.
15129
15130 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15131
15132         * bitmap.h: Fix comment formatting.
15133         * combine.c: Likewise.
15134         * cppfiles.c: Likewise.
15135         * c-pragma.h: Likewise.
15136         * c-typeck.c: Likewise.
15137         * df.c: Likewise.
15138         * dwarf2out.c: Likewise.
15139         * function.c: Likewise.
15140         * gcc.c: Likewise.
15141         * genattrtab.c: Likewise.
15142         * gthr-win32.h: Likewise.
15143         * haifa-sched.c: Likewise.
15144         * predict.c: Likewise.
15145         * rtlanal.c: Likewise.
15146         * rtl.h: Likewise.
15147         * unwind-dw2-fde.h: Likewise.
15148         * unwind-pe.h: Likewise.
15149         * vmsdbgout.c: Likewise.
15150
15151 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15152
15153         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15154         if type_required and passed decl.
15155
15156 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15157
15158         * config.gcc (cpu_type): Include altivec.h in powerpc
15159         extra_headers.
15160         Same for darwin.
15161
15162         * config/rs6000/altivec.h: New.
15163
15164 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15165
15166         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15167         handling information.
15168         * doc/trouble.texi (Interoperation): Add libstdc++ information
15169         for AIX.
15170         (Misunderstandings): Add template instantiation and static template
15171         member information for AIX.
15172
15173 2002-01-17  Jason Merrill  <jason@redhat.com>
15174
15175         * dbxout.c (dbxout_type): Support const and volatile.
15176
15177         * except.c (add_partial_entry): Remove backwards compatibility code.
15178         (end_protect_partials): Likewise.
15179
15180 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15181
15182         * config/ia64/ia64.md (prologue_use): New.
15183         * config/ia64/ia64.c (ia64_expand_prologue): Use
15184         gen_prologue_use instead of gen_rtx_USE.
15185         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15186         as CODE_FOR_pred_rel_mutex.
15187         (ia64_sched_reorder2): Likewise.
15188
15189 2002-01-16  Eric Christopher  <echristo@redhat.com>
15190
15191         * config/mips/r3900.h: Reformat.
15192         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15193         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15194         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15195         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15196         * config/mips/t-elf: Remove mips3 multilib.
15197
15198 2002-01-16  H.J. Lu <hjl@gnu.org>
15199
15200         * config/mips/linux.h: Include "mips/abi64.h".
15201
15202 2002-01-16  H.J. Lu <hjl@gnu.org>
15203
15204         * config/mips/t-linux: New.
15205
15206         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15207
15208         * config/mips/linux.h: Don't include "gofast.h".
15209         (INIT_SUBTARGET_OPTABS): Removed.
15210
15211 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15212
15213         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15214         output_a_shift.
15215         * config/h8300/h8300.c: Likewise.
15216         * config/h8300/h8300.md: Likewise.
15217
15218 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15219
15220         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15221         spaces after an opcode name.
15222         (pushqi1_h8300hs): Likewise.
15223         (pushhi1_h8300hs): Likewise.
15224
15225 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15226
15227         * doc/extend.texi: Replace "option" with "attribute"
15228         appropriately.
15229
15230 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15231
15232         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15233         (and:DI () (const_int -8)).
15234         (split_small_symbolic_mem_operand): Split
15235         (mem (and:DI () (const_int -8)).
15236
15237 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15238
15239         PR target/5309:
15240         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15241         same way as TYPE_IMUL.
15242         (ultrasparc_sched_reorder): Likewise.
15243         * config/sparc/sparc.md (type): Add comment to update
15244         ultrasparc_sched_reorder when making changes.
15245
15246 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15247
15248         * doc/invoke.texi: Change the dump file name of block
15249         reordering pass from 28.bbro to 29.bbro.
15250         Mention -dk option.
15251
15252 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15253
15254         * i386.md (minsf splitter): Fix pasto.
15255
15256 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15257
15258         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15259         to frame pointer initialisation instruction.
15260         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15261         initialisation instruction.
15262         (soft_df_operand): Do not accept the IP register.
15263         (nonimmediate_soft_df_operand): Do not accept the IP register.
15264
15265 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15266
15267         PR target/5357:
15268         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15269         MASK_V8 being both set.
15270
15271 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15272
15273         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15274         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15275         config/s390/s390.md (call, call_value): Add GOT register to
15276         CALL_INSN_FUNCTION_USAGE where needed.
15277         (call_exp, call_value_exp): New.
15278
15279 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15280
15281         * config/arm/arm.c: General formatting tidy up.
15282
15283 2002-01-16  Graham Stott  <grahams@redhat.com>
15284
15285         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15286         cast and when casting an integer literal to "rtx" pointer.
15287         (expand_call): Likewise.
15288         * flow.c (try_pre_increment): Likewise.
15289         (find_use_as_address): Likewise.
15290         * integrate.c (expand_iline_function): Likewise.
15291         * regmove.c (try_auto_increment): Likewise.
15292
15293 2002-01-16  Graham Stott  <grahams@redhat.com>
15294
15295         * sched-rgn.c (passed): Use sbitmap_free.
15296         (header): Likewise.
15297         (inner): Likewise.
15298         (in_queue): Likewise.
15299         (in_stack): Likewise.
15300
15301 2002-01-15  Eric Christopher  <echristo@redhat.com>
15302
15303         * flow.c (propagate_one_insn): Change to use fatal_insn.
15304
15305 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15306
15307         * expmed.c (extract_fixed_bit_field): Remove unused code.
15308         * system.h: Poison SLOW_ZERO_EXTEND.
15309         * doc/tm.texi: Remove.
15310         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15311         * config/arm/arm.h: Likewise.
15312         * config/avr/avr.h: Likewise.
15313         * config/clipper/clipper.h: Likewise.
15314         * config/convex/convex.h: Likewise.
15315         * config/d30v/d30v.h: Likewise.
15316         * config/dsp16xx/dsp16xx.h: Likewise.
15317         * config/elxsi/elxsi.h: Likewise.
15318         * config/fr30/fr30.h: Likewise.
15319         * config/h8300/h8300.h: Likewise.
15320         * config/i370/i370.h: Likewise.
15321         * config/i386/i386.h: Likewise.
15322         * config/m68k/m68k.h: Likewise.
15323         * config/mips/mips.h: Likewise.
15324         * config/ns32k/ns32k.h: Likewise.
15325         * config/pdp11/pdp11.h: Likewise.
15326         * config/pj/pj.h: Likewise.
15327         * config/s390/s390.h: Likewise.
15328         * config/sh/sh.h: Likewise.
15329         * config/stormy16/stormy16.h: Likewise.
15330         * config/v850/v850.h: Likewise.
15331         * config/vax/vax.h: Likewise.
15332         * config/we32k/we32k.h: Likewise.
15333
15334 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15335
15336         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15337         (altivec_lvsl): Change constraint to b.
15338         (altivec_lvsr): Same.
15339         (altivec_lvebx): Same.
15340         (altivec_lvehx): Same.
15341         (altivec_lvewx): Same.
15342         (altivec_lvxl): Same.
15343         (altivec_lvx): Same.
15344         (altivec_stvx): Add parallel.
15345         (altivec_stvxl): Same.
15346         (altivec_stvehx): Same.
15347         (altivec_stvebx): Same.
15348         (altivec_stvebx): Same.
15349
15350 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15351
15352         * config.gcc: Change altivec.h to altivec-defs.h.
15353
15354         * config/rs6000/altivec.h: Delete.
15355
15356         * config/rs6000/altivec-defs.h: Add.
15357
15358 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15359
15360         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15361         and UMOD modes.
15362
15363         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15364         less than or equal to eight bytes.
15365
15366         * vax.md (andsi3): Remove constraints and change SET destination
15367         operand type to nonimmediate_operand.
15368         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15369         when it is a CONST_INT.
15370
15371 2002-01-15  Jason Merrill  <jason@redhat.com>
15372
15373         * c-common.def (FILE_STMT): New code.
15374         * c-common.c (statement_code_p): It's a statement.
15375         * c-common.h (stmt_tree_s): Add x_last_filename.
15376         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15377         (last_expr_filename): New macro.
15378         * c-semantics.c (begin_stmt_tree): Initialize it.
15379         (add_stmt): If the filename changed, also insert a
15380         FILE_STMT.
15381         (expand_stmt): Handle seeing one.
15382
15383 2002-01-15  Eric Christopher  <echristo@redhat.com>
15384
15385         * flow.c (propagate_one_insn): Add error message and print out
15386         insn for debugging.
15387
15388 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15389
15390         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15391         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15392         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15393         TRAMPOLINE_ALIGNMENT.
15394         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15395         to be in bits.
15396         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15397         PCC_BITFIELD_TYPE_MATTERS.
15398         * config/interix.h (STDC_VALUE): Remove.  Use
15399         STDC_0_IN_SYSTEM_HEADERS.
15400         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15401         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15402         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15403
15404 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15405
15406         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15407         not work on this platform currently.
15408
15409 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15410
15411         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15412         readonly_warning in _().
15413
15414 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15415
15416         * gcc.c (delete_if_ordinary): Backout previous change.
15417
15418 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15419
15420         * config/h8300/h8300.c (print_operand): Remove support for
15421         unused operand characters.
15422
15423         * read-rtl.c: Fix formatting.
15424         * real.c: Likewise.
15425         * recog.c: Likewise.
15426         * regclass.c: Likewise.
15427         * regmove.c: Likewise.
15428         * reg-stack.c: Likewise.
15429         * reload1.c: Likewise.
15430         * rtlanal.c: Likewise.
15431
15432 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15433
15434         * config/i386/i386.c: Fix formatting.
15435
15436 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15437
15438         * c-typeck.c (process_init_element): Don't save_expr
15439         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15440
15441 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15442
15443         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15444         emit optional traceback table if optimize_size or TARGET_ELF.
15445         * config/rs6000/rs6000.md (prefetch): New.
15446
15447 2002-01-15  Andreas Jaeger  <aj@suse.de>
15448
15449         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15450
15451 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15452
15453         * mips-tfile.c: Fix formatting.
15454
15455 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15456
15457         * unroll.c (final_reg_note_copy): Fix previous commit.
15458
15459 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15460
15461         * config/h8300/h8300-protos.h: Remove the prototype for
15462         eq_operator.
15463         * config/h8300/h8300.c (eq_operator): Remove.
15464
15465 2002-01-14  Richard Henderson  <rth@redhat.com>
15466
15467         * config/i386/i386.md (prefetch): Tidy.
15468         (prefetch_3dnow): Fix locality operand.
15469
15470 2002-01-14  Richard Henderson  <rth@redhat.com>
15471
15472         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15473         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15474
15475 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15476
15477         * reload1.c (reload_combine): Pass reg_sum replacement through
15478         copy_rtx in loop performing multiple changes.
15479
15480 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15481
15482         * except.c (remove_unreachable_regions): New.
15483         (free_eh_status): Clear exception_handler_labels.
15484         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15485         (find_exception_handler_labels): Don't add the same label more than
15486         once.
15487         (remove_exception_handler_label): Don't die if
15488         find_exception_handler_labels hasn't been called for the current
15489         function yet.
15490
15491 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15492
15493         * toplev.c (rest_of_compilation): Rebuild jump labels after
15494         gcse.
15495
15496 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15497
15498         * doc/extend.texi: Move documentation of X86 built-in functions
15499         here.
15500         * doc/invoke.texi: From here.
15501         * doc/sourcebuild.texi: Document location of documentation for
15502         machine built-in functions.
15503
15504 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15505
15506         * cppfiles.c (TEST_THRESHOLD): New macro.
15507         (SHOULD_MMAP): Ditto.
15508         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15509         be used.
15510
15511 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15512
15513         * unroll.c (final_reg_note_copy): Properly handle
15514         REG_LABEL
15515         (unroll_loops): Fix LOOP_CONDITION heuristics.
15516
15517 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15518
15519         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15520         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15521
15522 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15523
15524         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15525         threaded loop.
15526
15527 2002-01-14  Tom Rix  <trix@redhat.com>
15528
15529         * config/rs6000/rs6000.md: Fix typo with sradi.
15530
15531 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15532
15533         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15534         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15535         (clrstrdi, clrstrsi): Adapt callers.
15536
15537         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15538
15539         (movti splitter): Never use register 0 as base register.
15540
15541 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15542
15543         * combine.c (simplify_shift_const): Always generate new rtx
15544         for shift expression instead of reusing given expression.
15545
15546 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15547
15548         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15549         alpha_legitimize_address unless mode is Pmode.
15550
15551 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15552
15553         * doc/md.texi (Modifiers): Document the '*' constraint for the
15554         user.
15555
15556         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15557         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15558         for xstormy16 too.
15559
15560 2002-01-13  Richard Henderson  <rth@redhat.com>
15561
15562         * reload.c (find_reloads): Use a hard reg destination as reload reg
15563         for an input reload of the source.
15564
15565 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15566
15567         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15568         more generic.
15569
15570 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15571
15572         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15573         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15574
15575         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15576
15577 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15578
15579         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15580
15581 2002-01-12  Tom Rix  <trix@redhat.com>
15582
15583         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15584         TARGET_POWERPC64.
15585
15586 2002-01-12  Richard Henderson  <rth@redhat.com>
15587
15588         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15589
15590         * doc/invoke.texi: Update Alpha options.
15591
15592         * doc/invoke.texi: Update i386 built-in function lists.
15593
15594 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15595
15596         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15597         referencing outside.
15598
15599 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15600
15601         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15602         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15603         offsets, and change line folding.
15604         * optabs.c (expand_binop): Remove warnings.
15605         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15606
15607 2002-01-12  Graham Stott <grahams@redhat.com>
15608
15609         * attribs.c (handle_deprecated_attribute): constify WHAT.
15610         * diagnostic.c (warn_deprecated_use): Add braces, fixes
15611         dangling else warning and constify WHAT.
15612         * except.h (struct function, struct inline_remap): Move
15613         struct tag forward defs before all prototypes.
15614         (duplicate_eh_regions): Whitespace.
15615
15616 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
15617
15618         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15619         MODE_BASE_REG_CLASS.
15620         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15621
15622 2002-01-12  Richard Henderson  <rth@redhat.com>
15623
15624         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15625         (ix86_expand_vector_move): New.
15626         (bdesc_2arg): Remove andps, andnps, orps, xorps.
15627         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
15628         Remove old prefetch builtins.  Special case the logicals removed above.
15629         (ix86_expand_builtin): Likewise.
15630         (safe_vector_operand): Use V4SFmode, not TImode.
15631         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
15632         (ix86_expand_timode_binop_builtin): New.
15633         * config/i386/i386-protos.h: Update.
15634         * config/i386/i386.h (enum ix86_builtins): Update.
15635         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15636         Use ix86_expand_vector_move in vector move expanders.
15637         (movti_internal, movti_rex64): Add xorps alternative.
15638         (sse_clrv4sf): Rename and adjust from sse_clrti.
15639         (prefetch): Don't work so hard.
15640         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15641         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15642         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15643
15644 2002-01-11  Richard Henderson  <rth@redhat.com>
15645
15646         * config/i386/mmintrin.h: New file.
15647         * config/i386/xmmintrin.h: New file.
15648         * config.gcc (i?86-*-*): Add extra_headers.
15649         * simplify-rtx.c (simplify_unary_operation): Handle saturating
15650         truncation codes.
15651         (simplify_binary_operation): Handle saturating arithmetic codes.
15652         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15653         not the lowpart subreg.
15654         (ix86_expand_builtin): Return a TImode dummy register instead of 0
15655         on error.
15656         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15657
15658 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15659
15660         * conflict.c (conflict_graph_compute): Free regsets when finished.
15661         * ssa.c (compute_coalesced_reg_partition): Likewise.
15662
15663 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15664
15665         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15666         every where we allocate a register.
15667
15668 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15669
15670         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15671         * lcm.c (compute_earliest, compute_farthest): Likewise.
15672
15673 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15674
15675         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15676
15677 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15678
15679         * doc/rtl.texi (Insns): Fix 2 typos.
15680
15681 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
15682
15683         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
15684         options.  Use @table @gcctabopt for MMIX options.  Add index
15685         entries for MMIX options.  Start new paragraph with first
15686         heading of the machine-dependent options.
15687
15688 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15689
15690         PR other/5299
15691         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15692         * combine.c (force_to_mode): Same.
15693         * reload1.c (clear_reload_reg_in_use): Same.
15694
15695 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
15696
15697         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15698         and 'subtargets'.
15699
15700 2002-01-11  Andreas Jaeger  <aj@suse.de>,
15701             Brad Lucier <lucier@math.purdue.edu>
15702
15703         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15704         mcpu.
15705
15706 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
15707
15708         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15709         Protect with IN_LIBGCC.
15710         (LINK_EH_SPEC): Add required trailing space.
15711
15712 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15713
15714         * c-tree.h: Move function declarations so that they are listed
15715         under the filename which contains them.
15716         (check_identifier, finish_decl_top_level,
15717         lookup_name_current_level_global, shadow_record_fields): Remove.
15718
15719 2002-01-11  Andreas Jaeger  <aj@suse.de>
15720
15721         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15722         march.
15723
15724 2002-01-10  Richard Henderson  <rth@redhat.com>
15725
15726         * config/alpha/alpha.c (print_operand): Add 'J'.
15727         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15728         new operand with the sequence number for the lituse.  When splitting
15729         the insns, use gen_movdi_er_high_g and generate a sequence number.
15730         (gen_movdi_er_high_g): Print the sequence number if non-zero.
15731
15732 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
15733
15734         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15735         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15736         stvxl.
15737         (altivec_expand_builtin): Same.
15738         (altivec_expand_stv_builtin): New.
15739
15740         * config/rs6000/rs6000.h (rs6000_builtins): Same.
15741
15742         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15743         ("altivec_lvehx"): New.
15744         ("altivec_lvewx"): New.
15745         ("altivec_lvxl"): New.
15746         ("altivec_lvx"): New.
15747         ("altivec_stvx"): New.
15748         ("altivec_stvebx"): New.
15749         ("altivec_stvehx"): New.
15750         ("altivec_stvewx"): New.
15751         ("altivec_stvxl"): New.
15752
15753 2002-01-10  Richard Henderson  <rth@redhat.com>
15754
15755         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15756         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
15757         care not to delete instructions twice.
15758
15759 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15760
15761         * toplev.c: Don't declare environ (it's not used anywhere).
15762         * configure.in: Don't check for declaration of environ.
15763         * config/i386/xm-mingw32.h: Don't #define environ.
15764         * config.in, configure: Regenerate.
15765
15766 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15767
15768         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15769         * configure: Regenerate.
15770
15771         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15772         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15773         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15774         alpha/xm-vms.h.
15775         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15776         LIMITS_H_TEST here, not in m68k/x-next.
15777         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15778         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15779
15780         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15781         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15782         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
15783
15784         * config/i386/x-djgpp: Renamed i386/t-djgpp.
15785         * config/m88k/x-dolph: Renamed m88k/t-dolph.
15786         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15787         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
15788         replacement of quadlib.asm with quadlib.c.
15789
15790         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15791         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15792         config/rs6000/xm-beos.h: Delete file.
15793
15794         * config.gcc: Update to match above changes.
15795
15796 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15797
15798         * config/h8300/h8300.h: Fix comment typos.
15799         * config/h8300/h8300.md: Likewise.
15800         * config/h8300/lib1funcs.asm: Likewise.
15801
15802 2002-01-10  Dale Johannesen  <dalej@apple.com>
15803
15804         PR optimization/5269
15805         * unroll.c (precondition_loop_p): Make *increment be the correct
15806         sign when n_iterations known, to avoid confusing caller.
15807
15808 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15809
15810         * doc/extend.texi (deprecated): Fix a typo.
15811
15812 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
15813
15814         * basic-block.h (update_br_prob_note): Declare.
15815         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15816         (try_forward_edges): Care negative frequencies and update note.
15817         (outgoing_edges_match): Tweek conditional merging heuristics.
15818         (try_crossjump_to_edge): use update_br_prob_note.
15819         * cfglayout.c (fixup_reorder_chain): Likewise.
15820         * cfrtl.c (update_br_prob_note): New.
15821         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15822
15823         * i386.c (ix86_decompose_address): Return -1 if address contains
15824         shift.
15825         (legitimate_address_p): Require ix86_decompose_address to return 1.
15826
15827         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15828         (cprop_insn): Likewise.
15829
15830 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15831
15832         * toplev.c: Fix formatting.
15833         * tree.c: Likewise.
15834         * tree-dump.c: Likewise.
15835         * unroll.c: Likewise.
15836         * unwind-dw2.c: Likewise.
15837         * unwind-dw2-fde.c: Likewise.
15838         * unwind-dw2-fde-glibc.c: Likewise.
15839         * unwind-sjlj.c: Likewise.
15840
15841 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15842
15843         * doc/invoke.texi: Document PDP-11 options.
15844
15845 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15846
15847         * config/h8300/h8300.h: Fix formatting.
15848
15849 2002-01-10  Ira Ruben   <ira@apple.com>
15850
15851         Add __attribute__ ((deprecated)).
15852         * extend.texi: Document __attribute__ ((deprecated)).
15853         * invoke.texi: Document -Wno-deprecated-declarations.
15854         * testsuite/g++.dg/other/deprecated.C: New C++ test.
15855         * testsuite/gcc.dg/deprecated.c: New C test.
15856         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15857         (c_common_attribute_table): Add "deprecated" entry.
15858         (handle_deprecated_attribute): New function.
15859         * c-decl.c (deprecated_states): New enum.
15860         deprecated_state: State of "deprecated" handling.
15861         (start_decl): Set deprecated_state based on attributes.
15862         (grokdeclarator): Test for deprecated uses, propagate attribute.
15863         * c-typeck.c (build_component_ref): Test for deprecated fields.
15864         (build_external_ref): Test for deprecated primaries.
15865         * diagnostic.c (warn_deprecated_use) New function to issue
15866         warnings about __attribute__ ((depricated)) references.
15867         * flags.h (warn_deprecated_decl): Extern declared for
15868         -W[no-]deprecated-declarations option.
15869         * print-tree.c (print_node): Show deprecated flag status.
15870         * toplev.c (warn_deprecated_decl): Defined.
15871         (W_options): Added "deprecated-declaration".
15872         * toplev.h (warn_deprecated_use): Extern declared.
15873         * tree.h (struct tree_common): Define deprecated_flag.
15874         (TREE_DEPRECATED): New macro to access flag.
15875         * cp/call.c (build_call): Test for deprecated calls.
15876         * cp/class.c (add_implicitly_declared_members): Set global
15877         flag to tell grokdeclarator to not issue deprecated warnings.
15878         * cp/cp-tree.h: Add extern for adding_implicit_members.
15879         * cp/decl.c (deprecated_states): New enum.
15880         (start_decl): Set deprecated_state based on attributes.
15881         (grokdeclarator): Test for deprecated uses, propagate attribute.
15882         * cp/lex.c (do_identifier): Test for deprecated primaries.
15883         * cp/typeck.c (build_component_ref): Test for deprecated fields.
15884
15885 2002-01-10  Ira Ruben   <ira@apple.com>
15886
15887         Fix to assign attributes to inline member functions.
15888         * cp/decl.c (start_method): Handle attrlist.
15889
15890 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15891
15892         * combine.c (expand_field_assignment): Use subreg_lsb().
15893
15894 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
15895
15896         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15897         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15898         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15899         Recurse for any operand of AND as long as constant is non-zero.
15900
15901 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15902
15903         * config/h8300/h8300.md: Remove constraints from expanders.
15904
15905 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15906
15907         * varasm.c: Fix formatting.
15908         * varray.c: Likewise.
15909         * vmsdbgout.c: Likewise.
15910         * xcoffout.c: Likewise.
15911
15912 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
15913
15914         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15915         update edge probabilities to match.
15916
15917 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15918
15919         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15920         dependencies.
15921         * doc/languages.texi, doc/sourcebuild.texi: New files.
15922         * doc/configfiles.texi: Make a subsubsection.  Update.
15923         * doc/configterms.texi: Add @node.  Remove warning that this isn't
15924         instructions for building GCC.
15925         * doc/makefile.texi: Make a subsection.
15926         * doc/gccint.texi: Update.
15927
15928 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
15929
15930         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15931
15932 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15933
15934         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15935
15936 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
15937
15938         * optabs.c (expand_fix): Look for wider integer modes first.
15939
15940         * i386.md (mov?f): Avoid the fake const double trick for medium
15941         memory model.
15942         (min?f*/max?f*): Prohibit memory operands for i387 variant.
15943         (fop_df_4): Disable for SSE compilation.
15944
15945 2002-01-10  Graham Stott  <grahams@redhat.com>
15946
15947         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15948         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15949
15950 2002-01-10  Richard Henderson  <rth@redhat.com>
15951
15952         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15953
15954 2002-01-10  Richard Henderson  <rth@redhat.com>
15955
15956         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15957         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
15958
15959 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15960
15961         * combine.c (can_combine_p): Fix a comment typo.
15962
15963 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
15964
15965         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15966         empty list correctly.  Change loop index $t to $f for
15967         consistency with rest of Makefile.
15968
15969 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
15970
15971         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15972         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15973
15974         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15975         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15976         (altivec_init_builtins): Same.
15977         (altivec_expand_unop_builtin): Return NULL_RTX on error.
15978         (altivec_expand_binop_builtin): Same.
15979         (altivec_expand_ternop_builtin): Same.
15980         (bdesc_dst): New.
15981
15982         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15983         ("altivec_vctuxs"): Fix typo.
15984         ("altivec_vnmsubfp"): Same.
15985         ("altivec_dssall"): New.
15986         ("altivec_mfvscr"): New.
15987         ("altivec_dss"): New.
15988         ("altivec_lvsl"): New.
15989         ("altivec_lvsr"): New.
15990         ("altivec_dstt"): New.
15991         ("altivec_dstst"): New.
15992         ("altivec_dststt"): New.
15993         ("altivec_dst"): New.
15994
15995         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15996         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15997
15998 2002-01-09  Richard Henderson  <rth@redhat.com>
15999
16000         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16001
16002 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
16003
16004         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16005         function.
16006         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16007         prototype.
16008         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16009
16010 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16011
16012         * read-rtl.c: Fix formatting.
16013         * real.c: Likewise.
16014         * regclass.c: Likewise.
16015         * regrename.c: Likewise.
16016         * reg-stack.c: Likewise.
16017         * reload1.c: Likewise.
16018         * reload.c: Likewise.
16019         * rtl.c: Likewise.
16020
16021 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16022
16023         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16024         to extract items in the expr_list chain.
16025
16026 2002-01-09  Richard Henderson  <rth@redhat.com>
16027
16028         * config/vax/vax.c (vax_rtx_cost): Never abort.
16029
16030         * config/vax/vax.h (REAL_ARITHMETIC): Define.
16031
16032 2002-01-09  Jan Hubicka  <jh@suse.cz>
16033
16034         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16035
16036 2002-01-09  Richard Henderson  <rth@redhat.com>
16037
16038         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16039         Unify code from various alternatives.
16040
16041 2002-01-09  Richard Henderson  <rth@redhat.com>
16042
16043         * regrename.c (copy_value): Ignore the copy if the source register
16044         is present in the value chain with a narrower mode.
16045
16046 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
16047
16048         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16049         for the c4x target. Also improve layout.
16050
16051 2002-01-09  Richard Henderson  <rth@redhat.com>
16052
16053         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16054         * config/m32r/m32r.md (and ior xor splitters): Swap operands
16055         to match insn patterns.
16056
16057 2002-01-09  Richard Henderson  <rth@redhat.com>
16058
16059         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16060         (copyprop_hardreg_forward_1): Likewise.
16061
16062 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16063
16064         * pa.md (decrement_and_branch_until_zero): Change predicate for
16065         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16066
16067 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16068
16069         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16070         gets undefined. For Darwin.
16071
16072 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16073
16074         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16075
16076 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16077
16078         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16079
16080 2002-01-08  Richard Henderson  <rth@redhat.com>
16081
16082         * regrename.c (copy_value): Ignore overlapping copies.
16083
16084 2002-01-08  Richard Henderson  <rth@redhat.com>
16085
16086         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16087         as needed to avoid shared structure.
16088
16089 2002-01-08  Kazu Hirata  <kazu@hxi.com>
16090
16091         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16092         H8/300H and H8/S.
16093
16094 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16095
16096         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16097         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16098         documentation of obsolete macros.
16099         * system.h: Poison these macros.
16100         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16101         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16102         config/c4x/c4x.h, config/clipper/clipper.h,
16103         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16104         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16105         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16106         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16107         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16108         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16109         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16110         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16111         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16112         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16113         config/sparc/sparc.h, config/stormy16/stormy16.h,
16114         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16115         definitions and commented out definitions of obsolete macros.
16116         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16117         of MAX_INT_TYPE_SIZE.
16118
16119 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16120
16121         * config/s390/s390.c (s390_preferred_reload_class): Never
16122         return ADDR_REGS if it isn't a subset of the given class.
16123         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16124         FP_REGS, but all superclasses as well.
16125
16126         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16127
16128         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16129         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16130         must not be a const_int.
16131
16132 2002-01-08  Richard Henderson  <rth@redhat.com>
16133
16134         * Makefile.in (toplev.o): Depend on options.h.
16135         (gcc.o): Depend on specs.h.
16136
16137 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16138
16139         * expr.c (store_expr): Convert VOIDmode constants back to target's
16140         mode.
16141
16142 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16143
16144         * doc/invoke.texi: Markup gcc as @command.  Refer to
16145         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16146         of http://gcc.gnu.org/thanks.html.
16147
16148 2002-01-08  Dale Johannesen  <dalej@apple.com>
16149
16150         * config/rs6000/rs6000.md: Add missing int register
16151         target case to movdf_low.
16152
16153 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16154
16155         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16156         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16157         (cppinit.o): Depend on except.h.
16158         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16159         s-specs): New rules.
16160
16161         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16162         Don't create specs.h/options.h/gencheck.h here.  Remove
16163         unnecessary variable settings from last argument of AC_OUTPUT.
16164         * config.in, configure: Regenerate.
16165         * intl.c: Hardcode package name as "gcc".
16166
16167         * cppinit.c: Include except.h.
16168         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16169         appropriate.
16170         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16171         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16172         (!)USING_SJLJ_EXCEPTIONS.
16173         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16174
16175 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16176
16177         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16178         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16179         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16180         documentation of obsolete macros.
16181         * system.h: Poison these macros.
16182         * config/d30v/d30v.h, config/ns32k/encore.h,
16183         config/stormy16/stormy16.h: Remove definitions and commented out
16184         definitions of obsolete macros.
16185
16186 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16187
16188         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16189         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16190         warnings.
16191
16192 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16193
16194         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16195         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16196         to insn adjusting stack/frame pointer.
16197         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16198         accept operands that cause the insn to be non-splittable.
16199
16200 2002-01-08  Graham Stott  <grahams@redhat.com>
16201
16202         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16203         (C_TYPE_FIELDS_VOLATILE): Likewise.
16204         (C_TYPE_BEING_DEFINED): Likewise.
16205         (C_IS_RESERVED_WORD): Likewise.
16206         (C_TYPE_VARIABLE_SIZE): Likewise.
16207         (C_DECL_VARIABLE_SIZE): Likewise.
16208         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16209         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16210         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16211         parenthesis.
16212         (C_DECL_ANTICIPATED): Likewise.
16213         (c_build_type_variant): Add parenthesis.
16214
16215 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16216
16217         * gcc.c (option_map): Remove --version.
16218         (process_command): Handle -fversion following the GNU Coding
16219         Standards.  Partially addresses PR other/704.
16220
16221 2002-01-08  Graham Stott  <grahams@redhat.com>
16222
16223         * combine.c (combine_instructions): Fix typo.
16224
16225 2002-01-08  Graham Stott  <grahams@redhat.com>
16226
16227         * debug.h: Use "tree" and "rtx" throughout.
16228
16229         * debug.c: Likewise.
16230
16231 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16232
16233         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16234         constant pool, use the pool's version of the symbol instead.
16235
16236 2002-01-07  Richard Henderson  <rth@redhat.com>
16237
16238         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16239         the original register was copied in a mode with a fewer number of
16240         hard registers than the desired mode.
16241         (copyprop_hardreg_forward_1): Likewise.
16242         (debug_value_data): Fix loop test.
16243         * toplev.c (parse_options_and_default_flags): Reenable
16244         -fcprop-registers at -O1.
16245
16246 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16247
16248         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16249         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16250
16251         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16252         predicates.
16253
16254         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16255
16256 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16257
16258         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16259         (pa_output_function_prologue): Output local label at the beginning of
16260         the prologue when profiling.
16261         (hppa_profile_hook): Use the local label rather than the function label.
16262         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16263
16264 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16265
16266         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16267         (altivec_expand_unop_builtin): Fix thinko.
16268         (altivec_expand_binop_builtin): Same.
16269         (altivec_expand_ternop_builtin): Same.
16270         (altivec_expand_builtin): Same.
16271
16272 2002-01-07  Richard Henderson  <rth@redhat.com>
16273
16274         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16275
16276 2002-01-07  Jason Merrill  <jason@redhat.com>
16277
16278         * unwind-dw2.c (execute_cfa_program): Use < again.
16279
16280 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16281
16282         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16283
16284 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16285
16286         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16287         Don't allow -1 - x -> ~x simplifications in the first pass.
16288
16289 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16290
16291         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16292         arguments.
16293         (altivec_expand_binop_builtin): Same.
16294         (altivec_expand_unop_builtin): Same.
16295         (print_operand): Fix typo.
16296         (bdesc_1arg): Add vupk* variants.
16297
16298         * rs6000.h (rs6000_builtins): Add vupk* enums.
16299
16300         * rs6000.md: Add altivec_vupk* variants.
16301
16302 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16303
16304         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16305         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16306         and last update dates.
16307
16308 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16309
16310         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16311
16312 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16313
16314         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16315         * config/avr/avr.h (CPP_SPEC): Likewise.
16316         (LINK_SPEC): Likewise.
16317         (CRT_BINUTILS_SPECS): Likewise.
16318         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16319         * doc/invoke.texi (AVR Options): Document them.
16320
16321 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16322
16323         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16324         LABEL_NUSES.
16325
16326 2002-01-07  Graham Stott  <grahams@redhat.com>
16327
16328         * config/i386/i386.h: Update copyright date.
16329         (HALF_PIC_PTR): Add parenthesis.
16330         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16331         (CONSTANT_ALIGNMENT): Add parenthesis.
16332         (DATA_ALIGNMENT): Likewise.
16333         (LOCAL_ALIGNMENT): Likewise.
16334         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16335         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16336         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16337         (HARD_REGNO_NREGS): Add paranethesis.
16338         (VALID_SSE_REG_MODE): Whitespace.
16339         (VALID_MMX_REG_MODE): Whitespace.
16340         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16341         (ix86_hard_regno_mode_ok): Add parenthesis.
16342         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16343         (RETURN_IN_MEMORY): Whitespace.
16344         (N_REG_CLASSES): Add parenthesis.
16345         (INTEGER_CLASS_P): Add parenthesis and wrap.
16346         (FLOAT_CLASS_P): Likewise.
16347         (SSE_CLASS_P): Likewise.
16348         (MMX_CLASS_P): Likewise.
16349         (MAYBE_INTEGER_CLASS_P): Likewise.
16350         (MAYBE_FLOAT_CLASS_P): Likewise.
16351         (MAYBE_SSE_CLASS_P): Likewise.
16352         (MAYBE_MMX_CLASS_P): Likewise.
16353         (Q_CLASS_P): Likewise.
16354         (GENERAL_REGNO_P): Uppercase macro parameter.
16355         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16356         (FP_REGNO_P): Likewise.
16357         (ANY_FP_REGNO_P): Uppercase macro parameter.
16358         (SSE_REGNO_P): Likewise.
16359         (SSE_REGNO): Likewise.
16360         (SSE_REG_P): Likewise.
16361         (SSE_FLOAT_MODE_P): Likewise.
16362         (MMX_REGNO_P): Likewise.
16363         (MMX_REG_P):Likewise.
16364         (STACK_REG_P): Likewise.
16365         (NON_STACK_REG_P): Likewise.
16366         (STACK_TOP_P): Likewise.
16367         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16368         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16369         (SECONDARY_MEMORY_NEEDED): Likewise.
16370         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16371         (MD_ASM_CLOBBERS): Whitespace and wrap.
16372         (MUST_PASS_IN_STACK): Whitespace and wrap.
16373         (RETURN_POPS_ARGS): Add parenthesis.
16374         (INIT_CUMULATIVE_ARGS): Likewise.
16375         (FUNCTION_ARG): Likewise.
16376         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16377         (SETUP_INCOMING_VARARGS): Likewise.
16378         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16379         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16380         parenthsis.
16381         (EXPAND_BUILTIN_VA_ARG): Likewise.
16382         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16383         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16384         (INITIAL_ELIMINATION_OFFSET): Likewise.
16385         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16386         (REGNO_OK_FOR_BASE_P): Likewise.
16387         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16388         (REGNO_OK_FOR_DIREG_P): Likewise.
16389         (REG_OK_FOR_INDEX_P): Whitespace.
16390         (REG_OK_FOR_BASE_P): Whitespace.
16391         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16392         parenthesis.
16393         (FIND_BASE_TERM): Fix typo.
16394         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16395         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16396         (SYMBOLIC_CONST; Whitespace.
16397         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16398         (ENCODE_SECTION_INFO): Whitespace.
16399         (FINALIZE_PIC): Remove do { ... } while (0).
16400         (PROMOTE_MODE): Wrap in do { ... } while (0).
16401         (CONST_COSTS): Whitespace.
16402         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16403         (REGISTER_MOVE_COST): Add parenthesis.
16404         (MEMORY_MOVE_COST): Likewise.
16405         (EXTRA_CC_MODES): Whitespace.
16406         (SELECT_CC_MODE): Add parenthesis and whitespace.
16407         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16408         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16409         (ASM_OUTPUT_LABEL): Add paramethesis.
16410         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16411         (ASM_OUTPUT_REG_POP): Likewise.
16412         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16413         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16414
16415         * config/i386/i386.c: Update copyright.
16416         (CHECK_STACK_LIMIT): Add parenthesis.
16417         (AT_BP): Uppercase macro parameter.
16418         (x86_64_int_parameter_registers): Constify.
16419         (x86_64_int_return_registers): Likewise.
16420         (ix86_compare_op0): Use rtx.
16421         (construct_container): Constify INTREG parameter.
16422         (function_arg): Use rtx.
16423
16424         * diagnostic.h: Update copyright date.
16425         (output_buffer_state): Add parenthesis.
16426         (output_buffer_format_args): Likewise.
16427
16428         * combine.c (combine_instructions): Replace XEXP (links, 0)
16429         with link.
16430
16431 2002-01-06  H.J. Lu <hjl@gnu.org>
16432
16433         * cfgcleanup.c (thread_jump): Fix 2 typos.
16434
16435 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16436
16437         * config.gcc: Add support for --enable-altivec.
16438
16439 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16440
16441         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16442
16443 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16444
16445         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16446         __objc_class_name_*.
16447
16448 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16449
16450         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16451
16452 2002-01-06  Richard Henderson  <rth@redhat.com>
16453
16454         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16455         nop them out.  Increment label reference count for REG_LABEL.
16456         (fill_slots_from_thread): Frob label reference count around
16457         delete_related_insns.
16458
16459 2002-01-05  Richard Henderson  <rth@redhat.com>
16460
16461         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16462         jump threading.
16463
16464 2002-01-05  Richard Henderson  <rth@redhat.com>
16465
16466         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16467         * integrate.c (output_inline_function): Likewise.
16468         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16469         to remove_unnecessary_notes after emitting abstract instance.
16470         Force an emitted nested function to have its parent emited as well.
16471         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16472         for null.
16473         (rtl_for_decl_location): Do not look at reload data structures
16474         before reload has run.
16475
16476 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16477
16478         * cse.c: Fix formatting.
16479         * dwarf2asm.c: Likewise.
16480         * dwarf2out.c: Likewise.
16481         * explow.c: Likewise.
16482         * expmed.c: Likewise.
16483         * function.c: Likewise.
16484         * gcov.c: Likewise.
16485         * gencheck.c: Likewise.
16486         * genrecog.c: Likewise.
16487         * ggc-common.c: Likewise.
16488         * ggc-page.c: Likewise.
16489         * global.c: Likewise.
16490
16491 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16492
16493         * combine.c: Fix formatting.
16494
16495 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16496
16497         PR middle-end/1557
16498         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16499
16500 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16501
16502         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16503         as 1 for __powerpc64__ as well.
16504
16505         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16506
16507         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16508         return it.
16509
16510 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16511
16512         * lcm.c: Revert change, due to performance regression it causes on
16513         SPEC because it's slightly more conservative (sigh, I hate
16514         edge-based LCM).
16515
16516 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16517
16518         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16519
16520 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16521
16522         * doc/cppinternals.texi: Update.
16523
16524 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16525
16526         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16527         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16528         negatives.
16529         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16530         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16531         kludge for pre-october-14th mmix versions to handle new-found bug
16532         with PUSHJ/PUSHGO and the register stack.
16533         * config/mmix/mmix.h (struct machine_function): Rename member
16534         has_call_value_without_parameters to has_call_without_parameters.
16535         All referers changed.
16536         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16537         TARGET_MASK_BRANCH_PREDICT): New macros.
16538         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16539         -mno-reg-stack-fill-bug-workaround.
16540         * config/mmix/mmix.md ("call"): Set struct machine member
16541         has_call_without_parameters.
16542
16543 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16544
16545         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16546
16547 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16548
16549         * cfgcleanup.c: Include tm_p.h
16550         (mark_effect): Fix handling of hard register; fix handling of SET
16551
16552 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16553
16554         * config/h8300/h8300.md (anonymous patterns): Check that
16555         operands are registers before using REGNO on them.
16556
16557 2002-01-03  Roland McGrath  <roland@frob.com>
16558
16559         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16560
16561 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16562
16563         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16564         * c-common.h (genrtl_expr_stmt_value): Likewise.
16565         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16566         (expand_expr_stmt_value): Add maybe_last argument.
16567         Don't warn about statement with no effect if it is the last statement
16568         in expression statement.
16569         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16570         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16571         expand_expr_stmt_value.
16572         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16573         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16574         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16575         as maybe_last to expand_expr_stmt_value.
16576
16577 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16578
16579         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16580         be passed in, do not build it.
16581         (c_begin_if_stmt): New function.
16582         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16583         * c-common.h (c_expand_start_cond): Update prototype.
16584         (c_begin_if_stmt): Prototype new function.
16585         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16586         * c-parse.in (if_prefix): Use c_begin_if_stmt,
16587         c_begin_while_stmt and c_finish_while_stmt_cond.
16588
16589 2002-01-04  William Cohen  <wcohen@redhat.com>
16590
16591         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16592         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16593         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16594         * config/pa/som.h (ASM_FILE_START): Likewise.
16595
16596 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
16597
16598         * lcm.c: Include df.h.
16599         Add available_transfer_function prototype.
16600         (compute_available): Rework to use iterative dataflow framework.
16601         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16602         with bb_info in df.h
16603         (available_transfer_function): New function.
16604
16605         * Makefile.in (lcm.o): add df.h to dependencies.
16606
16607 2002-01-04  Richard Henderson  <rth@redhat.com>
16608
16609         * config/alpha/alpha.c (some_operand): Accept HIGH.
16610         (input_operand): Likewise; accept simple references to globals.
16611         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16612         (alpha_const_double_ok_for_letter_p): Likewise.
16613         (alpha_extra_constraint): Likewise.
16614         (alpha_preferred_reload_class): Likewise.  Do not force
16615         symbolic constants to memory.
16616         (alpha_legitimate_address_p): Accept simple references
16617         to small_symbolic_operand.
16618         (alpha_legitimize_address): New arg scratch.  Be prepared to be
16619         called when no_new_pseudos.  Emit simple symbolic references.
16620         Split integers into low, high, and rest.
16621         (alpha_expand_mov): Use alpha_legitimize_address.
16622         (some_small_symbolic_mem_operand): New.
16623         (split_small_symbolic_mem_operand): New.
16624         * config/alpha/alpha-protos.h: Update.
16625         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16626         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16627         (EXTRA_CONSTRAINT): Likewise.
16628         (PREFERRED_RELOAD_CLASS): Likewise.
16629         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16630         (PREDICATE_CODES): Update.
16631         * config/alpha/alpha.md: New post-reload splitters to convert
16632         simplfied symbolic operands to the form that references $29.
16633         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16634         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16635
16636 2002-01-03  Richard Henderson  <rth@redhat.com>
16637
16638         * local-alloc.c (function_invariant_p): Update commentary.
16639
16640 2002-01-04  H.J. Lu <hjl@gnu.org>
16641
16642         * toplev.c (rest_of_compilation): Fix a typo when calling
16643         cleanup_cfg.
16644
16645 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16646
16647         * c-common.c: Fix formatting.
16648         * diagnostic.c: Likewise.
16649         * doloop.c: Likewise.
16650         * dwarf2out.c: Likewise.
16651
16652 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16653
16654         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16655         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16656
16657 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16658
16659         * cpperror.c: Update comments and copyright.
16660         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16661         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16662
16663 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16664
16665         * collect2.c (main): Use strcmp when testing for "-shared".
16666
16667 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16668
16669         * cppmacro.c: Don't include intl.h.  Update comments.
16670         (new_number_token): Allocate enough buffer for 64-bit unsigned
16671         integers; update prototype.
16672         * cppmain.c: Update comments.
16673
16674 2002-01-03  William Cohen  <wcohen@redhat.com>
16675
16676         * function.h (struct function): Add profile.
16677         (current_function_profile): New.
16678         doc/extend.texi: Update documentation.
16679         * final.c (final_start_function): Use current_function_profile
16680         instead of profile_flag.
16681         (profile_after_prologue): Likewise.
16682         * function.c (expand_function_start): Likewise.
16683         (expand_function_start): Likewise.
16684         * config/alpha/alpha.c (direct_call_operand):
16685         (alpha_does_function_need_gp): Likewise.
16686         (alpha_expand_prologue): Likewise.
16687         * config/arm/arm.c (arm_expand_prologue): Likewise.
16688         thumb_expand_prologue: Likewise.
16689         * config/d30v/d30v.c (d30v_stack_info): Likewise.
16690         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16691         (fr30_expand_prologue): Likewise.
16692         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16693         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16694         * config/i386/i386.h (FINALIZE_PIC): Likewise.
16695         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16696         * config/i960/i960.c (i960_output_function_prologue): Likewise.
16697         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16698         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16699         (m32r_expand_prologue): Likewise.
16700         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16701         (m88k_expand_prologue): Likewise.
16702         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16703         * config/mips/mips.c (compute_frame_size): Likewise.
16704         (mips_expand_prologue): Likewise.
16705         (mips_can_use_return_insn): Likewise.
16706         * config/pa/elf.h (ASM_FILE_START): Likewise.
16707         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16708         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16709         * config/pa/som.h (ASM_FILE_START): Likewise.
16710         * config/romp/romp.c (romp_using_r14): Likewise.
16711         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16712         (rs6000_stack_info): Likewise.
16713         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16714         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16715         * config/v850/v850.c (compute_register_save_size): Likewise.
16716
16717 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
16718
16719         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16720         gen_lowpart_common fails, use gen_lowpart_SUBREG.
16721
16722 2002-01-03  Turly O'Connor  <turly@apple.com>
16723
16724         * darwin.c (machopic_output_possible_stub_label): Don't generate
16725         stub routines for pseudo-stubs which we've just defined.
16726
16727 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16728
16729         * builtins.c: Fix formatting.
16730         * c-typeck.c: Likewise.
16731         * combine.c: Likewise.
16732         * expr.c: Likewise.
16733         * loop.c: Likewise.
16734
16735 2002-01-03  Andreas Schwab  <schwab@suse.de>
16736
16737         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16738         and return true if _cpp_push_next_buffer pushed a new include
16739         file.
16740         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16741         _cpp_pop_file_buffer did not push a new file.
16742         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16743
16744 2002-01-02  Eric Christopher  <echristo@redhat.com>
16745
16746         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16747         FIND_REG_INC_NOTE call. Update copyright.
16748         * loop.c (canonicalize_condition): Ditto.
16749         * reorg.c (delete_scheduled_jump): Ditto.
16750
16751 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16752
16753         * gcse.c: Fix formatting.
16754
16755 2002-01-03  Graham Stott  <grahams@redhat.com>
16756
16757         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16758         forward defs for struct tags rtx_def, union_tree, rtvec_def
16759         also output corresponding typedefs for rtx, tree, and rtvec.
16760
16761         * system.h: Move forward defs for struct tags rtx_def, union_tree,
16762         rtvec_def along with corresponding typedefs for rtx, tree, and
16763         rtvec to config.h, hconfig.h, tconfig.h.
16764
16765 2002-01-03  Graham Stott  <grahams@redhat.com>
16766
16767         * tree.h: Update copyright date.
16768         (IS_EXPR_CODE_CLASS): Add parenthesis.
16769         (TREE_SET_CODE): Add whitespace.
16770         (TREE_CHECK): Add parenthesis.
16771         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16772         (CST_OR_CONSTRUCTOR_CHECK):
16773         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16774         (TREE_SYMBOL_REFERENCED): Whitespace.
16775         (INT_CST_LT): Likewise.
16776         (INT_CST_LT_UNSIGNED): Likewise.
16777         (tree_real_cst): Unwrap comment.
16778         (tree_string): Likewise.
16779         (tree_complex): Likewise.
16780         (IDENTIFIER_POINTER): correct cast.
16781         (SAVE_EXPR_CONTEXT): Whitespace.
16782         (EXPR_WFL_FILENAME_NODE): Likewise.
16783         (EXPR_WFL_FILENAME): Remove parenthesis.
16784         (DECL_ORIGIN): Add parenthesis.
16785         (DECL_FROM_INLINE): Use NULL_TREE.
16786         (build_int_2): Whitespace.
16787         (build_type_variant): Add parenthesis.
16788
16789         * gcc/jcf-parse.c: Update copyright date.
16790         (yyparse): Constify resource_filename.
16791
16792 2002-01-03  Graham Stott  <grahams@redhat.com>
16793
16794         * rtl.h: Update copyright date.
16795         (RTL_CHECK1): Wrap long line.
16796         (RTL_CHECK2): Likewise.
16797         (RTL_CHECKC1): Wrap long line and whitespace.
16798         (RTL_CHECKC2): Likewise.
16799         (XWINT): Whitespace.
16800         (XINT): Likewise.
16801         (XSTR): Likewise.
16802         (XEXP): Likewise.
16803         (XVEC): Likewise.
16804         (XMODE): Likewise.
16805         (XBITMAP): Likewise.
16806         (XTREE): Likewise.
16807         (XBBDEF): Likewise.
16808         (XTMPL): Likewise.
16809         (X0WINT): Likewise.
16810         (X0INT):Likewise.
16811         (X0UINT): Likewise.
16812         (X0STR): Likewise.
16813         (X0EXP): Likewise.
16814         (X0VEC): Likewise.
16815         (X0MODE): Likewise.
16816         (X0BITMAP): Likewise.
16817         (X0TREE): Likewise.
16818         (X0BBDEF): Likewise.
16819         (X0ADVFLAGS): Likewise.
16820         (X0CSELIB): Likewise.
16821         (X0MEMATTR): Likewise.
16822         (XCWINT): Likewise.
16823         (XCINT): Likewise.
16824         (XCUINT): Likewise.
16825         (XCSTR): Likewise.
16826         (XCEXP): Likewise.
16827         (XCVEC): Likewise.
16828         (XCMODE): Likewise.
16829         (XCBITMAP): Likewise.
16830         (XCTREE): Likewise.
16831         (XCBBDEF): Likewise.
16832         (XCADVFLAGS): Likewise.
16833         (XCCSELIB): Likewise.
16834         (XC2EXP): Likewise.
16835         (INSN_UID): Likewise.
16836         (PREV_INSN): Likewise.
16837         (PATTERN): Likewise.
16838         (INSN_CODE): Likewise.
16839         (PUT_REG_NOTE_KIND): Likewise.
16840         (CODE_LABEL_NUMBER): Likewise.
16841         (NOTE_SOURCE_FILE): Likewise.
16842         (NOTE_BLOCK): Likewise.
16843         (NOTE_EH_HANDLER): Likewise.
16844         (NOTE_RANGE_INFO): Likewise.
16845         (NOTE_LIVE_INFO): Likewise.
16846         (NOTE_BASIC_BLOCK): Likewise.
16847         (NOTE_EXPECTED_VALUE): Likewise.
16848         (NOTE_LINE_NUMBER): Likewise.
16849         (LABEL_NAME): Likewise.
16850         (LABEL_NUSES): Likewise.
16851         (LABEL_ALTERNATE_NAME): Likewise.
16852         (ADDRESSOF_DECL): Likewise.
16853         (JUMP_LABEL): Likewise.
16854         (LABEL_NEXTREF): Likewise.
16855         (REGNO): Likewise.
16856         (ORIGINAL_REGNO: Likewise.
16857         (HARD_REGISTER_NUM_P): Add parenthesis.
16858         (SUBREG_REG): Whitespace.
16859         (SUBREG_BYTE): Likewise.
16860         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16861         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16862         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16863         (ASM_OPERANDS_INPUT_VEC): Likewise.
16864         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16865         (ASM_OPERANDS_INPUT): Likewise.
16866         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16867         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16868         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16869         (ASM_OPERANDS_INPUT_MODE): Likewise.
16870         (ASM_OPERANDS_SOURCE_FILE): Likewise.
16871         (ASM_OPERANDS_SOURCE_LINE): Likewise.
16872         (MEM_SET_IN_STRUCT_P): Minor reformat.
16873         (TRAP_CONDITION): Whitespace.
16874         (TRAP_CODE): Likewise.
16875         (COND_EXEC_TEST): Likewise.
16876         (COND_EXEC_CODE): Likewise.
16877         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16878         (PHI_NODE_P): Add parenthesis.
16879         (plus_constant): Whitespace and add parenthesis.
16880
16881 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16882
16883         * config/avr/avr.c: Fix comment typos.
16884         * config/c4x/c4x.md: Likewise.
16885         * config/dsp16xx/dsp16xx.h: Likewise.
16886         * config/dsp16xx/dsp16xx.md: Likewise.
16887         * config/i386/i386.md: Likewise.
16888         * config/ia64/ia64.c: Likewise.
16889         * config/m32r/m32r.h: Likewise.
16890         * config/m68hc11/m68hc11.md: Likewise.
16891         * config/mmix/mmix.c: Likewise.
16892         * config/mn10200/mn10200.c: Likewise.
16893         * config/romp/romp.c: Likewise.
16894         * config/sh/sh.c: Likewise.
16895         * config/stormy16/stormy16.c: Likewise.
16896         * config/stormy16/stormy16.h: Likewise.
16897         * config/stormy16/stormy16.md: Likewise.
16898
16899 2002-01-03  Graham Stott  <grahams@redhat.com>
16900
16901         * loop.h: Update copyright date.
16902         (LOOP_MOVABLES): Fix typo.
16903         (LOOP_REGS): Likewise.
16904         (LOOP_IVS): Likewise.
16905
16906 2002-01-03  Graham Stott  <grahams@redhat.com>
16907
16908         * cppinit.c: Update copyright date.
16909         Don't include output.h
16910         * Makefile.in: Update copyright date.
16911         Update dependency.
16912
16913 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16914
16915         PR c/5226
16916         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16917         (-pthread) Add to RS/6000 options.
16918
16919 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16920
16921         * except.c: Fix comment typos.
16922         * loop.c: Likewise.
16923         * varasm.c: Likewise.
16924         * doc/tm.texi: Fix a typo.
16925
16926 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
16927
16928         * c-typeck.c (output_init_element): Allow initializing static storage
16929         duration objects with compound literals.
16930
16931 2002-01-02  Richard Henderson  <rth@redhat.com>
16932
16933         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16934         after abusing it.
16935
16936 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16937
16938         * gcc.c (default_compilers): Const-ify.
16939         * mips-tdump.c (stab_names): Likewise.
16940         * mips-tfile.c (map_coff_types, map_coff_storage,
16941         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16942         pseudo_ops_t, pseudo_ops): Likewise.
16943         * protoize.c (default_include): Likewise
16944
16945         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16946         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16947         Add array size in declaration.
16948         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16949         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16950         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16951         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16952         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16953         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16954         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16955         emtens, make_nan): Const-ify.
16956         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16957         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16958
16959 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
16960
16961         * config.gcc (ia64-*-*): Set extra_headers.
16962         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
16963         * config/alpha/t-osf: Remove.
16964         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16965
16966 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
16967
16968         * config/rs6000/t-aix43: Revert previous change.
16969
16970 2002-01-02  Jason Merrill  <jason@redhat.com>
16971
16972         * c-decl.c (c_expand_body): Call outlining_inline_function when
16973         emitting an inline function out of line.
16974
16975 2002-01-02  Richard Henderson  <rth@redhat.com>
16976
16977         * dwarf2out.c (limbo_die_node): Add created_for member.
16978         (new_die): New argument created_for.  Update all callers.
16979         (mark_limbo_die_list): New.
16980         (dwarf2out_init): Register limbo_die_list as a root.
16981         (dwarf2out_finish): Force insert limbo dies into their function
16982         context.
16983
16984 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
16985
16986         PR c++/5089
16987         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16988
16989 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16990
16991         * config/h8300/fixunssfsi.c: Update copyright.
16992         Fix comment typos.
16993         Fix formatting.
16994         * config/h8300/h8300.c: Update copyright.
16995         Eliminate warnings.
16996
16997 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16998
16999         * config/romp/romp.c: Fix comment formatting.
17000         * config/romp/romp.h: Likewise.
17001         * config/romp/romp.md: Likewise.
17002         * config/s390/s390.c: Likewise.
17003         * config/stormy16/stormy16.c: Likewise.
17004         * config/stormy16/stormy16.h: Likewise.
17005
17006 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
17007
17008         * c-common.h (genrtl_expr_stmt_value): Declare.
17009         * c-semantics.c (genrtl_goto_stmt): Redirect to...
17010         (genrtl_goto_stmt_value): ... this new function.  Pass new
17011         argument down to expand_expr_stmt_value, taking
17012         TREE_ADDRESSABLE into account.
17013         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17014         STMT_EXPR as addressable, i.e., one whose result we want.
17015         * expr.c (expand_expr): Don't save expression statement value
17016         of labeled_blocks or loop_exprs.
17017         * stmt.c (expand_expr_stmt): Redirect to...
17018         (expand_expr_stmt_value): ... this new function.  Use new
17019         argument to tell whether to save expression value.
17020         (expand_end_stmt_expr): Reset last_expr_type and
17021         last_expr_value if we don't have either.
17022         * tree-inline.c (declare_return_variable): Mark its use
17023         statement as addressable.
17024         * tree.h: Document new use of TREE_ADDRESSABLE.
17025         (expand_expr_stmt_value): Declare.
17026
17027 2002-01-01  Tom Rix  <trix@redhat.com>
17028
17029         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17030         rs6000_emit_allocate_stack.
17031
17032 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
17033
17034         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17035         ${srcdir}/ginclude/ to every entry in extra_headers.
17036         * configure: Regenerate.
17037         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17038         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17039         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17040         * ginclude/proto.h: Rename to config/convex/proto.h.
17041
17042 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17043
17044         * attribs.c (handle_vector_size_attribute): Use host_integerp
17045         and tree_int_cst; remove warnings.
17046         * caller-save.c (insert_restore): Add cast to get rid of warning.
17047         (insert_save): Likewise.
17048         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17049         * regmove.c (find_matches): Add temporary var to kill a warning.
17050
17051 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
17052
17053         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17054         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17055         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17056         (vms-dwarf2eh.o): Add Makefile rule.
17057         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17058         * config/alpha/vms-dwarf2eh.asm: New file.
17059
17060         * gcc.c (delete_if_ordinary): Delete all versions.
17061
17062 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
17063
17064         * config/mmix/mmix.md: Update FIXME to not mention
17065         define_constants.
17066         (MMIX_rJ_REGNUM): New define_constants constant.
17067         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17068         "*movdicc_real"): Adjust contraints formatting.
17069         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17070         for branch prediction.
17071         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17072         output template.
17073         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17074         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17075         number.  Delete related FIXMEs.
17076         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17077         from number to MMIX_rJ_REGNUM.
17078         (TARGET_MASK_BRANCH_PREDICT): New.
17079         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17080         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
17081         value.  Add -mbranch-predict and -mno-branch-predict.
17082         (TARGET_VERSION): Drop date.
17083         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17084         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17085         for finding out global symbols.
17086         (mmix_asm_output_labelref): Revert condition for global symbol.
17087         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17088         (mmix_print_operand_punct_valid_p): A '+' is valid.
17089
17090 See ChangeLog.6 for earlier changes.